/* =========================================================
   Security Portal — Standalone Stylesheet
   Adapted from CursorCanvasDemo/site.css
   Dark navy / electric-blue corporate palette
   ========================================================= */

:root {
    --sec-bg:        #0a0e1a;
    --sec-surface:   #111827;
    --sec-surface-2: #1e2a3d;
    --sec-accent:    #0ea5e9;
    --sec-accent-2:  #38bdf8;
    --sec-text:      #f1f5f9;
    --sec-muted:     #94a3b8;
    --sec-border:    rgba(148, 163, 184, 0.12);
    --sec-border-hover: rgba(14, 165, 233, 0.35);
}

/* ----- Reset + Base ----- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--sec-bg);
    color: var(--sec-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img { display: block; max-width: 100%; }

/* ----- Layout shell ----- */
.sec-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sec-main { flex: 1; }

.sec-container {
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
}

/* ----- Navigation ----- */
.sec-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 26, 0.90);
    border-bottom: 1px solid var(--sec-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.sec-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
}

.sec-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    color: var(--sec-text);
    white-space: nowrap;
}

.sec-brand-mark {
    width: 28px;
    height: 28px;
    background: var(--sec-accent);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sec-brand-mark svg {
    width: 16px;
    height: 16px;
    stroke: #ffffff;
}

.sec-nav-links {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sec-nav-link {
    color: var(--sec-muted);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.sec-nav-link:hover,
.sec-nav-link.active {
    color: var(--sec-text);
    background: rgba(148, 163, 184, 0.08);
}

.sec-nav-cta {
    background: var(--sec-accent);
    color: #ffffff !important;
    border-radius: 6px;
    padding: 0.4rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.sec-nav-cta:hover {
    background: var(--sec-accent-2);
    color: #ffffff !important;
}

.sec-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.sec-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--sec-muted);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* ----- Typography helpers ----- */
.sec-eyebrow {
    color: var(--sec-accent);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin: 0 0 0.75rem;
}

.sec-section-title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.75rem;
    color: var(--sec-text);
}

.sec-lead {
    color: var(--sec-muted);
    font-size: 1.05rem;
    max-width: 62ch;
    line-height: 1.65;
    margin: 0 0 1.5rem;
}

/* ----- Sections ----- */
.sec-section {
    padding: 5rem 0;
}

.sec-section-alt {
    padding: 5rem 0;
    background: var(--sec-surface);
}

.sec-section-header {
    margin-bottom: 2.5rem;
}

/* ----- Hero ----- */
.sec-hero-parallax {
    min-height: 92vh;
    display: flex;
    align-items: center;
    background-image:
        linear-gradient(120deg, rgba(10, 14, 26, 0.90), rgba(14, 165, 233, 0.20)),
        url("/images/security/hero-bg.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: var(--sec-text);
}

.sec-hero-content {
    position: relative;
    z-index: 1;
    padding: 6rem 0 4rem;
}

.sec-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 1.2rem;
    max-width: 18ch;
}

.sec-hero-content .sec-lead {
    font-size: 1.15rem;
    color: rgba(241, 245, 249, 0.75);
    max-width: 58ch;
}

.sec-page-hero {
    padding: 6rem 0 4rem;
    background: var(--sec-surface);
    border-bottom: 1px solid var(--sec-border);
}

.sec-page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.75rem;
}

/* ----- Buttons ----- */
.sec-btn-primary {
    display: inline-block;
    background: var(--sec-accent);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.15s, transform 0.1s;
    border: none;
    cursor: pointer;
}

.sec-btn-primary:hover {
    background: var(--sec-accent-2);
    color: #ffffff;
}

.sec-btn-ghost {
    display: inline-block;
    background: transparent;
    color: var(--sec-text);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    transition: border-color 0.15s, color 0.15s;
    cursor: pointer;
}

.sec-btn-ghost:hover {
    border-color: var(--sec-accent);
    color: var(--sec-accent-2);
}

.sec-cta-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

/* ----- Cards ----- */
.sec-card {
    background: var(--sec-surface-2);
    border: 1px solid var(--sec-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.2s;
}

.sec-card:hover {
    border-color: var(--sec-border-hover);
}

.sec-card-img {
    width: calc(100% + 3rem);
    margin: -1.5rem -1.5rem 1.25rem;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom: 1px solid var(--sec-border);
}

.sec-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--sec-text);
}

.sec-card p {
    color: var(--sec-muted);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Feature icon cards */
.sec-feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.sec-feature-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--sec-accent);
}

