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

/* ── DEFAULT: LIGHT ── */
:root {
--bg:      #fafaf8;
--deep:    #f0eeeb;
--surface: #e7e5e0;
--accent:  #4f46e5;
--accent2: #3730a3;
--glow:    #6366f1;
--mist:    #57534e;
--white:   #1c1917;
--grey:    #a8a29e;
--border:  rgba(0,0,0,.08);
}

html {
scroll-behavior: smooth;
overflow-x: hidden;
}

body {
font-family: 'DM Sans', sans-serif;
background-color: var(--bg);
color: var(--white);
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
}

body::before {
content: '';
position: fixed;
inset: 0;
background:
    radial-gradient(ellipse 80% 60% at 20% -10%, rgba(79,70,229,.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 10%,  rgba(99,102,241,.04) 0%, transparent 55%),
    radial-gradient(ellipse 50% 70% at 50% 100%, rgba(0,0,0,.03)      0%, transparent 60%);
pointer-events: none;
z-index: 0;
}

body::after {
content: '';
position: fixed;
inset: 0;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
opacity: 0.028;
pointer-events: none;
z-index: 0;
}

/* ── NAV ── */
nav {
position: fixed;
top: 0; left: 0; right: 0;
z-index: 100;
padding: 1.15rem 5%;
display: flex;
align-items: center;
justify-content: space-between;
background: rgba(250,250,248,.92);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border-bottom: 1px solid var(--border);
}

.logo {
font-family: 'Space Grotesk', sans-serif;
font-weight: 700;
font-size: 1.35rem;
letter-spacing: -.01em;
color: var(--white);
text-decoration: none;
display: flex;
align-items: center;
gap: .4rem;
}

.logo span {
color: var(--white);
-webkit-text-fill-color: var(--white);
}

.logo-icon {
font-size: 1.25rem;
color: var(--accent);
-webkit-text-fill-color: var(--accent);
filter: none;
flex-shrink: 0;
line-height: 1;
}

nav ul {
list-style: none;
display: flex;
gap: 2.25rem;
}

nav ul a {
font-size: .82rem;
font-weight: 400;
letter-spacing: .04em;
color: var(--mist);
text-decoration: none;
opacity: .8;
transition: opacity .2s, color .2s;
}

nav ul a:hover { opacity: 1; color: var(--white); }

/* ── GLOBE CANVAS ── */
#globe-canvas {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
z-index: 0;
pointer-events: none;
}

/* ── HERO ── */
#hero {
position: relative;
z-index: 1;
min-height: 100svh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 8rem 6% 5rem;
overflow: hidden;
}

.hero-badge {
display: inline-flex;
align-items: center;
gap: .5rem;
padding: .35rem 1rem .35rem .6rem;
border: 1px solid var(--border);
border-radius: 100px;
background: rgba(79,70,229,.06);
font-size: .72rem;
font-weight: 500;
letter-spacing: .08em;
text-transform: uppercase;
color: var(--accent);
margin-bottom: 2rem;
opacity: 0;
}

.badge-dot {
width: 6px; height: 6px;
border-radius: 50%;
background: var(--accent);
box-shadow: 0 0 8px var(--accent);
animation: pulse 2.5s infinite;
}

@keyframes pulse {
0%,100% { opacity: 1; }
50%      { opacity: .3; }
}

.hero-headline {
font-family: 'Space Grotesk', sans-serif;
font-weight: 700;
font-size: clamp(3rem, 8vw, 6rem);
line-height: 1.02;
letter-spacing: -.035em;
max-width: 14ch;
color: var(--white);
}

.hero-headline .word-line {
display: block;
}

.hero-headline .word {
display: inline-block;
white-space: nowrap;
}

.hero-headline .char {
display: inline-block;
opacity: 0;
transform: translateY(60px) rotate(4deg);
}

