@font-face {
    font-family: 'IBM Plex Sans';
    src: url('assets/fonts/IBMPlexSans-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'IBM Plex Sans';
    src: url('assets/fonts/IBMPlexSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'IBM Plex Sans';
    src: url('assets/fonts/IBMPlexSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'IBM Plex Sans';
    src: url('assets/fonts/IBMPlexSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'IBM Plex Sans';
    src: url('assets/fonts/IBMPlexSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ══════════════════════════════════════════════════════
   QBTC Capital — V1: Professional & Polished (Redesign)
   ══════════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0B1428;
    --bg-elevated: #152040;
    --bg-card: #1A2852;
    --gold: #F5A623;
    --gold-dim: rgba(245, 166, 35, 0.12);
    --gold-glow: rgba(245, 166, 35, 0.25);
    --white: #FFFFFF;
    --gray-100: #E5E5E5;
    --gray-300: #A3A3A3;
    --gray-500: #737373;
    --gray-700: #404040;
    --gray-900: #171717;
    --border: rgba(255,255,255,0.08);
    --nav-bg: rgba(11,20,40,0.85);
    --nav-mobile-bg: rgba(11,20,40,0.95);
    --grid-line: rgba(255,255,255,0.04);
    --grid-line-subtle: rgba(255,255,255,0.025);
    --frame-border: rgba(255,255,255,0.06);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --nav-height: 72px;
}

html.deep-dark {
    --bg: #080E1A;
    --bg-elevated: #0A0F1C;
    --bg-card: #0D1420;
    --gold-dim: rgba(245, 166, 35, 0.10);
    --gold-glow: rgba(245, 166, 35, 0.20);
    --border: rgba(255,255,255,0.06);
    --nav-bg: rgba(8,14,26,0.85);
    --nav-mobile-bg: rgba(8,14,26,0.95);
    --grid-line: rgba(255,255,255,0.03);
    --grid-line-subtle: rgba(255,255,255,0.02);
    --frame-border: rgba(255,255,255,0.05);
}

html.light {
    --bg: #F8FAFC;
    --bg-elevated: #F0F0F0;
    --bg-card: #FFFFFF;
    --gold-dim: rgba(245,166,35,0.10);
    --gold-glow: rgba(245,166,35,0.20);
    --white: #111111;
    --gray-100: #1A1A1A;
    --gray-300: #555555;
    --gray-500: #737373;
    --gray-700: #B0B0B0;
    --gray-900: #E8E8E8;
    --border: rgba(0,0,0,0.08);
    --nav-bg: rgba(248,250,252,0.85);
    --nav-mobile-bg: rgba(248,250,252,0.95);
    --grid-line: rgba(0,0,0,0.04);
    --grid-line-subtle: rgba(0,0,0,0.025);
    --frame-border: rgba(0,0,0,0.06);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--gray-300); line-height: 1.6; overflow-x: hidden; transition: background-color 0.3s, color 0.3s; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── NAV ── */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--nav-height);
    display: flex; align-items: center; gap: 16px;
    padding: 0 48px; z-index: 100;
    transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
}
.nav.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-logo { margin-right: auto; display: flex; align-items: center; gap: 0.5rem; }
.nav-logo-img { width: 42px; height: auto; object-fit: contain; }
.nav-logo-text { display: flex; flex-direction: column; align-items: center; }
.nav-logo-primary { font-size: 1.4rem; font-weight: 600; letter-spacing: 0.25em; color: var(--white); line-height: 1; font-family: 'IBM Plex Sans', sans-serif; }
.nav-logo-secondary { font-size: 0.55rem; font-weight: 400; letter-spacing: 0.45em; color: var(--gray-300); margin-top: 0.2rem; font-family: 'IBM Plex Sans', sans-serif; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 0.875rem; color: var(--gray-300); transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-cta {
    border: 1px solid var(--gold); color: var(--gold) !important;
    padding: 8px 24px; border-radius: 6px; font-weight: 500;
    transition: background 0.2s, color 0.2s !important;
}
.nav-cta:hover { background: var(--gold); color: var(--bg) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }

/* ── HERO ── */
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}
/* Atmospheric golden glow — warm light source behind content */
.hero::before {
    content: '';
    position: absolute;
    top: 40%; left: 35%;
    width: 900px; height: 700px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,166,35,0.06) 0%, rgba(245,166,35,0.02) 40%, transparent 65%);
    pointer-events: none;
    animation: heroGlow 10s ease-in-out infinite;
}
@keyframes heroGlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}
.hero-grid-bg {
    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: 80px 80px;
    mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 0%, transparent 80%);
    pointer-events: none;
}
.hero-inner {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
    min-height: calc(100vh - 120px);
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--nav-height) 64px 0;
}
.hero-inner--full {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    min-height: 100vh;
    align-content: center;
    padding-bottom: 140px;
}
.hero-content {
    max-width: 860px;
}
.hero-content .hero-actions {
    justify-content: center;
}
.hero-left {
    display: flex; align-items: center; justify-content: center;
}
.hero-eyebrow {
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 20px;
}
.hero-title {
    font-size: clamp(3.5rem, 8vw, 6rem); font-weight: 700;
    color: var(--white); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 32px;
}
.hero-inner--full .hero-title {
    background: linear-gradient(180deg, var(--white) 40%, var(--gray-500) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-line {
    width: 64px; height: 2px; margin: 0 auto 32px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    box-shadow: 0 0 12px rgba(245,166,35,0.3);
    transform: scaleX(0);
    animation: lineDrawAcross 0.8s ease-out 1s forwards;
}
.hero-desc {
    font-size: 1.2rem; color: var(--gray-300); line-height: 1.7; margin-bottom: 48px;
    max-width: 640px; margin-left: auto; margin-right: auto;
}
.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; }
.btn-primary {
    display: inline-block; background: var(--gold); color: var(--bg);
    font-weight: 600; font-size: 1.05rem; padding: 18px 40px; border-radius: 8px;
    box-shadow: 0 4px 20px rgba(245,166,35,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(245,166,35,0.35); }
.btn-secondary {
    display: inline-block; border: 1px solid var(--border); color: var(--gray-100);
    font-weight: 500; font-size: 1.05rem; padding: 18px 40px; border-radius: 8px;
    transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--gray-500); color: var(--white); }

/* Hero right — logo mark with frame */
.hero-right {
    max-width: 520px;
    padding-left: 34px;
    position: relative;
}
.hero-inner--full .hero-right,
.hero-content { padding-left: 0; }
/* Vertical gold line — gradient + glow + draw-in animation */
.hero-right::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
    box-shadow: 0 0 12px rgba(245,166,35,0.3), 0 0 4px rgba(245,166,35,0.2);
    transform-origin: top;
    transform: scaleY(0);
    animation: lineDrawDown 1.2s ease-out 0.6s forwards;
}
@keyframes lineDrawDown {
    to { transform: scaleY(1); }
}
.hero-logo-frame {
    position: relative;
    padding: 72px 64px;
    border: 1px solid var(--frame-border);
    background: radial-gradient(ellipse at center, rgba(245,166,35,0.04) 0%, transparent 70%);
}
.hero-logo-frame::before {
    content: '';
    position: absolute; inset: -1px;
    background: linear-gradient(160deg, rgba(245,166,35,0.2), transparent 40%, transparent 60%, rgba(245,166,35,0.12));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    padding: 1px;
    pointer-events: none;
}
.hero-logo-frame::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 500px; height: 500px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,166,35,0.07) 0%, rgba(245,166,35,0.02) 40%, transparent 65%);
    pointer-events: none;
    z-index: -1;
    animation: logoGlow 6s ease-in-out infinite;
}
@keyframes logoGlow {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}
.hero-logo-mark {
    display: flex; flex-direction: column; align-items: center;
    user-select: none;
}
.hero-logo-mark--sideby {
    flex-direction: row;
    gap: clamp(1rem, 2vw, 1.5rem);
}
.hero-logo-img {
    width: clamp(80px, 12vw, 140px);
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}
.hero-logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-logo-letters {
    font-size: clamp(4rem, 7vw, 6rem); font-weight: 200;
    color: var(--white); letter-spacing: 0.25em;
    line-height: 1; white-space: nowrap;
}
.logo-line {
    width: 48px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    box-shadow: 0 0 10px rgba(245,166,35,0.3);
    margin: 16px 0;
    transform: scaleX(0);
    animation: lineDrawAcross 0.8s ease-out 1s forwards;
}
@keyframes lineDrawAcross {
    to { transform: scaleX(1); }
}
.logo-sub {
    font-size: 1.1rem; font-weight: 400; letter-spacing: 0.5em;
    color: var(--gray-500);
}