/* ----- Grids ----- */
.sec-grid-3 {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.sec-grid-2 {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.sec-grid-4 {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* ----- Stats ----- */
.sec-stat-block {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid var(--sec-border);
    border-radius: 10px;
}

.sec-stat-value {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--sec-accent);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.sec-stat-label {
    color: var(--sec-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ----- Image + Text split ----- */
.sec-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.sec-split-body {}

.sec-split-body p {
    color: var(--sec-muted);
    line-height: 1.7;
    margin: 0 0 1.25rem;
}

.sec-split-image img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--sec-border);
    aspect-ratio: 4/3;
    object-fit: cover;
}

.sec-split.img-right .sec-split-image { order: 2; }
.sec-split.img-right .sec-split-body  { order: 1; }

/* ----- Testimonial ----- */
.sec-testimonial {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2rem;
}

.sec-quote-mark {
    font-size: 5rem;
    line-height: 1;
    color: var(--sec-accent);
    opacity: 0.4;
    margin-bottom: -1rem;
    font-family: Georgia, serif;
}

.sec-quote {
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    color: var(--sec-text);
    line-height: 1.55;
    font-style: italic;
    margin: 0 0 1.75rem;
}

.sec-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
}

.sec-author-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--sec-border);
    flex-shrink: 0;
}

.sec-author-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--sec-text);
}

.sec-author-role {
    font-size: 0.8rem;
    color: var(--sec-muted);
}

/* ----- CTA Band ----- */
.sec-cta-band {
    padding: 5rem 0;
    text-align: center;
}

.sec-cta-band.style-accent {
    background: rgba(14, 165, 233, 0.08);
    border-top: 1px solid var(--sec-border);
    border-bottom: 1px solid var(--sec-border);
}

.sec-cta-band.style-dark {
    background: var(--sec-surface);
}

.sec-cta-band h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.sec-cta-band p {
    color: var(--sec-muted);
    font-size: 1.05rem;
    max-width: 56ch;
    margin: 0 auto 1.75rem;
}

.sec-cta-band .sec-cta-row {
    justify-content: center;
    margin-top: 0;
}

/* ----- Case Studies ----- */
.sec-case-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.sec-case-card {
    background: var(--sec-surface-2);
    border: 1px solid var(--sec-border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}

.sec-case-card:hover {
    border-color: var(--sec-border-hover);
    transform: translateY(-2px);
}

.sec-case-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--sec-border);
}

.sec-case-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.sec-case-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sec-accent);
    background: rgba(14, 165, 233, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.sec-case-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--sec-text);
}

.sec-case-body p {
    color: var(--sec-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 1rem;
}

.sec-case-meta {
    display: flex;
    gap: 1.25rem;
    font-size: 0.8rem;
    color: var(--sec-muted);
    border-top: 1px solid var(--sec-border);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.sec-case-meta span { display: flex; align-items: center; gap: 0.35rem; }

/* ----- Contact ----- */
.sec-contact-split {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr 1.4fr;
    align-items: start;
}

.sec-contact-info h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.sec-contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--sec-border);
}

.sec-contact-item:last-child { border-bottom: none; }

.sec-contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sec-contact-icon svg { width: 18px; height: 18px; stroke: var(--sec-accent); }

.sec-contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sec-muted);
    font-weight: 600;
    margin: 0 0 0.2rem;
}

.sec-contact-value {
    color: var(--sec-text);
    font-size: 0.95rem;
    margin: 0;
}

/* ----- Forms ----- */
.sec-form-shell {
    background: var(--sec-surface);
    border: 1px solid var(--sec-border);
    border-radius: 16px;
    padding: 2rem;
}

.sec-form-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
}

.sec-form-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
}

.sec-form-group {
    margin-bottom: 1rem;
}

.sec-form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sec-muted);
    margin-bottom: 0.35rem;
    letter-spacing: 0.04em;
}

.sec-form-group input,
.sec-form-group textarea,
.sec-form-group select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: var(--sec-surface-2);
    border: 1px solid var(--sec-border);
    border-radius: 8px;
    color: var(--sec-text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.15s;
    outline: none;
}

.sec-form-group input:focus,
.sec-form-group textarea:focus {
    border-color: var(--sec-accent);
}

.sec-form-group textarea { resize: vertical; min-height: 120px; }

/* ----- Pricing ----- */
.sec-pricing-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.sec-pricing-card {
    background: var(--sec-surface-2);
    border: 1px solid var(--sec-border);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    position: relative;
    transition: border-color 0.2s;
}

