/* ============================================================
   portaz-landing.css  |  Theme: Dark Command
   Palette: Midnight Navy · Electric Cyan · Amber Warning
   Fonts: Syne (display) · DM Sans (body)
   ============================================================ */

/* ── CSS Variables ──
   Dark Command is the default (:root and [data-theme="dark"] - a page
   with no attribute yet, e.g. a first-time visitor, gets dark, matching
   the brand look this site shipped with). [data-theme="light"] overrides
   the same variable names with a light equivalent - see the toggle button
   in _Layout.cshtml and Scripts/theme-toggle.js. Every other stylesheet in
   this folder references these variables rather than hardcoding hex
   values, so the toggle re-themes the whole site, not just this file -
   see docs/coding-standards.md "Theming". */
:root,
[data-theme="dark"] {
    --bg-base:        #080E1A;
    --bg-alt:         #0B1422;
    --bg-card:        #0D1B2E;
    --bg-card-hover:  #112237;
    --border:         #1A2E44;
    --border-light:   #1E3A52;
    --cyan:           #0EA5E9;
    --cyan-dim:       #0284C7;
    --cyan-glow:      rgba(14, 165, 233, 0.15);
    --amber:          #F59E0B;
    --amber-dim:      #D97706;
    --green:          #22C55E;
    --red:            #EF4444;
    --text-primary:   #E8F4FF;
    --text-secondary: #7A9CBB;
    --text-muted:     #3D5A75;
    --font-display:   'Montserrat', sans-serif;
    /*--font-body:      'DM Sans', sans-serif;*/
     --font-body:      'Montserrat', sans-serif;
    --radius-sm:      6px;
    --radius-md:      10px;
    --radius-lg:      16px;
    --radius-xl:      24px;
    --shadow-card:    0 2px 24px rgba(0,0,0,0.4);
    --transition:     0.22s ease;
    --cyan-hover:     #38BEF8;
    /* Translucent "frosted glass" surfaces for Login/SignUp/ForgotPassword's
       auth cards - see docs/coding-standards.md "Theming". These need their
       own tokens rather than reusing --bg-card because they're meant to
       stay see-through over the page's background orbs/mesh, not solid. */
    --glass-bg:       rgba(255, 255, 255, 0.04);
    --glass-border:   rgba(255, 255, 255, 0.09);
    --input-bg:       rgba(255, 255, 255, 0.055);
    --input-bg-hover: rgba(255, 255, 255, 0.07);
    --grid-line:      rgba(255, 255, 255, 0.07);
}

[data-theme="light"] {
    --bg-base:        #F7F9FC;
    /* A bigger step down from --bg-base than before, so alternating
       sections (.bg-dark-alt/.section_common_problem) actually read as a
       different band instead of blending into the page. */
    --bg-alt:         #E7ECF4;
    --bg-card:        #FFFFFF;
    --bg-card-hover:  #F0F4F9;
    --border:         #DCE3EC;
    --border-light:   #E7ECF2;
    --cyan:           #0284C7;
    --cyan-dim:       #0EA5E9;
    --cyan-glow:      rgba(2, 132, 199, 0.12);
    --amber:          #D97706;
    --amber-dim:      #F59E0B;
    --green:          #16A34A;
    --red:            #DC2626;
    --text-primary:   #0B1422;
    --text-secondary: #445A72;
    --text-muted:     #7A8CA0;
    --shadow-card:    0 2px 24px rgba(15, 23, 42, 0.08);
    --cyan-hover:     #026694;
    /* Frosted-glass surfaces read as light glass over the light background,
       not dark-mode's white-on-dark - see the dark block's comment. */
    --glass-bg:       rgba(255, 255, 255, 0.75);
    --glass-border:   rgba(11, 20, 34, 0.08);
    --input-bg:       rgba(11, 20, 34, 0.035);
    --input-bg-hover: rgba(11, 20, 34, 0.06);
    /* Grid-overlay lines need much more contrast than --border on a light
       background to read as a visible pattern rather than disappearing -
       see .hero-grid-overlay. */
    --grid-line:      rgba(11, 20, 34, 0.14);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body)!important;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cyan-hover); }
strong { color: var(--cyan); font-weight: 600; }

/* ── Container ── */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Section Base ── */
.section  { padding: 88px 0; }
.bg-dark-alt { background-color: var(--bg-alt); }

/* Top accent rule shared by alternating sections */
.section_common_problem { background-color: var(--bg-base); }

