:root {
    color-scheme: light;
    --ink: #13202b;
    --muted: #5e6c79;
    --paper: #f7f4ed;
    --surface: #ffffff;
    --line: #d8ded9;
    --blue: #2266d8;
    --teal: #00a99d;
    --green: #2d8a55;
    --amber: #f0a13a;
    --coral: #e65c4f;
    --shadow: 0 24px 70px rgba(19, 32, 43, 0.14);
    --radius: 8px;
    --content: min(1120px, calc(100vw - 40px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, Roboto, Arial, sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
}

body.nav-open {
    overflow: hidden;
}

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

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px max(20px, calc((100vw - 1120px) / 2));
    background: rgba(247, 244, 237, 0.88);
    border-bottom: 1px solid rgba(19, 32, 43, 0.08);
    backdrop-filter: blur(18px);
    transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 30px rgba(19, 32, 43, 0.08);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    text-decoration: none;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(19, 32, 43, 0.16);
}

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

.site-nav a {
    min-height: 40px;
    padding: 9px 13px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--ink);
    background: rgba(34, 102, 216, 0.1);
    outline: none;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 4px 0;
    background: var(--ink);
    border-radius: 2px;
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.72fr);
    gap: 56px;
    align-items: center;
    width: var(--content);
    min-height: calc(100svh - 72px);
    margin: 0 auto;
    padding: 72px 0 48px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    max-width: 840px;
    margin: 0;
    font-size: clamp(3rem, 9vw, 6.25rem);
    line-height: 0.95;
    letter-spacing: 0;
}

h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.02;
    letter-spacing: 0;
}

h3 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.25;
}

.hero-lede {
    max-width: 650px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
}

.app-store-link {
    display: inline-flex;
    flex: 0 0 auto;
    border-radius: 8px;
}

.app-store-link:focus-visible {
    outline: 3px solid rgba(34, 102, 216, 0.28);
    outline-offset: 4px;
}

.app-store-badge {
    width: auto;
    height: 48px;
}

.primary-button,
.secondary-button,
.contact-section button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.primary-button,
.contact-section button {
    background: var(--ink);
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(19, 32, 43, 0.22);
}

.primary-button:hover,
.contact-section button:hover {
    background: #24313c;
}

.secondary-button {
    background: var(--surface);
    border-color: var(--line);
    color: var(--ink);
}

.secondary-button:hover {
    border-color: rgba(34, 102, 216, 0.42);
    color: var(--blue);
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 720px;
    margin: 42px 0 0;
}

.trust-strip div {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.55);
}

.trust-strip dt {
    margin: 0;
    font-weight: 900;
}

.trust-strip dd {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.app-preview {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 560px;
}

.app-preview::before {
    content: "";
    position: absolute;
    inset: 42px 8px 8px;
    background:
        radial-gradient(circle at 18% 20%, rgba(0, 169, 157, 0.22), transparent 27%),
        linear-gradient(145deg, #ffffff, #e6f2ef 54%, #f7e8d2);
    border: 1px solid rgba(19, 32, 43, 0.08);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

.preview-icon {
    position: absolute;
    top: 0;
    right: 26px;
    z-index: 2;
    width: 112px;
    height: 112px;
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(19, 32, 43, 0.24);
}

.preview-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 390px);
    padding: 20px;
    border: 1px solid rgba(19, 32, 43, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 24px 80px rgba(19, 32, 43, 0.18);
    backdrop-filter: blur(12px);
}

.preview-bar {
    display: flex;
    gap: 8px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.preview-bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--coral);
}

.preview-bar span:nth-child(2) {
    background: var(--amber);
}

.preview-bar span:nth-child(3) {
    background: var(--green);
}

.roster-card {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 6px 14px;
    align-items: center;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.roster-card.active {
    border-color: rgba(34, 102, 216, 0.38);
    box-shadow: 0 12px 30px rgba(34, 102, 216, 0.11);
}

.duty-code {
    grid-row: span 2;
    display: grid;
    place-items: center;
    min-height: 46px;
    border-radius: 8px;
    background: rgba(34, 102, 216, 0.12);
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 900;
}

.duty-code.rest {
    background: rgba(45, 138, 85, 0.13);
    color: var(--green);
}

.duty-code.training {
    background: rgba(240, 161, 58, 0.16);
    color: #9b5b11;
}

.roster-card small {
    color: var(--muted);
}

.section,
.guide-section,
.privacy-band {
    width: var(--content);
    margin: 0 auto 24px;
}

.section {
    padding: 72px 0;
    border-top: 1px solid var(--line);
}

.intro-section {
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    gap: 48px;
}

.intro-section p:not(.eyebrow),
.supported-section p {
    margin: 0;
    color: var(--muted);
    font-size: 1.12rem;
}

.section-heading {
    max-width: 680px;
}

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

.feature-card,
.process-list article,
.policy-list article {
    min-height: 100%;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    min-width: 46px;
    min-height: 34px;
    margin-bottom: 26px;
    padding: 0 9px;
    border-radius: 8px;
    background: #e7f2ef;
    color: #0b6d66;
    font-size: 0.74rem;
    font-weight: 900;
}

.feature-card:nth-child(2) .feature-icon,
.feature-card:nth-child(5) .feature-icon {
    background: #edf0fb;
    color: var(--blue);
}

.feature-card:nth-child(3) .feature-icon,
.feature-card:nth-child(4) .feature-icon {
    background: #fff0dc;
    color: #9b5b11;
}

.feature-card p,
.process-list p,
.policy-list p {
    margin: 12px 0 0;
    color: var(--muted);
}

.guide-section {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: 34px;
    align-items: center;
    padding: 44px;
    border-radius: 8px;
    background: var(--ink);
    color: #ffffff;
    box-shadow: var(--shadow);
}

.guide-section .eyebrow {
    color: #80e0d9;
}

.guide-copy p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.74);
}