.hero-headline .gradient .char {
background: linear-gradient(135deg, var(--glow) 0%, var(--accent) 60%, var(--accent2) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

.hero-headline .gradient {
background: linear-gradient(135deg, var(--glow) 0%, var(--accent) 60%, var(--accent2) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
display: inline;
}

.hero-sub {
margin-top: 1.75rem;
font-size: clamp(.92rem, 1.8vw, 1.12rem);
font-weight: 300;
color: var(--mist);
max-width: 50ch;
line-height: 1.8;
opacity: 0;
}

.hero-cta {
margin-top: 3rem;
display: flex;
gap: 1rem;
flex-wrap: wrap;
justify-content: center;
opacity: 0;
}

.btn-primary {
position: relative;
padding: .85rem 2.25rem;
background: var(--accent);
color: #fff;
font-family: 'DM Sans', sans-serif;
font-size: .85rem;
font-weight: 500;
letter-spacing: .02em;
text-shadow: none;
border: none;
border-radius: 8px;
cursor: pointer;
text-decoration: none;
overflow: hidden;
transition: transform .2s, background .2s, box-shadow .2s;
}

.btn-primary::before {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(105deg, rgba(255,255,255,.18) 0%, transparent 55%);
pointer-events: none;
}

.btn-primary:hover {
transform: translateY(-2px);
background: var(--glow);
box-shadow: 0 8px 30px rgba(79,70,229,.28);
}

.btn-primary:active {
transform: translateY(0);
}

.btn-ghost {
padding: .85rem 2.1rem;
background: transparent;
color: var(--mist);
font-family: 'DM Sans', sans-serif;
font-size: .85rem;
font-weight: 400;
letter-spacing: .02em;
border: 1px solid var(--border);
border-radius: 8px;
cursor: pointer;
text-decoration: none;
transition: border-color .2s, color .2s, transform .2s, background .2s;
}

.btn-ghost:hover {
border-color: var(--accent);
color: var(--accent);
background: rgba(79,70,229,.05);
transform: translateY(-2px);
}

/* orbs */
.orb {
position: absolute;
border-radius: 50%;
filter: blur(100px);
pointer-events: none;
z-index: 0;
}
.orb-1 {
width: 520px; height: 520px;
background: radial-gradient(circle, rgba(79,70,229,.08), transparent 70%);
top: 5%; left: -8%;
animation: drift 14s ease-in-out infinite alternate;
}
.orb-2 {
width: 420px; height: 420px;
background: radial-gradient(circle, rgba(99,102,241,.06), transparent 70%);
top: 10%; right: -5%;
animation: drift 18s ease-in-out infinite alternate-reverse;
}
.orb-3 {
width: 600px; height: 400px;
background: radial-gradient(circle, rgba(79,70,229,.05), transparent 70%);
bottom: 0; left: 30%;
animation: drift 20s ease-in-out infinite alternate;
}

@keyframes drift {
from { transform: translate(0, 0); }
to   { transform: translate(30px, 40px); }
}

/* ── STATS ROW ── */
#stats {
position: relative;
z-index: 1;
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 0;
border-top: 1px solid var(--border);
border-bottom: 1px solid var(--border);
background: rgba(0,0,0,.02);
}

.stat-item {
flex: 1;
min-width: 160px;
padding: 2.5rem 2rem;
text-align: center;
border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-num {
font-family: 'Space Grotesk', sans-serif;
font-weight: 700;
font-size: 2.4rem;
letter-spacing: -.03em;
color: var(--white);
}

.stat-icon {
font-size: 2.2rem;
color: var(--accent);
opacity: .85;
margin-bottom: .5rem;
display: block;
}

.stat-label {
margin-top: .35rem;
font-size: .72rem;
font-weight: 400;
letter-spacing: .06em;
text-transform: uppercase;
color: var(--grey);
}

/* ── SERVICES ── */
#services {
position: relative;
z-index: 1;
padding: 7rem 6%;
text-align: center;
}

.section-eyebrow {
display: inline-block;
font-size: .72rem;
font-weight: 500;
letter-spacing: .12em;
text-transform: uppercase;
color: var(--accent);
margin-bottom: 1rem;
}

.section-title {
font-family: 'Space Grotesk', sans-serif;
font-weight: 700;
font-size: clamp(2rem, 4.5vw, 3.5rem);
letter-spacing: -.03em;
line-height: 1.08;
max-width: 24ch;
margin: 0 auto 1.25rem;
color: var(--white);
}

.section-desc {
font-size: .95rem;
font-weight: 300;
color: var(--mist);
opacity: .85;
max-width: 48ch;
margin: 0 auto 4rem;
line-height: 1.75;
}

.services-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 1px;
max-width: 1100px;
margin: 0 auto;
background: var(--border);
border: 1px solid var(--border);
border-radius: 14px;
overflow: hidden;
}

.service-card {
background: var(--deep);
padding: 2.75rem 2.25rem;
text-align: left;
position: relative;
overflow: hidden;
transition: background .3s;
opacity: 0;
transform: translateY(40px) scale(.96);
}

.service-card:hover {
background: var(--surface);
}

.service-card::before {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(135deg, rgba(79,70,229,.04) 0%, transparent 60%);
opacity: 0;
transition: opacity .3s;
}

.service-card:hover::before { opacity: 1; }

.service-icon {
width: 52px; height: 46px;
border: none;
border-radius: 0;
background: var(--accent);
clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 1.5rem;
font-size: 1.3rem;
color: var(--accent);
position: relative;
flex-shrink: 0;
transition: background .3s;
transform: rotate(90deg);
}

.service-icon::before {
content: '';
position: absolute;
inset: 0;
background: var(--deep);
clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
transform: scale(0.88);
z-index: 0;
transition: background .3s;
}

.service-icon i {
position: relative;
z-index: 1;
transform: rotate(-90deg);
}

.service-card:hover .service-icon {
background: var(--glow);
}

.service-name {
font-family: 'Space Grotesk', sans-serif;
font-weight: 600;
font-size: 1.15rem;
letter-spacing: -.01em;
margin-bottom: .65rem;
color: var(--white);
}

.service-desc {
font-size: .875rem;
font-weight: 300;
color: var(--mist);
line-height: 1.75;
opacity: .85;
}

/* ── AI INTEGRATION ── */
#ai {
position: relative;
z-index: 1;
padding: 0 6% 7rem;
}