/* Hero scroll indicator */
.hero-scroll {
    position: absolute; bottom: 12px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    z-index: 2;
}
.hero-scroll::before {
    content: '';
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px rgba(245,166,35,0.5);
    animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}
.hero-scroll span {
    font-size: 0.6rem; font-weight: 600; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--gray-700);
}
.hero-scroll-line {
    width: 1px; height: 36px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ── TRUST BAR ── */
.trust-bar {
    position: absolute; bottom: 60px; left: 0; right: 0;
    z-index: 2;
    display: flex; align-items: center; justify-content: center; gap: 48px;
    padding: 24px 48px;
    border-top: 1px solid var(--border);
}
.trust-label {
    font-size: 0.65rem; font-weight: 600; letter-spacing: 0.2em;
    color: var(--gray-700); white-space: nowrap;
}
.trust-logos { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.trust-logos img {
    height: 36px; width: auto; opacity: 0.6;
    filter: brightness(0) invert(1); transition: opacity 0.3s;
}
.trust-logos img:first-child { height: 100px; filter: invert(1); }
.trust-logos img:hover { opacity: 1; }

/* ── PRODUCTS ── */
.products { padding: 0; }

.product-eyebrow {
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.section-line { width: 40px; height: 1px; background: var(--gold); flex-shrink: 0; }

/* Products intro */
.products-intro {
    padding: 120px 64px 0;
    text-align: center;
}
.products-intro-inner {
    max-width: 720px;
    margin: 0 auto;
}
.products-intro .section-line {
    margin: 0 auto 24px;
}
.products-intro h2 {
    font-size: 2.5rem; font-weight: 700; color: var(--white);
    letter-spacing: -0.02em; margin-bottom: 20px;
}
.products-intro p {
    font-size: 1rem; line-height: 1.8; color: var(--gray-500);
}

/* Fortress — immersive showcase */
.fortress-section {
    background:
        radial-gradient(ellipse 80% 50% at 50% 75%, rgba(245,166,35,0.07), transparent),
        radial-gradient(ellipse 40% 50% at 15% 40%, rgba(245,166,35,0.03), transparent),
        var(--bg-elevated);
    position: relative;
    overflow: hidden;
    margin-top: 80px;
    padding: 100px 64px 120px;
}
.fortress-section::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--grid-line-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line-subtle) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 70%, black 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 70%, black 0%, transparent 100%);
    pointer-events: none;
}
/* Ambient golden orb — behind feature columns */
.fortress-section::after {
    content: '';
    position: absolute;
    top: 65%; left: 50%;
    width: 800px; height: 600px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,166,35,0.08) 0%, rgba(245,166,35,0.03) 35%, transparent 60%);
    pointer-events: none;
    animation: orbPulse 8s ease-in-out infinite;
}
@keyframes orbPulse {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

/* Geometric diamonds — floating behind content */

.fortress-inner {
    position: relative; z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

/* Fortress header — centered intro */
.fortress-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 80px;
}
.fortress-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 700; color: var(--white);
    letter-spacing: -0.03em; line-height: 1.1;
}
.fortress-rule {
    width: 60px; height: 2px; background: var(--gold);
    margin: 24px auto;
}
.fortress-desc {
    font-size: 0.95rem; line-height: 1.8; color: var(--gray-500);
}

