:root {
    --ink: #0b1f33;
    --ink-soft: #1a3348;
    --mist: #dce8f0;
    --paper: #f4f7fa;
    --lime: #c8f542;
    --lime-deep: #a8d12a;
    --muted: #5a7388;
    --line: rgba(11, 31, 51, 0.12);
    --font-display: "Syne", sans-serif;
    --font-body: "Outfit", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap {
    width: min(1120px, calc(100% - 2.5rem));
    margin-inline: auto;
}

/* —— Nav —— */
.site-nav {
    position: absolute;
    inset: 0 0 auto;
    z-index: 20;
    padding: 1.25rem 0;
}

.site-nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-mark {
    display: flex;
    align-items: center;
    height: 2.25rem;
}

.brand-mark img {
    height: 100%;
    width: auto;
    filter: brightness(0) invert(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.7rem 1.15rem;
    border-radius: 0.4rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    background: transparent;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

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

.btn-lime:hover { background: var(--lime-deep); }

.btn-ink {
    background: var(--ink);
    color: #fff;
}

.btn-ink:hover { background: var(--ink-soft); }

/* —— Hero —— */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    background: var(--ink);
    color: #fff;
}

.hero-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-visual-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 78% 42%, rgba(200, 245, 66, 0.14), transparent 55%),
        radial-gradient(ellipse 50% 40% at 12% 80%, rgba(88, 160, 200, 0.18), transparent 50%),
        linear-gradient(145deg, #071522 0%, #0b1f33 45%, #14324a 100%);
}

.hero-visual-grid {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
}

.invoice-stage {
    position: absolute;
    right: max(4vw, calc((100% - 1120px) / 2));
    top: 50%;
    width: min(420px, 40vw);
    transform: translateY(-42%);
    animation: float-doc 7s ease-in-out infinite;
}

@keyframes float-doc {
    0%, 100% { transform: translateY(-42%); }
    50% { transform: translateY(calc(-42% - 12px)); }
}

.invoice-doc {
    background: #fff;
    color: var(--ink);
    border-radius: 0.5rem;
    padding: 1.4rem 1.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    font-size: 0.72rem;
}

.invoice-doc header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    padding-bottom: 0.9rem;
    border-bottom: 2px solid var(--ink);
}

.invoice-doc .logo-box {
    width: 3.2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--mist), #b8c9d6);
    border-radius: 0.2rem;
}

.invoice-doc .inv-meta {
    text-align: right;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.invoice-doc .inv-meta span {
    display: block;
    font-weight: 500;
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0;
    text-transform: none;
    margin-top: 0.2rem;
}

.invoice-rows { display: grid; gap: 0.45rem; margin: 1rem 0; }

.invoice-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--line);
}

.invoice-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 1rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.invoice-total em {
    font-style: normal;
    color: #1b6b4a;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 0.35rem;
}

.hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 7.5rem 0 4rem;
    width: min(560px, calc(100% - 2.5rem));
    margin-left: max(1.25rem, calc((100% - 1120px) / 2));
    animation: rise 0.9s ease both;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 1.4rem;
}

.hero-brand span {
    color: var(--lime);
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.45rem, 3.2vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 18ch;
    margin-bottom: 0.85rem;
}

.hero-lead {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 34ch;
    margin-bottom: 1.75rem;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    animation: rise 0.9s 0.15s ease both;
}

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

.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
    max-width: 18ch;
    margin-bottom: 0.85rem;
}

.section-text {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 42ch;
}

.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.feature-list {
    list-style: none;
    margin-top: 1.75rem;
    display: grid;
    gap: 0.85rem;
}

.feature-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
    font-size: 1rem;
    color: var(--ink-soft);
}

.feature-list li::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    margin-top: 0.45rem;
    border-radius: 1px;
    background: var(--lime-deep);
    box-shadow: 0 0 0 4px rgba(200, 245, 66, 0.25);
}

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 1.5rem;
    min-height: 220px;
}

.panel-tasks {
    background:
        linear-gradient(180deg, #fff 0%, #f7fafc 100%);
}

.panel-head {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.task-line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
}

.task-line:last-child { border-bottom: 0; }

.task-line small {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    margin-top: 0.15rem;
}

.task-line strong { font-weight: 600; }

.panel-invoice-mini .row {
    display: flex;
    justify-content: space-between;
    padding: 0.55rem 0;
    border-bottom: 1px dashed var(--line);
    font-size: 0.9rem;
}

.badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.45rem;
    background: rgba(200, 245, 66, 0.35);
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
}

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

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

/* —— CTA band —— */
.cta-band {
    background: var(--ink);
    color: #fff;
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -80px;
    top: -120px;
    background: radial-gradient(circle, rgba(200, 245, 66, 0.2), transparent 65%);
    pointer-events: none;
}

.cta-band .wrap {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cta-band h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    letter-spacing: -0.02em;
    max-width: 16ch;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.65);
    margin-top: 0.5rem;
    max-width: 36ch;
}

/* —— Footer —— */
.site-footer {
    padding: 1.25rem 0;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--muted);
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
}

/* —— Responsive —— */
@media (max-width: 900px) {
    .invoice-stage { display: none; }

    .hero-copy {
        width: min(1120px, calc(100% - 2.5rem));
        margin-inline: auto;
        padding-top: 6.5rem;
        padding-bottom: 4.5rem;
    }

    .feature-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-split .panel { order: -1; }
}

@media (max-width: 520px) {
    .brand-mark { height: 1.85rem; }

    .nav-actions .btn-ghost { display: none; }

    .hero-brand { font-size: 2.5rem; }
}

