:root {
    --bg: #0e0f0c;
    --bg-alt: #161812;
    --fg: #f3f1ea;
    --fg-dim: #a7a89e;
    --accent: #d4ff3f;
    --line: #2a2c24;
    --font-display: "Boldonse", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", monospace;
    --container: 1180px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---------- Typography ---------- */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.display-xl {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 9vw, 6.5rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    font-weight: 400;
}

.display-lg {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    line-height: 1.1;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.accent {
    color: var(--accent);
}

.section-lead {
    max-width: 620px;
    color: var(--fg-dim);
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(14, 15, 12, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    gap: 2.25rem;
    font-size: 0.92rem;
}

.nav-links a {
    color: var(--fg-dim);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--fg);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--fg);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    border-top: 1px solid var(--line);
    padding: 1rem 24px;
}

.mobile-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--fg-dim);
}

.mobile-nav.open {
    display: flex;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #0e0f0c;
}

.btn-primary:hover {
    background: #fff;
    transform: translateY(-2px);
}

.btn-ghost {
    border: 1px solid var(--line);
    color: var(--fg);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-large {
    font-size: 1.1rem;
    padding: 1.1rem 2.5rem;
}

/* ---------- Hero ---------- */
.hero {
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero .container {
    max-width: var(--container);
}

.hero-centered {
    text-align: center;
    padding: 8rem 0 7rem;
}

.hero-centered .display-xl {
    margin: 0 auto;
}

.hero-lead {
    color: var(--fg-dim);
    font-size: 1.15rem;
}

.hero-lead-center {
    max-width: 480px;
    margin: 1.75rem auto 2.5rem;
}

.hero-actions-center {
    justify-content: center;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* ---------- Ticker ---------- */
.ticker {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    padding: 1.25rem 0;
    background: var(--bg-alt);
}

.ticker-track {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: scroll-left 48s linear infinite;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--fg-dim);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ticker-track span::after {
    content: "—";
    margin-left: 3rem;
    color: var(--accent);
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track {
        animation: none;
    }
}

/* ---------- Sections ---------- */
.section {
    padding: 6rem 0;
}

.section-dark {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* ---------- What We Deliver ---------- */
.deliver-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.deliver-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 2.25rem 2rem;
    background: var(--bg);
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s;
}

.deliver-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.25s;
}

.deliver-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.deliver-card:hover::after {
    opacity: 1;
}

.deliver-icon {
    font-size: 1.8rem;
    color: var(--accent);
    display: block;
    margin-bottom: 1.25rem;
}

.deliver-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.deliver-card>p {
    color: var(--fg-dim);
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
}

.deliver-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.deliver-card ul li {
    font-size: 0.85rem;
    color: var(--fg-dim);
    padding-left: 1.3rem;
    position: relative;
}

.deliver-card ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    opacity: 0.8;
}

/* ---------- How We Work ---------- */
.howwork-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
    position: relative;
}

.howwork-steps::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: var(--line);
    z-index: 0;
}

.howwork-step {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hw-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 1.25rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--bg);
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--accent);
    transition: all 0.25s;
}

.howwork-step:hover .hw-num {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

.howwork-step h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 400;
    margin-bottom: 0.6rem;
}

.howwork-step p {
    color: var(--fg-dim);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ---------- Why / Compare ---------- */
.compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2.5rem;
    align-items: stretch;
    margin-top: 3.5rem;
}

.compare-col {
    border-radius: 16px;
    padding: 2.5rem;
}

.compare-old {
    border: 1px solid var(--line);
    background: var(--bg);
}

.compare-new {
    border: 1px solid var(--accent);
    background: var(--bg-alt);
    position: relative;
}

.compare-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
}

.compare-old .compare-label {
    color: var(--fg-dim);
    border: 1px solid var(--line);
}

.compare-new .compare-label {
    color: var(--bg);
    background: var(--accent);
}

.compare-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.compare-col li {
    font-size: 0.98rem;
    line-height: 1.55;
    padding-left: 1.75rem;
    position: relative;
}

.compare-old li {
    color: var(--fg-dim);
}

.compare-old li::before {
    content: "×";
    position: absolute;
    left: 0;
    top: -1px;
    color: var(--fg-dim);
    font-size: 1.1rem;
    opacity: 0.6;
}

.compare-new li {
    color: var(--fg);
}

.compare-new li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--accent);
    font-weight: 700;
}

.compare-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    width: 48px;
}

.compare-arrow svg {
    width: 48px;
    height: 24px;
}

