/*
  ArqAi Solutions — Premium Landing Page
  Design: Dark Mode · Purple/Indigo/Cyan gradient system
  Font: Inter 800
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    /* Backgrounds */
    --bg-base:     #07070f;
    --bg-alt:      #0c0c1a;
    --bg-surface:  #111123;
    --bg-elevated: #17172e;

    /* Text */
    --text-primary:   #f0eeff;
    --text-secondary: #9896c0;
    --text-muted:     #5e5c80;

    /* Brand */
    --purple: #7c3aed;
    --indigo: #4f46e5;
    --cyan:   #06b6d4;

    --gradient-brand: linear-gradient(135deg, #7c3aed 0%, #4f46e5 55%, #06b6d4 100%);
    --gradient-brand-soft: linear-gradient(135deg,
        rgba(124,58,237,.12) 0%,
        rgba(79,70,229,.12) 55%,
        rgba(6,182,212,.08) 100%);

    /* Borders */
    --border-faint:   rgba(124,58,237,.10);
    --border-subtle:  rgba(124,58,237,.18);
    --border-default: rgba(124,58,237,.32);
    --border-hover:   rgba(124,58,237,.55);

    /* Status */
    --success: #10b981;
    --danger:  #f43f5e;

    /* Type */
    --font: 'Inter', sans-serif;

    /* Radius */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-full: 9999px;

    /* Spacing scale */
    --s1: .5rem;
    --s2: 1rem;
    --s3: 1.5rem;
    --s4: 2rem;
    --s5: 3rem;
    --s6: 4rem;
    --s8: 6rem;
    --s10: 8rem;

    /* Layout */
    --max-w: 1200px;

    /* Motion */
    --ease: cubic-bezier(.4, 0, .2, 1);
    --t1: .18s;
    --t2: .38s;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg-base);
    color: var(--text-secondary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; transition: color var(--t1) var(--ease); }
ul  { list-style: none; }
button { font-family: var(--font); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: -.025em;
    font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); font-weight: 800; margin-bottom: var(--s3); }
h2 { font-size: clamp(1.85rem, 3.8vw, 3rem);  margin-bottom: var(--s2); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem);  font-weight: 600; margin-bottom: var(--s1); }
h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: .4rem; }

p  { font-size: 1.0625rem; margin-bottom: var(--s2); }
p:last-child { margin-bottom: 0; }

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-label {
    display: inline-block;
    font-size: .8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--s2);
}

.section-label-white {
    display: block;
    font-size: .8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255,255,255,.5);
    margin-bottom: var(--s2);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--s4);
}

.section { padding: var(--s8) 0; }
.text-center { text-align: center; }

.section-header { margin-bottom: var(--s6); }
.section-header.text-center .section-header h2 { margin-bottom: var(--s2); }

.section-intro {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    margin-top: var(--s2);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1.5rem;
    border-radius: var(--r-sm);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--t1) var(--ease);
    border: 1px solid transparent;
    white-space: nowrap;
    line-height: 1;
}

.btn i { width: 18px; height: 18px; flex-shrink: 0; }
.btn-large { padding: .9rem 2rem; font-size: 1.0625rem; }
.btn-small  { padding: .5rem 1.1rem; font-size: .875rem; }

/* Primary — gradient */
.btn-primary {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(124,58,237,.3), 0 4px 20px rgba(124,58,237,.3);
}
.btn-primary:hover {
    box-shadow: 0 0 0 1px rgba(124,58,237,.5), 0 8px 28px rgba(124,58,237,.45);
    transform: translateY(-2px);
    color: #fff;
}

/* Outline */
.btn-outline {
    background: rgba(255,255,255,.04);
    color: var(--text-primary);
    border-color: var(--border-subtle);
    backdrop-filter: blur(8px);
}
.btn-outline:hover {
    border-color: var(--border-default);
    background: rgba(124,58,237,.08);
    color: var(--text-primary);
}

/* Ghost */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--text-primary); }

/* White (for dark backgrounds) */
.btn-white {
    background: #fff;
    color: #0a0a18;
    font-weight: 600;
}
.btn-white:hover {
    background: #ece8ff;
    color: var(--purple);
    transform: translateY(-2px);
}

/* Outline White */
.btn-outline-white {
    background: rgba(255,255,255,.06);
    color: #fff;
    border-color: rgba(255,255,255,.28);
    backdrop-filter: blur(6px);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.55);
    color: #fff;
}

