/* ───────────────────────────────────────────────────────────
   CursorBrush — Landing
   Premium editorial dark. Inter + Instrument Serif italic.
   ─────────────────────────────────────────────────────────── */

/* ─── Tokens — 앱 DT (App/Design/DesignTokens.swift) 와 hex 정확히 일치 ─── */
:root {
    --bg:           #18191E;   /* DT.Color.background */
    --bg-2:         #1F2025;   /* DT.Color.surfaceInset */
    --bg-3:         #25272D;   /* DT.Color.surface (manifesto / pricing card) */
    --surface:      #25272D;   /* DT.Color.surface */
    --surface-2:    #2D2F35;   /* DT.Color.surfaceElevated */
    --border:       rgba(255,255,255,0.08);   /* DT.Color.separator */
    --border-2:     rgba(255,255,255,0.14);   /* DT.Color.separatorStrong */
    --text:         #FFFFFF;                  /* DT.Color.textPrimary */
    --text-2:       rgba(255,255,255,0.78);   /* DT.Color.textSecondary */
    --text-3:       rgba(255,255,255,0.55);   /* DT.Color.textTertiary */
    --text-4:       rgba(255,255,255,0.32);   /* DT.Color.textDisabled */
    --accent:       #3B82F6;                  /* DT.Color.accentPrimary */
    --accent-2:     #60A5FA;
    --ultra:        #A855F7;                  /* DT.Color.accentUltra */
    --pro:          #6366F1;                  /* DT.Color.accentPro */
    --success:      #10B981;                  /* DT.Color.accentSuccess */
    --warn:         #F59E0B;                  /* DT.Color.accentWarn */
    --gold:         #E8C172;
    --orange:       #FF7A45;

    --radius:       14px;
    --radius-lg:    22px;
    --container:    1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-feature-settings: 'cv11', 'ss01', 'ss03';
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
::selection { background: rgba(79,140,255,0.35); color: white; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.center { text-align: center; }
.italic { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; }

/* Inline keycap */
.kbd-inline {
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-2);
    border-radius: 6px;
    min-width: 28px; height: 28px; padding: 0 8px;
    font: 600 14px / 1 'Inter', sans-serif;
    color: var(--text);
    vertical-align: -0.2em;
}

/* ─── NAV ─── */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(7,8,10,0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 16px 32px;
    display: flex; justify-content: space-between; align-items: center;
}
.brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--text);
    font-weight: 700; letter-spacing: -0.01em;
    font-size: 16px;
}
.brand-icon { width: 28px; height: 28px; border-radius: 7px; display: block; object-fit: cover; }
.brand-icon-sm { width: 32px; height: 32px; border-radius: 8px; display: block; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
    color: var(--text-2); text-decoration: none;
    font-size: 14px; font-weight: 500;
    transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
    background: var(--text); color: var(--bg) !important;
    padding: 9px 18px; border-radius: 100px;
    font-weight: 600; font-size: 13px;
    transition: transform 0.18s ease, opacity 0.18s ease !important;
}
.nav-cta:hover { transform: translateY(-1px); opacity: 0.92; }

/* ─── Reveal animation ─── */
.reveal { opacity: 0; transform: translateY(16px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { transition: none; }
}

/* ─── HERO ─── */
.hero {
    padding: 100px 0 60px;
    position: relative;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79,140,255,0.10), transparent 70%);
}
.eyebrow {
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 28px;
}
.eyebrow.center { text-align: center; }
.hero-headline {
    font-size: clamp(44px, 7vw, 96px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.045em;
    margin-bottom: 28px;
    max-width: 1000px;
}
.hero-headline .italic { font-weight: 400; font-style: italic; font-size: 1.02em; }
.hero-sub {
    font-size: clamp(17px, 1.6vw, 21px);
    color: var(--text-2);
    max-width: 640px;
    margin-bottom: 40px;
    line-height: 1.55;
}
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-bottom: 80px; }
.cta-meta { font-size: 13px; color: var(--text-3); }

