:root {
    --bg: #07111f;
    --panel: rgba(8, 20, 38, 0.82);
    --panel-strong: rgba(11, 25, 46, 0.94);
    --line: rgba(140, 167, 203, 0.18);
    --text: #f5f9ff;
    --muted: #9bb0cc;
    --green: #28d17c;
    --green-soft: rgba(40, 209, 124, 0.12);
    --green-glow: rgba(40, 209, 124, 0.4);
    --red: #ff6b6b;
    --red-soft: rgba(255, 107, 107, 0.12);
    --red-glow: rgba(255, 107, 107, 0.4);
    --blue: #57a6ff;
    --blue-soft: rgba(87, 166, 255, 0.12);
    --blue-glow: rgba(87, 166, 255, 0.4);
    --purple: #a78bfa;
    --purple-soft: rgba(167, 139, 250, 0.12);
    --purple-glow: rgba(167, 139, 250, 0.4);
    --gold: #ffd700;
    --gold-soft: rgba(255, 215, 0, 0.12);
    --gold-glow: rgba(255, 215, 0, 0.4);
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --max: 1240px;
    
    /* Animation variables */
    --anim-speed: 0.3s;
    --anim-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --anim-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --anim-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(50, 115, 220, 0.34), transparent 28%),
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.18), transparent 24%),
        radial-gradient(circle at 20% 80%, rgba(255, 191, 95, 0.12), transparent 25%),
        linear-gradient(180deg, #06101b 0%, #0b1626 52%, #07111f 100%);
    font-family: 'Manrope', sans-serif;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.page-shell { position: relative; overflow: hidden; }
.page-shell::before,
.page-shell::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(40px);
    pointer-events: none;
}
.page-shell::before {
    width: 320px;
    height: 320px;
    top: 120px;
    left: -100px;
    background: rgba(87, 166, 255, 0.18);
}
.page-shell::after {
    width: 360px;
    height: 360px;
    right: -140px;
    top: 480px;
    background: rgba(40, 209, 124, 0.12);
}

.container { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.section { padding: 28px 0 0; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(20px);
    background: 
        linear-gradient(180deg, 
            rgba(7, 17, 31, 0.92) 0%, 
            rgba(7, 17, 31, 0.78) 40%, 
            rgba(7, 17, 31, 0.64) 100%);
    border-bottom: 1px solid rgba(155, 176, 204, 0.08);
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    transition: all 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

.topbar.sticky {
    padding: 12px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    transition: all 280ms ease;
}
.brand { 
    display: flex; 
    align-items: center; 
    gap: 14px; 
    transition: all 280ms ease;
    position: relative;
}

.brand:hover {
    transform: scale(1.02);
}

.brand::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #57a6ff, #5ce2b0);
    transition: width 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

.brand:hover::after {
    width: 100%;
}
.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: 
        linear-gradient(135deg, #63b8ff 0%, #2f7ae5 55%, #123f8f 100%);
    box-shadow: 
        0 18px 36px rgba(47, 122, 229, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: all 320ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.brand-mark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 20%, 
            rgba(255, 255, 255, 0.2) 0%, 
            transparent 40%),
        radial-gradient(circle at 80% 80%, 
            rgba(92, 226, 176, 0.15) 0%, 
            transparent 35%);
    opacity: 0;
    transition: opacity 320ms ease;
}

.brand:hover .brand-mark,
.brand:hover .brand-mark::before {
    opacity: 1;
    box-shadow: 
        0 24px 48px rgba(87, 166, 255, 0.42),
        0 0 0 1px rgba(255, 255, 255, 0.12);
}

.brand:hover .brand-mark {
    transform: rotate(4deg) scale(1.04);
    box-shadow: 
        0 24px 48px rgba(87, 166, 255, 0.42),
        0 0 0 1px rgba(255, 255, 255, 0.12);
}
.brand-copy strong,
.hero-copy h1,
.section-heading h2,
.cta-panel h2 { font-family: 'Space Grotesk', sans-serif; }
.brand-copy strong { display: block; font-size: 1rem; letter-spacing: -0.03em; }
.brand-copy span { color: var(--muted); font-size: 0.88rem; }

.nav-links { display: flex; align-items: center; gap: 14px; }
.nav-pill,
.ghost-button,
.primary-button { 
    border-radius: 999px; 
    transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1); 
    position: relative;
    overflow: hidden;
}

/* Hover effects with glow */
.nav-pill:hover,
.ghost-button:hover,
.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Active states */
.nav-pill:active,
.ghost-button:active,
.primary-button:active {
    transform: translateY(-1px);
}

/* Connect Zerodha pulsing animation */
.primary-button.connecting {
    animation: connectPulse 1.8s ease-in-out infinite;
}

@keyframes connectPulse {
    0%, 100% { 
        box-shadow: 0 18px 30px rgba(87, 166, 255, 0.28);
    }
    50% { 
        box-shadow: 0 24px 42px rgba(87, 166, 255, 0.34);
    }
}

/* Gradient glow on hover */
.primary-button:hover {
    box-shadow: 0 24px 42px rgba(87, 166, 255, 0.34);
}

.primary-button:hover::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    z-index: -1;
    animation: buttonGlow 2.4s ease-in-out infinite;
}