.cta-group {
    display: flex;
    gap: var(--s2);
    flex-wrap: wrap;
    align-items: center;
}
.justify-center { justify-content: center; }
.mt-btn  { margin-top: var(--s4); }
.mt-cta  { margin-top: var(--s5); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    padding: var(--s2) 0;
    transition: all var(--t2) var(--ease);
}

.site-header.scrolled {
    background: rgba(7,7,15,.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-faint);
    padding: var(--s1) 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s4);
}

.logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}
.logo-favicon { width: 26px; height: 26px; border-radius: 6px; object-fit: contain; flex-shrink: 0; }
.logo-text { font-size: 1.375rem; font-weight: 800; color: var(--text-primary); letter-spacing: -.045em; }
.logo-text .accent { color: var(--purple); }

.main-nav .nav-links { display: flex; gap: var(--s4); }
.nav-links a {
    color: var(--text-muted);
    font-size: .9375rem;
    font-weight: 500;
    transition: color var(--t1) var(--ease);
}
.nav-links a:hover { color: var(--text-primary); }

.header-actions { display: flex; align-items: center; gap: var(--s2); }

.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-sm);
    padding: .4rem;
    color: var(--text-primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.mobile-menu-toggle i { width: 20px; height: 20px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 10rem 0 6rem;
    overflow: hidden;
}

/* ── Background ── */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    animation: float 9s ease-in-out infinite;
}

.orb-1 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(124,58,237,.38) 0%, transparent 65%);
    top: -200px; right: -120px;
    animation-delay: 0s;
}
.orb-2 {
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(6,182,212,.22) 0%, transparent 65%);
    bottom: -80px; left: 8%;
    animation-delay: -3.5s;
}
.orb-3 {
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(79,70,229,.28) 0%, transparent 65%);
    top: 45%; left: -60px;
    animation-delay: -6.5s;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border-faint) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-faint) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 85% 85% at 50% 0%, black 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 0%, black 0%, transparent 75%);
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-28px) scale(1.04); }
}

/* ── Content ── */
.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 920px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .4rem 1rem;
    background: rgba(124,58,237,.1);
    border: 1px solid rgba(124,58,237,.25);
    border-radius: var(--r-full);
    color: #c4b5fd;
    font-size: .875rem;
    font-weight: 500;
    margin-bottom: var(--s3);
}

.badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--gradient-brand);
    flex-shrink: 0;
    animation: blink 2.2s ease infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .45; transform: scale(.75); }
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 680px;
    margin-bottom: var(--s5);
    line-height: 1.7;
}

/* ── Metrics ── */
.hero-metrics {
    display: flex;
    align-items: center;
    gap: var(--s5);
    margin-top: var(--s5);
    padding-top: var(--s4);
    border-top: 1px solid var(--border-faint);
}

.metric-value {
    display: block;
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -.04em;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: .3rem;
}

.metric-label {
    font-size: .85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.metric-divider {
    width: 1px;
    height: 42px;
    background: var(--border-faint);
    flex-shrink: 0;
}

/* ============================================================
   PAIN SECTION
   ============================================================ */
.pain-section { background: var(--bg-alt); }

.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s3);
    margin-top: var(--s5);
}

.pain-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-faint);
    border-radius: var(--r-lg);
    padding: var(--s4);
    position: relative;
    overflow: hidden;
    transition: border-color var(--t1) var(--ease), transform var(--t1) var(--ease);
}

.pain-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity var(--t2) var(--ease);
}

.pain-card:hover { border-color: var(--border-subtle); transform: translateY(-5px); }
.pain-card:hover::before { opacity: 1; }

.pain-icon {
    width: 48px; height: 48px;
    background: rgba(124,58,237,.1);
    border: 1px solid rgba(124,58,237,.2);
    border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--purple);
    margin-bottom: var(--s3);
}
.pain-icon i { width: 22px; height: 22px; }
.pain-card p { font-size: .9375rem; margin: 0; }

/* ============================================================
   SOLUTION SECTION
   ============================================================ */
.solution-section {
    padding: var(--s8) 0;
    border-top: 1px solid var(--border-faint);
    border-bottom: 1px solid var(--border-faint);
    background: linear-gradient(180deg, transparent 0%, rgba(124,58,237,.04) 50%, transparent 100%);
}

.solution-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--s8);
    align-items: center;
}

