/* =============================================================
   Codev — Web & Software Development Studio
   Main stylesheet
   Theme: Dark + cyan/indigo accents
   ============================================================= */

/* ----------------------------------------------------------------
   1. Design tokens
----------------------------------------------------------------- */
:root {
  /* Backgrounds */
  --bg: #070b16;
  --bg-2: #0a0f1e;
  --bg-3: #0d1426;
  --surface: #0f1830;
  --card: rgba(255, 255, 255, 0.025);
  --card-hover: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --text: #e9eefb;
  --text-soft: #b6c2db;
  --muted: #8593b0;
  --faint: #5b6783;

  /* Accents */
  --cyan: #22d3ee;
  --indigo: #6366f1;
  --violet: #a855f7;
  --accent: var(--cyan);
  --grad: linear-gradient(135deg, #22d3ee 0%, #6366f1 55%, #a855f7 110%);
  --grad-soft: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(99, 102, 241, 0.16));
  --glow-cyan: rgba(34, 211, 238, 0.35);
  --glow-indigo: rgba(99, 102, 241, 0.4);

  /* Typography */
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, monospace;

  /* Layout */
  --container: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --gap: clamp(1rem, 2vw, 1.6rem);

  /* Effects */
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 20px 60px -24px var(--glow-indigo);
  --t: 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 74px;
}

/* ----------------------------------------------------------------
   2. Reset & base
----------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

/* Ambient page background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 78% -8%, rgba(99, 102, 241, 0.16), transparent 60%),
    radial-gradient(760px 520px at 8% 4%, rgba(34, 211, 238, 0.12), transparent 58%),
    radial-gradient(700px 700px at 50% 110%, rgba(168, 85, 247, 0.1), transparent 60%);
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

::selection { background: rgba(34, 211, 238, 0.3); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----------------------------------------------------------------
   3. Typography
----------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
}

h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

p { color: var(--text-soft); }

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

/* ----------------------------------------------------------------
   4. Layout helpers
----------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.section {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.2rem, 5vw, 3.5rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.section-head.center .eyebrow { justify-content: center; }

.section-head p {
  margin-top: 1rem;
  font-size: 1.07rem;
  color: var(--muted);
}

.lead { font-size: 1.12rem; color: var(--text-soft); }

/* ----------------------------------------------------------------
   5. Buttons
----------------------------------------------------------------- */
.btn {
  --_pad: 0.85rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: var(--_pad);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.97rem;
  letter-spacing: -0.01em;
  border-radius: 999px;
  transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t);
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; }

.btn-primary {
  background: var(--grad);
  color: #06101f;
  font-weight: 600;
  box-shadow: 0 12px 30px -12px var(--glow-cyan);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px -12px var(--glow-indigo);
}

.btn-ghost {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
}

.btn-lg { --_pad: 1.05rem 2rem; font-size: 1.04rem; }
.btn-block { width: 100%; }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--cyan);
  transition: gap var(--t), color var(--t);
}
.btn-text:hover { gap: 0.8rem; color: #fff; }

/* ----------------------------------------------------------------
   6. Language visibility (bilingual)
----------------------------------------------------------------- */
html.lang-id .lang-en,
html.lang-en .lang-id { display: none !important; }

.lang-toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
.lang-toggle button {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  color: var(--muted);
  transition: color var(--t), background var(--t);
}
.lang-toggle button.is-active {
  color: #06101f;
  background: var(--grad);
}
.lang-toggle.in-menu { display: none; }

/* ----------------------------------------------------------------
   7. Navbar
----------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--t), border-color var(--t), backdrop-filter var(--t);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 11, 22, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand-mark { width: 38px; height: 38px; display: block; filter: drop-shadow(0 6px 14px rgba(34, 211, 238, 0.35)); }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -0.03em;
  color: #fff;
}
.brand-dot { color: var(--cyan); }

/* Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}
.nav-menu a {
  position: relative;
  padding: 0.5rem 0.85rem;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: 8px;
  transition: color var(--t);
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.28rem;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav-menu a:hover,
.nav-menu a.active { color: #fff; }
.nav-menu a:hover::after,
.nav-menu a.active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 0.9rem; }

/* Burger */
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-burger span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--t), opacity var(--t);
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------------
   8. Hero