@keyframes buttonGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.04); }
}
.nav-pill { 
    padding: 11px 18px; 
    border: 1px solid transparent; 
    color: var(--muted);
    position: relative;
}

.nav-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #57a6ff, #5ce2b0);
    transition: width 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-pill:hover {
    color: var(--text);
    border-color: rgba(155, 176, 204, 0.18);
    background: rgba(255, 255, 255, 0.03);
}

.nav-pill:hover::before {
    width: 100%;
}
.nav-pill:hover {
    color: var(--text);
    border-color: rgba(155, 176, 204, 0.18);
    background: rgba(255, 255, 255, 0.03);
}
.ghost-button,
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    font-weight: 700;
}
.ghost-button {
    border: 1px solid rgba(155, 176, 204, 0.2);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    box-shadow: 0 0 0 transparent;
    transition: all 220ms ease;
}
.ghost-button:hover { border-color: rgba(155, 176, 204, 0.36); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.2); }
.ghost-button:active { transform: translateY(-1px); }
.primary-button {
    color: #04111e;
    background: linear-gradient(135deg, #91d3ff 0%, #57a6ff 48%, #5ce2b0 100%);
    box-shadow: 0 18px 30px rgba(87, 166, 255, 0.28);
    transition: all 220ms ease;
}
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 24px 42px rgba(87, 166, 255, 0.34); }
.primary-button:active { transform: translateY(-1px); }

.hero {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 28px;
    align-items: stretch;
    padding: 54px 0 18px;
}
.hero-copy,
.hero-board,
.metric-card,
.feature-card,
.market-card,
.process-card,
.cta-panel {
    border: 1px solid var(--line);
    background: var(--panel);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}
.hero-copy {
    padding: 38px;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}
.hero-copy::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(145, 211, 255, 0.22), transparent 70%);
    pointer-events: none;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(87, 166, 255, 0.08);
    border: 1px solid rgba(87, 166, 255, 0.18);
    color: #cfe6ff;
    font-size: 0.88rem;
    font-weight: 700;
}
.hero-copy h1 {
    margin: 20px 0 16px;
    font-size: clamp(2.7rem, 5vw, 5.6rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
    max-width: 10ch;
}
.hero-copy p { margin: 0; max-width: 62ch; color: var(--muted); font-size: 1.04rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.mini-stat {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(155, 176, 204, 0.12);
}
.mini-stat strong { display: block; margin-bottom: 6px; font-size: 1.08rem; }
.mini-stat span { color: var(--muted); font-size: 0.92rem; }
    .hero-board {
    border-radius: var(--radius-xl);
    padding: 24px;
    display: grid;
    gap: 18px;
    background: linear-gradient(180deg, rgba(11, 25, 46, 0.96), rgba(8, 20, 38, 0.92));
    position: relative;
    overflow: hidden;
}
.hero-board::before {
    content: "";
    position: absolute;
    inset: -50% -20% auto -20%;
    height: 200px;
    background: radial-gradient(circle at 20% 0%, rgba(87, 166, 255, 0.12), transparent 40%),
                radial-gradient(circle at 80% 10%, rgba(92, 226, 176, 0.08), transparent 35%);
    pointer-events: none;
    animation: heroGlow 12s ease-in-out infinite alternate;
}.board-header,
.board-top,
.ticker-row,
.platform-list li,
.market-card-head,
.process-card-head,
.cta-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.board-header span,
.section-heading p,
.metric-card p,
.feature-card p,
.market-card p,
.process-card p,
.cta-panel p,
.ticker-meta,
.muted { color: var(--muted); }
.status-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #d8ffe9;
    background: var(--green-soft);
    border: 1px solid rgba(40, 209, 124, 0.22);
    font-size: 0.84rem;
    font-weight: 700;
}
.pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(40, 209, 124, 0.55);
    animation: pulse 2s infinite;
}
.board-top {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(155, 176, 204, 0.12);
}
.board-value strong { display: block; font-size: 2rem; letter-spacing: -0.04em; }
.board-value span { color: var(--muted); font-size: 0.9rem; }
.board-change {
    padding: 12px 14px;
    border-radius: 18px;
    background: var(--green-soft);
    color: #d8ffe9;
    border: 1px solid rgba(40, 209, 124, 0.2);
    text-align: right;
    font-weight: 700;
}
.chart-panel {
    position: relative;
    min-height: 240px;
    padding: 18px;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
        linear-gradient(180deg, rgba(87, 166, 255, 0.12), transparent);
    border: 1px solid rgba(155, 176, 204, 0.12);
    overflow: hidden;
}
.chart-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(155, 176, 204, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(155, 176, 204, 0.08) 1px, transparent 1px);
    background-size: 100% 48px, 56px 100%;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent);
}
.chart-line { position: relative; z-index: 1; width: 100%; height: 220px; }
.ticker-strip { display: grid; gap: 10px; }
.ticker-row {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(155, 176, 204, 0.12);
    transition: all 220ms ease;
}
.ticker-row:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}
.ticker-symbol { font-weight: 800; letter-spacing: 0.02em; }
.ticker-price { font-weight: 700; }
.up, .positive { color: var(--green); }
.down, .negative { color: var(--red); }

