/* =========================================
   Wisdom Yes PTE. LTD. — Official Website
   Static stylesheet, deployable to Netlify
   ========================================= */

/* ---- Design tokens ---- */
:root {
    --ink: #0B0B3A;
    --ink-soft: #1F1F5A;
    --accent: #6D4DE0;
    --accent-soft: #A78BFA;
    --accent-bg: #EFEBFF;
    --accent-bg-2: #E5DFFB;
    --line: #DCD4FF;
    --bg: #FFFFFF;
    --bg-soft: #FAFAFF;
    --muted: #5A5A7A;
    --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --maxw: 1240px;
    --gutter: clamp(20px, 4vw, 56px);
    --section-pad: clamp(80px, 10vw, 140px);
    --rail-w: 4px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-display);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }
a:hover { color: var(--accent); }

button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

/* ---- Side rail (mirrors the left accent line in the PDF) ---- */
.side-rail {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--rail-w);
    height: 100vh;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-soft) 100%);
    z-index: 50;
    pointer-events: none;
}

/* ---- Layout ---- */
.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
    position: relative;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}

.section {
    position: relative;
    padding: var(--section-pad) 0;
    border-top: 1px solid transparent;
}

.section.alt { background: var(--bg-soft); }

/* ---- Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 18px var(--gutter);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid rgba(167, 139, 250, 0.18);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.01em;
}

.brand-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.22);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
    font-size: 14px;
    color: var(--ink-soft);
}

.site-nav a {
    position: relative;
    padding: 4px 0;
}

.site-nav a:hover { color: var(--accent); }

.nav-cta {
    margin-left: 8px;
    padding: 9px 18px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-cta:hover {
    background: var(--ink);
    color: #fff;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
}

.nav-toggle span {
    width: 22px;
    height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---- Typography ---- */
.display {
    font-size: clamp(48px, 7vw, 92px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    font-weight: 600;
    margin: 0 0 28px;
    color: var(--ink);
}

.display .accent {
    color: var(--accent);
}

.title {
    font-size: clamp(36px, 4.6vw, 60px);
    line-height: 1.08;
    letter-spacing: -0.018em;
    font-weight: 600;
    margin: 0 0 32px;
    color: var(--ink);
}

.lead {
    font-size: clamp(16px, 1.3vw, 18px);
    color: var(--ink-soft);
    max-width: 560px;
    line-height: 1.65;
    margin: 0 0 32px;
}

.lead.narrow { max-width: 520px; }

.accent-bar {
    display: inline-block;
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin-bottom: 24px;
}

.hero-meta {
    margin-top: 56px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--ink);
    text-transform: uppercase;
}

/* ---- Hero ---- */
.hero {
    padding-top: clamp(100px, 14vw, 180px);
    padding-bottom: clamp(80px, 10vw, 140px);
}

.hero .col-text { padding-left: clamp(0px, 2vw, 24px); }

.col-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.col-visual svg {
    width: 100%;
    max-width: 560px;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(109, 77, 224, 0.12));
}

/* ---- Compare (Legacy vs Frontier) ---- */
.compare {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: 24px;
    margin-top: 56px;
    align-items: stretch;
}

.compare-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 1px 0 rgba(11, 11, 58, 0.02);
}

.compare-card.highlight {
    background: var(--accent-bg);
    border-color: var(--accent-soft);
}

.compare-label {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.12em;
    color: var(--ink);
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.compare-illustration {
    width: 100%;
    height: 130px;
}

.compare-caption {
    margin: 0;
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.6;
}

.compare-bullet {
    color: var(--accent);
    margin-right: 4px;
    font-weight: 700;
}

.compare-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-arrow svg { width: 60px; height: 30px; }

/* ---- Feature list ---- */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.feature-list li {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    font-size: 15px;
    color: var(--ink-soft);
    line-height: 1.6;
}

.feature-list li strong { color: var(--ink); }

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg { width: 28px; height: 28px; }

/* ---- Closing ---- */
.closing {
    text-align: center;
    padding-top: clamp(100px, 12vw, 160px);
    padding-bottom: clamp(80px, 10vw, 120px);
    overflow: hidden;
}

.closing-title {
    text-align: left;
    max-width: 800px;
    margin-bottom: 32px;
}

.closing-lead {
    text-align: left;
    max-width: 640px;
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.7;
    color: var(--ink-soft);
    margin: 0;
}

.closing-rays {
    position: absolute;
    right: -40px;
    bottom: 60px;
    width: clamp(320px, 40vw, 600px);
    height: auto;
    pointer-events: none;
    opacity: 0.8;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--ink);
    color: #fff;
    padding: 56px 0 32px;
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: end;
    margin-bottom: 36px;
}

.footer-title {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--accent-soft);
    margin-bottom: 14px;
    text-transform: uppercase;
}

.divider { color: rgba(255, 255, 255, 0.3); margin: 0 8px; }

.footer-address {
    font-family: var(--font-mono);
    font-size: 12px;
    font-style: normal;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.04em;
}

.footer-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.btn.ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}

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

.btn.primary {
    background: #fff;
    color: var(--ink);
}

.btn.primary:hover {
    background: var(--accent-soft);
    color: var(--ink);
    border-color: var(--accent-soft);
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.5);
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    letter-spacing: 0.04em;
}

.footer-meta a:hover { color: var(--accent-soft); }

/* ---- Reveal animation ---- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
    .two-col {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .hero .col-text { padding-left: 0; }
    .col-visual { order: 2; }
    .compare {
        grid-template-columns: 1fr;
    }
    .compare-arrow { transform: rotate(90deg); }
    .footer-grid {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .footer-actions { justify-content: flex-start; }
    .closing-rays { right: -120px; bottom: 20px; opacity: 0.4; }
}

@media (max-width: 720px) {
    .site-nav, .nav-cta { display: none; }
    .nav-toggle { display: flex; }
    .site-header.is-open .site-nav {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #fff;
        padding: 16px var(--gutter);
        gap: 16px;
        border-bottom: 1px solid var(--line);
    }
    .display { font-size: clamp(40px, 9vw, 56px); }
    .title { font-size: clamp(30px, 7vw, 42px); }
    .feature-list li {
        grid-template-columns: 44px 1fr;
        gap: 12px;
    }
    .feature-icon { width: 40px; height: 40px; }
    .feature-icon svg { width: 22px; height: 22px; }
    .compare-card { padding: 20px; }
    .closing-lead br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}
