:root {
    --ink: #0f1c2e;
    --ink-soft: #243447;
    --slate: #3d4f63;
    --muted: #5c6f84;
    --fog: #e8eef4;
    --paper: #f6f8fb;
    --white: #ffffff;
    --accent: #1a7a8c;
    --accent-deep: #0f5a68;
    --accent-soft: rgba(26, 122, 140, 0.12);
    --line: rgba(15, 28, 46, 0.1);
    --shadow: 0 18px 50px rgba(15, 28, 46, 0.12);
    --radius: 14px;
    --max: 1080px;
    --narrow: 680px;
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "DM Sans", "Segoe UI", sans-serif;
    --header-h: 4.25rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent-deep);
    text-underline-offset: 0.15em;
}

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 1000;
    padding: 0.6rem 1rem;
    background: var(--ink);
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

.container {
    width: min(100% - 2rem, var(--max));
    margin-inline: auto;
}

.container.narrow {
    width: min(100% - 2rem, var(--narrow));
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(246, 248, 251, 0.86);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: height 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    height: 3.5rem;
    background: rgba(246, 248, 251, 0.96);
    border-bottom-color: var(--line);
    box-shadow: 0 8px 24px rgba(15, 28, 46, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 1rem;
}

.brand {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
}

.brand:hover {
    color: var(--accent-deep);
}

.site-nav ul {
    display: flex;
    gap: 0.25rem 1.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    color: var(--slate);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 1.35rem;
    height: 2px;
    margin-inline: auto;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

/* Hero */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 15% 20%, rgba(26, 122, 140, 0.45), transparent 55%),
        radial-gradient(ellipse 70% 50% at 85% 75%, rgba(36, 52, 71, 0.9), transparent 50%),
        linear-gradient(145deg, #0b1624 0%, #152538 42%, #0f3d48 100%);
    z-index: 0;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-block: 4.5rem 5.5rem;
    max-width: 42rem;
    margin-inline: 0 auto 0;
    animation: hero-in 0.9s ease both;
}

.hero-brand {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.hero-title {
    margin: 0 0 1rem;
    font-family: var(--font-body);
    font-size: clamp(1.25rem, 2.4vw, 1.5rem);
    font-weight: 500;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.92);
    max-width: 28ch;
}

.hero-lead {
    margin: 0 0 2rem;
    font-size: 1.05rem;
    color: rgba(232, 238, 244, 0.82);
    max-width: 40ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--white);
    color: var(--ink);
}

.btn-primary:hover {
    background: var(--fog);
    color: var(--ink);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--white);
}

.section .btn-primary {
    background: var(--accent);
    color: var(--white);
}

.section .btn-primary:hover {
    background: var(--accent-deep);
    color: var(--white);
}

.section .btn-ghost {
    color: var(--ink);
    border-color: var(--line);
}

.section .btn-ghost:hover {
    border-color: var(--slate);
    color: var(--ink);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--white);
}

.section h2 {
    margin: 0 0 1.25rem;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.section p {
    margin: 0 0 1rem;
    color: var(--slate);
}

.product-name {
    margin: 0 0 0.35rem !important;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink) !important;
}

.product-tagline {
    margin: 0 0 1.25rem !important;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent-deep) !important;
}

.contact-list {
    list-style: none;
    margin: 1.75rem 0 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.contact-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.2rem;
}

.contact-list a {
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink);
}

.contact-list a:hover {
    color: var(--accent-deep);
}

/* Footer */
.site-footer {
    background: var(--ink);
    color: rgba(232, 238, 244, 0.75);
    padding: 3rem 0 2.5rem;
}

.footer-inner {
    display: grid;
    gap: 1.5rem;
}

.footer-name {
    margin: 0 0 0.4rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
}

.site-footer a {
    color: rgba(232, 238, 244, 0.9);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--white);
}

.footer-copy {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(232, 238, 244, 0.55);
}

@media (min-width: 720px) {
    .footer-inner {
        grid-template-columns: 1fr auto;
        align-items: end;
    }

    .footer-copy {
        grid-column: 1 / -1;
    }
}

/* Motion */
@keyframes hero-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

    .hero-content,
    .reveal {
        animation: none;
        opacity: 1;
        transform: none;
        transition: none;
    }

    .btn:hover {
        transform: none;
    }
}

/* Mobile nav */
@media (max-width: 719px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        background: rgba(246, 248, 251, 0.98);
        border-bottom: 1px solid var(--line);
        padding: 1rem 1.25rem 1.25rem;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .site-header.is-scrolled .site-nav {
        top: 3.5rem;
    }

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

    .site-nav ul {
        flex-direction: column;
        gap: 0.85rem;
    }

    .site-nav a {
        font-size: 1.05rem;
    }

    .hero-content {
        padding-block: 3.5rem 4rem;
    }
}
