/* ===========================
   COMPILEHUB BUSINESS PAGE STYLES
   =========================== */
:root {
    --ink: #0a0a0b;
    --ink-2: #1c1c1e;
    --ink-3: #2c2c2e;
    --fog: #f5f5f7;
    --fog-2: #e8e8ed;
    --ghost: #aeaeb2;
    --muted: #6e6e73;
    --text: #1d1d1f;
    --text-inv: #f5f5f7;

    --lime: #b8ff57;
    --lime-dim: rgba(184, 255, 87, 0.12);
    --lime-glow: rgba(184, 255, 87, 0.35);

    --ff-display: 'Syne', sans-serif;
    --ff-body: 'Inter', sans-serif;
    --ff-mono: 'JetBrains Mono', monospace;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);

    --nav-h: 64px;
}

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

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--ink);
    color: var(--text-inv);
    font-family: var(--ff-body);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

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

.wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .wrap {
        padding: 0 40px;
    }
}

@media (min-width: 1200px) {
    .wrap {
        padding: 0 48px;
    }
}

/* ===========================
   SCROLL REVEAL & KEYFRAMES
   =========================== */
.sr {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.sr-d1 { transition-delay: 0.08s; }
.sr-d2 { transition-delay: 0.16s; }
.sr-d3 { transition-delay: 0.24s; }
.sr-d4 { transition-delay: 0.32s; }
.sr-d5 { transition-delay: 0.40s; }

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

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.12);
        opacity: 1;
    }
}

@keyframes marqueeLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===========================
   AMBIENT BG
   =========================== */
.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}

.ambient-orb-1 {
    width: 500px;
    height: 500px;
    top: -200px;
    left: -100px;
    background: radial-gradient(circle, rgba(184, 255, 87, 0.07) 0%, transparent 70%);
    animation: breathe 8s ease-in-out infinite;
}

.ambient-orb-2 {
    width: 600px;
    height: 600px;
    bottom: -200px;
    right: -150px;
    background: radial-gradient(circle, rgba(0, 150, 255, 0.08) 0%, transparent 70%);
    animation: breathe 11s ease-in-out infinite 3s;
}

/* ===========================
   NAV
   =========================== */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
    border-bottom: 1px solid transparent;
}

#nav.solid {
    background: rgba(10, 10, 11, 0.88);
    backdrop-filter: blur(20px) saturate(160%);
    border-color: rgba(255, 255, 255, 0.07);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    opacity: 0;
    animation: riseIn 0.7s var(--ease-out) 0.1s forwards;
}

.nav-logo-img {
    height: 36px;
    width: auto;
    display: block;
}

.nav-links {
    display: none;
    gap: 32px;
    font-size: 14px;
    font-weight: 400;
    color: var(--ghost);
    opacity: 0;
    animation: riseIn 0.7s var(--ease-out) 0.25s forwards;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    position: relative;
    transition: color 0.25s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 1px;
    background: var(--lime);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
}

.nav-links a:hover {
    color: var(--text-inv);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    font-size: 13px;
    font-weight: 500;
    padding: 9px 18px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-inv);
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.3s, border-color 0.3s, transform 0.2s, color 0.3s;
    opacity: 0;
    animation: riseIn 0.7s var(--ease-out) 0.35s forwards;
    display: none;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

@media (min-width: 768px) {
    .nav-cta {
        display: flex;
    }
}

.nav-cta:hover {
    background: var(--lime);
    border-color: var(--lime);
    color: var(--ink);
    transform: translateY(-1px);
}

.nav-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    margin-right: -8px;
    opacity: 0;
    background: none;
    border: none;
    animation: riseIn 0.7s var(--ease-out) 0.35s forwards;
}

@media (min-width: 768px) {
    .nav-menu-btn {
        display: none;
    }
}

.nav-menu-btn span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--ghost);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}

.nav-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4.5px);
    background: var(--text-inv);
}

.nav-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.nav-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4.5px);
    background: var(--text-inv);
}

