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

:root {
    --bg: #ffffff;
    --fg: #0d0d0d;
    --muted: #666666;
    --border: #e5e5e5;
    --card: #f9f9f9;
    --card-hover: #f3f3f3;
    --primary: #0d0d0d;
    --primary-fg: #ffffff;
    --accent: #ebebeb;
    --radius: 12px;
    --font: 'Space Grotesk', system-ui, sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--fg);
}

.logo-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary);
    color: var(--primary-fg);
    font-family: var(--mono);
    font-weight: 700;
    font-size: 13px;
}

.logo-text {
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 32px;
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-ghost {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
    font-family: var(--font);
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--primary-fg);
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font);
    transition: opacity 0.2s;
    text-decoration: none;
}

.btn-primary:hover {
    opacity: 0.88;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s;
    text-decoration: none;
}

.btn-outline:hover {
    border-color: var(--muted);
    background: var(--accent);
}

.btn-large {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 8px;
}

/* ── HERO ── */
.hero {
    padding: 140px 0 40px;
    text-align: center;
}

.hero-label {
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 24px;
}

.hero h1 span {
    background: linear-gradient(135deg, #0d0d0d, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ── PROMPT ── */
.prompt-section {
    padding: 0 0 64px;
}

.prompt-box {
    max-width: 640px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: 0 2px 16px -4px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s;
}

.prompt-box:focus-within {
    box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.1);
}

.prompt-box textarea {
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    background: transparent;
    font-family: var(--font);
    font-size: 15px;
    color: var(--fg);
    line-height: 1.6;
}

.prompt-box textarea::placeholder {
    color: #999;
}

.prompt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 8px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s;
}

.chip:hover {
    color: var(--fg);
    border-color: #aaa;
}

.generate-btn {
    opacity: 0.3;
    pointer-events: none;
}

.generate-btn.active {
    opacity: 1;
    pointer-events: all;
}

/* ── CANVAS ── */
.canvas-section {
    padding: 80px 0;
}

.section-label {
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    margin-bottom: 12px;
    text-align: center;
}

.section-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: 48px;
}

.section-title span {
    background: linear-gradient(135deg, #0d0d0d, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.canvas-frame {
    position: relative;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg);
    padding: 48px;
    overflow: hidden;
    background-image: radial-gradient(circle, #ccc 1px, transparent 1px);
    background-size: 20px 20px;
}

.canvas-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, white 100%);
    z-index: 1;
    pointer-events: none;
}

.canvas-img-wrap {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: canvasFloat 4s ease-in-out infinite;
}

.canvas-img-wrap img {
    max-width: 100%;
    height: auto;
}

@keyframes canvasFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.canvas-badge {
    position: absolute;
    z-index: 3;
    padding: 6px 14px;
    border-radius: 100px;
    background: var(--card);
    border: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.canvas-badge.top-left {
    top: 16px;
    left: 16px;
}

.canvas-badge.bottom-right {
    bottom: 16px;
    right: 16px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* ── FEATURES ── */
.features-section {
    padding: 96px 0;
    border-top: 1px solid var(--border);
}

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

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s;
    box-shadow: 0 2px 16px -4px rgba(0, 0, 0, 0.06);
}

.feature-card:hover {
    box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.1);
    border-color: #ccc;
}

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

.feature-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

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

/* ── PRICING ── */
.pricing-section {
    padding: 96px 0;
    border-top: 1px solid var(--border);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.pricing-card {
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 2px 16px -4px rgba(0, 0, 0, 0.06);
}

.pricing-card.highlighted {
    background: var(--primary);
    color: var(--primary-fg);
    border-color: var(--primary);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--fg);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    padding: 4px 14px;
    border-radius: 100px;
    border: 1px solid var(--border);
}

.pricing-card h3 {
    font-size: 18px;
    font-weight: 600;
}

.pricing-card .desc {
    font-size: 14px;
    margin-top: 4px;
}

.pricing-card .desc.muted {
    color: var(--muted);
}

.pricing-card .desc.light {
    opacity: 0.7;
}

.price {
    margin: 16px 0 24px;
}

.price-amount {
    font-size: 36px;
    font-weight: 700;
}

.price-period {
    font-size: 14px;
    margin-left: 4px;
}

.price-period.muted {
    color: var(--muted);
}

.price-period.light {
    opacity: 0.7;
}

.pricing-features {
    list-style: none;
    flex: 1;
    margin-bottom: 28px;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 12px;
}

.pricing-features li::before {
    content: '✓';
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 1px;
}

.pricing-card.highlighted .pricing-features li::before {
    color: var(--primary-fg);
}

.pricing-features li span {
    color: inherit;
}

.pricing-card .btn-card {
    width: 100%;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s;
    text-align: center;
    border: none;
    text-decoration: none;
}

.pricing-card .btn-card.dark {
    background: var(--primary-fg);
    color: var(--primary);
    text-decoration: none;
}

.pricing-card .btn-card.dark:hover {
    opacity: 0.9;
}

.pricing-card .btn-card.outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--fg);
    text-decoration: none;
}

.pricing-card .btn-card.outline:hover {
    border-color: #aaa;
    background: var(--accent);
}

.team-slider {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    margin: 8px 0 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.02);
}

.team-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
}

.team-count {
    font-family: var(--mono);
    color: var(--fg);
}

.team-slider input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
    height: 6px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
}

.team-slider input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: #0d0d0d;
    border-radius: 999px;
}

.team-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0d0d0d;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    margin-top: -6px;
}

.team-slider input[type="range"]::-moz-range-track {
    height: 6px;
    background: #0d0d0d;
    border-radius: 999px;
}

.team-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0d0d0d;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.team-slider input[type="range"]:focus-visible {
    outline: none;
}

.team-slider input[type="range"]:focus-visible::-webkit-slider-thumb,
.team-slider input[type="range"]:hover::-webkit-slider-thumb {
    box-shadow: 0 0 0 6px rgba(13, 13, 13, 0.15);
}

.team-slider input[type="range"]:focus-visible::-moz-range-thumb,
.team-slider input[type="range"]:hover::-moz-range-thumb {
    box-shadow: 0 0 0 6px rgba(13, 13, 13, 0.15);
}

.team-metrics {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
}

.team-metrics strong {
    color: var(--fg);
}

.team-metrics .muted {
    color: var(--muted);
}

/* ── CTA ── */
.cta-section {
    padding: 96px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    color: var(--muted);
    max-width: 480px;
    margin: 0 auto 32px;
}

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

footer .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

footer .logo-small {
    display: flex;
    align-items: center;
    gap: 8px;
}

footer .logo-small .badge {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--primary);
    color: var(--primary-fg);
    font-family: var(--mono);
    font-weight: 700;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer .logo-small span:last-child {
    font-size: 14px;
    font-weight: 500;
}

footer .copy {
    font-size: 12px;
    color: var(--muted);
}

/* ── ANIMATIONS ── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .canvas-frame {
        padding: 24px;
    }

    footer .footer-inner {
        justify-content: center;
        text-align: center;
    }
}