.sec-pricing-card:hover { border-color: var(--sec-border-hover); }

.sec-pricing-card.featured {
    border-color: var(--sec-accent);
}

.sec-featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sec-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.sec-price {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--sec-accent);
    line-height: 1;
}

.sec-price-period {
    font-size: 0.875rem;
    color: var(--sec-muted);
    margin-left: 4px;
}

.sec-price-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0.5rem 0 0.3rem;
}

.sec-price-desc {
    color: var(--sec-muted);
    font-size: 0.875rem;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.sec-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
}

.sec-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    padding: 0.35rem 0;
    color: var(--sec-muted);
    border-bottom: 1px solid var(--sec-border);
}

.sec-feature-list li:last-child { border-bottom: none; }

.sec-feature-list li::before {
    content: '';
    width: 16px;
    height: 16px;
    background: rgba(14, 165, 233, 0.15);
    border-radius: 50%;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%230ea5e9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

/* ----- How It Works steps ----- */
.sec-steps {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    counter-reset: steps;
}

.sec-step {
    background: var(--sec-surface-2);
    border: 1px solid var(--sec-border);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    counter-increment: steps;
}

.sec-step::before {
    content: counter(steps, decimal-leading-zero);
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--sec-accent);
    opacity: 0.25;
    line-height: 1;
}

.sec-step h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    padding-right: 2.5rem;
}

.sec-step p {
    color: var(--sec-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

/* ----- Footer ----- */
.sec-footer {
    background: var(--sec-surface);
    border-top: 1px solid var(--sec-border);
    color: var(--sec-muted);
    font-size: 0.875rem;
}

.sec-footer-inner {
    padding: 3rem 0 2rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr auto;
    align-items: start;
}

.sec-footer-brand {
    font-weight: 700;
    font-size: 1rem;
    color: var(--sec-text);
    margin-bottom: 0.5rem;
}

.sec-footer-tagline {
    max-width: 40ch;
    line-height: 1.55;
}

.sec-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-end;
}

.sec-footer-links a {
    color: var(--sec-muted);
    transition: color 0.15s;
}

.sec-footer-links a:hover { color: var(--sec-accent-2); }

.sec-footer-bottom {
    border-top: 1px solid var(--sec-border);
    padding: 1.25rem 0;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ----- Divider ----- */
.sec-divider {
    border: none;
    border-top: 1px solid var(--sec-border);
    margin: 0;
}

/* ----- Accent line decoration ----- */
.sec-accent-line {
    display: block;
    width: 40px;
    height: 3px;
    background: var(--sec-accent);
    border-radius: 2px;
    margin-bottom: 1.25rem;
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .sec-hero-parallax {
        background-attachment: scroll;
        min-height: 80vh;
    }
}

@media (max-width: 768px) {
    .sec-contact-split {
        grid-template-columns: 1fr;
    }

    .sec-split { gap: 2rem; }
    .sec-split.img-right .sec-split-image { order: -1; }

    .sec-form-row { grid-template-columns: 1fr; }

    .sec-footer-inner {
        grid-template-columns: 1fr;
    }

    .sec-footer-links {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem 1.5rem;
    }
}

@media (max-width: 640px) {
    .sec-nav-links { display: none; }
    .sec-nav-links.open { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }

    .sec-nav-inner { flex-wrap: wrap; }

    .sec-mobile-toggle { display: flex; }

    .sec-hero-content h1 { font-size: 2rem; }

    .sec-section, .sec-section-alt { padding: 3rem 0; }

    .sec-page-hero { padding: 4rem 0 2.5rem; }

    .sec-testimonial { padding: 2rem 0; }
}

/* ── Cookie consent banner ── */
.sec-cookie-banner {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    background: var(--sec-surface-2);
    border-top: 1px solid var(--sec-border);
    padding: 1rem;
}
.sec-cookie-inner {
    max-width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.sec-cookie-text {
    flex: 1;
    margin: 0;
    font-size: 0.875rem;
    color: var(--sec-muted);
    line-height: 1.5;
}
.sec-cookie-text a {
    color: var(--sec-accent);
    text-decoration: underline;
}
.sec-cookie-btn {
    flex-shrink: 0;
    background: var(--sec-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.sec-cookie-btn:hover { background: var(--sec-accent-2); }

@media (max-width: 600px) {
    .sec-cookie-inner { flex-direction: column; align-items: flex-start; }
    .sec-cookie-btn { width: 100%; text-align: center; }
}