/* ── Section Header ── */
.section-header {
    text-align: center;
    margin-bottom: 52px;
}
.section-eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--cyan);
    margin-bottom: 12px;
    opacity: 0.8;
}
.gradient-heading {
    font-family: var(--font-display);
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 16px;
}
/* Dark theme (the default - see the :root/[data-theme] comment above)
   renders every *-gradient-heading heading site-wide as solid white
   rather than the original white-to-blue gradient; light theme keeps
   the gradient look, restored here. See docs/coding-standards.md
   "Theming". */
[data-theme="light"] .gradient-heading {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-center { text-align: center; }
.center-text {
    max-width: 620px;
    margin: 0 auto 28px;
    color: var(--text-secondary);
    text-align: center;
    font-size: 15px;
}
.mt-2 { margin-top: 24px; }

/* ── Top Navigation ── */
.portaz-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 14, 26, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 64px;
    gap: 32px;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}
.nav-links a {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-login {
    font-size: 13px;
    /* .portaz-nav's background is always dark, in both themes (a
       deliberate constant brand element - see that rule), so this stays a
       fixed light color rather than var(--text-primary), which flips to a
       dark navy in light mode and would go invisible here. */
    color: #fff;
    font-weight: 500;
}
.nav-login:hover { color: var(--cyan); }
.nav-accent-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: 0.4;
}

/* ── Theme toggle ── */
.theme-toggle-btn {
    background: transparent;
    /* Fixed light-on-dark, matching .nav-login above - see its comment. */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 999px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    padding: 0;
    transition: border-color var(--transition);
}
.theme-toggle-btn:hover { border-color: var(--cyan); }
.theme-toggle-btn .theme-icon-light { display: none; }
[data-theme="light"] .theme-toggle-btn .theme-icon-dark { display: none; }
[data-theme="light"] .theme-toggle-btn .theme-icon-light { display: inline; }

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cyan);
    color: #fff;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    letter-spacing: 0.2px;
}
.btn-primary:hover {
    background: var(--cyan-dim);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(14,165,233,0.35);
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
    letter-spacing: 0.2px;
}
.btn-outline:hover {
    border-color: var(--cyan);
    background: rgba(14,165,233,0.06);
    color: var(--text-primary);
    transform: translateY(-1px);
}
.btn-large { padding: 14px 30px; font-size: 14px; }
.cta-group { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ── Hero ── */
.hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0 88px;
    border-bottom: 1px solid var(--border);
}
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 72px 72px;
    pointer-events: none;
}
.hero-glow {
    position: absolute;
    top: -80px;
    right: -60px;
    width: 560px;
    height: 560px;
    background: radial-gradient(ellipse at center, rgba(14,165,233,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.hero-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--cyan);
    margin-bottom: 20px;
    opacity: 0.85;
}
.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    animation: pulse-dot 2s ease-in-out infinite;
}
.hero-content h1 { margin-bottom: 20px; font-size: clamp(28px, 3.5vw, 42px); }
.subheadline {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 520px;
    line-height: 1.75;
}
.trust-strip {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}
.trust-item i { color: var(--cyan); font-size: 11px; }
.trust-divider { width: 1px; height: 16px; background: var(--border-light); }

/* ── Hero Dashboard ── */
.hero-dashboard {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-card);
}
.stat-label {
    display: block;
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 8px;
}
.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 6px;
}
.stat-change {
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}
.stat-change.positive { color: var(--green); }

/* Mini Map */
.map-card { padding: 18px 20px; }
.mini-map {
    position: relative;
    height: 110px;
    margin-top: 10px;
    background: rgba(14,165,233,0.03);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}
.map-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.map-node {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.node-active { background: var(--cyan); box-shadow: 0 0 0 3px rgba(14,165,233,0.2); }
.node-warn   { background: var(--amber); box-shadow: 0 0 0 3px rgba(245,158,11,0.2); }
.node-label {
    position: absolute;
    top: 13px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    color: var(--text-secondary);
    white-space: nowrap;
    font-family: var(--font-body);
}

/* ── Cards (Who is Portaz For) ── */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    transition: border-color var(--transition), transform var(--transition), background var(--transition);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}
.card:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
}
.card:hover::before { opacity: 1; }
.card-icon {
    font-size: 22px;
    color: var(--cyan);
    margin-bottom: 14px;
}
.card h3 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}
.card p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.65;
}
.card-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--cyan);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap var(--transition);
}

.card-link:hover { gap: 9px; color: var(--cyan); }

/* ── Two-column layout ── */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.two-col-layout.reverse { direction: rtl; }
.two-col-layout.reverse > * { direction: ltr; }
.col-text {}
.col-text .section-eyebrow { display: block; margin-bottom: 10px; text-align: left; }
.col-text h2 { text-align: left; font-size: clamp(22px, 3vw, 34px); }
.col-desc { color: var(--text-secondary); font-size: 14px; margin-top: 12px; line-height: 1.75; }