.solution-text h2 { margin-bottom: var(--s3); }
.solution-text p  { font-size: 1.125rem; margin-bottom: var(--s4); }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 500;
    font-size: 1rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: gap var(--t1) var(--ease);
}
.link-arrow:hover { gap: .65rem; }
.link-arrow i { width: 18px; height: 18px; color: var(--cyan); -webkit-text-fill-color: var(--cyan); }

/* ── Before/After visual ── */
.solution-visual {
    display: flex;
    align-items: center;
    gap: var(--s2);
}

.visual-card {
    flex: 1;
    background: var(--bg-surface);
    border: 1px solid var(--border-faint);
    border-radius: var(--r-lg);
    padding: var(--s3);
}

.visual-card-after {
    border-color: var(--border-subtle);
    background: var(--bg-elevated);
}

.visual-label {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    margin-bottom: var(--s2);
}

.visual-before, .visual-after {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.chaos-item, .result-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8125rem;
    color: var(--text-secondary);
    padding: .4rem .6rem;
    border-radius: var(--r-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border-faint);
}
.chaos-item i { width: 14px; height: 14px; color: var(--text-muted); flex-shrink: 0; }
.result-item i { width: 14px; height: 14px; color: var(--success); flex-shrink: 0; }
.result-item   { color: var(--text-primary); border-color: rgba(16,185,129,.2); background: rgba(16,185,129,.05); }

.visual-arrow {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 0 .25rem;
}
.arrow-line {
    width: 2px;
    height: 32px;
    background: var(--gradient-brand);
    border-radius: 2px;
}
.arrow-badge {
    display: flex;
    align-items: center;
    gap: .3rem;
    padding: .35rem .6rem;
    background: rgba(124,58,237,.15);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-full);
    font-size: .7rem;
    font-weight: 600;
    color: #c4b5fd;
    white-space: nowrap;
}
.arrow-badge i { width: 12px; height: 12px; }

/* ============================================================
   STACK SECTION
   ============================================================ */
.stack-section {
    padding: var(--s5) 0;
    border-bottom: 1px solid var(--border-faint);
}

.stack-label {
    text-align: center;
    font-size: .875rem;
    color: var(--text-muted);
    margin-bottom: var(--s4);
}

.stack-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s2);
    justify-content: center;
}

.stack-item {
    padding: .45rem 1.1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-faint);
    border-radius: var(--r-full);
    font-size: .8125rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--t1) var(--ease);
    cursor: default;
}
.stack-item:hover {
    border-color: var(--border-default);
    color: var(--text-primary);
    background: rgba(124,58,237,.08);
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-section { background: var(--bg-alt); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s3);
}

.service-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-faint);
    border-radius: var(--r-lg);
    padding: var(--s4);
    position: relative;
    overflow: hidden;
    transition: all var(--t1) var(--ease);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t2) var(--ease);
}

.service-card:hover {
    border-color: var(--border-subtle);
    transform: translateY(-4px);
    background: var(--bg-elevated);
}
.service-card:hover::after { transform: scaleX(1); }

.service-number {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--s2);
}

.service-icon {
    width: 44px; height: 44px;
    background: rgba(124,58,237,.1);
    border: 1px solid rgba(124,58,237,.18);
    border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--purple);
    margin-bottom: var(--s3);
}
.service-icon i { width: 20px; height: 20px; }
.service-card p { font-size: .9375rem; margin: 0; }

/* ============================================================
   METHOD SECTION
   ============================================================ */
.method-section { background: var(--bg-base); }

.method-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--s2);
    position: relative;
}

/* Connecting line */
.method-grid::before {
    content: '';
    position: absolute;
    top: 52px;
    left: calc(10% + var(--s2));
    right: calc(10% + var(--s2));
    height: 1px;
    background: linear-gradient(90deg, var(--border-faint), var(--border-subtle), var(--border-faint));
    z-index: 0;
}

.method-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-faint);
    border-radius: var(--r-lg);
    padding: var(--s3) var(--s2);
    text-align: center;
    position: relative;
    z-index: 1;
    transition: all var(--t1) var(--ease);
}

.method-card:hover {
    border-color: var(--border-default);
    background: var(--bg-elevated);
    transform: translateY(-4px);
}

.method-num {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--s2);
}

.method-icon {
    width: 40px; height: 40px;
    background: rgba(124,58,237,.1);
    border: 1px solid rgba(124,58,237,.15);
    border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--purple);
    margin: 0 auto var(--s2);
}
.method-icon i { width: 18px; height: 18px; }
.method-card p  { font-size: .8125rem; line-height: 1.5; margin: 0; }

/* ============================================================
   FIT SECTION
   ============================================================ */
