:root {
    --yellow: #ffcf02;
    --green: #006938;
    --red: #e23835;
    --lime: #a2c713;
    --mauve: #a885a3;

    --ink: #18211b;
    --muted: #5c665f;
    --paper: #fffdf7;
    --cream: #f8f3e8;
    --soft-yellow: #fff4bf;
    --soft-green: #e8f1e7;
    --line: rgba(24, 33, 27, 0.14);

    --max: 1180px;
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 34px;
    --shadow: 0 22px 60px rgba(24, 33, 27, 0.11);
    --shadow-soft: 0 14px 32px rgba(24, 33, 27, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    margin: 0;
    font-family: "Elido Regular", "Elido", Arial, Helvetica, sans-serif;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.58;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 6%, rgba(255, 207, 2, 0.36), transparent 28%),
        radial-gradient(circle at 92% 18%, rgba(162, 199, 19, 0.18), transparent 28%),
        radial-gradient(circle at 15% 92%, rgba(226, 56, 53, 0.10), transparent 30%),
        linear-gradient(180deg, #fffdf7 0%, #f8f3e8 100%);
}

a {
    color: var(--green);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--red);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    background: var(--yellow);
    color: var(--green);
    font-weight: 900;
    z-index: 9999;
    border-radius: 8px;
}

.progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: var(--scroll-progress, 0%);
    background: var(--yellow);
    z-index: 1000;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 253, 247, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.header-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 15px 22px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
    min-width: max-content;
}

.logo-device {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background:
        linear-gradient(135deg, var(--green) 0 50%, var(--red) 50% 100%);
    position: relative;
    box-shadow: var(--shadow-soft);
}

.logo-device::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 8px;
    width: 12px;
    height: 30px;
    background: var(--yellow);
    border-radius: 6px;
}

.logo-device::after {
    content: "";
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 14px;
    height: 14px;
    background: var(--lime);
    border-radius: 50%;
}

.logo-text {
    display: grid;
    gap: 0;
}

.logo-title {
    font-family: "Elido Black", "Elido", Arial, Helvetica, sans-serif;
    font-weight: 900;
    font-size: 1.32rem;
    letter-spacing: -0.04em;
    line-height: 1;
}

.logo-line {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    background: var(--green);
    color: white;
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 900;
}

.site-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: wrap;
}

.site-nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 900;
    font-size: 0.93rem;
    padding: 10px 12px;
    border-radius: 999px;
}

.site-nav a:hover,
.site-nav a.active {
    background: var(--soft-green);
    color: var(--green);
}

main {
    max-width: var(--max);
    margin: 0 auto;
    padding: 34px 22px 76px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 26px;
    align-items: stretch;
    min-height: 580px;
}

.hero-main {
    background: var(--green);
    color: white;
    border-radius: var(--radius-lg);
    padding: clamp(34px, 6vw, 70px);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-main::before {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: var(--yellow);
    opacity: 0.92;
}

.hero-main::after {
    content: "";
    position: absolute;
    right: 76px;
    bottom: -90px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: var(--red);
    opacity: 0.9;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.78rem;
    font-weight: 900;
    margin-bottom: 18px;
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 3px;
    background: currentColor;
    border-radius: 999px;
}

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.08;
}

h1 {
    font-family: "Elido Black", "Elido", Arial, Helvetica, sans-serif;
    font-size: clamp(3rem, 7vw, 6.4rem);
    letter-spacing: -0.075em;
    margin-bottom: 20px;
}

h2 {
    font-family: "Elido Black", "Elido", Arial, Helvetica, sans-serif;
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    letter-spacing: -0.05em;
    margin-bottom: 14px;
}

h3 {
    font-family: "Elido Black", "Elido", Arial, Helvetica, sans-serif;
    font-size: 1.22rem;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
}

.lead {
    font-size: clamp(1.08rem, 1.8vw, 1.32rem);
    color: var(--muted);
    max-width: 780px;
}

.hero-main .lead {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.14rem, 2vw, 1.4rem);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    padding: 12px 19px;
    text-decoration: none;
    font-weight: 900;
    border: 2px solid transparent;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

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

.button.primary {
    background: var(--yellow);
    color: var(--green);
}

.button.primary:hover {
    background: white;
    color: var(--green);
}

.button.secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.65);
}

.button.secondary:hover {
    background: white;
    color: var(--green);
}

.hero-side {
    display: grid;
    gap: 16px;
}

.feature-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 26px;
    box-shadow: var(--shadow-soft);
}

.feature-card.strong {
    background: var(--yellow);
    border-color: rgba(0, 105, 56, 0.25);
}

.feature-card.red {
    background: var(--red);
    color: white;
    border-color: rgba(226, 56, 53, 0.4);
}

.feature-card.red p {
    color: rgba(255, 255, 255, 0.86);
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 22px;
}

.stat {
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.19);
    border-radius: var(--radius-sm);
    padding: 14px;
}

