:root {
    --bg: #140607;
    --bg-strong: #1a0709;
    --bg-soft: #251012;
    --surface: rgba(39, 16, 18, 0.78);
    --surface-strong: rgba(55, 22, 24, 0.92);
    --surface-soft: rgba(255, 255, 255, 0.03);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #f7ede9;
    --muted: #cab8b0;
    --accent: #ff4b44;
    --accent-soft: #ff8574;
    --accent-deep: #8a1113;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    --radius-lg: 30px;
    --radius-md: 22px;
    --radius-sm: 16px;
    --container: 1180px;
    --transition: 220ms ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Avenir Next", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", sans-serif;
    line-height: 1.65;
    background:
        radial-gradient(circle at top center, rgba(255, 75, 68, 0.22), transparent 28%),
        radial-gradient(circle at 20% 20%, rgba(255, 115, 90, 0.12), transparent 24%),
        linear-gradient(180deg, #090102 0%, #120405 20%, #140607 60%, #1a0709 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 0%, rgba(255, 75, 68, 0.06) 48%, transparent 52%),
        radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.28) 72%);
    pointer-events: none;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at center, black 24%, transparent 76%);
    opacity: 0.14;
    pointer-events: none;
    z-index: -1;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

.section {
    padding: 110px 0;
}

.section-alt {
    position: relative;
}

.section-alt::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(16px);
    background: rgba(14, 4, 5, 0.76);
    border-bottom: 1px solid transparent;
    transition: background var(--transition), border-color var(--transition);
}

.site-header.is-scrolled {
    background: rgba(14, 4, 5, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.header-inner {
    position: relative;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-text strong,
h1,
h2,
h3,
.eyebrow,
.detail-item span {
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.brand-text strong {
    font-size: 1.1rem;
    font-weight: 700;
}

.brand-text span {
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition), opacity var(--transition), background var(--transition);
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
}

.nav-cta {
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 75, 68, 0.1);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    padding: 0;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--text);
    transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--accent-soft);
    font-size: 1rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

h1 {
    max-width: 11ch;
    font-size: clamp(3.2rem, 8vw, 6rem);
}

h2 {
    font-size: clamp(2.2rem, 4.8vw, 4rem);
}

h3 {
    margin: 0 0 12px;
    font-size: 1.28rem;
}

p {
    margin: 0;
}

.hero {
    min-height: calc(100dvh - 78px);
    display: flex;
    align-items: center;
    padding-top: 64px;
}

.hero-layout,
.screens-layout,
.details-layout {
    display: grid;
    gap: 34px;
}

.hero-layout {
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
    align-items: center;
}

.hero-copy,
.hero-visual,
.feature-card,
.screen-card,
.details-panel,
.detail-item,
.cta-panel,
.legal-card,
.legal-nav {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-copy,
.hero-visual,
.details-panel,
.cta-panel,
.legal-card {
    background: linear-gradient(180deg, rgba(57, 20, 23, 0.9), rgba(24, 10, 11, 0.94));
}

.hero-copy,
.details-panel,
.cta-panel,
.legal-card {
    padding: 42px;
}

.hero-summary,
.section-heading p,
.feature-card p,
.screen-copy p,
.details-panel p,
.detail-item p,
.facts-panel span,
.footer-note,
.footer-meta,
.legal-card p,
.legal-card li {
    color: var(--muted);
}

.hero-summary {
    max-width: 58ch;
    margin-top: 24px;
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 30px 0 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.96rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        color var(--transition);
}

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

.button-primary {
    color: #fff4f1;
    background: linear-gradient(135deg, #ff5a4a, #c81d21);
}

.button-secondary {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
}

.hero-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.hero-points li {
    position: relative;
    padding-left: 20px;
}

.hero-points li::before,
.legal-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.76em;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-soft), var(--accent));
    transform: translateY(-50%);
}