/* ---------- Team Cards ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.team-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 2.5rem 2rem 2rem;
    background: var(--bg);
    text-align: center;
    transition: border-color 0.25s, transform 0.25s;
    position: relative;
    overflow: hidden;
}

.team-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.25s;
}

.team-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.team-card:hover::after {
    opacity: 1;
}

.team-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--accent);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
}

.team-avatar svg {
    width: 88px;
    height: 88px;
}

.team-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.4rem;
    color: var(--fg);
}

.team-role {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.team-company {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--fg-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.team-bio {
    color: var(--fg-dim);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.team-stack {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: center;
}

.team-stack span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    color: var(--fg-dim);
}

/* ---------- Contact ---------- */
.contact-section {
    text-align: left;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.contact-map-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-meta-cards {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.contact-meta-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    background: var(--bg-alt);
    transition: border-color 0.2s;
}

.contact-meta-card:hover {
    border-color: var(--accent);
}

.contact-meta-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}

.contact-meta-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.15rem;
}

.contact-meta-value {
    display: block;
    font-size: 0.92rem;
    color: var(--fg);
}


.logo-dot {
    color: var(--accent);
    animation: dot-pulse 2.4s ease-in-out infinite;
}

@keyframes dot-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}


.section,
.hero {
    animation: fade-up 0.7s ease both;
}

.deliver-card {
    animation: fade-up 0.5s ease both;
}

.team-card {
    animation: fade-up 0.5s ease both;
}

.howwork-step {
    animation: fade-up 0.5s ease both;
}

/* stagger cards */
.deliver-card:nth-child(1),
.team-card:nth-child(1),
.howwork-step:nth-child(1) {
    animation-delay: 0.05s;
}

.deliver-card:nth-child(2),
.team-card:nth-child(2),
.howwork-step:nth-child(2) {
    animation-delay: 0.12s;
}

.deliver-card:nth-child(3),
.team-card:nth-child(3),
.howwork-step:nth-child(3) {
    animation-delay: 0.19s;
}

.deliver-card:nth-child(4),
.howwork-step:nth-child(4) {
    animation-delay: 0.26s;
}

.deliver-card:nth-child(5),
.howwork-step:nth-child(5) {
    animation-delay: 0.33s;
}

.deliver-card:nth-child(6) {
    animation-delay: 0.40s;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Footer ---------- */
.site-footer {
    padding: 4rem 0 1.5rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--line);
}

.footer-brand .logo {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-brand p {
    color: var(--fg-dim);
    font-size: 0.9rem;
    max-width: 280px;
}

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: var(--fg-dim);
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--fg);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--fg-dim);
}


/* ═══════════════════════════════════════════════
   ANIMATION ADDITIONS — append to style.css
   ═══════════════════════════════════════════════ */

/* ── Scroll reveal base states ── */
.will-reveal {
    opacity: 0;
    will-change: opacity, transform;
}

.will-reveal.reveal-up {
    transform: translateY(28px);
}

.will-reveal.reveal-fade {
    transform: translateY(0);
}