.ai-inner {
max-width: 1100px;
margin: 0 auto;
}

.ai-header {
text-align: center;
margin-bottom: 4rem;
}

.ai-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 1.5rem;
}

.ai-feature {
padding: 2.25rem;
background: var(--deep);
border: 1px solid var(--border);
border-top: 3px solid var(--accent);
border-radius: 0 0 14px 14px;
position: relative;
transition: background .3s;
}

.ai-feature:hover {
background: var(--surface);
}

/* ── HOW WE WORK ── */
#process {
position: relative;
z-index: 1;
padding: 5rem 6% 7rem;
}

.process-inner {
max-width: 1100px;
margin: 0 auto;
}

.process-header { text-align: center; margin-bottom: 4rem; }

.steps {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 2rem;
position: relative;
}

.step {
display: flex;
flex-direction: column;
gap: .85rem;
opacity: 0;
transform: translateY(28px);
transition: opacity .6s ease, transform .6s ease;
}

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

.step-icon {
width: 52px; height: 52px;
border: none;
border-radius: 0;
background: var(--accent);
clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.25rem;
color: var(--accent);
margin-bottom: .25rem;
position: relative;
flex-shrink: 0;
}

.step-icon::before {
content: '';
position: absolute;
inset: 0;
background: var(--bg);
clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
transform: scale(0.88);
z-index: 0;
}

.step-icon i {
position: relative;
z-index: 1;
}

.step-num {
font-family: 'Space Grotesk', sans-serif;
font-weight: 700;
font-size: 3.5rem;
line-height: 1;
letter-spacing: -.04em;
color: rgba(79,70,229,.12);
}

.step-title {
font-family: 'Space Grotesk', sans-serif;
font-weight: 600;
font-size: 1.1rem;
letter-spacing: -.01em;
color: var(--white);
}

.step-text {
font-size: .875rem;
font-weight: 300;
color: var(--mist);
line-height: 1.75;
opacity: .85;
}

/* ── MISSION GLOBE ── */
#mission-globe-canvas {
position: absolute;
bottom: 0;
right: 0;
width: 240px;
height: 240px;
pointer-events: none;
z-index: 0;
}

/* ── MISSION ── */
#mission {
position: relative;
z-index: 1;
padding: 0 6% 8rem;
}

.mission-card {
max-width: 1100px;
margin: 0 auto;
border-radius: 14px;
padding: 5rem 6%;
background: var(--deep);
border: 1px solid var(--border);
border-left: 4px solid var(--accent);
text-align: center;
position: relative;
}

.mission-card::after {
content: '';
position: absolute;
top: 0; left: 0; right: 0;
height: 1px;
background: linear-gradient(90deg, var(--accent), transparent 60%);
pointer-events: none;
border-radius: 14px 14px 0 0;
}

.mission-quote {
font-family: 'Space Grotesk', sans-serif;
font-weight: 700;
font-size: clamp(1.75rem, 3.2vw, 2.8rem);
letter-spacing: -.025em;
line-height: 1.15;
max-width: 28ch;
margin: 0 auto 1.5rem;
color: var(--white);
}