.hero-visual {
    padding: 28px;
    background:
        radial-gradient(circle at top center, rgba(255, 75, 68, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(49, 16, 18, 0.96), rgba(17, 5, 6, 0.96));
}

.phone-stage {
    position: relative;
    min-height: 620px;
    border-radius: calc(var(--radius-lg) + 6px);
    background:
        radial-gradient(circle at top, rgba(255, 75, 68, 0.2), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.phone-stage::before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.phone-card {
    position: absolute;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 28px 48px rgba(0, 0, 0, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.phone-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-card-main {
    width: min(56%, 290px);
    right: 11%;
    top: 11%;
    transform: rotate(-2deg);
}

.phone-card-left {
    width: min(34%, 180px);
    left: 8%;
    bottom: 11%;
    transform: rotate(-8deg);
}

.phone-card-right {
    width: min(30%, 160px);
    right: 5%;
    bottom: 7%;
    transform: rotate(8deg);
}

.facts-panel {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.facts-panel div {
    padding: 18px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.facts-panel span,
.facts-panel strong {
    display: block;
}

.facts-panel span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.facts-panel strong {
    margin-top: 8px;
    font-size: 1rem;
}

.section-heading {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin-bottom: 30px;
}

.section-heading p {
    margin-top: 16px;
    font-size: 1rem;
}

.feature-grid,
.detail-list {
    display: grid;
    gap: 18px;
}

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

.feature-card {
    padding: 28px 24px;
    min-height: 240px;
}

.screens-layout {
    gap: 28px;
}

.screens-heading {
    max-width: 820px;
    margin-bottom: 0;
}

.screens-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
}

.screen-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(45, 16, 18, 0.92), rgba(17, 5, 6, 0.96));
}

.screen-card img {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
}

.screen-copy {
    display: grid;
    align-content: start;
    gap: 10px;
    min-height: 168px;
    padding: 22px;
}

.screen-step {
    color: var(--accent-soft);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.details-layout {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    align-items: start;
}

.detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-item {
    display: flex;
    gap: 18px;
    padding: 24px;
}

.detail-item span {
    min-width: 38px;
    color: var(--accent-soft);
    font-size: 0.96rem;
    letter-spacing: 0.12em;
}

.cta-section {
    padding-top: 0;
}

.cta-panel {
    text-align: center;
}

.cta-panel h2,
.cta-panel p {
    max-width: 760px;
    margin-inline: auto;
}

.cta-panel p {
    margin-top: 18px;
}

.cta-panel .hero-actions {
    justify-content: center;
    margin-bottom: 0;
}

.site-footer {
    padding: 0 0 34px;
}

.footer-inner,
.footer-meta {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner {
    align-items: end;
    padding: 34px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 16px 22px;
}

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

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--text);
}

.footer-meta {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.92rem;
    color: var(--muted);
}

.legal-main {
    padding: 84px 0 110px;
}

.legal-hero {
    margin-bottom: 24px;
}

.legal-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(280px, 0.42fr);
    gap: 24px;
    align-items: start;
}

.legal-card h1 {
    max-width: none;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
}

.legal-card h2 {
    font-size: 1.6rem;
    line-height: 1.1;
    margin-top: 34px;
}

.legal-card p + p,
.legal-card h2 + p {
    margin-top: 14px;
}

.legal-card ul {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 10px;
}

.legal-card li {
    position: relative;
    padding-left: 20px;
}

.legal-nav {
    padding: 24px;
    position: sticky;
    top: 102px;
}

.legal-nav h2 {
    font-size: 1.3rem;
}

.legal-nav ul {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 10px;
}

.legal-nav a {
    color: var(--muted);
    text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
    color: var(--text);
}

.legal-meta {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.92rem;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid rgba(255, 133, 116, 0.92);
    outline-offset: 3px;
}

@media (max-width: 1120px) {
    .hero-layout,
    .screens-layout,
    .details-layout,
    .legal-layout,
    .feature-grid,
    .detail-list {
        grid-template-columns: 1fr;
    }

    .phone-stage {
        min-height: 560px;
    }
}

@media (max-width: 760px) {
    .screens-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .section {
        padding: 88px 0;
    }

    .header-inner {
        min-height: 70px;
    }

    .menu-toggle {
        display: inline-block;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        left: 0;
        display: grid;
        gap: 4px;
        padding: 12px;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(23, 8, 9, 0.96);
        box-shadow: var(--shadow);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity var(--transition), transform var(--transition);
    }

    .site-nav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .site-nav a {
        padding: 12px 14px;
        border-radius: 14px;
    }

    .site-nav a:hover,
    .site-nav a:focus-visible {
        background: rgba(255, 255, 255, 0.05);
    }

    .hero-copy,
    .hero-visual,
    .details-panel,
    .cta-panel,
    .legal-card {
        padding: 30px 24px;
    }

    .phone-stage {
        min-height: 500px;
    }

    .facts-panel {
        grid-template-columns: 1fr;
    }

    .footer-inner,
    .footer-meta {
        flex-direction: column;
        align-items: start;
    }

    .footer-links {
        justify-content: start;
    }

    .legal-nav {
        position: static;
    }
}

@media (max-width: 560px) {
    body::after {
        opacity: 0.08;
    }

    h1 {
        max-width: none;
        font-size: clamp(2.7rem, 14vw, 4rem);
    }

    h2 {
        font-size: clamp(2rem, 10vw, 3rem);
        line-height: 1;
    }

    .hero {
        min-height: auto;
    }

    .phone-stage {
        min-height: 420px;
    }

    .phone-card-main {
        width: 58%;
        right: 9%;
    }

    .phone-card-left {
        width: 36%;
        left: 6%;
        bottom: 12%;
    }

    .phone-card-right {
        width: 31%;
        right: 4%;
        bottom: 8%;
    }

    .detail-list {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