/* Revealed state */
.will-reveal.revealed {
    opacity: 1;
    transform: translateY(0) !important;
    transition:
        opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

/* Prevent double-animation on elements that already animate */
.section,
.hero,
.deliver-card,
.team-card,
.howwork-step {
    animation: none !important;
}

/* ── Header scroll shrink ── */
.site-header {
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.header-scrolled .header-inner {
    height: 60px;
    transition: height 0.3s ease;
}

.header-scrolled {
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

/* ── Active nav link ── */
.nav-links a.nav-active,
.mobile-nav a.nav-active {
    color: var(--accent);
}

/* ── Typewriter cursor blink ── */
.display-xl .accent {
    display: inline-block;
    transition: border-color 0.2s;
}

/* ── Process connector animated line ──
   Replaces the ::before pseudo-element with a JS-injected div
   so we can animate width */
.howwork-steps::before {
    display: none;
    /* hide the original CSS pseudo-line */
}

.connector-line-animated {
    position: absolute;
    top: 28px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: var(--line);
    z-index: 0;
    transform-origin: left center;
    transform: scaleX(0);
}

.connector-line-animated.connector-draw {
    transform: scaleX(1);
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

/* ── Card glow (radial spotlight following cursor) ── */
.deliver-card,
.team-card {
    --glow-x: 50%;
    --glow-y: 50%;
}

.deliver-card.card-glow-active::before,
.team-card.card-glow-active::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle 120px at var(--glow-x) var(--glow-y),
            rgba(212, 255, 63, 0.06) 0%,
            transparent 70%);
    pointer-events: none;
    border-radius: inherit;
    z-index: 0;
}

.deliver-card>*,
.team-card>* {
    position: relative;
    z-index: 1;
}

/* ── Magnetic button smooth reset ── */
.btn {
    will-change: transform;
}

/* ── Hero parallax — subtle vertical shift ── */
.hero-centered {
    will-change: background-position;
}

.hero-centered .display-xl {
    will-change: transform;
    transition: transform 0.05s linear;
}

/* ── Ticker pause state ── */
.ticker:hover .ticker-track {
    animation-play-state: paused;
}

/* ── Compare columns — staggered reveal ── */
.compare-col:nth-child(1) {
    --reveal-delay: 0ms;
}

.compare-col:nth-child(3) {
    --reveal-delay: 120ms;
}

.compare-arrow {
    --reveal-delay: 60ms;
}

/* ── Contact meta card stagger ── */
.contact-meta-card:nth-child(1) {
    --reveal-delay: 0ms;
}

.contact-meta-card:nth-child(2) {
    --reveal-delay: 80ms;
}

.contact-meta-card:nth-child(3) {
    --reveal-delay: 160ms;
}

/* ── Footer col stagger ── */
.footer-col:nth-child(2) {
    --reveal-delay: 0ms;
}

.footer-col:nth-child(3) {
    --reveal-delay: 80ms;
}

.footer-col:nth-child(4) {
    --reveal-delay: 160ms;
}

/* ── Hover: deliver icon spin on card hover ── */
.deliver-card:hover .deliver-icon {
    display: inline-block;
    animation: icon-spin 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes icon-spin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(-15deg) scale(1.2);
    }

    100% {
        transform: rotate(0deg) scale(1);
    }
}

/* ── Team avatar pulse ring on hover ── */
.team-card:hover .team-avatar {
    animation: avatar-ring 0.6s ease forwards;
}

@keyframes avatar-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 255, 63, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(212, 255, 63, 0.15);
    }

    100% {
        box-shadow: 0 0 0 4px rgba(212, 255, 63, 0.0);
    }
}

/* ── Process step number flip on hover ── */
.howwork-step .hw-num {
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.howwork-step:hover .hw-num {
    transform: rotateY(180deg) scale(1.05);
}

/* ── Eyebrow slide-in ── */
.eyebrow.will-reveal {
    transform: translateX(-12px);
}

.eyebrow.revealed {
    transform: translateX(0) !important;
}

/* ── Smooth underline on nav links ── */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.nav-active::after {
    width: 100%;
}

/* ── CTA button ripple effect ── */
.btn-primary {
    overflow: hidden;
    position: relative;
}

.btn-primary .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: ripple-out 0.55s ease-out forwards;
    pointer-events: none;
}

@keyframes ripple-out {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ── Section entrance: section-dark slides in ── */
.section-dark .container {
    transition: opacity 0.01s;
    /* ensure visibility before reveal kicks in */
}

/* ── Reduced motion: disable everything ── */
@media (prefers-reduced-motion: reduce) {

    .will-reveal,
    .will-reveal.reveal-up,
    .will-reveal.reveal-fade {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .connector-line-animated {
        transform: scaleX(1) !important;
        transition: none !important;
    }

    .deliver-icon,
    .team-avatar,
    .hw-num {
        animation: none !important;
        transform: none !important;
    }

    .nav-links a::after {
        transition: none;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .compare {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .compare-arrow {
        width: auto;
        transform: rotate(90deg);
        margin: 0 auto;
    }

    .deliver-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .howwork-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .howwork-steps::before {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .ticker-track {
        animation-duration: 20s;
    }
}

@media (max-width: 720px) {
    .nav-links {
        display: none;
    }

    .header-inner .btn-primary {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .howwork-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
    }

    .contact-actions .btn-large {
        font-size: 0.95rem;
        padding: 0.9rem 1.5rem;
    }

    .ticker-track {
        animation-duration: 14s;
    }
}

/* ---------- Contact Form Modal ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.open .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: 1px solid var(--line);
    color: var(--fg-dim);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: border-color 0.2s, color 0.2s;
}

.modal-close:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--fg);
}

.modal-sub {
    color: var(--fg-dim);
    font-size: 0.92rem;
    margin-bottom: 1.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg-dim);
}

.req {
    color: var(--accent);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.8rem 1rem;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--fg-dim);
    opacity: 0.55;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a7a89e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

.form-error {
    background: rgba(255, 80, 80, 0.1);
    border: 1px solid rgba(255, 80, 80, 0.35);
    border-radius: 10px;
    color: #ff8080;
    font-size: 0.88rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.form-submit {
    width: 100%;
    margin-top: 0.5rem;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.form-success {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: var(--accent);
    color: var(--bg);
    border-radius: 50%;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.form-success h4 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--fg-dim);
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-box {
        padding: 1.75rem 1.25rem;
    }
}