/* ========== Base (structure + CSS animations only) ========== */
:root {
    --max-width: 1280px;
    --sidebar-width: 300px;
    --header-height: 70px;
    --header-height-mobile: 60px;

    /* Spacing scale */
    --space-xxl: 112px;
    --space-xl: 96px;
    --space-lg: 56px;
    --space-md: 32px;
    --space-sm: 18px;

    /* Shape & Effects */
    --radius-base: 12px;
    --radius-card: 16px;
    --radius-phone: 24px;
    --radius-pill: 999px;

    /* Typography */
    --ff: "Ubuntu", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans";
    --fs-display: 44px;
    --lh-display: 48px;
    --fs-h2: 36px;
    --lh-h2: 40px;
    --fs-h3: 18px;
    --lh-h3: 24px;
    --fs-body: 16px;
    --lh-body: 24px;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: var(--ff);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* A11y */
.skip-link {
    position: fixed;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: #111;
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px
}

.skip-link:focus {
    left: 12px
}

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px
}

a:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    border-radius: 10px
}

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

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border)
}

header.is-scrolled {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06)
}

nav {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between
}

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 700
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: radial-gradient(120% 120% at 0% 0%, var(--primary) 0 60%, var(--primary-25) 61%), linear-gradient(135deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px
}

.nav-links {
    display: flex;
    gap: 1rem
}

.nav-links a {
    color: var(--text-83);
    font-weight: 500;
    text-decoration: none
}

.nav-links a[aria-current="true"],
.nav-links a.is-active {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 4px
}

.theme-toggle {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer
}

body {
    padding-top: var(--header-height)
}

@media (max-width:760px) {
    nav {
        height: var(--header-height-mobile)
    }

    .nav-links {
        display: none
    }

    body {
        padding-top: var(--header-height-mobile)
    }
}

.benefit {
    background: var(--surface);
}

.benefit-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.benefit-title {
    margin: 0;
    font-weight: 600;
    font-size: 32px;
}

.benefit-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: start;
}

.benefit-description {
    width: 425px;
    display: flex;
    flex-direction: column;
    align-items: start;
    margin: 0;
}

.mobile-container {
    display: grid;
    gap: var(--space-lg)
}

.mobile-section-item {
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.mobile-feature {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-feature h2, .mobile-feature p {
    margin: 0;
}

.mobile-feature h2  {
    margin-top: 1rem;
}

.muted {
    color: var(--text-65)
}

.card-num, .mobile-feature-num {
    display:inline-grid;
    place-items:center;
    width:28px;
    height:28px;
    border-radius:999px;
    background: var(--primary);
    color:#fff;
    font-weight: 600;
}

main section {
    padding: var(--space-xl) 0 var(--space-xl);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: var(--space-md)
}

.section-head h2 {
    margin: 0;
    font-size: var(--fs-h2);
    line-height: var(--lh-h2);
    letter-spacing: -.02em
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: var(--primary-15);
    color: var(--primary-dark);
    font-size: .82rem;
    font-weight: 600
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .9rem 1.2rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    border: 0;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease
}

.btn.secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border)
}

.btn:hover {
    transform: translateY(-1px)
}

.btn:active {
    transform: translateY(0)
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-base);
    padding: 18px;
    box-shadow: 0 6px 24px var(--shadow);
    transition: transform .4s ease, box-shadow .4s ease, border-color .3s ease
}

.hero-macbook-mockup {
    height: 640px;
    display: grid;
    place-items: center;
    transition: transform .4s ease, box-shadow .4s ease, border-color .3s ease
}

.block {
    height: 320px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-base);
    border: 2px dashed var(--border-strong);
    color: var(--text-65);
    background: var(--surface-2);
    font-weight: 600;
    transition: transform .4s ease, box-shadow .4s ease, border-color .3s ease
}

.block.small {
    height: 220px
}

.block.wide {
    height: 360px
}

.phone-block {
    width: 320px !important;
    display: grid;
    place-items: center;
}

.window-block {
    width: 750px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-base);
}

.block,
.phone-block,
.window-block {
    transition: transform .4s ease, box-shadow .4s ease, border-color .3s ease;
}

.window-block {
    box-shadow: 0 6px 24px var(--shadow);
}

.card:hover,
.price-card:hover,
.block:hover,
.phone-block:hover,
.window-block:hover {
    transform: translateY(-4px);
}

.card:hover,
.price-card:hover,
.block:hover,
.window-block:hover {
    box-shadow: 0 14px 34px rgba(114,112,244,.18); 
}

/* CSS animations (always on) */
@keyframes reveal-up {
    0% {
        opacity: 0;
        transform: translateY(18px)
    }

    100% {
        opacity: 1;
        transform: none
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(114, 112, 244, .35)
    }

    70% {
        box-shadow: 0 0 0 18px rgba(114, 112, 244, 0)
    }

    100% {
        box-shadow: 0 0 0 0 rgba(114, 112, 244, 0)
    }
}

/* Scroll-reveal on enter (JS adds .reveal + .in) */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    will-change: transform, opacity;
}