/* ─── Buttons ─── */
.btn-primary, .btn-line, .btn-full {
    display: inline-flex; align-items: center; gap: 10px;
    text-decoration: none; font-weight: 600;
    border-radius: 100px; font-size: 15px;
    transition: transform 0.18s cubic-bezier(0.2, 0.7, 0.2, 1),
                background 0.18s ease, opacity 0.18s ease, color 0.18s ease;
    cursor: pointer;
    border: 0;
}
.btn-primary {
    background: var(--text); color: var(--bg);
    padding: 14px 26px;
}
.btn-primary svg { width: 14px; height: 14px; }
.btn-primary:hover { transform: translateY(-2px); opacity: 0.95; }
.btn-xl { padding: 20px 38px; font-size: 17px; }
.btn-full { display: flex; justify-content: center; width: 100%; padding: 13px 0; background: var(--accent); color: white; }
.btn-full:hover { background: var(--accent-2); }
.btn-line {
    background: transparent; color: var(--text);
    border: 1px solid var(--border-2);
    padding: 12px 22px;
    display: inline-flex; justify-content: center;
}
.btn-line:hover { border-color: var(--text-2); background: rgba(255,255,255,0.04); }

/* ─── Hero canvas ─── */
.hero-canvas {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}
.hero-canvas img {
    width: 100%; height: auto;
    border-radius: var(--radius-lg);
    box-shadow:
        0 60px 120px -30px rgba(0,0,0,0.7),
        0 30px 60px -20px rgba(79,140,255,0.15),
        0 0 0 1px rgba(255,255,255,0.06);
    position: relative; z-index: 2;
}
.hero-glow {
    position: absolute;
    inset: 20% 10% -10% 10%;
    background: radial-gradient(ellipse, rgba(79,140,255,0.30), transparent 70%);
    filter: blur(80px);
    z-index: 1; pointer-events: none;
}

/* ─── MANIFESTO ─── */
.manifesto {
    padding: 140px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.manifesto p:first-child {
    font-size: clamp(22px, 2.4vw, 36px);
    font-weight: 500;
    line-height: 1.32;
    letter-spacing: -0.022em;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text);
}
.manifesto em { color: var(--accent-2); }
.manifesto .italic { color: var(--gold); }
.manifesto-attr {
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-3);
    margin-top: 32px;
    text-align: center;
}

/* ─── FEATURES ─── */
.features { padding: 80px 0; }
.feature-row { padding: 80px 0; }
.feature-row.alt { background: var(--bg-2); margin: 80px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
    align-items: center;
}
.feature-row.alt .split { grid-template-columns: 1fr 1fr; }
.split h2 {
    font-size: clamp(32px, 4.2vw, 56px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 6px 0 24px;
}
.split .lead {
    font-size: 18px;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 460px;
}
.spec-list { list-style: none; }
.spec-list li {
    padding: 10px 0;
    color: var(--text-2);
    border-top: 1px solid var(--border);
    font-size: 15px;
}
.spec-list li:last-child { border-bottom: 1px solid var(--border); }
.spec-list strong { color: var(--text); font-weight: 600; }

.step-list { list-style: none; margin: 0; }
.step-list li {
    display: flex; align-items: flex-start; gap: 18px;
    padding: 14px 0;
    color: var(--text-2);
    font-size: 16px;
}
.step-list li span:first-child {
    flex: 0 0 32px; height: 32px;
    background: linear-gradient(135deg, var(--accent), var(--ultra));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
    color: white;
}

.feature-visual img { width: 100%; height: auto; border-radius: var(--radius);
    box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6), 0 0 0 1px var(--border-2); }