.section-heading { margin-bottom: 18px; }
.section-heading h2 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.05em;
}
.grid-3,
.grid-4 { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-card,
.feature-card,
.market-card,
.process-card { padding: 24px; border-radius: var(--radius-lg); }
.metric-card strong,
.feature-card h3,
.market-card strong,
.process-card h3,
.cta-panel h2 {
    display: block;
    margin-bottom: 8px;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}
.metric-card .value { font-size: 2rem; font-weight: 800; letter-spacing: -0.05em; }
.feature-icon,
.market-badge,
.process-step {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    background: linear-gradient(135deg, rgba(87, 166, 255, 0.2), rgba(92, 226, 176, 0.18));
    border: 1px solid rgba(155, 176, 204, 0.12);
    color: #d8ecff;
}
.platform-layout { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 18px; }
.platform-preview,
.platform-stack {
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid var(--line);
    background: var(--panel-strong);
    box-shadow: var(--shadow);
}
.platform-preview { position: relative; overflow: hidden; }
.preview-window {
    margin-top: 18px;
    border-radius: 26px;
    padding: 20px;
    background: linear-gradient(180deg, rgba(17, 34, 59, 0.98), rgba(8, 19, 35, 0.98));
    border: 1px solid rgba(155, 176, 204, 0.14);
}
.preview-window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}
.window-dots { display: flex; gap: 8px; }
.window-dots span {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
}
.preview-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 14px; }
.preview-panel,
.platform-list li {
    border-radius: 20px;
    border: 1px solid rgba(155, 176, 204, 0.12);
    background: rgba(255, 255, 255, 0.03);
}
.preview-panel { min-height: 200px; padding: 16px; transition: all 220ms ease; }
.preview-panel:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.05); }
.candles {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    align-items: end;
    gap: 8px;
    height: 148px;
    margin-top: 16px;
}
.candles span {
    position: relative;
    display: block;
    border-radius: 999px 999px 6px 6px;
    background: linear-gradient(180deg, rgba(145, 211, 255, 0.92), rgba(87, 166, 255, 0.5));
}
.candles span:nth-child(3n) { background: linear-gradient(180deg, rgba(92, 226, 176, 0.95), rgba(40, 209, 124, 0.4)); }
.order-book { display: grid; gap: 10px; }
.order-book .row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.92rem;
    color: var(--muted);
}
.platform-stack { display: grid; gap: 14px; }
.platform-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.platform-list li { padding: 16px 18px; }
.market-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.market-card-head { margin-bottom: 18px; }
.market-card strong { margin: 0; }
.market-card .price { font-size: 2rem; font-weight: 800; letter-spacing: -0.05em; }
.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(155, 176, 204, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: #d4e6ff;
    font-size: 0.82rem;
    font-weight: 700;
}
.tag.positive { background: var(--green-soft); border-color: rgba(40, 209, 124, 0.2); }
.tag.negative { background: var(--red-soft); border-color: rgba(255, 107, 107, 0.2); }
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.process-card-head { margin-bottom: 18px; }
.process-step { font-weight: 800; }
.cta-panel {
    margin: 28px 0 48px;
    padding: 32px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top right, rgba(92, 226, 176, 0.14), transparent 26%),
        linear-gradient(135deg, rgba(9, 23, 43, 0.96), rgba(12, 25, 49, 0.96));
}
.cta-panel p { max-width: 56ch; margin: 0; }
.cta-actions { margin-top: 22px; justify-content: flex-start; flex-wrap: wrap; }
.footer-note { padding: 0 0 38px; text-align: center; color: var(--muted); font-size: 0.92rem; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 209, 124, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(40, 209, 124, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 209, 124, 0); }
}
@keyframes heroGlow {
    0% { opacity: 0.6; transform: translateX(-5%); }
    100% { opacity: 0.9; transform: translateX(5%); }
}

