:root {
    color-scheme: light;
    --bg: #fffaf3;
    --surface: #ffffff;
    --fg: #f6f0e7;
    --text: #25231f;
    --secText: #77736c;
    --accent: #f29a38;
    --accent-deep: #df791b;
    --line: #eee7dc;
    --shadow: 0 20px 55px rgba(79, 57, 29, 0.09);
    font-family: 'Segoe UI', Aptos, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    min-width: 320px;
    margin: 0;
    background:
        radial-gradient(ellipse at 88% 18%, rgba(255, 227, 186, 0.28), transparent 28rem),
        var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1120px, calc(100% - 48px));
    min-height: 82px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Segoe UI', Aptos, Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.06em;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: var(--text);
    font-family: Consolas, monospace;
    font-size: 0.8rem;
    letter-spacing: -0.1em;
}

.brand-dot {
    color: var(--accent-deep);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    color: var(--secText);
    font-size: 0.9rem;
    font-weight: 600;
}

.main-nav a,
.site-footer > a:last-child,
.text-link {
    transition: color 160ms ease;
}

.main-nav a:hover,
.site-footer > a:last-child:hover,
.text-link:hover {
    color: var(--accent-deep);
}

.main-nav .nav-cta {
    padding: 0.7rem 1rem;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.65);
}

.main-nav .nav-cta:hover {
    border-color: var(--accent);
    color: var(--accent-deep);
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: clamp(3rem, 8vw, 7rem);
    width: min(1060px, calc(100% - 48px));
    min-height: 570px;
    margin: 0 auto;
    padding: 4.5rem 0 5rem;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1.25rem;
    color: var(--secText);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(242, 154, 56, 0.14);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: 'Segoe UI', Aptos, Arial, sans-serif;
}

.hero h1 {
    margin-bottom: 1.15rem;
    font-size: clamp(3.3rem, 6.5vw, 5.25rem);
    font-weight: 800;
    letter-spacing: -0.085em;
    line-height: 0.99;
}

.headline-accent {
    color: var(--accent-deep);
}

.hero-description {
    max-width: 440px;
    margin-bottom: 1.8rem;
    color: var(--secText);
    font-size: 1.05rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.8rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 0.88rem;
    font-weight: 700;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #fff;
    background: var(--text);
    box-shadow: 0 8px 20px rgba(37, 35, 31, 0.14);
}

.button-primary:hover {
    background: #403b34;
    box-shadow: 0 12px 24px rgba(37, 35, 31, 0.18);
}

.button-secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.65);
}

.button-secondary:hover {
    background: var(--surface);
}

.hero-footnote {
    margin: 1.5rem 0 0;
    color: #918b81;
    font-size: 0.8rem;
}

.hero-footnote span {
    margin-right: 0.35rem;
    color: var(--accent-deep);
}

.code-card {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    color: #e8e5df;
    background: #252522;
    box-shadow: 0 28px 70px rgba(55, 43, 28, 0.2);
    transform: rotate(1.2deg);
}

.code-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ff6d5e;
}

.window-dots span:nth-child(2) {
    background: #f6bd4f;
}

.window-dots span:nth-child(3) {
    background: #58c66d;
}

.code-label {
    color: #99978f;
    font-size: 0.72rem;
}

.code-card pre {
    overflow-x: auto;
    margin: 0;
    padding: 1.55rem 1.5rem 1.7rem;
    font-family: Consolas, 'Courier New', monospace;
    font-size: clamp(0.7rem, 1.25vw, 0.85rem);
    line-height: 1.8;
}

.code-purple {
    color: #c5a5ff;
}

.code-green {
    color: #a9d993;
}

.code-blue {
    color: #7bc6e8;
}

.code-yellow {
    color: #f6ce78;
}

.code-card-caption {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    color: #bdb9ae;
    font-size: 0.76rem;
}

.caption-check {
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 50%;
    color: #252522;
    background: #a9d993;
    font-size: 0.68rem;
    font-weight: 800;
}

.hero-spark {
    position: absolute;
    color: #efb560;
    pointer-events: none;
}

.hero-spark-one {
    top: 13%;
    right: 0;
    font-size: 2rem;
}

.hero-spark-two {
    right: 42%;
    bottom: 10%;
    color: #e5c9a0;
    font-size: 1.2rem;
}

.feature-section {
    padding: 5.5rem 24px 6rem;
    background: var(--surface);
}

.section-heading {
    width: min(650px, 100%);
    margin: 0 auto 2.5rem;
    text-align: center;
}

.section-heading .eyebrow {
    justify-content: center;
    margin-bottom: 0.8rem;
}

.section-heading h2,
.playground-copy h2 {
    margin-bottom: 0.85rem;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.065em;
    line-height: 1.15;
}

.section-heading > p:last-child,
.playground-copy > p:not(.eyebrow) {
    color: var(--secText);
    line-height: 1.75;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    width: min(1000px, 100%);
    margin: 0 auto;
}

