:root {
    color-scheme: light;
    --bg: #f4f1e8;
    --paper: #fffaf0;
    --ink: #171a17;
    --muted: #6e746d;
    --line: rgba(23, 26, 23, 0.14);
    --soft-line: rgba(23, 26, 23, 0.08);
    --green: #27d982;
    --blue: #1b7cff;
    --cyan: #21c8e5;
    --max: 1160px;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #111412;
    --paper: #181d1a;
    --ink: #f1eee4;
    --muted: #9aa398;
    --line: rgba(241, 238, 228, 0.16);
    --soft-line: rgba(241, 238, 228, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    min-width: 320px;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--soft-line) 62%, transparent) 1px, transparent 1px) 0 0 / 72px 72px,
        linear-gradient(180deg, var(--bg), var(--paper));
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 32%, transparent);
}

.site-shell,
.site-footer {
    width: min(100% - 32px, var(--max));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 18px 0;
    background: color-mix(in srgb, var(--bg) 84%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand-mark {
    display: inline-flex;
    gap: 10px;
    align-items: baseline;
    width: fit-content;
    font-size: 1rem;
    font-weight: 860;
    letter-spacing: -0.04em;
}

.brand-mark small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.02em;
}

.site-nav {
    display: none;
    gap: 22px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.site-nav a {
    position: relative;
}

.site-nav a::after {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, var(--blue), var(--green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 160ms ease;
}

.site-nav a:hover::after {
    transform: scaleX(1);
}

.theme-toggle {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.hero-section {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(30px, 6vw, 72px);
    min-height: calc(100svh - 76px);
    padding: clamp(48px, 9vw, 104px) 0 clamp(58px, 9vw, 106px);
    border: 0;
    outline: 0;
}

.hero-copy {
    max-width: 820px;
    border: 0;
    outline: 0;
}

.eyebrow,
.section-kicker {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 24px;
    font-size: clamp(4.6rem, 15vw, 10.5rem);
    line-height: 0.82;
    letter-spacing: -0.105em;
}

h2 {
    margin-bottom: 20px;
    font-size: clamp(2.3rem, 7vw, 5.8rem);
    line-height: 0.9;
    letter-spacing: -0.095em;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.08rem;
    letter-spacing: -0.03em;
}

.hero-tagline {
    max-width: 620px;
    margin-bottom: 18px;
    font-size: clamp(1.35rem, 3.1vw, 2.25rem);
    font-weight: 760;
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.hero-text,
.section-body > p,
.product-copy p,
.contact-card p {
    max-width: 610px;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.button-primary,
.button-ghost {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 850;
    transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.button-primary {
    background: var(--ink);
    color: var(--bg);
}

.button-ghost {
    border: 1px solid var(--line);
    color: var(--ink);
}

.button-primary:hover,
.button-ghost:hover {
    transform: translateY(-2px);
}

.button-primary:hover {
    box-shadow: 0 14px 34px color-mix(in srgb, var(--ink) 18%, transparent);
}

.hero-index {
    display: grid;
    gap: 16px;
    align-self: end;
    max-width: 420px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.hero-index span:first-child {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--green));
    color: white;
    font-weight: 900;
}

.hero-index span:nth-child(2) {
    color: var(--ink);
    font-size: 1.2rem;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.content-section {
    padding: clamp(70px, 12vw, 134px) 0;
    border-top: 1px solid var(--line);
}

.section-grid {
    display: grid;
    gap: 34px;
}

.service-list {
    display: grid;
    gap: 1px;
    margin-top: 34px;
    background: var(--line);
}

.service-list article {
    padding: 26px 0;
    background: var(--bg);
}

.service-list span {
    display: block;
    margin-bottom: 24px;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 900;
}

.service-list p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.65;
}

.product-section {
    display: grid;
    gap: 34px;
    align-items: center;
}

.velondura-heading {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.velondura-heading h2 {
    margin: 0;
}

.velondura-heading img {
    width: clamp(54px, 10vw, 82px);
    height: auto;
}

.product-image {
    position: relative;
    display: block;
    min-height: 340px;
    overflow: hidden;
    border-radius: 10px 54px 10px 54px;
    background: var(--paper);
    isolation: isolate;
}

.product-image::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.45));
    z-index: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    display: block;
    object-fit: cover;
    transition: transform 400ms ease;
}

.product-image:hover img {
    transform: scale(1.025);
}

.tracking-chip,
.metric-strip {
    position: absolute;
    z-index: 2;
    color: white;
}

.tracking-chip {
    top: 18px;
    left: 18px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.34);
    font-size: 0.8rem;
    font-weight: 850;
    backdrop-filter: blur(12px);
}

.metric-strip {
    right: 18px;
    bottom: 18px;
    left: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: baseline;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.34);
    font-size: 0.88rem;
}

.metric-strip strong {
    font-size: 1.45rem;
    line-height: 1;
}

.contact-section {
    padding-bottom: clamp(46px, 9vw, 94px);
}

.contact-card {
    display: grid;
    gap: 18px;
}

.contact-link {
    width: fit-content;
    color: var(--ink);
    font-size: clamp(1.7rem, 7vw, 4.8rem);
    font-weight: 920;
    line-height: 0.9;
    letter-spacing: -0.095em;
    background: linear-gradient(90deg, var(--blue), var(--green));
    background-size: 100% 3px;
    background-position: 0 100%;
    background-repeat: no-repeat;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 24px 0 34px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}

.reveal {
    animation: fade-up 620ms ease both;
}

.delay-1 {
    animation-delay: 110ms;
}

#blazor-error-ui {
    position: fixed;
    right: 16px;
    bottom: 16px;
    display: none;
    max-width: min(420px, calc(100vw - 32px));
    padding: 14px 44px 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background: #391616;
    color: #fff;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.32);
}

#blazor-error-ui .reload {
    margin-left: 8px;
    text-decoration: underline;
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: 10px;
    right: 14px;
    cursor: pointer;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 720px) {
    .site-header {
        grid-template-columns: 1fr auto auto;
    }

    .site-nav {
        display: inline-flex;
    }

    .hero-section {
        grid-template-columns: minmax(0, 0.9fr) 300px;
    }

    .section-grid,
    .product-section {
        grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    }
}

@media (max-width: 719px) {
    .site-shell,
    .site-footer {
        width: min(100% - 28px, var(--max));
    }

    .hero-section {
        min-height: auto;
        padding-top: 46px;
    }

    h1 {
        font-size: clamp(4.1rem, 20vw, 7.8rem);
        line-height: 0.86;
        letter-spacing: -0.095em;
    }

    .hero-tagline {
        max-width: 560px;
    }
}

@media (min-width: 980px) {
    .service-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .service-list article {
        padding: 30px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}