/* --- Smooth Transitions & Hover Effects --- */
.btn-transition { transition: all 220ms cubic-bezier(0.4, 0, 0.2, 1); }
.card-hover {
    transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}
.card-hover .feature-icon,
.card-hover .market-badge,
.card-hover .process-step { background: linear-gradient(135deg, rgba(92, 226, 176, 0.25), rgba(87, 166, 255, 0.2)); }

/* --- Scroll Animations --- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease-out, transform 600ms ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-up { opacity: 0; transform: translateY(32px); transition: opacity 600ms ease-out, transform 600ms ease-out; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.slide-up { opacity: 0; transform: translateY(32px); transition: opacity 700ms ease-out, transform 700ms ease-out; }
.slide-up.visible { opacity: 1; transform: translateY(0); }
.scale-up { opacity: 0; transform: scale(0.96); transition: opacity 600ms ease-out, transform 600ms ease-out; }
.scale-up.visible { opacity: 1; transform: scale(1); }

/* --- Chart Loading Animation --- */
.chart-panel.loading .chart-grid { opacity: 0.6; animation: gridShimmer 1.2s infinite linear; }
@keyframes gridShimmer {
    0% { background-position: 0 0; }
    100% { background-position: 56px 48px; }
}
.chart-panel.loading .chart-line path { opacity: 0.3; animation: chartPulse 1.8s infinite ease-in-out; }
@keyframes chartPulse {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.6; }
}
.chart-panel:not(.loading) .chart-line path {
    stroke-dasharray: 560;
    stroke-dashoffset: 560;
    animation: chartDraw 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes chartDraw {
    to { stroke-dashoffset: 0; }
}
.candles span {
    position: relative;
    display: block;
    border-radius: 999px 999px 6px 6px;
    background: linear-gradient(180deg, rgba(145, 211, 255, 0.92), rgba(87, 166, 255, 0.5));
    transition: all 220ms ease;
}
.candles span:hover { transform: scaleY(1.08); filter: brightness(1.08); }

/* --- Connecting Button State --- */
.connecting { pointer-events: none; }
.connecting .fa-link { animation: spin 1.2s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@media (max-width: 1080px) {
    .hero,
    .platform-layout,
    .grid-4,
    .market-grid,
    .process-grid { grid-template-columns: 1fr; }
    .grid-3,
    .hero-highlights,
    .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .topbar-inner,
    .nav-links,
    .board-top,
    .ticker-row,
    .market-card-head,
    .process-card-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .hero-copy,
    .hero-board,
    .metric-card,
    .feature-card,
    .market-card,
    .process-card,
    .platform-preview,
    .platform-stack,
    .cta-panel { padding: 22px; }
    .hero { padding-top: 28px; }
    .hero-copy h1 { max-width: none; font-size: clamp(2.4rem, 12vw, 4rem); }
    .grid-3,
    .grid-4,
    .hero-highlights,
    .preview-grid { grid-template-columns: 1fr; }
    .container { width: min(calc(100% - 22px), var(--max)); }
    .section { padding-top: 18px; }
}


/* ── Auth Pages (kotak-login, kotak-otp, platform login) ───────────────── */
.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-base, #0d1117);
    padding: 24px;
}
.auth-card {
    background: var(--surface, #161b22);
    border: 1px solid var(--border, #30363d);
    border-radius: 16px;
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
}
.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}
.auth-brand .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #5ce2b0, #57a6ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d1117;
    font-size: 16px;
}
.auth-brand strong { font-size: 16px; color: #e6edf3; }
.auth-brand span   { font-size: 12px; color: #8b949e; display: block; }
.auth-title { font-size: 22px; font-weight: 700; color: #e6edf3; margin-bottom: 6px; }
.auth-sub   { font-size: 14px; color: #8b949e; margin-bottom: 28px; }
.auth-footer { margin-top: 24px; text-align: center; font-size: 13px; color: #8b949e; }
.auth-footer a { color: #57a6ff; text-decoration: none; }
.auth-form-group { margin-bottom: 18px; }
.auth-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #c9d1d9;
    margin-bottom: 6px;
}
.auth-form-group input {
    width: 100%;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 10px 14px;
    color: #e6edf3;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: border-color .15s;
}
.auth-form-group input:focus { border-color: #57a6ff; }
.auth-form-group .hint { font-size: 12px; color: #8b949e; margin-top: 5px; }
.auth-otp-input {
    font-size: 22px !important;
    letter-spacing: 6px;
    text-align: center;
}
.auth-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #5ce2b0, #57a6ff);
    color: #0d1117;
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    margin-top: 8px;
    font-family: inherit;
    transition: opacity .15s;
}
.auth-btn-primary:hover { opacity: .88; }
.auth-alert-error {
    background: rgba(255,107,107,.12);
    border: 1px solid rgba(255,107,107,.3);
    border-radius: 8px;
    padding: 12px 14px;
    color: #ffd5d5;
    font-size: 13px;
    margin-bottom: 20px;
}
.auth-alert-info {
    background: rgba(87,166,255,.1);
    border: 1px solid rgba(87,166,255,.25);
    border-radius: 8px;
    padding: 12px 14px;
    color: #91d3ff;
    font-size: 13px;
    margin-bottom: 20px;
}
.auth-field-error { color: #ffd5d5; font-size: 12px; margin-top: 4px; }

/* ── Platform Login (Auth/login) ────────────────────────────────────────── */
.login-page-body {
    background: #0c1525;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.login-wrap { width: 100%; max-width: 400px; }
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo .brand { font-size: 22px; font-weight: 700; color: #e2f0ff; letter-spacing: 0.5px; }
.login-logo .brand span { color: #4a9eff; }
.login-logo .sub { font-size: 11px; color: #4a6890; margin-top: 4px; text-transform: uppercase; letter-spacing: 1.5px; }
.login-card { background: #111d30; border: 1px solid #1e3050; border-radius: 12px; padding: 36px 32px; }
.login-title { font-size: 16px; font-weight: 600; color: #c8ddf2; margin-bottom: 6px; }
.login-hint { font-size: 12px; color: #4a6890; margin-bottom: 28px; }
.login-alert-error { background: rgba(220,60,60,.12); border: 1px solid rgba(220,60,60,.3); border-radius: 6px; color: #f08080; font-size: 12px; padding: 10px 14px; margin-bottom: 20px; }
.login-alert-info { background: rgba(74,158,255,.08); border: 1px solid rgba(74,158,255,.2); border-radius: 6px; color: #7ab8ff; font-size: 12px; padding: 10px 14px; margin-bottom: 20px; }
.login-form-group { margin-bottom: 18px; }
.login-form-label { display: block; font-size: 11px; font-weight: 600; color: #6a90b8; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 7px; }
.login-form-input { width: 100%; background: #0c1525; border: 1px solid #1e3050; border-radius: 7px; color: #c8ddf2; font-size: 13px; padding: 10px 14px; outline: none; transition: border-color .2s; }
.login-form-input:focus { border-color: #4a9eff; }
.login-form-input::placeholder { color: #2e4a66; }
.login-field-error { font-size: 11px; color: #f08080; margin-top: 5px; }
.login-remember-row { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.login-remember-row input[type="checkbox"] { accent-color: #4a9eff; width: 14px; height: 14px; cursor: pointer; }
.login-remember-row label { font-size: 12px; color: #5a7898; cursor: pointer; user-select: none; }
.login-btn { width: 100%; background: #1a5cbf; border: none; border-radius: 7px; color: #e8f4ff; font-size: 13px; font-weight: 600; padding: 11px; cursor: pointer; letter-spacing: 0.3px; transition: background .2s; }
.login-btn:hover { background: #2068d4; }
.login-btn:active { background: #1450a8; }
.login-footer { text-align: center; margin-top: 20px; font-size: 11px; color: #2e4a66; }