.mobile-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(10, 10, 11, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    z-index: 99;
    padding: 24px 20px 32px;
    display: none;
    flex-direction: column;
    gap: 0;
    transform: translateY(-10px);
    opacity: 0;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.mobile-menu.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu a {
    font-size: 20px;
    font-family: var(--ff-display);
    font-weight: 600;
    color: var(--ghost);
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.2s;
}

.mobile-menu a:hover {
    color: var(--lime);
}

/* ===========================
   HERO
   =========================== */
.hero {
    position: relative;
    z-index: 1;
    padding-top: calc(var(--nav-h) + 60px);
    padding-bottom: 80px;
    min-height: 90svh;
    display: flex;
    align-items: center;
}

.hero-left {
    display: flex;
    flex-direction: column;
}

.hero-eyebrow {
    font-family: var(--ff-mono);
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lime);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    opacity: 0;
    animation: riseIn 0.8s var(--ease-out) 0.3s forwards;
}

.hero-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 8px var(--lime-glow);
    animation: breathe 2.5s ease-in-out infinite;
}

.hero-h1 {
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: clamp(42px, 7.5vw, 84px);
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.hero-h1 .word {
    display: inline-block;
    overflow: hidden;
}

.hero-h1 .word span {
    display: inline-block;
    opacity: 0;
    transform: translateY(105%);
    animation: riseIn 0.9s var(--ease-out) forwards;
}

.hero-h1 .w1 span { animation-delay: 0.4s; }
.hero-h1 .w2 span { animation-delay: 0.52s; }
.hero-h1 .w3 span { animation-delay: 0.64s; }
.hero-h1 .w4 span { animation-delay: 0.74s; }

.hero-h1 .accent-word { color: var(--lime); }
.hero-h1 .period { color: var(--lime); }

.hero-sub {
    font-size: clamp(15px, 1.8vw, 17px);
    line-height: 1.7;
    color: var(--ghost);
    max-width: 52ch;
    margin-top: 28px;
    opacity: 0;
    animation: riseIn 0.9s var(--ease-out) 0.88s forwards;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    opacity: 0;
    animation: riseIn 0.8s var(--ease-out) 0.7s forwards;
}

.meta-badge {
    font-family: var(--ff-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lime);
    background: rgba(184, 255, 87, 0.08);
    border: 1px solid rgba(184, 255, 87, 0.2);
    padding: 6px 14px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--lime);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
    opacity: 0;
    animation: riseIn 0.9s var(--ease-out) 1.02s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ff-body);
    font-weight: 500;
    font-size: 14.5px;
    padding: 14px 24px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s;
}

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

.btn-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(184, 255, 87, 0.28);
}

.btn-solid .btn-arrow {
    transition: transform 0.3s var(--ease-out);
}

.btn-solid:hover .btn-arrow {
    transform: translateX(4px);
}

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

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

/* ===========================
   MARQUEE STRIP
   =========================== */
.strip {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 18px 0;
    overflow: hidden;
    white-space: nowrap;
}

.strip-track {
    display: inline-flex;
    gap: 52px;
    animation: marqueeLeft 30s linear infinite;
    font-family: var(--ff-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--muted);
    text-transform: uppercase;
}

.strip-track span {
    display: inline-flex;
    align-items: center;
    gap: 52px;
}

.strip-sep {
    color: var(--lime);
    opacity: 0.5;
}

/* ===========================
   SECTION COMMONS
   =========================== */
section {
    position: relative;
    z-index: 1;
}

.section-pad {
    padding: 90px 0;
}

@media (min-width: 768px) {
    .section-pad {
        padding: 130px 0;
    }
}

.section-label {
    font-family: var(--ff-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--muted);
    flex-shrink: 0;
}

.section-h2 {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

/* ===========================
   SERVICES CARDS
   =========================== */
.services-b2b-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 56px;
}