/* Feature wall — 4-column grid with gold dividers */
.fortress-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.fortress-feature {
    padding: 40px 32px;
    border-left: 1px solid rgba(245,166,35,0.12);
    position: relative;
}
.fortress-feature:first-child {
    border-left: none;
}
/* + symbol on divider lines */
.fortress-feature:not(:first-child)::before {
    content: '+';
    position: absolute;
    left: -1px; top: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--gold);
    opacity: 0.5;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-elevated);
    border-radius: 50%;
    animation: plusSpin 12s linear infinite;
}
@keyframes plusSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
.fortress-feature .feature-num {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--gold);
    opacity: 0.2;
    line-height: 0.85;
    letter-spacing: -0.04em;
    display: block;
    text-shadow: 0 0 60px rgba(245,166,35,0.3);
    margin-bottom: 16px;
}
.fortress-feature .feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}
.fortress-feature .feature-title::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--gold);
    margin-top: 12px;
    opacity: 0.4;
}
.fortress-feature .feature-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--gray-500);
}

/* SMA — refined editorial two-column */
.sma-section {
    padding: 120px 64px 140px;
    position: relative;
    background:
        radial-gradient(ellipse 50% 60% at 80% 50%, rgba(245,166,35,0.035), transparent),
        var(--bg);
}
.sma-section::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 900px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245,166,35,0.3), transparent);
}
.sma-inner {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
    padding-top: 0;
}
.sma-left h3 {
    font-size: 2.5rem; font-weight: 700; color: var(--white);
    letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 16px;
}
.sma-left h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--gold);
    margin-top: 20px;
}
.sma-desc {
    font-size: 0.95rem; line-height: 1.85; color: var(--gray-300);
    margin-top: 24px;
}
.sma-right {
    border-left: 1px solid rgba(245,166,35,0.1);
    padding-left: 40px;
    padding-top: 8px;
}
.sma-features { display: flex; flex-direction: column; }
.sma-feature {
    display: flex; align-items: baseline; gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem; color: var(--gray-100);
    transition: padding-left 0.3s, color 0.3s, border-color 0.3s;
    position: relative;
}
.sma-feature:first-child {
    border-top: 1px solid var(--border);
}
.sma-feature:hover {
    padding-left: 12px;
    color: var(--white);
    border-color: rgba(245,166,35,0.15);
}
.sma-feature .feature-num {
    font-size: 1.5rem; font-weight: 700;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    min-width: 36px;
    color: var(--gold);
    opacity: 0.35;
    text-shadow: 0 0 30px rgba(245,166,35,0.2);
}