.reveal.in {
    animation: reveal-up .7s cubic-bezier(.2, .8, .2, 1) both;
    animation-delay: var(--stagger, 0ms);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Neutral section-dark (no Apple-like inversion) */
.section-dark {
    background: var(--surface);
    color: var(--text)
}

.section-dark .muted {
    color: var(--text-65)
}

.section-dark .card {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: 0 6px 24px var(--shadow)
}

.section-dark .btn.secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border)
}

.section-dark .chip {
    background: var(--primary-15);
    color: var(--primary-dark)
}

.hero-mac {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: -1rem;
    margin-bottom: 2rem;
}

.hero {
    padding: 96px 0 64px;
    text-align: center;
}

.hero h1 {
    margin: 0 0 10px;
    font-size: 52px;
    line-height: 1.05;
    letter-spacing: -.02em
}

.hero .lead {
    max-width: 820px;
    margin: 0 auto;
    color: var(--text-65)
}

.grid-2 {
    display: flex;
    /* grid-template-columns: 1.1fr .9fr; */
    gap: var(--space-md);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md)
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md)
}

.callout {
    background: var(--primary);
    color: #fff;
    border-color: transparent
}

.callout .block {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff
}

.mobile-quad {
    display: grid;
    grid-template-columns: 1fr 300px 1fr;
    gap: var(--space-lg);
    align-items: center;
    margin: var(--space-md) 0
}

.mobile-quad .col {
    display: grid;
    gap: 14px
}

.mobile-quad .center {
    display: flex;
    align-items: center;
    justify-content: center
}

.web-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: var(--space-lg);
    align-items: center;
    margin-bottom: var(--space-xl)
}

.web-grid.reverse {
    grid-template-columns: .9fr 1.1fr
}

.web-stack {
    position: relative;
    height: 300px
}

.web-stack .block {
    position: absolute
}

.web-stack .block.l1 {
    top: 0;
    right: 0;
    width: 340px;
    height: 180px
}

.web-stack .block.l2 {
    bottom: 0;
    left: 6%;
    width: 220px;
    height: 140px
}

.web-stack .block.l3 {
    top: 40px;
    left: 28%;
    width: 180px;
    height: 120px
}

.web-big {
    height: 340px
}

.features-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.features-3 .item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-base);
    padding: 18px;
}

.features-3 .item h2, .features-3 .item p {
    margin: 0;
}

.features-3 .item h2  {
    margin-top: 1rem;
}

.features-3 .ico {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    font-weight: 700
}

.pricing {
    background: var(--bg)
}

.pricing-wrap {
    display: grid;
    gap: var(--space-xl)
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg)
}

.price-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 6px 24px var(--shadow);
    transition: transform .4s ease, box-shadow .4s ease, border-color .3s ease
}

.price-card .plan-label {
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-65);
    margin-bottom: .4rem
}

.price-line {
    display: flex;
    align-items: baseline;
    gap: .35rem;
    margin-bottom: .2rem
}

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

.price-line .per {
    color: var(--text-83)
}

.plan-sub {
    font-size: .9rem;
    color: var(--text-65);
    margin-bottom: .9rem
}

.btn.pricing-cta {
    height: 40px;
    padding: .6rem 1rem;
    border-radius: 10px
}

.pricing-list, .check-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: .55rem
}

.pricing-list li {
    display: flex;
    align-items: flex-start;
    gap: .6rem
}

.pricing-list .ok {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #22a06b;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1
}

.compare {
    margin-top: var(--space-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 6px 24px var(--shadow)
}

.compare-head,
.compare-row {
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr .8fr;
    gap: 12px;
    padding: 14px 16px;
    align-items: center
}

.compare-head {
    border-bottom: 1px solid var(--border);
    font-weight: 700
}

.compare-row+.compare-row {
    border-top: 1px solid var(--border)
}

.dot-ok {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #22a06b;
    display: inline-block
}

.dot-no {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #e74c3c;
    display: inline-block
}

footer {
    padding: 34px 0 60px;
    color: var(--text-83)
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr .8fr;
    gap: 16px
}

@media (max-width:1100px) {
    .grid-2 {
        grid-template-columns: 1fr
    }

    .steps {
        grid-template-columns: repeat(2, 1fr)
    }

    .mobile-quad {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        margin: var(--space-md) 0
    }

    .web-stack {
        height: auto
    }

    .web-stack .block {
        position: relative;
        inset: auto;
        width: 100%;
        height: 180px;
        margin-bottom: var(--space-sm)
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width:760px) {

    .grid-3,
    .grid-4,
    .grid-2,
    .pricing-cards {
        grid-template-columns: 1fr
    }

    .hero h1 {
        font-size: 34px
    }

    .steps {
        grid-template-columns: 1fr
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    .phone-block {
        height: 420px;
        width: min(240px, 60vw)
    }

    .block.wide {
        height: 240px
    }

    main section {
        padding: var(--space-lg) 0 var(--space-md)
    }

    .web-stack {
        height: auto
    }

    .web-stack .block {
        position: relative;
        inset: auto;
        width: 100%;
        height: 160px;
        margin-bottom: var(--space-sm)
    }

    .web-grid {
        gap: var(--space-md);
        margin-bottom: var(--space-lg)
    }

    .mobile-quad {
        gap: var(--space-md);
        margin: var(--space-sm) 0
    }
}

/* AI block sizing */
.ai-block {
    height: 420px
}

@media (max-width:760px) {
    .ai-block {
        height: 260px
    }
}