@media (min-width: 800px) {
    .services-b2b-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.service-b2b-card {
    background: var(--ink-2);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    transition: transform 0.3s var(--ease-out), border-color 0.3s, background 0.3s;
}

.service-b2b-card:hover {
    transform: translateY(-4px);
    border-color: rgba(184, 255, 87, 0.35);
    background: var(--ink-3);
}

.b2b-card-num {
    font-family: var(--ff-mono);
    font-size: 13px;
    color: var(--lime);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.service-b2b-card h3 {
    font-family: var(--ff-display);
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.service-b2b-card p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--ghost);
}

.b2b-feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.b2b-feature-item {
    font-size: 13.5px;
    color: var(--text-inv);
    display: flex;
    align-items: center;
    gap: 10px;
}

.b2b-feature-item svg {
    width: 14px;
    height: 14px;
    stroke: var(--lime);
    stroke-width: 2.2;
    fill: none;
    flex-shrink: 0;
}

.b2b-card-cta {
    font-family: var(--ff-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--lime);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    transition: gap 0.25s var(--ease-out);
}

.b2b-card-cta:hover {
    gap: 10px;
}

#standards {
    background: var(--fog);
    color: var(--text);
}

#standards .section-label {
    color: rgba(0, 0, 0, 0.4);
}

#standards .section-label::before {
    background: rgba(0, 0, 0, 0.2);
}

#standards .section-h2 {
    color: var(--text);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 48px;
}

.tech-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}

.tech-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.tech-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.tech-card-header svg {
    stroke: var(--ink);
}

.tech-card h4 {
    font-family: var(--ff-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.tech-card p {
    font-size: 13.5px;
    color: rgba(0, 0, 0, 0.65);
    line-height: 1.6;
}

.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
}

@media (min-width: 768px) {
    .process-steps {
        grid-template-columns: repeat(4, 1fr);
    }
}

.process-step {
    background: var(--ink-2);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-badge {
    font-family: var(--ff-mono);
    font-size: 12px;
    color: var(--lime);
    background: rgba(184, 255, 87, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    width: fit-content;
}

.process-step h4 {
    font-family: var(--ff-display);
    font-size: 18px;
    font-weight: 700;
}

.process-step p {
    font-size: 13.5px;
    color: var(--ghost);
    line-height: 1.6;
}

/* ===========================
   INQUIRY MODAL & FORM
   =========================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 11, 0.88);
    backdrop-filter: blur(20px) saturate(160%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: var(--ink-2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s var(--ease-out);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

@media (min-width: 768px) {
    .modal-container {
        padding: 48px;
    }
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--ghost);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-inv);
}

.modal-header {
    margin-bottom: 28px;
}

.modal-header .modal-tag {
    font-family: var(--ff-mono);
    font-size: 11px;
    color: var(--lime);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.modal-header h3 {
    font-family: var(--ff-display);
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.modal-header p {
    font-size: 14px;
    color: var(--muted);
    margin-top: 6px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 600px) {
    .form-row-2 {
        grid-template-columns: 1fr 1fr;
        display: grid;
        gap: 18px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-family: var(--ff-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ghost);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-inv);
    font-family: var(--ff-body);
    font-size: 14px;
    outline: none;
    transition: border-color 0.25s, background 0.25s;
}

.form-select option {
    background: var(--ink-2);
    color: var(--text-inv);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--lime);
    background: rgba(184, 255, 87, 0.02);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit-btn {
    width: 100%;
    margin-top: 10px;
    justify-content: center;
}

.form-success-state {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 0;
    gap: 16px;
}

.form-success-state.active {
    display: flex;
}

.success-icon-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(184, 255, 87, 0.12);
    border: 1px solid rgba(184, 255, 87, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lime);
}

.success-icon-badge svg {
    width: 24px;
    height: 24px;
    stroke: var(--lime);
    stroke-width: 2.5;
    fill: none;
}

.form-success-state h3 {
    font-family: var(--ff-display);
    font-size: 24px;
    font-weight: 700;
}

.form-success-state p {
    font-size: 14.5px;
    color: var(--ghost);
    line-height: 1.65;
    max-width: 44ch;
}

/* ===========================
   FOOTER
   =========================== */
footer {
    position: relative;
    z-index: 1;
    background: var(--ink-2);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 80px 0 40px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr 2fr;
    }
}

.footer-brand-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 320px;
}

.footer-links {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.footer-col h4 {
    font-family: var(--ff-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--ghost);
    margin-bottom: 10px;
    transition: color 0.25s;
}

.footer-col a:hover {
    color: var(--lime);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom span {
    font-family: var(--ff-mono);
    font-size: 11.5px;
    color: var(--muted);
}

.footer-bottom .build {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-bottom .build::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 6px var(--lime-glow);
}