/* ── Icon Lists ── */
.icon-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.icon-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: border-color var(--transition);
}
.icon-list li:hover { border-color: var(--border-light); }
.icon-list li i { flex-shrink: 0; margin-top: 2px; }
.icon-cyan { color: var(--cyan) !important; }
.icon-red  { color: var(--red) !important; }

/* ── Feature Cards ── */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
.wide-card-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: border-color var(--transition), transform var(--transition), background var(--transition);
}
.feature-card:hover {
    border-color: rgba(14,165,233,0.4);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}
.feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(14,165,233,0.1);
    border: 1px solid rgba(14,165,233,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--cyan);
}
.feature-body h3 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.feature-body p { color: var(--text-secondary); font-size: 13px; margin-bottom: 14px; line-height: 1.65; }
.feature-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--cyan);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap var(--transition);
}
.feature-link:hover { gap: 9px; color: var(--cyan); }

/* ── Outcomes Grid ── */
.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.outcome-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    transition: border-color var(--transition), background var(--transition);
}
.outcome-item:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
}
.outcome-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(14,165,233,0.08);
    border: 1px solid rgba(14,165,233,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--cyan);
}
.outcome-text { color: var(--text-secondary); font-size: 14px; line-height: 1.55; }
.outcome-text strong { color: var(--cyan); }

/* ── TMS Pillars ── */
.tms-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 32px 0;
}
.pillar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    transition: border-color var(--transition), background var(--transition);
    font-size: 13px;
    color: var(--text-secondary);
}
.pillar:hover { border-color: var(--border-light); background: var(--bg-card-hover); }
.pillar i { font-size: 22px; color: var(--cyan); }
.learn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cyan);
    transition: gap var(--transition);
}
.learn-link:hover { gap: 10px; color: var(--cyan); }

/* ── Why Portaz ── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.why-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: border-color var(--transition), background var(--transition);
}
.why-item:hover { border-color: var(--border-light); background: var(--bg-card-hover); }
.why-item > i { font-size: 20px; margin-top: 2px; flex-shrink: 0; }
.why-item h4 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.why-item p { color: var(--text-secondary); font-size: 13px; line-height: 1.6; }

/* ── Case Study ── */
.case-study-section { }
.case-study-card {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 52px 48px;
    position: relative;
    overflow: hidden;
}
.case-study-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(14,165,233,0.07), transparent 65%);
    pointer-events: none;
}
.case-study-badge {
    display: inline-block;
    background: rgba(14,165,233,0.12);
    border: 1px solid rgba(14,165,233,0.3);
    color: var(--cyan);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    padding: 4px 14px;
    border-radius: 100px;
    margin-bottom: 24px;
}
.case-study-quote {
    font-family: var(--font-display);
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 16px;
    quotes: none;
}
.case-study-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 28px;
    line-height: 1.7;
}

/* ── FAQ ── */
.faq {
    list-style: none;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.faq li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition), color var(--transition);
}
.faq li:last-child a { border-bottom: none; }
.faq li a:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}
.faq-arrow {
    margin-left: auto;
    font-size: 10px;
    color: var(--text-muted);
    transition: transform var(--transition), color var(--transition);
}
.faq li a:hover .faq-arrow {
    transform: translateX(4px);
    color: var(--cyan);
}

/* ── Final CTA ── */
.final-cta {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    text-align: center;
}
.cta-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(14,165,233,0.12), transparent 70%);
    pointer-events: none;
}
.final-cta .section-eyebrow { display: block; margin-bottom: 16px; }
.final-cta .gradient-heading { font-size: clamp(26px, 4vw, 46px); margin-bottom: 16px; }
.final-cta .subheadline { margin: 0 auto 36px; max-width: 480px; font-size: 15px; }
.final-cta .cta-group { justify-content: center; }


.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Pushes .nav-links/.nav-actions to the right edge of .nav-inner -
       moved here from a dead duplicate .nav-brand rule (see git history)
       that targeted a text-based brand-name/brand-sub markup this nav
       stopped using once it switched to an image logo. */
    margin-right: auto;
}

.brand-logo {
    height: 52px; /* adjust based on navbar height */
    width: auto;
    object-fit: contain;
}

.outcome-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.outcome-icon {
   
    font-size: 18px;
}
.outcome-icon1 {
    font-size: 18px;
    margin:10px;
}


/* MENU BUTTON - the nav bar is dark in both themes (see .portaz-nav), so the icon is a fixed light colour like .nav-login; inheriting
   var(--text-primary) made it disappear whenever that variable resolved dark on the dark bar. */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}
.menu-toggle:hover { color: var(--cyan); }

/* ============================================================
   FAQ — PORTAZ STYLE (MATCHES DARK COMMAND)