.mission-quote em {
font-style: normal;
background: linear-gradient(135deg, var(--glow) 0%, var(--accent) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

.mission-sub {
font-size: 1rem;
font-weight: 300;
color: var(--mist);
opacity: .8;
max-width: 54ch;
margin: 0 auto;
line-height: 1.75;
}

/* ── FOOTER ── */
footer {
position: relative;
z-index: 1;
padding: 2.75rem 6%;
border-top: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 1rem;
background: rgba(0,0,0,.02);
}

footer::after {
content: "";
position: fixed;
background-image:
  linear-gradient(var(--border) 1px, transparent 1px),
  linear-gradient(90deg, var(--border) 1px, transparent 1px);
background-size: 60px 60px;
pointer-events: none;
z-index: 0;
inset: 0;
opacity: 0.2;
}

.footer-logo {
font-family: 'Space Grotesk', sans-serif;
font-weight: 700;
font-size: 1.2rem;
letter-spacing: -.01em;
color: var(--white);
text-decoration: none;
opacity: .8;
display: inline-flex;
align-items: center;
gap: .4rem;
}

.footer-logo .ti {
font-size: 1.15rem;
color: var(--accent);
-webkit-text-fill-color: var(--accent);
filter: none;
line-height: 1;
}

.footer-logo span, span.logo-soft {
color: var(--white);
-webkit-text-fill-color: var(--white);
background: none;
-webkit-background-clip: unset;
display: inline-block;
margin-left: -7px;
}

.footer-copy {
font-size: .78rem;
color: var(--grey);
opacity: .65;
}

.footer-links {
display: flex;
gap: 1.75rem;
list-style: none;
}

.footer-links a {
font-size: .78rem;
font-weight: 400;
color: var(--grey);
text-decoration: none;
opacity: .65;
transition: opacity .2s, color .2s;
}

.footer-links a:hover { opacity: 1; color: var(--accent); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
from { opacity: 0; transform: translateY(24px); }
to   { opacity: 1; transform: translateY(0); }
}

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

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

/* ── THEME TOGGLE BUTTON ── */
.theme-toggle {
background: rgba(79,70,229,.06);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--accent);
cursor: pointer;
width: 36px; height: 36px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.1rem;
transition: background .2s, border-color .2s, color .2s, transform .2s;
flex-shrink: 0;
}

.theme-toggle:hover {
background: rgba(79,70,229,.12);
border-color: var(--accent);
}

/* ── DARK MODE ── */
html[data-theme="dark"] {
--bg:      #0e0e10;
--deep:    #18181b;
--surface: #27272a;
--accent:  #818cf8;
--accent2: #6366f1;
--glow:    #a5b4fc;
--mist:    #a1a1aa;
--white:   #fafaf9;
--grey:    #71717a;
--border:  rgba(255,255,255,.08);
}

html[data-theme="dark"] body {
background-color: #0e0e10;
color: #fafaf9;
}

html[data-theme="dark"] body::before {
background:
  radial-gradient(ellipse 80% 60% at 20% -10%, rgba(129,140,248,.08) 0%, transparent 60%),
  radial-gradient(ellipse 60% 50% at 85% 10%,  rgba(99,102,241,.05)  0%, transparent 55%),
  radial-gradient(ellipse 50% 70% at 50% 100%, rgba(0,0,0,.5)        0%, transparent 60%);
}

html[data-theme="dark"] body::after {
opacity: 0.035;
}

html[data-theme="dark"] nav {
background: rgba(14,14,16,.9);
}

html[data-theme="dark"] #stats {
background: rgba(0,0,0,.3);
}

html[data-theme="dark"] footer {
background: rgba(14,14,16,.9);
}

html[data-theme="dark"] .orb-1 {
background: radial-gradient(circle, rgba(129,140,248,.08), transparent 70%);
}
html[data-theme="dark"] .orb-2 {
background: radial-gradient(circle, rgba(99,102,241,.06), transparent 70%);
}
html[data-theme="dark"] .orb-3 {
background: radial-gradient(circle, rgba(129,140,248,.05), transparent 70%);
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  html { min-width: 375px; }

  nav { padding: 1rem 5%; }
  nav ul { display: none; }

  #hero { padding: 7rem 5% 4rem; }
  .hero-badge { font-size: .68rem; text-align: center; }
  .hero-headline { font-size: clamp(2.4rem, 11vw, 3.2rem); max-width: 100%; width: 100%; }
  .hero-sub { font-size: .9rem; max-width: 100%; padding: 0 .5rem; }
  .hero-cta {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
  .btn-primary, .btn-ghost {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  #stats { display: grid; grid-template-columns: 1fr 1fr; }
  .stat-item {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.75rem 1rem;
  }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .stat-num { font-size: 2rem; }

  #services { padding: 4rem 5%; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 2rem 1.5rem; }

  #ai { padding: 0 5% 5rem; }
  .ai-grid { grid-template-columns: 1fr; }
  .ai-feature { padding: 1.75rem 1.5rem; }

  #process { padding: 4rem 5% 5rem; }
  .steps { grid-template-columns: 1fr; gap: 2.5rem; }

  #mission { padding: 0 5% 5rem; }
  .mission-card { padding: 3rem 5%; }
  .mission-quote { font-size: clamp(1.6rem, 6vw, 2.2rem); }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 2rem 5%;
  }
}