/* ── TEAM ── */
.team {
    padding: 120px 64px;
    position: relative;
    background:
        radial-gradient(ellipse 60% 50% at 50% 80%, rgba(245,166,35,0.03), transparent),
        var(--gray-900);
}
.team::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245,166,35,0.3), transparent);
}
.team-inner { max-width: 1100px; margin: 0 auto; }
.team-header { margin-bottom: 64px; text-align: center; }
.team-header .section-line { margin: 0 auto 24px; }
.team-header h2 {
    font-size: 2.2rem; font-weight: 700; color: var(--white);
    letter-spacing: -0.02em; margin-bottom: 16px;
}
.team-header h2::after {
    content: ''; display: block; width: 50px; height: 2px;
    background: var(--gold); margin: 20px auto 0;
}
.team-header p { font-size: 1.05rem; color: var(--gray-300); max-width: 560px; margin: 0 auto; }
.team-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
}
.team-member {
    text-align: center;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    transition: transform 0.3s;
}
.team-member:hover { transform: translateY(-4px); }
.team-photo-wrap {
    position: relative;
    margin-bottom: 24px;
    height: 280px;
    display: flex; align-items: flex-end; justify-content: center;
}
.team-photo-wrap img {
    max-height: 100%; width: auto; max-width: 200px;
    filter: grayscale(20%) brightness(0.95);
    transition: filter 0.4s, transform 0.4s;
}
.team-member:hover .team-photo-wrap img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.06);
}
/* Subtle golden glow under photo on hover */
.team-photo-wrap::after {
    content: '';
    position: absolute; bottom: -10px; left: 50%;
    transform: translateX(-50%);
    width: 60%; height: 40px;
    background: radial-gradient(ellipse, rgba(245,166,35,0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.team-member:hover .team-photo-wrap::after { opacity: 1; }
.team-linkedin {
    position: absolute; bottom: 8px; right: 15%;
    display: flex; align-items: center; justify-content: center;
    background: var(--gold); width: 36px; height: 36px;
    border-radius: 50%; color: var(--bg);
    opacity: 0; transform: scale(0.8);
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 4px 12px rgba(245,166,35,0.3);
}
.team-linkedin svg { flex-shrink: 0; width: 18px; height: 18px; }
.team-member:hover .team-linkedin { opacity: 1; transform: scale(1); }
.team-info h4 { font-size: 1.05rem; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.team-info span { font-size: 0.8rem; color: var(--gray-500); display: block; }

/* ── CONTACT — horizontal split ── */
.contact {
    padding: 120px 64px;
    position: relative;
}
.contact::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245,166,35,0.3), transparent);
}
.contact-inner {
    max-width: 800px; margin: 0 auto;
    text-align: center;
    display: flex; flex-direction: column; align-items: center;
    gap: 40px;
}
.contact-left h2 {
    font-size: 2.5rem; font-weight: 700; color: var(--white);
    letter-spacing: -0.02em; margin-bottom: 12px;
}
.contact-left p { font-size: 1.05rem; color: var(--gray-300); max-width: 460px; margin: 0 auto; }
.contact-cta {
    display: inline-flex; align-items: center; gap: 12px;
    background: var(--gold); color: var(--bg);
    font-weight: 600; font-size: 1.05rem;
    padding: 16px 40px; border-radius: 8px;
    box-shadow: 0 4px 20px rgba(245,166,35,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}
.contact-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(245,166,35,0.35);
}
.contact-cta-label {
    display: none;
}
.contact-cta-email {
    font-size: inherit; font-weight: inherit; color: inherit;
}
.contact-right { display: flex; }

/* ── FOOTER ── */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 48px;
    background: var(--bg);
}
.footer-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-logo { display: flex; align-items: center; gap: 0.4rem; }
.footer-logo-img { width: 36px; height: auto; object-fit: contain; }
.footer-logo-text { display: flex; flex-direction: column; align-items: center; }
.footer-logo-primary { font-size: 1.2rem; font-weight: 600; letter-spacing: 0.25em; color: var(--white); line-height: 1; font-family: 'IBM Plex Sans', sans-serif; }
.footer-logo-secondary { font-size: 0.5rem; font-weight: 400; letter-spacing: 0.45em; color: var(--gray-300); margin-top: 0.15rem; font-family: 'IBM Plex Sans', sans-serif; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 0.85rem; color: var(--gray-500); transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.8rem; color: var(--gray-700); }