.feature-card {
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fffdfa;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    font-size: 1.35rem;
    font-weight: 600;
}

.icon-create {
    color: #c86e1c;
    background: #fff0d9;
}

.icon-select {
    color: #63786a;
    background: #eaf2e8;
}

.icon-update {
    color: #7470a0;
    background: #efedfb;
}

.feature-card h3 {
    margin-bottom: 0.55rem;
    font-size: 1.05rem;
    letter-spacing: -0.025em;
}

.feature-card p {
    min-height: 4.5rem;
    margin-bottom: 1.1rem;
    color: var(--secText);
    font-size: 0.88rem;
    line-height: 1.7;
}

.feature-card code {
    display: inline-block;
    padding: 0.4rem 0.55rem;
    border-radius: 5px;
    color: #a35c16;
    background: #fff2df;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.72rem;
}

.playground-section {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    align-items: center;
    gap: clamp(3rem, 10vw, 8rem);
    width: min(900px, calc(100% - 48px));
    margin: 0 auto;
    padding: 6.5rem 0;
}

.playground-copy .eyebrow {
    margin-bottom: 0.8rem;
}

.playground-copy h2 {
    font-size: clamp(2.2rem, 4vw, 3rem);
}

.playground-copy > p:not(.eyebrow) {
    max-width: 425px;
    margin-bottom: 1rem;
}

.text-link {
    display: inline-flex;
    gap: 0.5rem;
    color: var(--accent-deep);
    font-size: 0.9rem;
    font-weight: 700;
}

.counter-card {
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.counter-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.counter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.55rem;
    border-radius: 5px;
    color: #4d7851;
    background: #edf7eb;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.counter-badge span {
    color: #58a961;
    font-size: 0.5rem;
}

.counter-spark {
    color: var(--accent);
    font-size: 1.4rem;
}

.counter-label {
    margin: 1.4rem 0 0.1rem;
    color: var(--secText);
    font-size: 0.85rem;
    font-weight: 600;
}

.counter {
    display: block;
    margin-bottom: 1.1rem;
    font-family: 'Manrope', sans-serif;
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -0.08em;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.counter-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.counter-controls .btn {
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 700;
    transition: transform 140ms ease, background 140ms ease, border 140ms ease;
}

.counter-controls .btn:hover {
    transform: translateY(-2px);
}

.counter-controls .sec {
    color: var(--text);
    background: #fff;
}

.counter-controls .sec:hover {
    border-color: #d8c8b0;
    background: #fffaf3;
}

.counter-controls .prim {
    border-color: var(--text);
    color: #fff;
    background: var(--text);
}

.counter-controls .prim:hover {
    background: #403b34;
}

.counter-controls .btn:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(242, 154, 56, 0.6);
    outline-offset: 3px;
}

.counter-hint {
    margin: 0.9rem 0 0;
    color: #969087;
    font-size: 0.75rem;
    text-align: center;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(1120px, calc(100% - 48px));
    min-height: 88px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}

.footer-brand {
    font-size: 1rem;
}

.footer-brand .brand-mark {
    width: 29px;
    height: 29px;
    border-radius: 9px;
    font-size: 0.7rem;
}

.site-footer p,
.site-footer > a:last-child {
    margin: 0;
    color: var(--secText);
    font-size: 0.78rem;
}

.site-footer > a:last-child span {
    color: var(--accent-deep);
}

@media (max-width: 760px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        min-height: auto;
        padding: 4rem 0 4.5rem;
    }

    .hero-copy {
        max-width: 580px;
    }

    .code-card {
        width: min(560px, 100%);
        margin: 0 auto;
        transform: none;
    }

    .hero-spark-one {
        top: 7%;
        right: 2%;
    }

    .hero-spark-two {
        display: none;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .feature-card p {
        min-height: 0;
    }

    .playground-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 560px;
        padding: 4.5rem 0;
    }
}

@media (max-width: 520px) {
    .site-header,
    .site-footer,
    .hero,
    .playground-section {
        width: calc(100% - 36px);
    }

    .site-header {
        min-height: 72px;
    }

    .main-nav {
        gap: 0.8rem;
        font-size: 0.78rem;
    }

    .main-nav .nav-cta {
        padding: 0.55rem 0.65rem;
    }

    .hero {
        padding-top: 3.5rem;
    }

    .hero h1 {
        font-size: clamp(3rem, 15vw, 4.3rem);
    }

    .hero-description {
        font-size: 0.96rem;
    }

    .button {
        min-height: 44px;
        padding: 0.7rem 0.85rem;
        font-size: 0.8rem;
    }

    .code-card pre {
        padding: 1.2rem 1rem;
        font-size: 0.68rem;
    }

    .feature-section {
        padding: 4rem 18px;
    }

    .site-footer {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 1.25rem 0;
    }

    .site-footer p {
        order: 1;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