----------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 7vw, 5rem));
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 35%, transparent 78%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  z-index: -1;
  animation: float 16s ease-in-out infinite;
}
.orb-1 { width: 380px; height: 380px; background: rgba(34, 211, 238, 0.5); top: -80px; right: 4%; }
.orb-2 { width: 320px; height: 320px; background: rgba(99, 102, 241, 0.55); top: 120px; left: -60px; animation-delay: -5s; }
.orb-3 { width: 260px; height: 260px; background: rgba(168, 85, 247, 0.4); bottom: -40px; left: 45%; animation-delay: -9s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, -26px) scale(1.08); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
/* allow grid columns to shrink below their content's intrinsic width
   (the code window has non-wrapping lines that would otherwise force overflow) */
.hero-inner > * { min-width: 0; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.5rem 0.45rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 1.6rem;
}
.hero-badge .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--grad);
  color: #06101f;
}

.hero h1 { margin-bottom: 1.3rem; }
.hero h1 .gradient-text { display: inline; }

.hero-sub {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--text-soft);
  max-width: 36ch;
  margin-bottom: 2rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.4rem; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem 2.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
}
.hero-stats .stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.hero-stats .stat span {
  font-size: 0.84rem;
  color: var(--muted);
}

/* Hero code window */
.code-window {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 24, 48, 0.95), rgba(10, 15, 30, 0.95));
  box-shadow: var(--shadow), 0 0 0 1px rgba(34, 211, 238, 0.04);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.code-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.code-bar .dot:nth-child(1) { background: #ff5f57; }
.code-bar .dot:nth-child(2) { background: #febc2e; }
.code-bar .dot:nth-child(3) { background: #28c840; }
.code-bar .file {
  margin-left: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}
.code-body {
  padding: 1.3rem 1.4rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.83rem;
  line-height: 1.95;
  overflow-x: auto;
}
.code-body .ln { display: block; white-space: pre; }
.code-body .c-key { color: #c084fc; }
.code-body .c-fn { color: #22d3ee; }
.code-body .c-str { color: #7dd3a8; }
.code-body .c-var { color: #e9eefb; }
.code-body .c-com { color: #5b6783; }
.code-body .c-num { color: #fbbf72; }
.code-body .cursor {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  vertical-align: -2px;
  background: var(--cyan);
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ----------------------------------------------------------------
   9. Marquee (tech stack)
----------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 1.6rem;
  border-block: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 3.2rem;
  width: max-content;
  animation: scroll-x 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--muted);
  white-space: nowrap;
  transition: color var(--t);
}
.marquee-track span:hover { color: var(--text); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ----------------------------------------------------------------
   10. Cards / grids
----------------------------------------------------------------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  padding: 1.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform var(--t), border-color var(--t), background var(--t), box-shadow var(--t);
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  background: var(--card-hover);
  box-shadow: var(--shadow);
}
.card:hover::after { opacity: 1; }

/* Service card */
.service-card .icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  margin-bottom: 1.2rem;
  color: var(--cyan);
}
.service-card .icon svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: 0.6rem; }
.service-card p { font-size: 0.96rem; color: var(--muted); margin-bottom: 1.1rem; }
.service-card .btn-text { font-size: 0.9rem; }
.service-num {
  position: absolute;
  top: 1.3rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--faint);
}

/* Feature / why card */
.feature-card .icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--grad-soft);
  color: var(--cyan);
  margin-bottom: 1.1rem;
}
.feature-card .icon svg { width: 23px; height: 23px; }
.feature-card h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.95rem; color: var(--muted); }

/* ----------------------------------------------------------------
   11. Split / about blocks
----------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--grad-soft);
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.split-media .badge-float {
  position: absolute;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(10, 15, 30, 0.82);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.split ul.checklist { margin-top: 1.6rem; display: grid; gap: 0.9rem; }
.checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--text-soft);
}
.checklist li svg {
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: 2px;
  color: var(--cyan);
}
.checklist li b { color: #fff; font-weight: 600; }

.prose p + p { margin-top: 1.1rem; }
.prose p { color: var(--text-soft); }

/* ----------------------------------------------------------------
   12. Process steps
----------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: var(--gap); }
.step {
  position: relative;
  padding: 1.7rem 1.7rem 1.7rem 1.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color var(--t), transform var(--t);
}
.step:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.step .num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 0.9rem;
  display: inline-block;
}
.step h3 { font-size: 1.16rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.94rem; color: var(--muted); }

/* ----------------------------------------------------------------
   13. Portfolio
----------------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2.6rem;
}
.filter-btn {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--t), border-color var(--t), background var(--t);
}
.filter-btn:hover { color: var(--text); border-color: var(--border-strong); }
.filter-btn.is-active { color: #06101f; background: var(--grad); border-color: transparent; }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }

.work {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.work:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.work-thumb {
  aspect-ratio: 16 / 10.5;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.work-thumb .mini-browser {
  width: 82%;
  border-radius: 9px 9px 0 0;
  border: 1px solid var(--border-strong);
  border-bottom: none;
  background: rgba(7, 11, 22, 0.6);
  transform: translateY(8%);
  transition: transform var(--t);
  overflow: hidden;
}
.work:hover .mini-browser { transform: translateY(2%); }
.mini-bar { display: flex; gap: 4px; padding: 7px 9px; border-bottom: 1px solid var(--border); }
.mini-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.mini-screen { height: 92px; display: grid; gap: 6px; padding: 12px; }
.mini-screen .bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); }
.mini-screen .bar.w1 { width: 60%; background: var(--grad); height: 12px; }
.mini-screen .bar.w2 { width: 90%; }
.mini-screen .bar.w3 { width: 75%; }
.work-body { padding: 1.2rem 1.4rem 1.4rem; }
.work-cat { font-family: var(--font-mono); font-size: 0.72rem; color: var(--cyan); text-transform: uppercase; letter-spacing: 0.05em; }
.work-body h3 { font-size: 1.15rem; margin: 0.4rem 0 0.3rem; }
.work-body p { font-size: 0.9rem; color: var(--muted); }

/* ----------------------------------------------------------------
   14. Testimonials
----------------------------------------------------------------- */
.quote-card {
  padding: 1.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.quote-card .stars { display: flex; gap: 3px; color: var(--cyan); }
.quote-card .stars svg { width: 17px; height: 17px; }
.quote-card blockquote { font-size: 1.02rem; color: var(--text-soft); line-height: 1.7; }
.quote-meta { display: flex; align-items: center; gap: 0.85rem; margin-top: auto; }
.quote-meta .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: #06101f;
  background: var(--grad);
}
.quote-meta strong { display: block; color: #fff; font-size: 0.95rem; }
.quote-meta span { font-size: 0.82rem; color: var(--muted); }

/* ----------------------------------------------------------------
   15. Pricing
----------------------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); align-items: stretch; }
.price-card {
  position: relative;
  padding: 2rem 1.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  display: flex;
  flex-direction: column;
  transition: transform var(--t), border-color var(--t);
}
.price-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.price-card.featured {
  border-color: transparent;
  background: linear-gradient(var(--bg-3), var(--bg-3)) padding-box,
              var(--grad) border-box;
  box-shadow: var(--shadow-glow);
}
.price-card .plan { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: #fff; }
.price-tag { display: flex; flex-direction: column; gap: 0.15rem; margin: 1rem 0 0.4rem; }
.price-tag .from { font-size: 0.78rem; color: var(--muted); }
.price-tag .amount { font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; color: #fff; line-height: 1; }
.price-card .desc { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.4rem; }
.price-card ul { display: grid; gap: 0.7rem; margin-bottom: 1.7rem; }
.price-card li { display: flex; gap: 0.6rem; font-size: 0.92rem; color: var(--text-soft); }
.price-card li svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--cyan); margin-top: 3px; }
.price-card .btn { margin-top: auto; }
.ribbon {
  position: absolute;
  top: 1.4rem; right: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--grad);
  color: #06101f;
}

/* ----------------------------------------------------------------
   16. CTA band
----------------------------------------------------------------- */
.cta-band {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(600px 300px at 50% -20%, rgba(99, 102, 241, 0.3), transparent 70%),
    linear-gradient(180deg, rgba(17, 24, 48, 0.9), rgba(10, 15, 30, 0.9));
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 75%);
}
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { max-width: 56ch; margin: 0 auto 2rem; color: var(--text-soft); font-size: 1.08rem; }
.cta-band .hero-cta { justify-content: center; margin: 0; }

/* ----------------------------------------------------------------
   17. Inner page header
----------------------------------------------------------------- */
.page-head {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 5rem));
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  overflow: hidden;
}
.page-head .hero-grid { mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 75%); }
.page-head h1 { margin-bottom: 1rem; }
.page-head p { max-width: 60ch; margin-inline: auto; font-size: 1.1rem; color: var(--muted); }
.breadcrumb {
  display: inline-flex;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1.3rem;
}
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb .sep { color: var(--faint); }