/* ── THEME TOGGLE ── */
.theme-toggle {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: 1px solid var(--border);
    border-radius: 8px; cursor: pointer;
    color: var(--gray-300); flex-shrink: 0;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.theme-toggle:hover { color: var(--gold); border-color: var(--gold); }
.theme-icon-sun { display: block; }
.theme-icon-moon { display: none; }
html.light .theme-icon-sun { display: none; }
html.light .theme-icon-moon { display: block; }

/* ── LIGHT MODE OVERRIDES ── */
html.light .trust-logos img {
    filter: brightness(0) saturate(100%) invert(62%) sepia(85%) saturate(500%) hue-rotate(5deg) brightness(1.05);
}
html.light .trust-logos img:first-child {
    filter: saturate(100%) sepia(80%) hue-rotate(5deg) brightness(0.85);
}
html.light .btn-primary,
html.light .contact-cta {
    color: #0A0A0A;
}
html.light .nav-cta:hover {
    color: #0A0A0A !important;
}
html.light .team-linkedin {
    color: #0A0A0A;
}
html.light .team-photo-wrap img {
    filter: grayscale(20%) brightness(1.05);
}
html.light .team-member:hover .team-photo-wrap img {
    filter: grayscale(0%) brightness(1.1);
}

/* Deep dark mode — Fortress section adjustments */
html.deep-dark .fortress-section {
    background:
        radial-gradient(ellipse 80% 50% at 50% 75%, rgba(245,166,35,0.05), transparent),
        radial-gradient(ellipse 40% 50% at 15% 40%, rgba(245,166,35,0.02), transparent),
        var(--bg-elevated);
}

/* Light mode — Fortress section contrast fixes */
html.light .fortress-section {
    background:
        radial-gradient(ellipse 80% 50% at 50% 75%, rgba(245,166,35,0.10), transparent),
        #EEEBE5;
}
html.light .fortress-feature {
    border-left-color: rgba(180,140,50,0.3);
}
html.light .fortress-feature .feature-num {
    opacity: 0.55;
    color: #C8942A;
    text-shadow: none;
}
html.light .fortress-feature:not(:first-child)::before {
    background: #EEEBE5;
    color: #C8942A;
    opacity: 1;
}
html.light .fortress-feature .feature-desc {
    color: #555;
}
html.light .fortress-desc {
    color: #555;
}

/* Light mode — SMA section contrast */
html.light .sma-right {
    border-left-color: rgba(245,166,35,0.2);
}
html.light .sma-desc {
    color: #444;
}
html.light .sma-feature .feature-num {
    opacity: 0.5;
    text-shadow: none;
}

/* Light mode — Team section */
html.light .team {
    background:
        radial-gradient(ellipse 60% 50% at 50% 80%, rgba(245,166,35,0.06), transparent),
        var(--gray-900);
}
html.light .team-header p {
    color: #555;
}

/* Light mode — Contact */
html.light .contact-left p {
    color: #555;
}

/* Light mode — hero description */
html.light .hero-desc {
    color: #444;
}
html.light .hero-right::before {
    box-shadow: 0 0 12px rgba(245,166,35,0.15), 0 0 4px rgba(245,166,35,0.1);
}
html.light .logo-sub {
    color: #666;
}

/* Light mode — footer */
html.light .footer-copy {
    color: #888;
}
html.light .hero-scroll span {
    color: #999;
}

/* ── ANIMATIONS ── */
.hero-left, .hero-right, .hero-content, .hero-scroll,
.trust-bar,
.products-intro-inner,
.fortress-header,
.fortress-feature,
.sma-left,
.sma-feature,
.team-header, .team-member,
.contact-inner {
    opacity: 0; transform: translateY(30px);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; padding: var(--nav-height) 48px 160px; min-height: auto; }
    .hero::before { display: none; }
    .hero-grid-bg { display: none; }
    .hero-scroll { display: none; }
    .hero-left { max-width: 100%; }
    .trust-bar { position: relative; bottom: auto; padding: 24px 48px; border-bottom: 1px solid var(--border); }
    /* Fortress — 2x2 grid on tablet */
    .fortress-section { margin-top: 48px; padding: 80px 48px; }
    .fortress-section::after { display: none; }
    .fortress-features { grid-template-columns: 1fr 1fr; }
    .fortress-feature:nth-child(3) { border-left: none; }
    .sma-inner { grid-template-columns: 1fr; gap: 48px; }
    .sma-right { border-left: none; padding-left: 0; }
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .contact-left p { max-width: 100%; }
}

