/* TierLift — design system from stitch_tierlift_website_redesign/DESIGN.md
   Modern dark minimalist + glassmorphism. Hanken Grotesk / Inter / Geist Mono. */

:root {
    /* Surfaces */
    --bg:            #0a0a0a;
    --surface:       #131313;
    --surface-lo:    #0e0e0e;
    --surface-md:    #1c1b1b;
    --surface-mid:   #201f1f;
    --surface-hi:    #2a2a2a;
    --surface-top:   #353534;

    /* Text */
    --on-surface:        #e5e2e1;
    --on-surface-var:    #d2c5ad;
    --on-surface-dim:    #9a9079;
    --on-surface-muted:  #6b6457;

    /* Outlines */
    --outline:           #4e4633;
    --outline-soft:      rgba(255, 255, 255, 0.08);
    --outline-hairline:  rgba(255, 255, 255, 0.05);

    /* Accent (primary) */
    --primary:               #ffcc33;
    --primary-dim:           #f2c025;
    --primary-soft:          #ffedc8;
    --primary-glow:          rgba(255, 204, 51, 0.30);
    --on-primary:            #3e2e00;

    /* Tier semantic colors */
    --tier-beginner: #8c949e;
    --tier-novice:   #4d9ef2;
    --tier-int:      #4dc772;
    --tier-adv:      #f89e33;
    --tier-elite:    #c673f2;
    --tier-wc:       #facc33;

    /* Radii */
    --r-sm:  8px;
    --r-md:  16px;
    --r-lg:  24px;
    --r-xl:  32px;
    --r-pill: 9999px;

    /* Spacing tokens */
    --gutter:    24px;
    --section:   120px;
    --container: 1200px;
}

@media (max-width: 820px) {
    :root {
        --section: 80px;
        --gutter: 20px;
    }
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--on-surface);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -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; }

/* Typography */
.h-xl, .h-lg, .h-md, .h-sm { font-family: "Hanken Grotesk", "Inter", sans-serif; }
.h-xl { font-size: clamp(40px, 6.4vw, 64px); font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; }
.h-lg { font-size: clamp(32px, 4.8vw, 48px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.h-md { font-size: clamp(24px, 3.4vw, 32px); font-weight: 600; line-height: 1.3;  letter-spacing: -0.01em; }
.h-sm { font-size: 22px; font-weight: 600; line-height: 1.4; }

.label {
    font-family: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--on-surface-dim);
}

.body-lg { font-size: 18px; line-height: 1.65; color: var(--on-surface-var); }
.body-md { font-size: 16px; line-height: 1.6;  color: var(--on-surface-var); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ------------------------------------------------------------------ NAV */

.nav-wrap {
    position: fixed;
    top: 18px;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    pointer-events: none;
}
.nav {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 8px 8px 8px 22px;
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: saturate(160%) blur(20px);
    -webkit-backdrop-filter: saturate(160%) blur(20px);
    border: 1px solid var(--outline-soft);
    border-radius: var(--r-pill);
    max-width: calc(100% - 32px);
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Hanken Grotesk", sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: var(--on-surface);
    letter-spacing: -0.01em;
}
.nav-brand img { width: 26px; height: 26px; border-radius: 6px; }
.nav-links {
    display: flex;
    gap: 22px;
}
.nav-links a {
    color: var(--on-surface-dim);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--on-surface); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    border-radius: var(--r-pill);
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: #000;
    padding: 10px 18px;
    font-size: 14px;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 28px var(--primary-glow); }

.btn-primary-lg {
    background: var(--primary);
    color: #000;
    padding: 16px 26px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 8px 32px var(--primary-glow);
}
.btn-primary-lg:hover { transform: translateY(-2px); box-shadow: 0 14px 44px var(--primary-glow); }

.btn-ghost {
    background: transparent;
    color: var(--on-surface);
    padding: 16px 24px;
    font-size: 15px;
    border: 1px solid var(--outline-soft);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.03); }

@media (max-width: 720px) {
    .nav-links { display: none; }
    .nav { gap: 0; padding-right: 6px; }
}

/* ------------------------------------------------------------------ HERO */

.hero {
    position: relative;
    padding: calc(120px + 60px) 0 var(--section);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 600px at 80% 20%, rgba(255, 204, 51, 0.12), transparent 60%),
        radial-gradient(700px 500px at 10% 60%, rgba(255, 204, 51, 0.06), transparent 60%);
    pointer-events: none;
    z-index: -1;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}
.hero-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 36px;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { color: var(--primary); }
.hero-tagline {
    max-width: 480px;
    margin-bottom: 36px;
}
.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-phone {
    justify-self: center;
    position: relative;
}
.phone-img {
    max-width: 620px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 50px 100px rgba(0, 0, 0, 0.60))
            drop-shadow(0 0 80px rgba(255, 204, 51, 0.10));
}

