/* ==========================================================================
   TurekNet Consulting Group — design system
   Modern tech, dark surfaces, electric accents.
   ========================================================================== */

:root {
  /* Color — OKLCH, dark theme with electric cyan/violet accents */
  --bg:          oklch(0.16 0.02 260);   /* deep space navy */
  --bg-2:        oklch(0.19 0.025 265);  /* raised panel */
  --surface:     oklch(0.22 0.03 265);   /* cards */
  --surface-2:   oklch(0.26 0.035 265);  /* hover / nested */
  --line:        oklch(0.34 0.03 265);   /* hairline borders */
  --line-soft:   oklch(0.30 0.025 265);

  --ink:         oklch(0.97 0.01 250);   /* primary text */
  --ink-soft:    oklch(0.78 0.02 255);   /* secondary text */
  --ink-mute:    oklch(0.62 0.02 258);   /* muted / captions */

  --cyan:        oklch(0.80 0.15 200);   /* electric cyan */
  --cyan-deep:   oklch(0.66 0.16 210);
  --violet:      oklch(0.66 0.19 292);   /* electric violet */
  --violet-deep: oklch(0.55 0.20 292);
  --lime:        oklch(0.86 0.19 140);   /* success / accent pop */

  --accent:      var(--cyan);
  --accent-2:    var(--violet);

  --grad: linear-gradient(120deg, var(--cyan-deep), var(--violet));
  --grad-soft: linear-gradient(120deg,
                 oklch(0.66 0.16 210 / 0.16),
                 oklch(0.66 0.19 292 / 0.16));

  --glow-cyan:   0 0 0 1px oklch(0.80 0.15 200 / 0.35), 0 12px 40px oklch(0.66 0.16 210 / 0.22);

  /* Radii + shadow */
  --r-sm: 0.5rem;
  --r:    0.9rem;
  --r-lg: 1.4rem;
  --r-xl: 2rem;
  --shadow: 0 20px 50px oklch(0.10 0.02 260 / 0.55);
  --shadow-sm: 0 8px 24px oklch(0.10 0.02 260 / 0.45);

  /* Type */
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.35rem + 0.75vw, 2.1rem);
  --step-3:  clamp(1.95rem, 1.65rem + 1.5vw, 3rem);
  --step-4:  clamp(2.5rem, 2rem + 2.6vw, 4.4rem);

  --container: 1160px;
  --pad-section: clamp(4rem, 3rem + 6vw, 8rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  font-weight: 600;
}
p { text-wrap: pretty; }

/* ---------- Layout helpers ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding-block: var(--pad-section); position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 500;
}
.eyebrow::before {
  content: ""; width: 1.6rem; height: 2px; border-radius: 2px;
  background: var(--grad);
}
.section-head { max-width: 52ch; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section-head h2 { font-size: var(--step-3); margin-top: 0.8rem; }
.section-head p { color: var(--ink-soft); margin-top: 1rem; font-size: var(--step-1); }

.grad-text {
  background: linear-gradient(120deg, var(--cyan), var(--violet));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-0);
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  will-change: transform;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn-primary {
  background: var(--grad); color: oklch(0.16 0.02 260);
  font-weight: 600;
  box-shadow: 0 10px 30px oklch(0.66 0.16 210 / 0.30);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px oklch(0.66 0.16 210 / 0.42); }
.btn-ghost {
  background: oklch(0.97 0.01 250 / 0.04);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--cyan); background: oklch(0.80 0.15 200 / 0.10); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: oklch(0.16 0.02 260 / 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line-soft); background: oklch(0.16 0.02 260 / 0.9); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 4.4rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand .mark { width: 2rem; height: 2rem; }
.brand b { font-weight: 700; }
.brand span { color: var(--ink-mute); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 0.4rem; list-style: none; }
.nav-links a {
  padding: 0.5rem 0.9rem; border-radius: 999px;
  color: var(--ink-soft); font-size: var(--step--1); font-weight: 500;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--ink); background: oklch(0.97 0.01 250 / 0.05); }
.nav-cta { display: flex; align-items: center; gap: 0.6rem; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 0.6rem; padding: 0.5rem; color: var(--ink);
}
.nav-toggle svg { width: 1.4rem; height: 1.4rem; }

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu {
    position: fixed; inset: 4.4rem 0 auto 0; z-index: 49;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.5rem;
    display: grid; gap: 0.25rem;
    transform: translateY(-120%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
    box-shadow: var(--shadow);
  }
  .mobile-menu.open { transform: translateY(0); }
  .mobile-menu a { padding: 0.85rem 0.75rem; border-radius: var(--r-sm); color: var(--ink-soft); font-family: var(--font-display); }
  .mobile-menu a:hover { background: var(--surface); color: var(--ink); }
  .mobile-menu .btn { margin-top: 0.6rem; justify-content: center; }
}
@media (min-width: 861px) { .mobile-menu { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(4rem, 3rem + 6vw, 8rem) clamp(3rem, 2rem + 4vw, 6rem); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 620px; z-index: -1;
  background:
    radial-gradient(600px 400px at 22% 18%, oklch(0.66 0.16 210 / 0.28), transparent 62%),
    radial-gradient(560px 420px at 82% 8%, oklch(0.66 0.19 292 / 0.26), transparent 60%);
  filter: blur(6px);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image:
    linear-gradient(oklch(0.97 0.01 250 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.97 0.01 250 / 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 78%);
}
.hero-inner { max-width: 60ch; }
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--line); background: oklch(0.97 0.01 250 / 0.04);
  font-size: var(--step--1); color: var(--ink-soft);
}
.pill .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.hero h1 { font-size: var(--step-4); margin-top: 1.4rem; font-weight: 700; }
.hero .lede { font-size: var(--step-1); color: var(--ink-soft); margin-top: 1.4rem; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; margin-top: 2.6rem; color: var(--ink-mute); font-size: var(--step--1); }
.hero-trust span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-trust svg { width: 1.05rem; height: 1.05rem; color: var(--cyan); }

/* ---------- Stats band ---------- */
.stats { border-block: 1px solid var(--line-soft); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; padding-block: clamp(2.2rem, 1.5rem + 3vw, 3.5rem); }
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-size: var(--step-3); font-weight: 700; }
.stat .label { color: var(--ink-mute); font-size: var(--step--1); margin-top: 0.3rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 1.2rem + 1vw, 2.2rem);
  position: relative; overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: var(--shadow-sm); }