@media (max-width: 768px) {
    .nav { padding: 0 24px; }
    .nav-links {
        display: none; position: fixed; top: var(--nav-height); left: 0; right: 0;
        background: var(--nav-mobile-bg); backdrop-filter: blur(20px);
        flex-direction: column; padding: 32px 24px; gap: 20px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
    .hero { padding: calc(var(--nav-height) + 32px) 24px 32px; }
    .products-intro { padding: 80px 24px 0; }
    .fortress-section { padding: 60px 24px; }
    .fortress-features { grid-template-columns: 1fr; }
    .fortress-feature { border-left: none !important; border-bottom: 1px solid var(--border); }
    .fortress-feature::before { display: none !important; }
    .fortress-feature:last-child { border-bottom: none; }
    .sma-section { padding: 60px 24px 80px; }
    .sma-inner { gap: 32px; padding-top: 48px; }
    .sma-right { padding-top: 0; padding-left: 0; border-left: none; }
    .team { padding: 60px 24px; }
    .team-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .contact { padding: 60px 24px; }
    .trust-bar { position: relative; bottom: auto; gap: 24px; padding: 24px; flex-wrap: wrap; justify-content: center; border-bottom: 1px solid var(--border); }
    .trust-logos { gap: 32px; }
    .trust-logos img { height: 28px; }
    .footer { padding: 24px; }
    .footer-inner { flex-direction: column; text-align: center; gap: 12px; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn-primary, .hero-actions .btn-secondary { text-align: center; }
    .fortress-feature { padding: 24px 0; }
    .team-grid { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
    .trust-logos { justify-content: center; }
}