.fit-section { background: var(--bg-alt); }

.fit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s4);
}

.fit-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-faint);
    border-radius: var(--r-lg);
    padding: var(--s5);
}

.fit-yes { border-top: 3px solid var(--success); }
.fit-no  { border-top: 3px solid var(--danger); }

.fit-card-header {
    display: flex;
    align-items: center;
    gap: var(--s2);
    margin-bottom: var(--s4);
    padding-bottom: var(--s3);
    border-bottom: 1px solid var(--border-faint);
}

.fit-icon {
    width: 36px; height: 36px;
    border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.fit-icon i { width: 18px; height: 18px; }
.fit-icon-yes { background: rgba(16,185,129,.15); color: var(--success); }
.fit-icon-no  { background: rgba(244,63,94,.15);  color: var(--danger); }

.fit-card h3 { font-size: 1rem; }

.fit-card ul {
    display: flex;
    flex-direction: column;
    gap: var(--s2);
}

.fit-card ul li {
    font-size: .9375rem;
    color: var(--text-secondary);
    padding-left: 1.1rem;
    position: relative;
    line-height: 1.5;
}
.fit-card ul li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

/* ============================================================
   AUTHORITY SECTION
   ============================================================ */
.authority-section { background: var(--bg-base); }

.authority-inner {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: var(--s8);
    align-items: center;
}

.authority-img-wrapper {
    position: relative;
}

.authority-photo {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--r-xl);
    border: 1px solid var(--border-subtle);
    display: block;
}

.img-fallback {
    display: none;
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--bg-surface);
    border-radius: var(--r-xl);
    border: 1px dashed var(--border-subtle);
}

.authority-img-wrapper.no-photo .img-fallback { display: block; }

.authority-badges {
    position: absolute;
    bottom: var(--s3);
    left: var(--s3);
    right: var(--s3);
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.auth-badge {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .8rem;
    background: rgba(7,7,15,.88);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-sm);
    font-size: .8125rem;
    font-weight: 500;
    color: var(--text-primary);
}
.auth-badge i { width: 14px; height: 14px; color: var(--purple); flex-shrink: 0; }

.authority-content h2 { margin-bottom: var(--s3); }
.authority-content p  { margin-bottom: var(--s3); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--s4);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t2) var(--ease);
}

.lightbox.open {
    opacity: 1;
    pointer-events: all;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    z-index: 2;
    max-width: min(900px, 90vw);
    max-height: 90vh;
    animation: lbIn .3s var(--ease) both;
}

@keyframes lbIn {
    from { transform: scale(.92); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--r-lg);
    box-shadow: 0 32px 80px rgba(0,0,0,.7);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 40px; height: 40px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: background var(--t1) var(--ease), border-color var(--t1) var(--ease);
    z-index: 3;
}
.lightbox-close:hover { background: var(--purple); border-color: var(--purple); }
.lightbox-close i { width: 18px; height: 18px; }

.credential-img-wrap { cursor: pointer; }
.credential-overlay span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.credential-overlay span i { width: 14px; height: 14px; }

/* ============================================================
   CONTACT FORM SECTION
   ============================================================ */
.contact-section { background: var(--bg-base); }

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--s8);
    align-items: start;
}

.contact-header h2 { margin-bottom: var(--s2); }
.contact-header > p { margin-bottom: var(--s4); font-size: 1.0625rem; }

.contact-extras {
    display: flex;
    flex-direction: column;
    gap: var(--s2);
}

.contact-extra-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .9rem;
    color: var(--text-muted);
}
.contact-extra-item i  { width: 16px; height: 16px; color: var(--purple); flex-shrink: 0; }
.contact-extra-item a  { color: var(--purple); text-decoration: underline; }
.contact-extra-item a:hover { color: var(--text-primary); }

/* Form wrapper */
.contact-form-wrapper {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-xl);
    padding: var(--s5);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--s3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s3);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.form-full { grid-column: 1 / -1; }

label {
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.required { color: var(--purple); }

.field-hint {
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: .2rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-sm);
    padding: .75rem 1rem;
    font-family: var(--font);
    font-size: .9375rem;
    color: var(--text-primary);
    transition: border-color var(--t1) var(--ease), box-shadow var(--t1) var(--ease);
    outline: none;
    width: 100%;
}

input::placeholder,
textarea::placeholder { color: var(--text-muted); }

input:focus,
select:focus,
textarea:focus {
    border-color: var(--border-default);
    box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}