/* ----------------------------------------------------------------
   18. Detailed service rows
----------------------------------------------------------------- */
.svc-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.svc-row:last-child { border-bottom: 1px solid var(--border); }
.svc-row .icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  color: var(--cyan);
}
.svc-row .icon svg { width: 28px; height: 28px; }
.svc-row h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.svc-row p { color: var(--text-soft); margin-bottom: 1rem; max-width: 65ch; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.svc-tags span {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}

/* ----------------------------------------------------------------
   19. Contact
----------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 0.45rem;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color var(--t), background var(--t);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.04);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.4rem; }
.form-success {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.08);
  color: var(--text);
  font-size: 0.92rem;
  margin-top: 1rem;
}
.form-success.show { display: flex; }
.form-success svg { width: 20px; height: 20px; color: var(--cyan); flex-shrink: 0; }

.contact-card {
  padding: 1.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.contact-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.contact-item:last-child { border-bottom: none; }
.contact-item .ic {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--grad-soft);
  color: var(--cyan);
}
.contact-item .ic svg { width: 20px; height: 20px; }
.contact-item .label { font-size: 0.78rem; color: var(--muted); }
.contact-item .value { color: #fff; font-weight: 500; }
.contact-item a.value:hover { color: var(--cyan); }

/* ----------------------------------------------------------------
   20. FAQ accordion
----------------------------------------------------------------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.08rem;
  color: #fff;
}
.faq-q .chev {
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: var(--cyan);
  transition: transform var(--t);
}
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t);
}
.faq-a p { padding-bottom: 1.3rem; color: var(--muted); }

/* ----------------------------------------------------------------
   21. Footer
----------------------------------------------------------------- */
.footer {
  position: relative;
  margin-top: clamp(3rem, 8vw, 6rem);
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(10, 15, 30, 0.6));
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.footer-brand .brand { margin-bottom: 1.1rem; }
.footer-brand p { font-size: 0.94rem; color: var(--muted); max-width: 34ch; margin-bottom: 1.3rem; }
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: color var(--t), border-color var(--t), transform var(--t);
}
.footer-social a:hover { color: var(--cyan); border-color: var(--cyan); transform: translateY(-3px); }
.footer-social svg { width: 19px; height: 19px; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a, .footer-col li { font-size: 0.93rem; color: var(--text-soft); transition: color var(--t); }
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.6rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-bottom .made { display: inline-flex; align-items: center; gap: 0.4rem; }
.footer-bottom .made b { color: var(--text-soft); font-weight: 600; }

/* ----------------------------------------------------------------
   22. Scroll reveal
----------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }

/* ----------------------------------------------------------------
   23. Utilities
----------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.hide { display: none !important; }
.divider { height: 1px; background: var(--border); border: none; }

/* ----------------------------------------------------------------
   24. Responsive
----------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; margin-inline: auto; width: 100%; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-menu,
  .nav .lang-toggle.desktop-only { display: none; }
  .nav-burger { display: flex; }

  .nav-menu {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 1rem clamp(1.1rem, 4vw, 2rem) 1.6rem;
    background: rgba(7, 11, 22, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    transition: transform var(--t);
    z-index: 99;
  }
  .nav-menu.open { display: flex; transform: translateY(0); }
  .nav-menu a { padding: 0.85rem 0.6rem; font-size: 1rem; }
  .nav-menu a::after { display: none; }
  .nav-menu .lang-toggle { margin-top: 0.8rem; align-self: flex-start; }
  .lang-toggle.in-menu { display: inline-flex; }
}

@media (max-width: 560px) {
  /* brand + burger only on small phones; CTA lives in the open menu */
  .nav-cta { display: none; }
}

@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4,
  .portfolio-grid, .price-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 1.3rem 1.8rem; }
  .svc-row { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-cta .btn, .cta-band .btn { width: 100%; }
}

/* ----------------------------------------------------------------
   25. Reduced motion
----------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
