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

:root {
    --bg: #0a0b0f;
    --bg-card: #12131a;
    --bg-card-hover: #181924;
    --bg-elevated: #1a1b26;
    --border: #1e2030;
    --border-hover: #2a2d42;
    --text: #e4e5eb;
    --text-muted: #7a7d94;
    --text-dim: #4a4d64;
    --accent: #6c8aff;
    --accent-glow: rgba(108, 138, 255, 0.15);
    --accent-subtle: rgba(108, 138, 255, 0.08);
    --green: #34d399;
    --green-subtle: rgba(52, 211, 153, 0.1);
    --orange: #fb923c;
    --radius: 12px;
    --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* === NAV === */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 11, 15, 0.8);
    backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: #5a7aff;
    box-shadow: 0 0 24px var(--accent-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

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

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--accent-subtle);
    border: 1px solid rgba(108, 138, 255, 0.15);
    border-radius: 100px;
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 32px;
    font-weight: 500;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

h1 {
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

h1 .gradient {
    background: linear-gradient(135deg, var(--accent) 0%, #a78bfa 50%, var(--accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-sub {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.stat { text-align: center; }

.stat-value {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* === FEATURES === */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px;
}

.section-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 560px;
    margin-bottom: 56px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.3s;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-subtle);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* === PRICING === */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    position: relative;
}

.price-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 40px var(--accent-glow);
}

.price-name {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.price-amount {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.price-amount span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
}

.price-desc {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 28px;
}

.price-features {
    list-style: none;
    margin-bottom: 32px;
}

.price-features li {
    font-size: 14px;
    color: var(--text-muted);
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-features li::before {
    content: '✓';
    color: var(--green);
    font-weight: 600;
    font-size: 13px;
}

.price-card .btn { width: 100%; justify-content: center; }

/* === HOW IT WORKS === */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    counter-reset: step;
}

.step {
    counter-increment: step;
    position: relative;
}

.step::before {
    content: counter(step, decimal-leading-zero);
    font-family: 'JetBrains Mono', monospace;
    font-size: 48px;
    font-weight: 500;
    color: var(--border);
    line-height: 1;
    margin-bottom: 20px;
    display: block;
}

.step h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
}

.step p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* === TECH SPECS === */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2px;
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.spec {
    background: var(--bg-card);
    padding: 28px;
}

.spec-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 24px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 6px;
}

.spec-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* === FOOTER === */
footer {
    border-top: 1px solid var(--border);
    padding: 48px 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-dim);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--text-muted); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-inner { padding-inline: 16px; }
    .nav-links { gap: 12px; }
    .nav-section { display: none; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .specs-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === ANIMATIONS === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.inner-page {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(ellipse at 50% 0, var(--accent-glow), transparent 48rem), var(--bg);
}

.inner-main {
    flex: 1;
    width: 100%;
    margin-inline: auto;
    padding: 128px 24px 80px;
}

.inner-page .nav-links [aria-current],
.inner-page a:not(.logo):not(.btn):hover {
    color: var(--text);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.pricing-page {
    max-width: 1100px;
}

.page-intro {
    margin: 0 auto 48px;
    max-width: 600px;
    text-align: center;
}

.page-intro h1, .sign-in-card h1 {
    margin-bottom: 16px;
}

.page-intro p, .pricing-notes p, .sign-in-card p {
    color: #a2a6bd;
}

.inner-page .price-desc, .inner-page .footer-copy, .inner-page .footer-links a {
    color: #8c90a8;
}

.inner-page .btn-primary {
    color: #0b1025;
}

.pricing-page .price-card {
    display: flex;
    flex-direction: column;
}

.pricing-page .price-card .btn {
    margin-top: auto;
}

.pricing-notes {
    max-width: 720px;
    margin: 56px auto 0;
}

.pricing-notes h2, .sign-in-card h2 {
    font-size: 20px;
    margin-bottom: 12px;
}

.pricing-notes details {
    border-bottom: 1px solid var(--border-hover);
    padding: 14px 0;
}

.pricing-notes summary {
    cursor: pointer;
    font-weight: 500;
}

.pricing-notes details p {
    margin: 8px 0 0;
}

.login-page {
    display: grid;
    place-items: center;
}

.sign-in-card {
    width: min(100%, 460px);
    padding: clamp(24px, 6vw, 44px);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: 0 20px 64px rgba(0, 0, 0, 0.35);
}

.sign-in-card h1 {
    font-size: clamp(26px, 5vw, 36px);
}

.sign-in-card button {
    justify-content: center;
    width: 100%;
    margin-top: 24px;
}

.sign-in-card > a {
    display: block;
    margin-top: 18px;
    color: var(--accent);
    font-size: 14px;
    text-align: center;
}

#workspace h2 {
    margin-top: 24px;
}

.sample-files {
    list-style: none;
}

.sample-files li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    h1 .gradient, .hero-badge::before { animation: none; }
    .fade-in, .fade-in.visible { opacity: 1; transform: none; transition: none; }
}