input.error,
select.error,
textarea.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(244,63,94,.1);
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235e5c80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

select option {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.form-submit {
    width: 100%;
    justify-content: center;
    margin-top: var(--s1);
    position: relative;
}

.form-submit:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

/* Success state */
.form-success {
    text-align: center;
    padding: var(--s5) var(--s4);
}

.success-icon {
    width: 64px; height: 64px;
    background: rgba(16,185,129,.12);
    border: 1px solid rgba(16,185,129,.25);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto var(--s3);
    color: var(--success);
}
.success-icon i { width: 28px; height: 28px; }
.form-success h3 { margin-bottom: var(--s2); }
.form-success p  { font-size: .9375rem; }

/* ============================================================
   CREDENTIALS SECTION
   ============================================================ */
.credentials-section { background: var(--bg-alt); }

.credentials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s4);
}

.credential-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-faint);
    border-radius: var(--r-xl);
    overflow: hidden;
    transition: border-color var(--t1) var(--ease), transform var(--t1) var(--ease);
}

.credential-card:hover {
    border-color: var(--border-subtle);
    transform: translateY(-4px);
}

.credential-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.credential-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform var(--t2) var(--ease);
    display: block;
}

.credential-card:hover .credential-img {
    transform: scale(1.03);
}

.credential-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7,7,15,.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--t1) var(--ease);
}

.credential-card:hover .credential-overlay { opacity: 1; }

.credential-overlay span,
.credential-overlay a {
    padding: .6rem 1.4rem;
    background: var(--gradient-brand);
    color: #fff;
    border-radius: var(--r-full);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity var(--t1) var(--ease);
}
.credential-overlay a:hover { opacity: .85; color: #fff; }

.credential-info {
    padding: var(--s3) var(--s4);
}

.credential-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .75rem;
    background: rgba(124,58,237,.1);
    border: 1px solid rgba(124,58,237,.2);
    border-radius: var(--r-full);
    font-size: .75rem;
    font-weight: 600;
    color: #c4b5fd;
    margin-bottom: var(--s2);
}
.credential-badge i { width: 13px; height: 13px; flex-shrink: 0; }

.credential-info h3 { font-size: 1rem; margin-bottom: .4rem; }
.credential-info p  { font-size: .875rem; margin-bottom: var(--s1); }

.credential-meta {
    font-size: .8rem;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 768px) {
    .credentials-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section { background: var(--bg-alt); }

.faq-accordion {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item { border-bottom: 1px solid var(--border-faint); }
.faq-item:first-child { border-top: 1px solid var(--border-faint); }

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s3);
    padding: var(--s3) 0;
    background: none;
    border: none;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    transition: color var(--t1) var(--ease);
}

.faq-question::after {
    content: '';
    width: 20px; height: 20px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235e5c80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center/contain no-repeat;
    transition: transform var(--t1) var(--ease);
}

.faq-item.active .faq-question::after { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t2) var(--ease);
}
.faq-answer p { padding-bottom: var(--s3); font-size: .9375rem; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta-section { padding: 0; }

.cta-gradient {
    position: relative;
    padding: var(--s10) 0;
    background: linear-gradient(135deg, #1b0540 0%, #100d38 45%, #070f2c 100%);
    border-top: 1px solid rgba(124,58,237,.22);
    overflow: hidden;
}

.cta-orb {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(124,58,237,.22) 0%, transparent 65%);
    pointer-events: none;
}

.final-cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.final-cta-content h2 {
    font-size: clamp(2rem, 4.5vw, 3.75rem);
    color: #fff;
    margin-bottom: var(--s2);
}
.final-cta-content > p {
    font-size: 1.25rem;
    color: rgba(255,255,255,.58);
    max-width: 540px;
    margin: 0 auto;
}

/* ============================================================
   CALENDLY SECTION
   ============================================================ */
.calendly-section { background: var(--bg-alt); }

.calendly-wrapper {
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 24px 60px rgba(0,0,0,.4);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--bg-base);
    border-top: 1px solid var(--border-faint);
    padding: var(--s8) 0 var(--s4);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--s6);
    margin-bottom: var(--s6);
}

.footer-brand .logo { margin-bottom: var(--s2); }
.footer-brand p { font-size: .9rem; max-width: 280px; margin-bottom: var(--s3); }

.footer-social { display: flex; gap: var(--s2); }
.footer-social a {
    width: 38px; height: 38px;
    background: var(--bg-surface);
    border: 1px solid var(--border-faint);
    border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    transition: all var(--t1) var(--ease);
}
.footer-social a:hover { border-color: var(--border-default); color: var(--text-primary); }
.footer-social a i { width: 16px; height: 16px; }