@media (max-width: 920px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .phone-img { max-width: 480px; }
}

/* ------------------------------------------------------------------ SECTIONS */

section { padding: var(--section) 0; }

.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-header .label { margin-bottom: 14px; }
.section-header .body-lg {
    max-width: 540px;
    margin: 16px auto 0;
}

/* ------------------------------------------------------------------ PATH (3-step) */

.path-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.path-card {
    background: linear-gradient(180deg, var(--surface-mid) 0%, var(--surface-md) 100%);
    border: 1px solid var(--outline-soft);
    border-radius: var(--r-md);
    padding: 28px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.path-card:hover {
    border-color: rgba(255, 204, 51, 0.35);
    transform: translateY(-4px);
}
.path-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 204, 51, 0.12);
    border: 1px solid rgba(255, 204, 51, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 20px;
}
.path-step {
    font-family: "Geist Mono", monospace;
    font-size: 12px;
    color: var(--primary);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}
.path-card h3 {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--on-surface);
}
.path-card p { font-size: 14px; color: var(--on-surface-dim); line-height: 1.55; }

@media (max-width: 820px) { .path-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ FEATURE GRID */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.feature-card {
    background: var(--surface-md);
    border: 1px solid var(--outline-soft);
    border-radius: var(--r-md);
    padding: 24px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover {
    border-color: rgba(255, 204, 51, 0.30);
    transform: translateY(-4px);
}
.feature-card .icon {
    width: 36px;
    height: 36px;
    margin-bottom: 16px;
    color: var(--primary);
}
.feature-card h4 {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--on-surface);
}
.feature-card p { font-size: 13.5px; color: var(--on-surface-dim); line-height: 1.55; }

@media (max-width: 920px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ TIERS */

.tier-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}
.chip {
    padding: 10px 18px;
    border-radius: var(--r-pill);
    font-family: "Geist Mono", monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid;
}
.chip-beginner    { color: var(--tier-beginner); background: rgba(140, 148, 158, 0.10); border-color: rgba(140, 148, 158, 0.40); }
.chip-novice      { color: var(--tier-novice);   background: rgba(77, 158, 242, 0.10);  border-color: rgba(77, 158, 242, 0.40); }
.chip-intermediate{ color: var(--tier-int);      background: rgba(77, 199, 114, 0.10);  border-color: rgba(77, 199, 114, 0.40); }
.chip-advanced    { color: var(--tier-adv);      background: rgba(248, 158, 51, 0.10);  border-color: rgba(248, 158, 51, 0.40); }
.chip-elite       { color: var(--tier-elite);    background: rgba(198, 115, 242, 0.10); border-color: rgba(198, 115, 242, 0.40); }
.chip-worldclass  { color: var(--tier-wc);       background: rgba(250, 204, 51, 0.12);  border-color: rgba(250, 204, 51, 0.50); }

/* ------------------------------------------------------------------ FAQ */

.faq {
    max-width: 760px;
    margin: 0 auto;
}
.faq details {
    border-bottom: 1px solid var(--outline-soft);
    padding: 24px 4px;
    transition: padding 0.2s ease;
}
.faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: var(--on-surface);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    color: var(--primary);
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
    margin-top: 14px;
    color: var(--on-surface-dim);
    font-size: 15px;
    line-height: 1.7;
}

/* ------------------------------------------------------------------ CTA */

.cta-section {
    text-align: center;
}
.cta-section h2 { margin-bottom: 16px; }
.cta-section p {
    max-width: 480px;
    margin: 0 auto 32px;
    color: var(--on-surface-dim);
}

/* ------------------------------------------------------------------ FOOTER */

footer {
    border-top: 1px solid var(--outline-soft);
    padding: 36px 0;
    margin-top: 0;
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Hanken Grotesk", sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--on-surface);
}
.footer-brand img { width: 24px; height: 24px; border-radius: 6px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a {
    font-size: 13px;
    color: var(--on-surface-dim);
}
.footer-links a:hover { color: var(--on-surface); }
.footer-copy {
    width: 100%;
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--outline-hairline);
    color: var(--on-surface-muted);
    font-family: "Geist Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.05em;
}

/* ------------------------------------------------------------------ LEGAL PAGES */

.legal {
    max-width: 760px;
    margin: 0 auto;
    padding: 180px 24px 120px;
}
.legal h1 {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.legal .updated {
    color: var(--on-surface-muted);
    font-family: "Geist Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.05em;
    margin-bottom: 40px;
}
.legal h2 {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin: 44px 0 14px;
    color: var(--on-surface);
}
.legal p, .legal li {
    color: var(--on-surface-var);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 12px;
}
.legal ul { padding-left: 22px; }
.legal strong { color: var(--on-surface); font-weight: 600; }
.legal a { color: var(--primary); }
.legal a:hover { text-decoration: underline; }