.text-link {
    display: inline-flex;
    margin-top: 10px;
    color: #ffffff;
    font-weight: 800;
    text-decoration-color: rgba(128, 224, 217, 0.8);
    text-underline-offset: 5px;
}

.video-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: #000000;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.process-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 34px;
}

.process-list span {
    display: inline-block;
    margin-bottom: 38px;
    color: var(--coral);
    font-size: 0.92rem;
    font-weight: 900;
}

.privacy-band {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: 42px;
    padding: 56px;
    border: 1px solid rgba(0, 169, 157, 0.2);
    border-radius: 8px;
    background: #e7f2ef;
}

.privacy-copy p {
    margin-top: 0;
    color: #31534e;
    font-size: 1.06rem;
}

.privacy-copy p:last-child {
    margin-bottom: 0;
}

.contact-section {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: 48px;
}

form {
    display: grid;
    gap: 16px;
}

.form-row {
    display: grid;
    gap: 7px;
}

label {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px 14px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
}

input:focus,
textarea:focus {
    border-color: var(--blue);
    outline: 3px solid rgba(34, 102, 216, 0.13);
}

textarea {
    resize: vertical;
}

.form-note {
    min-height: 1.4em;
    margin: 0;
    color: var(--green);
    font-weight: 700;
}

.policy-list {
    display: grid;
    gap: 14px;
    margin-top: 34px;
}

.site-footer {
    width: var(--content);
    margin: 36px auto 0;
    padding: 28px 0 36px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.92rem;
    text-align: center;
}

.footer-app-store-link {
    margin-bottom: 18px;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    text-decoration: none;
}

.neon,
.pixel {
    margin-left: 4px;
}

.neon {
    color: #ff2b8a;
}

.pixel {
    color: #008fc7;
}

@media (max-width: 920px) {
    .hero-section,
    .intro-section,
    .guide-section,
    .privacy-band,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .hero-section {
        min-height: auto;
        padding-top: 54px;
    }

    .app-preview {
        min-height: 440px;
    }

    .feature-grid,
    .process-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .guide-section,
    .privacy-band {
        padding: 30px;
    }
}

@media (max-width: 700px) {
    :root {
        --content: min(100vw - 28px, 1120px);
    }

    .site-header {
        padding: 12px 14px;
    }

    .nav-toggle {
        display: block;
        position: relative;
        z-index: 22;
    }

    .site-nav {
        position: fixed;
        inset: 68px 14px auto;
        z-index: 21;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--surface);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 13px;
    }

    .hero-section {
        gap: 34px;
    }

    h1 {
        font-size: clamp(2.8rem, 16vw, 4.3rem);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .app-store-link,
    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .app-store-link {
        justify-content: center;
    }

    .app-store-badge {
        height: 52px;
    }

    .footer-app-store-link {
        width: auto;
    }

    .trust-strip,
    .feature-grid,
    .process-list {
        grid-template-columns: 1fr;
    }

    .app-preview {
        min-height: 390px;
    }

    .preview-icon {
        width: 88px;
        height: 88px;
        border-radius: 20px;
    }

    .section {
        padding: 52px 0;
    }

    .guide-section,
    .privacy-band {
        padding: 24px;
    }
}

@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;
    }
}
