/* GeekLingo: shared site styles. Light/dark via light-dark(); [data-theme] pins a choice. */

@font-face {
  font-family: Montserrat;
  src: url(../font/Montserrat-Medium.ttf) format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url(../font/Montserrat-SemiBold.ttf) format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url(../font/Montserrat-Bold.ttf) format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: light-dark(#f6f8fc, #06080f);
  --bg-alt: light-dark(#eef2f8, #0b0f19);
  --surface: light-dark(#ffffff, #0f1420);
  --surface-2: light-dark(#f2f5fa, #151b2a);
  --text: light-dark(#0b1220, #e9eef7);
  --muted: light-dark(#4f5a6e, #9aa6ba);
  --border: light-dark(rgb(11 18 32 / 0.09), rgb(255 255 255 / 0.08));
  --border-strong: light-dark(rgb(11 18 32 / 0.18), rgb(255 255 255 / 0.18));
  --accent: light-dark(#1769d6, #3cc8f5);
  --accent-soft: light-dark(rgb(23 105 214 / 0.08), rgb(60 200 245 / 0.1));
  --header-bg: light-dark(rgb(246 248 252 / 0.78), rgb(6 8 15 / 0.72));
  --shadow: light-dark(0 1px 2px rgb(11 18 32 / 0.04), 0 1px 2px rgb(0 0 0 / 0.4)),
    light-dark(0 12px 32px -12px rgb(11 18 32 / 0.12), 0 16px 40px -16px rgb(0 0 0 / 0.6));
  --grad: linear-gradient(120deg, #1a6fe0 0%, #1aa3ec 55%, #3fd0f2 100%);
  --font-display: Montserrat, ui-sans-serif, system-ui, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --container: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-theme="light"] { color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: rgb(26 163 236 / 0.3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.6rem 1rem; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow);
}
.skip-link:focus { top: 1rem; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Theme-aware logo: two <img>s, one shown per theme */
.logo { height: 34px; width: auto; }
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .logo-light { display: none; }
  :root:not([data-theme]) .logo-dark { display: block; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.75rem 1.4rem; border-radius: 999px;
  font: 600 0.95rem/1 var(--font-display); letter-spacing: -0.005em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s, border-color 0.25s;
}
.btn svg, .btn img { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -8px rgb(26 111 224 / 0.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgb(26 111 224 / 0.7); }
.btn-ghost { border-color: var(--border-strong); background: var(--surface); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn-sm { min-height: 40px; padding: 0.55rem 1.05rem; font-size: 0.875rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand { margin-right: auto; display: flex; align-items: center; }
.nav-list { display: flex; gap: 0.25rem; }
.nav-list a {
  display: block; padding: 0.5rem 0.85rem; border-radius: 999px;
  font: 500 0.92rem/1.2 var(--font-display); color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--text); background: var(--accent-soft); }
.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer;
  transition: border-color 0.2s;
}
.icon-btn:hover { border-color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; }
  .header-cta { display: none; }
  .site-nav {
    position: absolute; inset: 72px 0 auto; padding: 0.75rem 1.25rem 1.5rem;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; }
  .nav-list a { padding: 0.9rem 0.75rem; font-size: 1.05rem; border-radius: 12px; }
}

/* Sections */
.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section-alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.4rem 0.85rem; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface);
  font: 600 0.75rem/1.2 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px var(--accent-soft); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin: 1rem 0 1rem; }
.section-head p { color: var(--muted); font-size: 1.125rem; }

.card {
  position: relative; padding: clamp(1.6rem, 3vw, 2.25rem);
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card h3 { font-size: 1.25rem; margin-bottom: 0.65rem; }
.card p { color: var(--muted); }
.card-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.5rem;
  border-radius: 14px; background: var(--accent-soft); color: var(--accent);
}
.card-icon svg { width: 26px; height: 26px; }
.card-num { font: 600 0.8rem/1 var(--font-display); color: var(--muted); letter-spacing: 0.08em; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(4rem, 10vw, 7.5rem) clamp(4rem, 8vw, 6rem); isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -2;
  background:
    radial-gradient(40rem 26rem at 78% 30%, light-dark(rgb(26 163 236 / 0.16), rgb(26 163 236 / 0.22)), transparent 70%),
    radial-gradient(30rem 22rem at 10% 0%, light-dark(rgb(26 111 224 / 0.1), rgb(26 111 224 / 0.18)), transparent 70%);
}
.hero::after { /* fine grid, faded toward edges */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
}
.hero-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero-inner { max-width: 50rem; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); line-height: 1.04; letter-spacing: -0.035em; margin: 1.5rem 0 1.5rem; }
.hero-lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.25rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 3rem; color: var(--muted); font: 500 0.9rem/1.4 var(--font-display); }
.hero-tags li { display: flex; align-items: center; gap: 0.5rem; }
.hero-tags svg { width: 16px; height: 16px; color: var(--accent); }

/* Partner logo marquee */
.logos { padding-block: 2.75rem 3.5rem; border-block: 1px solid var(--border); }
.logos-title { text-align: center; color: var(--muted); font: 600 0.8rem/1.4 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.75rem; }
.logos-intro { text-align: center; color: var(--muted); max-width: 40rem; margin: -0.75rem auto 2rem; font-size: 0.98rem; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; gap: clamp(3rem, 7vw, 5.5rem); padding-right: clamp(3rem, 7vw, 5.5rem); }
.marquee img { height: 34px; width: auto; filter: brightness(0); opacity: 0.55; transition: opacity 0.25s; }
.marquee a:hover img, .marquee a:focus-visible img { opacity: 1; }
[data-theme="dark"] .marquee img { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .marquee img { filter: brightness(0) invert(1); } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Services bento */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.service-feature { grid-row: span 3; display: flex; flex-direction: column; overflow: hidden; }
.service-feature p { font-size: 1.08rem; }
.service-feature .card-art { margin-top: auto; padding-top: 2rem; }
.service-feature::before {
  content: ""; position: absolute; inset: auto -30% -40% auto; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgb(26 163 236 / 0.25), transparent 65%); pointer-events: none;
}
.card-head { display: flex; justify-content: space-between; align-items: start; }
.card-tag { font: 600 0.72rem/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; padding: 0.45rem 0.7rem; border-radius: 999px; background: var(--grad); color: #fff; }

/* Approach steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.step { padding-top: 1.75rem; border-top: 1px solid var(--border-strong); position: relative; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 3.5rem; height: 2px; background: var(--grad); }
.step h3 { font-size: 1.3rem; margin: 0.9rem 0 0.6rem; }
.step p { color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.about-copy p { color: var(--muted); font-size: 1.1rem; margin-bottom: 1.1rem; }
.about-copy h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin: 1rem 0 1.5rem; }
.expertise { display: grid; gap: 0.85rem; }
.expertise li {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.25rem 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
}
.expertise .card-icon { margin: 0; width: 44px; height: 44px; flex: none; }
.expertise .card-icon svg { width: 22px; height: 22px; }
.expertise h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.expertise p { color: var(--muted); font-size: 0.97rem; }

/* Products */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.product { display: flex; flex-direction: column; align-items: flex-start; }
.product-icon { width: 72px; height: 72px; border-radius: 22.5%; margin-bottom: 1.5rem; box-shadow: 0 14px 30px -12px rgb(12 80 140 / 0.45); background: #fff; object-fit: cover; }
.product-meta { font: 600 0.72rem/1.2 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem; }
.product p { margin-bottom: 1.5rem; }
.product-link { margin-top: auto; font: 600 0.95rem/1.2 var(--font-display); color: var(--accent); }
.product-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.product-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */

/* Contact CTA */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(2.5rem, 7vw, 5rem); border-radius: calc(var(--radius) + 10px);
  background: #07101f; color: #fff; text-align: center;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(36rem 20rem at 15% 0%, rgb(26 111 224 / 0.6), transparent 70%),
    radial-gradient(30rem 20rem at 90% 100%, rgb(63 208 242 / 0.45), transparent 70%);
}
.cta h2 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
.cta p { color: rgb(255 255 255 / 0.75); font-size: 1.15rem; max-width: 36rem; margin-inline: auto; }
.cta .hero-actions { justify-content: center; }
.cta .btn-primary { background: #fff; color: #07101f; box-shadow: none; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.3); }
.cta .btn-ghost:hover { border-color: #fff; }

/* Footer */
.site-footer { padding-block: 4.5rem 2.5rem; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; }
.footer-brand p { color: var(--muted); font-size: 0.95rem; margin-top: 1.25rem; max-width: 22rem; }
.footer-col h2 { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.footer-col li + li { margin-top: 0.65rem; }
.footer-col a { font-size: 0.97rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 0.875rem;
}

/* Scroll reveal: only hidden once JS has marked the page ready */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .services-grid, .about-grid { grid-template-columns: 1fr; }
  .service-feature { grid-row: auto; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .products-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .marquee { mask-image: none; }
  .marquee-track { width: auto; display: block; animation: none; }
  .marquee ul { flex-wrap: wrap; justify-content: center; padding-right: 0; row-gap: 2rem; }
  .marquee ul[aria-hidden] { display: none; }
}
.feature-list { display: grid; gap: 0.55rem; margin-top: 1.25rem; }
.feature-list li { display: flex; gap: 0.65rem; align-items: baseline; color: var(--muted); }
.feature-list li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); transform: translateY(-2px); }