.stat strong {
    display: block;
    color: var(--yellow);
    font-size: 1.45rem;
    line-height: 1;
}

.section {
    margin: 64px 0;
}

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.5fr);
    gap: 26px;
    align-items: end;
    margin-bottom: 24px;
}

.section-kicker {
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-weight: 900;
    font-size: 0.76rem;
    margin-bottom: 10px;
}

.section-note {
    color: var(--muted);
    font-size: 1rem;
}

.grid {
    display: grid;
    gap: 18px;
}

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

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

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(0, 105, 56, 0.32);
}

.card::before {
    content: "";
    display: block;
    width: 48px;
    height: 5px;
    background: var(--yellow);
    border-radius: 999px;
    margin-bottom: 20px;
}

.card:nth-child(4n+2)::before {
    background: var(--green);
}

.card:nth-child(4n+3)::before {
    background: var(--red);
}

.card:nth-child(4n+4)::before {
    background: var(--lime);
}

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

.card a {
    font-weight: 900;
}

.band {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.55fr);
    gap: 24px;
    align-items: stretch;
    background: var(--ink);
    color: white;
    border-radius: var(--radius-lg);
    padding: clamp(28px, 5vw, 54px);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.band::after {
    content: "";
    position: absolute;
    right: -90px;
    top: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: var(--yellow);
    opacity: 0.9;
}

.band > * {
    position: relative;
    z-index: 2;
}

.band p {
    color: rgba(255, 255, 255, 0.82);
}

.band h2 {
    color: white;
}

.band-box {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-md);
    padding: 24px;
}

.page-hero {
    background: var(--green);
    color: white;
    border-radius: var(--radius-lg);
    padding: clamp(30px, 5vw, 58px);
    margin-bottom: 28px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -100px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: var(--yellow);
}

.page-hero > * {
    position: relative;
    z-index: 2;
}

.page-hero .lead {
    color: rgba(255, 255, 255, 0.86);
}

.article {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(26px, 4vw, 50px);
    box-shadow: var(--shadow-soft);
}

.article p,
.article li {
    color: var(--muted);
    font-size: 1.02rem;
}

.article ul,
.article ol {
    padding-left: 24px;
}

.article li {
    margin-bottom: 9px;
}

.article h2:not(:first-child) {
    margin-top: 36px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: white;
    margin: 24px 0;
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 680px;
}

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

th {
    background: var(--green);
    color: white;
    font-weight: 900;
}

tr:nth-child(even) td {
    background: rgba(0, 105, 56, 0.035);
}

.callout {
    background: var(--soft-yellow);
    border-left: 8px solid var(--yellow);
    border-radius: var(--radius-md);
    padding: 22px;
    margin: 26px 0;
}

.callout p {
    color: var(--ink);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(300px, 0.55fr);
    gap: 22px;
    align-items: start;
}

.note-list {
    display: grid;
    gap: 12px;
}

.note {
    background: var(--soft-green);
    border: 1px solid rgba(0, 105, 56, 0.18);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.site-footer {
    background: var(--green);
    color: white;
    margin-top: 36px;
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 36px 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.6fr);
    gap: 24px;
}

.footer-title {
    font-family: "Elido Black", "Elido", Arial, Helvetica, sans-serif;
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin: 0 0 8px;
}

.footer-inner p {
    color: rgba(255, 255, 255, 0.82);
    margin-top: 0;
}

.footer-rule {
    width: 56px;
    height: 6px;
    border-radius: 999px;
    background: var(--yellow);
    margin-bottom: 16px;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.62s ease, transform 0.62s ease;
}

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