.footer-links h4,
.footer-contact h4 {
    color: var(--text-primary);
    font-size: .8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: var(--s3);
}

.footer-links ul,
.footer-contact ul { display: flex; flex-direction: column; gap: .7rem; }

.footer-links a,
.footer-contact a {
    color: var(--text-muted);
    font-size: .9rem;
    transition: color var(--t1) var(--ease);
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--text-primary); }

.footer-bottom {
    padding-top: var(--s4);
    border-top: 1px solid var(--border-faint);
    text-align: center;
}
.footer-bottom p { font-size: .85rem; color: var(--text-muted); margin: 0; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.stagger-1 { transition-delay: .1s; }
.stagger-2 { transition-delay: .2s; }
.stagger-3 { transition-delay: .3s; }
.stagger-4 { transition-delay: .4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
    .method-grid { grid-template-columns: repeat(3, 1fr); }
    .method-grid::before { display: none; }

    .solution-inner { grid-template-columns: 1fr; gap: var(--s5); }
    .solution-visual { max-width: 520px; }

    .authority-inner { grid-template-columns: 1fr; gap: var(--s5); }
    .authority-img-wrapper { max-width: 380px; }

    .contact-inner { grid-template-columns: 1fr; gap: var(--s5); }
}

@media (max-width: 900px) {
    .pain-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .fit-grid { grid-template-columns: 1fr; }
    .credentials-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: var(--s4); }
    .method-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.1rem; }

    .section { padding: var(--s6) 0; }

    /* Mobile nav */
    .main-nav {
        display: none;
        position: fixed;
        top: 56px; left: 0; right: 0;
        background: rgba(7,7,15,.98);
        backdrop-filter: blur(16px);
        padding: var(--s3) var(--s4) var(--s4);
        border-bottom: 1px solid var(--border-faint);
        z-index: 99;
    }
    .main-nav.open { display: block; }
    .main-nav .nav-links { flex-direction: column; gap: 0; }
    .nav-links a {
        font-size: 1.0625rem;
        padding: .85rem 0;
        display: block;
        border-bottom: 1px solid var(--border-faint);
        color: var(--text-secondary);
    }
    .nav-links li:last-child a { border-bottom: none; }

    .header-wa { display: none; }
    .mobile-menu-toggle { display: flex; }

    /* Hero */
    .hero { padding: 7rem 0 3.5rem; min-height: auto; }
    .hero h1 { font-size: 2rem; margin-bottom: var(--s2); }
    .hero-subtitle { font-size: 1.0625rem; margin-bottom: var(--s4); }
    .hero-badge { font-size: .8rem; }
    .hero-metrics {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--s2);
        padding-top: var(--s3);
    }
    .metric-divider { display: none; }
    .metric-value { font-size: 1.75rem; }

    /* Method */
    .method-grid { grid-template-columns: 1fr 1fr; }
    .method-grid::before { display: none; }

    /* Solution visual */
    .solution-visual { flex-direction: column; gap: var(--s2); }
    .visual-arrow {
        flex-direction: row;
        justify-content: center;
        padding: var(--s1) 0;
    }
    .arrow-line { width: 32px; height: 2px; }

    /* Contact form */
    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: var(--s3); }

    /* Credentials */
    .credential-img-wrap { aspect-ratio: 16/9; }

    /* CTAs */
    .cta-group { flex-direction: column; align-items: stretch; }
    .cta-group .btn { width: 100%; justify-content: center; }

    /* Footer */
    .footer-brand .logo-text { font-size: 1.2rem; }
    .final-cta-content h2 { font-size: 1.75rem; }
    .final-cta-content p  { font-size: 1rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 var(--s3); }

    .hero { padding: 6rem 0 3rem; }
    .hero h1 { font-size: 1.75rem; }
    .hero-badge { font-size: .75rem; padding: .35rem .85rem; }

    .method-grid { grid-template-columns: 1fr; }

    .pain-card,
    .service-card,
    .fit-card,
    .credential-card { border-radius: var(--r-md); }

    .contact-form-wrapper { padding: var(--s3) var(--s2); border-radius: var(--r-lg); }

    .btn-large { padding: .85rem 1.5rem; font-size: 1rem; }

    .footer-inner { gap: var(--s3); }
    .site-footer { padding: var(--s6) 0 var(--s3); }
}
