:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #eef3f8;
    --text: #172033;
    --muted: #667085;
    --line: #dbe3ec;
    --primary: #173f67;
    --primary-2: #245b8e;
    --accent: #d9a441;
    --success: #37785a;
    --shadow: 0 18px 50px rgba(25, 45, 70, 0.12);
    --radius: 18px;
    --content: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
}

a {
    color: var(--primary-2);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(219, 227, 236, 0.9);
}

.nav {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    font-size: 1.04rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.brand:hover {
    text-decoration: none;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 0.84rem;
    box-shadow: 0 8px 24px rgba(23, 63, 103, 0.23);
}

nav ul {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

nav a {
    color: #344054;
    font-size: 0.92rem;
    font-weight: 650;
}

nav a:hover {
    color: var(--primary);
    text-decoration: none;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 82px 0 72px;
    background:
    radial-gradient(circle at 85% 22%, rgba(217, 164, 65, 0.18), transparent 26%),
    linear-gradient(135deg, #102d4c 0%, #184a76 62%, #235d8b 100%);
    color: #fff;
}

.hero::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -220px;
    bottom: -330px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow:
    0 0 0 60px rgba(255,255,255,0.035),
    0 0 0 130px rgba(255,255,255,0.025);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 70px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    font-size: 0.79rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    margin: 18px 0 10px;
    font-size: clamp(2.7rem, 6vw, 5.3rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.tagline {
    margin: 0 0 20px;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 650;
    color: #dceafb;
}

.hero p {
    max-width: 720px;
    margin: 0;
    color: #d8e6f3;
    font-size: 1.02rem;
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    font-weight: 750;
    border: 1px solid transparent;
    transition: 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.button.primary {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.button.secondary {
    color: #fff;
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
}

.phone {
    width: min(100%, 310px);
    margin: 0 auto;
    padding: 13px;
    border-radius: 34px;
    background: #111827;
    box-shadow: 0 24px 65px rgba(0,0,0,0.30);
    transform: rotate(2deg);
}

.phone-screen {
    min-height: 500px;
    padding: 22px 18px;
    border-radius: 24px;
    background:
    linear-gradient(rgba(255,255,255,0.72), rgba(255,255,255,0.72)),
    linear-gradient(135deg, #dbe9da, #e7e2c7);
    color: #172033;
    overflow: hidden;
    position: relative;
}

.phone-screen::before,
.phone-screen::after {
    content: "";
    position: absolute;
    background: rgba(79, 122, 81, 0.2);
    transform: rotate(-24deg);
}

.phone-screen::before {
    width: 360px;
    height: 34px;
    left: -70px;
    top: 270px;
}

.phone-screen::after {
    width: 320px;
    height: 22px;
    right: -105px;
    top: 180px;
    transform: rotate(31deg);
}

.app-panel {
    position: relative;
    z-index: 2;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.85);
    border-radius: 16px;
    background: rgba(255,255,255,0.76);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 35px rgba(36, 56, 76, 0.12);
}

.app-title {
    font-size: 0.98rem;
    font-weight: 800;
    margin-bottom: 9px;
}

.radio-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 7px 0;
    font-size: 0.86rem;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid #6a7583;
    background: #fff;
}

.dot.active {
    border: 5px solid var(--primary-2);
}

.app-stats {
    padding: 10px 0;
    font-size: 0.82rem;
    line-height: 1.65;
}

.mini-buttons {
    display: flex;
    gap: 8px;
}

.mini-button {
    padding: 7px 16px;
    border-radius: 9px;
    background: var(--primary-2);
    color: #fff;
    font-size: 0.77rem;
    font-weight: 800;
}

main section {
    padding: 76px 0;
}

main section:nth-child(even) {
    background: var(--surface);
}

.section-kicker {
    color: var(--primary-2);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 850;
}

h2 {
    margin: 7px 0 18px;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.lead {
    max-width: 830px;
    margin: 0;
    color: #4a5568;
    font-size: 1.02rem;
}

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

.card {
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(25, 45, 70, 0.05);
}

.card h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.mode-number {
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    background: var(--primary);
    font-weight: 850;
}

.formula {
    margin: 24px 0 0;
    padding: 16px 20px;
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    background: #fff9ec;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: #4c3c14;
}

.table-wrap {
    margin-top: 20px;
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid var(--line);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    padding: 13px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

th {
    color: #344054;
    background: #f7f9fc;
    font-size: 0.84rem;
}

tr:last-child td {
    border-bottom: 0;
}

.flow {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    align-items: stretch;
}

.flow-box {
    min-height: 110px;
    padding: 16px;
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 15px;
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 750;
    position: relative;
}

.flow-box:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-2);
    font-size: 1.2rem;
    z-index: 5;
}

.download-box {
    margin-top: 28px;
    padding: 28px;
    border-radius: var(--radius);
    background: #102f4f;
    color: #fff;
    box-shadow: var(--shadow);
}

.download-box p {
    color: #d8e6f3;
    margin-top: 0;
}

pre {
    margin: 16px 0 0;
    padding: 16px;
    overflow-x: auto;
    border-radius: 12px;
    background: #091d31;
    color: #e8f2fb;
    font-size: 0.88rem;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.doc-list {
    margin-top: 26px;
    display: grid;
    gap: 12px;
}

.doc-item {
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
}

.doc-item strong {
    display: block;
    margin-bottom: 4px;
}

.doc-item span {
    color: var(--muted);
    font-size: 0.91rem;
}

footer {
    padding: 36px 0;
    color: #cbd5e1;
    background: #0c2137;
    font-size: 0.88rem;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

footer a {
    color: #fff;
}

.note {
    margin-top: 24px;
    padding: 14px 16px;
    border: 1px solid #cfe0d7;
    border-radius: 12px;
    background: #f1f8f4;
    color: #315744;
    font-size: 0.91rem;
}

@media (max-width: 900px) {
    .hero-grid,
    .grid-3 {
    grid-template-columns: 1fr;
    }

    .phone {
    margin-top: 10px;
    }

    .flow {
    grid-template-columns: 1fr;
    }

    .flow-box:not(:last-child)::after {
    content: "↓";
    right: auto;
    left: 50%;
    top: auto;
    bottom: -20px;
    transform: translateX(-50%);
    }

    nav ul {
    gap: 13px;
    }
}

@media (max-width: 680px) {
    .container {
    width: min(calc(100% - 28px), var(--content));
    }

    nav ul {
    display: none;
    }

    .hero {
    padding-top: 58px;
    }

    main section {
    padding: 58px 0;
    }

    .hero-grid {
    gap: 44px;
    }
}

.brand-icon {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(23, 63, 103, 0.23);
}