.card .icon {
  width: 3rem; height: 3rem; border-radius: 0.85rem;
  display: grid; place-items: center; margin-bottom: 1.1rem;
  background: var(--grad-soft); border: 1px solid var(--line);
  color: var(--cyan);
}
.card .icon svg { width: 1.5rem; height: 1.5rem; }
.card h3 { font-size: var(--step-1); }
.card p { color: var(--ink-soft); margin-top: 0.7rem; font-size: var(--step-0); }

/* Feature service cards — the two headline offerings */
.service {
  background:
    radial-gradient(500px 200px at 100% 0%, oklch(0.66 0.16 210 / 0.10), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.8rem, 1.3rem + 1.6vw, 2.8rem);
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service:hover { transform: translateY(-5px); box-shadow: var(--glow-cyan); border-color: oklch(0.80 0.15 200 / 0.4); }
.service .tag { font-size: var(--step--1); color: var(--cyan); font-family: var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; }
.service h3 { font-size: var(--step-2); margin-top: 0.6rem; }
.service > p { color: var(--ink-soft); margin-top: 0.9rem; }
.feature-list { list-style: none; margin-top: 1.4rem; display: grid; gap: 0.7rem; }
.feature-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--ink-soft); font-size: var(--step-0); }
.feature-list svg { width: 1.15rem; height: 1.15rem; flex: none; margin-top: 0.28rem; color: var(--lime); }
.service .btn { margin-top: auto; }
.service-foot { margin-top: 1.8rem; }

/* ---------- Industries ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.industry {
  border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: 1.3rem; background: var(--bg-2);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.industry:hover { transform: translateY(-3px); border-color: var(--cyan); background: var(--surface); }
.industry .emoji { font-size: 1.7rem; }
.industry h4 { font-family: var(--font-display); font-size: var(--step-0); margin-top: 0.7rem; }
.industry p { color: var(--ink-mute); font-size: var(--step--1); margin-top: 0.35rem; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; counter-reset: step; }
.step { position: relative; padding: 1.6rem; border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: var(--surface); }
.step .n {
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  width: 2.4rem; height: 2.4rem; border-radius: 0.7rem;
  display: grid; place-items: center; background: var(--grad-soft);
  border: 1px solid var(--line); color: var(--cyan); margin-bottom: 1rem;
}
.step h4 { font-size: var(--step-1); }
.step p { color: var(--ink-soft); margin-top: 0.5rem; font-size: var(--step-0); }

/* ---------- About / split ---------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.about-panel {
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--grad-soft); padding: clamp(1.8rem, 1.2rem + 2vw, 2.6rem);
}
.about-panel ul { list-style: none; display: grid; gap: 1.1rem; }
.about-panel li { display: flex; gap: 0.9rem; align-items: flex-start; }
.about-panel .k { font-family: var(--font-display); color: var(--ink); font-weight: 600; }
.about-panel .v { color: var(--ink-soft); font-size: var(--step--1); }
.about-panel .bullet { width: 2.5rem; height: 2.5rem; flex: none; border-radius: 0.7rem; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); color: var(--cyan); }
.about-panel .bullet svg { width: 1.3rem; height: 1.3rem; }

/* ---------- CTA ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(2.4rem, 1.6rem + 3vw, 4.5rem);
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% -20%, oklch(0.66 0.16 210 / 0.22), transparent 70%),
    radial-gradient(500px 300px at 50% 120%, oklch(0.66 0.19 292 / 0.20), transparent 70%),
    var(--bg-2);
}
.cta-band h2 { font-size: var(--step-3); }
.cta-band p { color: var(--ink-soft); font-size: var(--step-1); margin: 1rem auto 0; max-width: 48ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 2rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.contact-card {
  border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  background: var(--surface); padding: 1.8rem; text-align: left;
}
.contact-card .icon { width: 2.8rem; height: 2.8rem; border-radius: 0.75rem; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line); color: var(--cyan); margin-bottom: 1rem; }
.contact-card .icon svg { width: 1.4rem; height: 1.4rem; }
.contact-card h4 { font-family: var(--font-display); font-size: var(--step-1); }
.contact-card a, .contact-card p { color: var(--ink-soft); margin-top: 0.4rem; display: inline-block; }
.contact-card a:hover { color: var(--cyan); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); background: var(--bg-2); padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) 2rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-brand { max-width: 34ch; }
.footer-brand p { color: var(--ink-mute); margin-top: 0.9rem; font-size: var(--step--1); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 2.5rem 3.5rem; }
.footer-col h5 { font-family: var(--font-display); font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-col a { color: var(--ink-soft); font-size: var(--step-0); }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); padding-top: 1.5rem; border-top: 1px solid var(--line-soft); color: var(--ink-mute); font-size: var(--step--1); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .card:hover, .service:hover, .industry:hover { transform: none !important; }
}
