:root {
    color-scheme: dark;
    --bg: #07111a;
    --panel: rgba(10, 22, 34, 0.74);
    --panel-strong: #0d1e2c;
    --text: #eff6ff;
    --muted: #9db1c7;
    --line: rgba(172, 196, 222, 0.18);
    --accent: #76e4b3;
    --accent-strong: #c8fff0;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
    --hero-glow: radial-gradient(circle at top left, rgba(118, 228, 179, 0.18), transparent 32%),
        radial-gradient(circle at 80% 15%, rgba(80, 160, 255, 0.2), transparent 24%),
        linear-gradient(180deg, #09121b 0%, #07111a 100%);
}

body[data-theme="light"] {
    color-scheme: light;
    --bg: #f4f0e8;
    --panel: rgba(255, 253, 248, 0.84);
    --panel-strong: #fffaf1;
    --text: #112130;
    --muted: #58697b;
    --line: rgba(17, 33, 48, 0.12);
    --accent: #0f9f74;
    --accent-strong: #0f5f47;
    --shadow: 0 26px 70px rgba(102, 74, 38, 0.14);
    --hero-glow: radial-gradient(circle at top left, rgba(15, 159, 116, 0.12), transparent 30%),
        radial-gradient(circle at 85% 15%, rgba(0, 124, 255, 0.12), transparent 22%),
        linear-gradient(180deg, #f7f2e9 0%, #efe6d8 100%);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Outfit", sans-serif;
    background: var(--hero-glow);
    color: var(--text);
}

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

button {
    font: inherit;
}

.page-shell {
    min-height: 100vh;
    padding: 24px;
}

.topbar {
    position: sticky;
    top: 14px;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto 28px;
    padding: 18px 22px;
    background: rgba(7, 17, 26, 0.45);
    backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    border-radius: 20px;
}

body[data-theme="light"] .topbar {
    background: rgba(255, 250, 241, 0.7);
}

.brand-kicker,
.section-label,
.screen-eyebrow,
.plan-name {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    color: var(--muted);
}

.brand {
    display: inline-block;
    margin-top: 6px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.topnav a {
    color: var(--muted);
}

.topnav .button {
    color: var(--text);
}

.nav-account,
.nav-signup {
    min-width: auto;
}

.theme-toggle,
.button {
    border-radius: 999px;
    border: 1px solid var(--line);
    padding: 12px 18px;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.theme-toggle {
    cursor: pointer;
    background: transparent;
    color: var(--text);
}

.icon-toggle {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
}

.theme-icon {
    display: inline-grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-strong);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    font-weight: 700;
}

.theme-toggle:hover,
.button:hover {
    transform: translateY(-1px);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
}

.button.primary {
    background: var(--accent);
    color: #062016;
    border-color: transparent;
    font-weight: 700;
}

.button.secondary {
    background: rgba(255, 255, 255, 0.02);
}

main {
    max-width: 1280px;
    margin: 0 auto;
}

.hero,
.app-showcase,
.workspace,
.menu-section,
.plans-section {
    margin-bottom: 28px;
    padding: 34px;
    border-radius: 36px;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
}

.hero h1,
.section-heading h2 {
    font-family: "Space Grotesk", sans-serif;
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.hero h1 {
    margin: 10px 0 16px;
    font-size: clamp(3rem, 6vw, 5.7rem);
    max-width: 10ch;
}

.hero-text,
.section-heading p,
.plan-highlight,
.screen-accent {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}

.stats-row div,
.screen-card,
.workspace-panel,
.menu-group,
.plan-card,
.dashboard-panel,
.phone {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.stats-row div {
    padding: 18px;
    border-radius: 22px;
}

.stats-row strong,
.wide-kpis strong,
.plan-price strong {
    display: block;
    font-size: 1.5rem;
    font-family: "Space Grotesk", sans-serif;
}

.stats-row span,
.wide-kpis label,
.phone label,
.workspace-list span {
    color: var(--muted);
    font-size: 0.95rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.phone-stack {
    position: relative;
    width: min(100%, 520px);
    min-height: 560px;
}

.phone,
.dashboard-panel {
    position: absolute;
    border-radius: 30px;
    padding: 22px;
    backdrop-filter: blur(16px);
}

.phone {
    top: 14px;
    left: 0;
    width: 300px;
    min-height: 530px;
}

.dashboard-panel {
    right: 0;
    bottom: 18px;
    width: 280px;
}

.phone-header,
.panel-header,
.line-item,
.workspace-list div,
.qr-box,
.action-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.metric-pill,
.panel-header span {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(118, 228, 179, 0.14);
    color: var(--accent-strong);
    font-size: 0.84rem;
}

.mini-grid,
.wide-kpis,
.plans-grid,
.menu-grid,
.workspace-grid,
.screen-grid {
    display: grid;
    gap: 18px;
}

.feature-grid,
.workflow-grid,
.support-grid,
.faq-grid,
.feature-checks {
    display: grid;
    gap: 18px;
}

.mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 18px 0;
}

.mini-grid div,
.wide-kpis div {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

.action-list,
.workspace-list {
    display: grid;
    gap: 12px;
}

.action-list div,
.workspace-list div,
.line-item,
.tax-bars div,
.menu-group li,
.plan-card li,
.screen-card li {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}

.tax-bars {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.tax-bars div strong,
.action-list strong,
.workspace-list strong {
    font-weight: 600;
}

.qr-box {
    margin-top: 18px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid var(--line);
}

.qr-grid {
    width: 74px;
    height: 74px;
    border-radius: 12px;
    background:
        linear-gradient(90deg, #fff 12%, transparent 12% 24%, #fff 24% 36%, transparent 36% 48%, #fff 48% 60%, transparent 60% 72%, #fff 72%),
        linear-gradient(#fff 12%, transparent 12% 24%, #fff 24% 36%, transparent 36% 48%, #fff 48% 60%, transparent 60% 72%, #fff 72%);
    background-color: #0b0b0b;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(2rem, 4vw, 3.6rem);
    max-width: 12ch;
}

.screen-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-checks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

.feature-checks div,
.workflow-step,
.support-card,
.faq-card {
    padding: 20px 22px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.workflow-step p,
.faq-card p,
.support-card p {
    margin: 0;
}

.workflow-number {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    margin-bottom: 14px;
    background: rgba(118, 228, 179, 0.14);
    color: var(--accent-strong);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
}

.section-copy {
    max-width: 34ch;
    margin: 0;
}

.support-card h3,
.faq-card h3,
.feature-card h3 {
    margin-top: 0;
}

.screen-card,
.workspace-panel,
.menu-group,
.plan-card {
    padding: 22px;
    border-radius: 28px;
}

.screen-card h3,
.menu-group h3 {
    margin: 10px 0 8px;
    font-size: 1.4rem;
}

.screen-card ul,
.menu-group ul,
.plan-card ul {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 10px;
}

.workspace-grid {
    grid-template-columns: 1.1fr 0.9fr;
}

.workspace-panel.contrast {
    background: linear-gradient(180deg, rgba(16, 34, 50, 0.92), rgba(9, 18, 28, 0.92));
}

body[data-theme="light"] .workspace-panel.contrast {
    background: linear-gradient(180deg, rgba(236, 245, 241, 0.96), rgba(244, 237, 226, 0.96));
}

.wide-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 18px 0;
}

.menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plans-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-card.featured {
    transform: translateY(-8px);
    background: linear-gradient(180deg, rgba(118, 228, 179, 0.14), rgba(255, 255, 255, 0.03));
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 14px 0 4px;
}

.plan-annual {
    margin: 0 0 12px;
    color: var(--accent-strong);
}

.landing-footer {
    max-width: 1280px;
    margin: 22px auto 0;
    padding: 10px 0 0;
}

.landing-footer-surface {
    border: 1px solid var(--line);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow);
    padding: 26px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 22px;
}

.landing-footer p {
    margin: 8px 0 0;
    color: var(--muted);
}

.footer-brand strong {
    display: block;
    margin-top: 10px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.4rem;
}

.footer-stack {
    display: grid;
    gap: 10px;
    align-content: start;
}

.app-showcase,
.workspace,
.menu-section,
.plans-section {
    animation: rise 700ms ease both;
}

.screen-card,
.workspace-panel,
.menu-group,
.plan-card {
    animation: rise 700ms ease both;
}

.screen-card:nth-child(2),
.workspace-panel:nth-child(2),
.menu-group:nth-child(2),
.plan-card:nth-child(2) {
    animation-delay: 90ms;
}

.screen-card:nth-child(3),
.menu-group:nth-child(3),
.plan-card:nth-child(3) {
    animation-delay: 160ms;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1080px) {
    .hero,
    .workspace-grid,
    .screen-grid,
    .feature-grid,
    .workflow-grid,
    .feature-checks,
    .menu-grid,
    .plans-grid,
    .landing-footer-surface {
        grid-template-columns: 1fr;
    }

    .phone-stack {
        min-height: auto;
        display: grid;
        gap: 18px;
    }

    .phone,
    .dashboard-panel {
        position: relative;
        width: 100%;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .section-heading h2 {
        max-width: 100%;
    }
}

@media (max-width: 720px) {
    .page-shell {
        padding: 14px;
    }

    .topbar,
    .hero,
    .app-showcase,
    .workspace,
    .menu-section,
    .plans-section {
        padding: 22px;
        border-radius: 24px;
    }

    .topbar {
        position: static;
    }

    .stats-row,
    .wide-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .button {
        width: 100%;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .topnav {
        width: 100%;
        justify-content: space-between;
    }

    .topnav .button,
    .theme-toggle {
        width: 100%;
    }
}