@media (max-width: 980px) {
    .hero,
    .section-head,
    .band,
    .split {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: unset;
    }

    .grid.three,
    .grid.two {
        grid-template-columns: 1fr 1fr;
    }

    .site-nav {
        display: none;
        width: 100%;
        margin-left: 0;
        padding-top: 10px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .site-nav.open {
        display: grid;
    }

    .site-nav a {
        background: var(--soft-green);
        text-align: center;
        padding: 11px 8px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .header-inner {
        flex-wrap: wrap;
    }
}

@media (max-width: 680px) {
    html {
        scroll-padding-top: 76px;
    }

    .progress {
        height: 3px;
    }

    .header-inner {
        padding: 11px 14px;
        gap: 12px;
    }

    .logo-device {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .logo-device::before {
        left: 7px;
        top: 7px;
        width: 10px;
        height: 24px;
    }

    .logo-device::after {
        right: 7px;
        bottom: 7px;
        width: 12px;
        height: 12px;
    }

    .logo-title {
        font-size: 1.12rem;
    }

    .logo-line {
        font-size: 0.66rem;
        letter-spacing: 0.09em;
    }

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

    main {
        padding: 20px 14px 54px;
    }

    .hero-main,
    .page-hero {
        border-radius: 24px;
        padding: 28px 22px;
    }

    h1 {
        font-size: clamp(2.45rem, 13vw, 3.9rem);
        letter-spacing: -0.065em;
    }

    h2 {
        font-size: clamp(1.65rem, 8vw, 2.25rem);
    }

    .lead,
    .hero-main .lead {
        font-size: 1.03rem;
    }

    .actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 22px;
    }

    .button {
        width: 100%;
    }

    .hero-side {
        gap: 12px;
    }

    .feature-card,
    .card,
    .article,
    .band-box {
        padding: 20px;
    }

    .stat-row {
        grid-template-columns: 1fr;
    }

    .section {
        margin: 42px 0;
    }

    .grid.three,
    .grid.two {
        grid-template-columns: 1fr;
    }

    .band {
        border-radius: 24px;
        padding: 26px 20px;
    }

    .page-hero::after,
    .hero-main::after,
    .hero-main::before {
        opacity: 0.42;
    }

    table {
        min-width: 600px;
        font-size: 0.92rem;
    }

    th,
    td {
        padding: 12px 13px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        padding: 30px 16px;
    }
}

@media (max-width: 390px) {
    .site-nav {
        grid-template-columns: 1fr;
    }

    .logo-line {
        display: none;
    }

    .nav-toggle {
        padding: 9px 12px;
    }

    main {
        padding-left: 10px;
        padding-right: 10px;
    }

    .hero-main,
    .page-hero,
    .band {
        border-radius: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

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


/* Light and dark mode */
:root {
    color-scheme: light;
}

:root[data-theme="dark"] {
    color-scheme: dark;

    --ink: #f6f1e7;
    --muted: #c8c2b8;
    --paper: #142019;
    --cream: #0e1712;
    --soft-yellow: #473d12;
    --soft-green: #142c20;
    --line: rgba(255, 253, 247, 0.16);

    --shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
    --shadow-soft: 0 14px 32px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] body::before {
    background:
        radial-gradient(circle at 10% 6%, rgba(255, 207, 2, 0.18), transparent 26%),
        radial-gradient(circle at 92% 18%, rgba(162, 199, 19, 0.10), transparent 28%),
        radial-gradient(circle at 15% 92%, rgba(226, 56, 53, 0.10), transparent 30%),
        linear-gradient(180deg, #0e1712 0%, #111a14 100%);
}

:root[data-theme="dark"] .site-header {
    background: rgba(14, 23, 18, 0.94);
    border-bottom-color: rgba(255, 253, 247, 0.14);
}

:root[data-theme="dark"] .logo {
    color: var(--ink);
}

:root[data-theme="dark"] .logo-line {
    color: var(--muted);
}

:root[data-theme="dark"] .site-nav a {
    color: var(--ink);
}

:root[data-theme="dark"] .site-nav a:hover,
:root[data-theme="dark"] .site-nav a.active {
    background: rgba(255, 207, 2, 0.16);
    color: var(--yellow);
}

:root[data-theme="dark"] .hero-main,
:root[data-theme="dark"] .page-hero,
:root[data-theme="dark"] .site-footer {
    background: #004f2b;
}

:root[data-theme="dark"] .feature-card,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .article,
:root[data-theme="dark"] .band-box {
    background: var(--paper);
    border-color: var(--line);
}

:root[data-theme="dark"] .feature-card.strong {
    background: #443a10;
}

:root[data-theme="dark"] .feature-card.red {
    background: #9f2524;
}

:root[data-theme="dark"] .band {
    background: #070d0a;
}

:root[data-theme="dark"] .note {
    background: #172d20;
    border-color: rgba(162, 199, 19, 0.18);
}

:root[data-theme="dark"] .callout {
    background: #352d0f;
    border-left-color: var(--yellow);
}

:root[data-theme="dark"] .callout p {
    color: var(--ink);
}

:root[data-theme="dark"] .table-wrap {
    background: var(--paper);
    border-color: var(--line);
}

:root[data-theme="dark"] tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.035);
}

:root[data-theme="dark"] .button.secondary {
    border-color: rgba(255, 255, 255, 0.55);
}

:root[data-theme="dark"] .button.primary:hover,
:root[data-theme="dark"] .button.secondary:hover {
    background: var(--paper);
    color: var(--yellow);
}

.theme-toggle {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font-weight: 900;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition:
        transform 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 105, 56, 0.35);
}

:root[data-theme="dark"] .theme-toggle {
    background: #1a2a20;
    color: var(--yellow);
    border-color: rgba(255, 207, 2, 0.32);
}

@media (max-width: 980px) {
    .theme-toggle {
        margin-left: auto;
    }

    .nav-toggle {
        margin-left: 0;
    }
}

@media (max-width: 680px) {
    .theme-toggle {
        min-height: 38px;
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 390px) {
    .theme-toggle-text {
        font-size: 0.86rem;
    }
}


.footer-email {
    color: white;
    font-weight: 900;
    text-decoration-color: var(--yellow);
}

.footer-email:hover {
    color: var(--yellow);
}