/* ─── Layer stack visual ─── */
.layer-stack {
    display: flex; flex-direction: column; gap: 8px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.layer {
    padding: 16px 22px;
    border-radius: 10px;
    font-size: 14px; font-weight: 600;
    display: flex; justify-content: space-between; align-items: center;
    color: var(--text-2);
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.layer .level { font-family: ui-monospace, 'SF Mono', monospace; font-size: 12px; color: var(--text-3); }
.layer.l5 { background: rgba(255,122,69,0.08); color: var(--orange); border-color: rgba(255,122,69,0.2); }
.layer.l4 { background: rgba(52,211,153,0.08); color: var(--green); border-color: rgba(52,211,153,0.2); }
.layer.l3 { background: rgba(168,85,247,0.08); color: var(--ultra); border-color: rgba(168,85,247,0.2); }
.layer.l2 { background: rgba(79,140,255,0.10); color: var(--accent-2); border-color: rgba(79,140,255,0.25); }
.layer.l1 { background: rgba(255,255,255,0.02); }

/* ─── Privacy card ─── */
.privacy-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.pc-row {
    display: grid; grid-template-columns: 24px 1fr auto;
    align-items: center; gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    font-size: 14px; color: var(--text-2);
}
.pc-row:first-child { border-top: 0; padding-top: 4px; }
.pc-row strong { color: var(--text); font-weight: 600; font-size: 14px; }
.pc-dot { width: 8px; height: 8px; border-radius: 50%; }
.pc-dot.ok { background: var(--green); box-shadow: 0 0 0 4px rgba(52,211,153,0.12); }
.pc-dot.warn { background: var(--gold); box-shadow: 0 0 0 4px rgba(232,193,114,0.10); }

.quiet { color: var(--text-3); font-size: 14px; line-height: 1.6; max-width: 460px; }

/* ─── SPECS grid ─── */
.specs { padding: 140px 0; background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
.specs .eyebrow { margin-bottom: 48px; }
.spec-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.spec {
    background: var(--bg-2);
    padding: 40px 28px;
    text-align: left;
}
.spec h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.spec p { font-size: 14px; color: var(--text-2); }

/* ─── PRICING ─── */
.pricing { padding: 160px 0 120px; }
.section-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: 12px;
}
.section-sub {
    text-align: center;
    color: var(--text-2);
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto 64px;
}
.price-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    max-width: 1100px; margin: 0 auto;
}
.price-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    display: flex; flex-direction: column;
    transition: border-color 0.18s ease, transform 0.18s cubic-bezier(0.2,0.7,0.2,1);
}
.price-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.price-card.highlight {
    background: linear-gradient(180deg, rgba(79,140,255,0.14) 0%, var(--surface) 60%);
    border-color: rgba(79,140,255,0.35);
    box-shadow: 0 30px 60px -25px rgba(79,140,255,0.4);
}
.price-card.subtle { background: linear-gradient(180deg, rgba(168,85,247,0.10) 0%, var(--surface) 60%); border-color: rgba(168,85,247,0.25); }
.price-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; }
.tier { font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.tier small { font-weight: 500; color: var(--text-3); margin-left: 8px; font-size: 11px;
    padding: 3px 8px; background: rgba(255,255,255,0.05); border-radius: 100px; }
.amount { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; }
.price-card ul { list-style: none; flex: 1; margin-bottom: 28px; }
.price-card li {
    padding: 8px 0; color: var(--text-2); font-size: 14px;
    display: flex; align-items: flex-start; gap: 10px;
}
.price-card li::before {
    content: ""; flex: 0 0 14px; height: 14px; margin-top: 4px;
    border-radius: 50%; background: var(--accent);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path fill='black' d='M5.6 10L2 6.4l1-1L5.6 8 11 2.6l1 1z'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path fill='black' d='M5.6 10L2 6.4l1-1L5.6 8 11 2.6l1 1z'/></svg>") center/contain no-repeat;
}
.price-card.subtle li::before { background: var(--ultra); }

/* ─── Big CTA ─── */
.big-cta {
    padding: 160px 0 200px;
    background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(79,140,255,0.18), transparent 70%);
    border-top: 1px solid var(--border);
}
.big-cta h2 {
    font-size: clamp(40px, 6vw, 88px);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.04em;
    text-align: center;
    margin-bottom: 56px;
}
.big-cta .italic { font-weight: 400; color: var(--text-2); }
.big-cta .btn-primary { margin: 0 auto; display: flex; }
.big-cta .btn-primary svg { width: 18px; height: 22px; }
.big-cta .tiny { text-align: center; font-size: 13px; color: var(--text-3); margin-top: 24px; }

/* ─── FOOTER ─── */
.footer {
    padding: 56px 0 80px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-name { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.footer-meta { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.footer-links { display: flex; gap: 28px; align-items: center; }
.footer-links a { color: var(--text-3); text-decoration: none; font-size: 13px;
    transition: color 0.18s ease; }
.footer-links a:hover { color: var(--text); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .nav-links { gap: 18px; }
    .nav-links a:not(.nav-cta) { display: none; }
    .split, .price-grid, .spec-grid { grid-template-columns: 1fr; gap: 32px; }
    .feature-row { padding: 48px 0; }
    .feature-row.alt { margin: 48px 0; }
    .manifesto { padding: 80px 0; }
    .specs, .pricing, .big-cta { padding: 80px 0; }
    .hero { padding: 60px 0 40px; }
    .hero-canvas { padding: 0 16px; }
    .footer-inner { align-items: flex-start; }
}
@media (max-width: 520px) {
    .container { padding: 0 20px; }
    .nav-inner { padding: 12px 20px; }
    .hero-cta { flex-direction: column; align-items: flex-start; gap: 14px; }
    .cta-meta { font-size: 12px; }
    .spec { padding: 32px 24px; }
}
