/* =========================================================
   ADEM Studio — stylesheet principal
   ========================================================= */

:root {
  --bg: #07070b;
  --bg-2: #0d0d14;
  --surface: #12121b;
  --surface-2: #181824;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eeeef3;
  --muted: #9b9bad;
  --accent: #c8ff4d;
  --accent-ink: #0b0f00;
  --violet: #7c5cff;
  --cyan: #22d3ee;
  --pink: #ff5c9d;
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

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

::selection { background: var(--accent); color: var(--accent-ink); }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.display {
  font-size: clamp(2.8rem, 7vw, 6.2rem);
  letter-spacing: -0.045em;
}

.h2 { font-size: clamp(2.1rem, 4.6vw, 3.8rem); }
.h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--muted);
  max-width: 640px;
}

.muted { color: var(--muted); }

.gradient-text {
  background: linear-gradient(100deg, var(--accent) 0%, var(--cyan) 45%, var(--violet) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: shine 6s linear infinite;
}

@keyframes shine { to { background-position: 200% center; } }

.outline-text {
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.35);
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.section-head .lead { max-width: 460px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center .lead { max-width: 620px; }

/* ---------- buttons ---------- */
.btn {
  --bg-btn: var(--accent);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.98rem;
  background: var(--bg-btn);
  color: var(--accent-ink);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  white-space: nowrap;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateY(101%);
  border-radius: inherit;
  transition: transform 0.5s var(--ease);
  z-index: -1;
}

.btn:hover::after { transform: translateY(0); }
.btn:hover { box-shadow: 0 10px 40px -10px rgba(200, 255, 77, 0.55); }

.btn .arrow {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-ink);
  color: var(--accent);
  font-size: 0.85rem;
  transition: transform 0.4s var(--ease);
}

.btn:hover .arrow { transform: rotate(-45deg); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-2);
}

.btn-ghost::after { background: var(--text); }
.btn-ghost:hover { color: var(--bg); box-shadow: none; }
.btn-ghost .arrow { background: var(--text); color: var(--bg); }
.btn-ghost:hover .arrow { background: var(--bg); color: var(--text); }

.btn-sm { padding: 11px 20px; font-size: 0.9rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent);
}

.link-arrow span { transition: transform 0.3s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }

/* ---------- loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.loader.hidden { opacity: 0; visibility: hidden; }

.loader-logo {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  gap: 2px;
}

.loader-logo span {
  display: inline-block;
  animation: loaderUp 0.8s var(--ease) both;
}

.loader-logo span:nth-child(2) { animation-delay: 0.05s; }
.loader-logo span:nth-child(3) { animation-delay: 0.1s; }
.loader-logo span:nth-child(4) { animation-delay: 0.15s; }
.loader-logo span:nth-child(5) { animation-delay: 0.2s; color: var(--accent); }

@keyframes loaderUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ---------- cursor ---------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1500;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.cursor-dot { width: 6px; height: 6px; background: var(--accent); }

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(200, 255, 77, 0.5);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s, border-color 0.3s, opacity 0.3s;
}

.cursor-ring.hover {
  width: 70px;
  height: 70px;
  background: rgba(200, 255, 77, 0.08);
  border-color: var(--accent);
}

body.has-cursor .cursor-dot,
body.has-cursor .cursor-ring { opacity: 1; }

@media (hover: none), (max-width: 900px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--cyan), var(--violet));
  z-index: 1200;
}

/* ---------- header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 22px 0;
  transition: padding 0.4s var(--ease), background 0.4s, border-color 0.4s, transform 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  padding: 14px 0;
  background: rgba(7, 7, 11, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-color: var(--line);
}

.header.hide { transform: translateY(-100%); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 800;
  position: relative;
  overflow: hidden;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(255, 255, 255, 0.7) 80%, transparent 90%);
  animation: spin 4s linear infinite;
  mix-blend-mode: overlay;
}

@keyframes spin { to { transform: rotate(360deg); } }

.logo small {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.nav-links a {
  position: relative;
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 0.93rem;
  color: var(--muted);
  transition: color 0.3s, background 0.3s;
}

.nav-links a:hover { color: var(--text); }

.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.nav-links a.active::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.nav-cta { display: flex; align-items: center; gap: 14px; }

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  position: relative;
  z-index: 1001;
}

.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}

.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 26px; }

.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: var(--bg);
  padding: 120px 24px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: circle(0% at calc(100% - 47px) 45px);
  transition: clip-path 0.8s var(--ease);
}

.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 47px) 45px); }

.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s;
}

.mobile-menu nav a small {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
}

.mobile-menu nav a.active { color: var(--accent); }

.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
.menu-open .mobile-menu nav a:nth-child(1) { transition-delay: 0.2s; }
.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: 0.25s; }
.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: 0.3s; }
.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: 0.35s; }
.menu-open .mobile-menu nav a:nth-child(5) { transition-delay: 0.4s; }
.menu-open .mobile-menu nav a:nth-child(6) { transition-delay: 0.45s; }

.mobile-menu-foot { color: var(--muted); font-size: 0.95rem; display: grid; gap: 6px; }

/* ---------- background fx ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.blob-1 { width: 520px; height: 520px; background: var(--violet); top: -120px; right: -80px; animation: float1 18s ease-in-out infinite; }
.blob-2 { width: 420px; height: 420px; background: var(--cyan); bottom: -100px; left: -120px; opacity: 0.25; animation: float2 22s ease-in-out infinite; }
.blob-3 { width: 300px; height: 300px; background: var(--accent); top: 40%; left: 45%; opacity: 0.12; animation: float1 26s ease-in-out infinite reverse; }

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, 60px) scale(1.15); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(90px, -50px) scale(0.9); }
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  padding: 160px 0 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero .container { position: relative; z-index: 2; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 30px;
}

.badge b {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(200, 255, 77, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(200, 255, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 255, 77, 0); }
}

.hero h1 { margin-bottom: 28px; }

.rotator {
  display: inline-block;
  position: relative;
  color: var(--accent);
}

.rotator::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 0.85em;
  margin-left: 6px;
  background: var(--accent);
  vertical-align: -0.05em;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero .lead { margin-bottom: 40px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-proof {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.avatars { display: flex; }

.avatars span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -10px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #111;
}

.avatars span:first-child { margin-left: 0; }

.stars { color: var(--accent); letter-spacing: 2px; }

/* hero visual: composed browser mock */
.hero-visual {
  position: relative;
  height: 560px;
  perspective: 1400px;
}

.browser {
  position: absolute;
  inset: 40px 0 40px 20px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.03);
  transform: rotateY(-14deg) rotateX(6deg);
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease);
}

.hero-visual:hover .browser { transform: rotateY(-6deg) rotateX(3deg); }

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.browser-bar i:nth-child(2) { background: #febc2e; }
.browser-bar i:nth-child(3) { background: #28c840; }

.browser-url {
  margin-left: 14px;
  flex: 1;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}

.browser-body { padding: 26px; display: grid; gap: 16px; }

.sk { background: rgba(255, 255, 255, 0.06); border-radius: 8px; }
.sk-nav { display: flex; justify-content: space-between; align-items: center; }
.sk-nav div { display: flex; gap: 10px; }

.sk-hero {
  height: 170px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  position: relative;
  overflow: hidden;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}

.sk-hero::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--accent);
  right: -50px;
  top: -60px;
  opacity: 0.8;
  animation: float1 8s ease-in-out infinite;
}

.sk-hero .sk { background: rgba(255, 255, 255, 0.85); position: relative; }

.sk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sk-cards .sk { height: 90px; border-radius: 12px; }

.float-card {
  position: absolute;
  background: rgba(24, 24, 36, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  z-index: 3;
  font-size: 0.85rem;
}

.fc-1 { top: 0; left: -30px; animation: bob 6s ease-in-out infinite; }
.fc-2 { bottom: 10px; right: -10px; animation: bob 7s ease-in-out infinite 1s; }
.fc-3 { top: 46%; right: -36px; animation: bob 5s ease-in-out infinite 0.5s; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.fc-label { color: var(--muted); font-size: 0.75rem; margin-bottom: 4px; }
.fc-value { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; }
.fc-value em { font-style: normal; color: var(--accent); font-size: 0.9rem; margin-left: 6px; }

.speed-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 98%, rgba(255, 255, 255, 0.08) 98% 100%);
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
}

.speed-ring span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--accent);
  font-size: 1.15rem;
}

.mini-chart { display: flex; align-items: flex-end; gap: 5px; height: 40px; margin-top: 8px; }
.mini-chart i { width: 8px; border-radius: 3px; background: linear-gradient(to top, var(--violet), var(--cyan)); }

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-hint .mouse {
  width: 22px;
  height: 36px;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  position: relative;
}

.scroll-hint .mouse::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 7px;
  border-radius: 3px;
  background: var(--accent);
  transform: translateX(-50%);
  animation: wheel 1.8s ease-in-out infinite;
}

@keyframes wheel {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  padding: 200px 0 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-hero .container { position: relative; z-index: 2; }

.breadcrumb {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.breadcrumb a:hover { color: var(--accent); }

.page-hero h1 { max-width: 1000px; margin-bottom: 28px; }

.page-hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  overflow: hidden;
  display: flex;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 60px;
  padding-right: 60px;
  flex-shrink: 0;
  animation: marquee 40s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.3s;
}

.marquee-item:hover { color: var(--text); }
.marquee-item::after { content: "✦"; color: var(--accent); font-size: 0.9rem; margin-left: 46px; }

@keyframes marquee { to { transform: translateX(-100%); } }

.marquee.big .marquee-item {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.25);
}

.marquee.big .marquee-item:nth-child(even) { color: var(--text); -webkit-text-stroke: 0; }
.marquee.big .marquee-item::after { font-size: 2rem; -webkit-text-stroke: 0; }
.marquee.big { border: 0; padding: 40px 0; }

/* ---------- cards / glow ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s;
}

.glow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(200, 255, 77, 0.09), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.glow:hover::before { opacity: 1; }
.glow:hover { border-color: var(--line-2); }

/* services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card { display: flex; flex-direction: column; min-height: 360px; }
.service-card:hover { transform: translateY(-6px); }

.service-num {
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: auto;
}

.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(200, 255, 77, 0.08);
  border: 1px solid rgba(200, 255, 77, 0.2);
  color: var(--accent);
  margin: 40px 0 28px;
  transition: transform 0.5s var(--ease), background 0.4s, color 0.4s;
}

.icon-box svg { width: 28px; height: 28px; }
.service-card:hover .icon-box { transform: rotate(-8deg) scale(1.08); background: var(--accent); color: var(--accent-ink); }

.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: 0.97rem; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

.tag {
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
  color: var(--muted);
}

.service-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(34, 211, 238, 0.06) 60%), var(--surface);
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  padding: 44px 32px;
  border-right: 1px solid var(--line);
  position: relative;
}

.stat:last-child { border-right: 0; }

.stat-num {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-num sup { color: var(--accent); font-size: 0.5em; vertical-align: top; margin-left: 2px; }
.stat p { color: var(--muted); font-size: 0.95rem; }

/* ---------- why / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature-list { display: grid; gap: 4px; }

.feature-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.feature-item:last-child { border-bottom: 0; }

.feature-item .check {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--accent);
}

.feature-item .check svg { width: 22px; height: 22px; }
.feature-item h4 { font-size: 1.15rem; margin-bottom: 6px; }
.feature-item p { color: var(--muted); font-size: 0.95rem; }

/* code window */
.code-window {
  background: #0a0a12;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(124, 92, 255, 0.35);
}

.code-window pre {
  padding: 28px;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.85;
  color: #c9c9d6;
  overflow-x: auto;
  min-height: 340px;
}

.tk-k { color: #c792ea; }
.tk-s { color: var(--accent); }
.tk-f { color: var(--cyan); }
.tk-c { color: #5c5c75; font-style: italic; }
.tk-n { color: #f78c6c; }

.typed-caret {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}

/* ---------- process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.process::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 10%, var(--line-2) 90%, transparent);
}

.process-line {
  position: absolute;
  top: 34px;
  left: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 2s var(--ease);
}

.process.in .process-line { transform: scaleX(1); }

.step { position: relative; padding-top: 0; }

.step-dot {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}

.step:hover .step-dot { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.step h4 { font-size: 1.3rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.95rem; }
.step .duration { display: inline-block; margin-top: 14px; font-size: 0.8rem; color: var(--accent); }

/* ---------- portfolio ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 11px 22px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  font-size: 0.92rem;
  transition: all 0.3s var(--ease);
}

.filter-btn:hover { color: var(--text); border-color: var(--text); }
.filter-btn.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }

.filter-btn .count { opacity: 0.6; margin-left: 4px; font-size: 0.8em; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.work-item {
  display: block;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.work-item.hide { display: none; }
.work-item.fade { opacity: 0; transform: scale(0.96); }

.work-item.tall .work-thumb { aspect-ratio: 4 / 4.4; }

.work-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  margin-bottom: 22px;
  border: 1px solid var(--line);
}

.work-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.25), transparent 50%);
  pointer-events: none;
}

.work-thumb .mock {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 14%;
  bottom: -6%;
  background: var(--mock-bg, #fff);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.45);
  padding: 16px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  transition: transform 0.8s var(--ease);
}

.work-item:hover .mock { transform: translateY(-4%) scale(1.03); }

.mock-nav { display: flex; justify-content: space-between; align-items: center; }
.mock-nav b { width: 50px; height: 10px; border-radius: 4px; background: var(--mock-ink, #111); }
.mock-nav span { display: flex; gap: 6px; }
.mock-nav span i { width: 22px; height: 6px; border-radius: 3px; background: var(--mock-ink, #111); opacity: 0.25; }

.mock-hero {
  border-radius: 8px;
  background: var(--mock-accent, #eee);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.mock-hero i { display: block; height: 10px; border-radius: 4px; background: var(--mock-ink, #111); }
.mock-hero i:nth-child(1) { width: 70%; height: 14px; }
.mock-hero i:nth-child(2) { width: 50%; height: 14px; }
.mock-hero i:nth-child(3) { width: 30%; opacity: 0.4; height: 6px; margin-top: 4px; }
.mock-hero i:nth-child(4) { width: 64px; height: 18px; border-radius: 20px; margin-top: 6px; background: var(--mock-btn, #111); }

.mock-hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: 15%;
  width: 45%;
  aspect-ratio: 1;
  border-radius: var(--mock-shape, 50%);
  background: var(--mock-btn, #111);
  opacity: 0.85;
}

.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-row i { height: 44px; border-radius: 6px; background: var(--mock-ink, #111); opacity: 0.08; }

.work-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.78rem;
}

.work-view {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s var(--ease);
}

.work-item:hover .work-view { transform: translate(-50%, -50%) scale(1); }

.work-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.work-meta h3 { font-size: 1.5rem; margin-bottom: 4px; }
.work-meta p { color: var(--muted); font-size: 0.93rem; }
.work-year { color: var(--muted); font-size: 0.9rem; border: 1px solid var(--line-2); padding: 4px 12px; border-radius: 100px; }

/* ---------- testimonials ---------- */
.testi-wrap { position: relative; }

.testi-track {
  display: flex;
  transition: transform 0.8s var(--ease);
}

.testi-viewport { overflow: hidden; }

.testi {
  flex: 0 0 100%;
  padding: 0 4px;
}

.testi-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 980px;
}

.testi blockquote {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.testi blockquote::before {
  content: "“";
  display: block;
  font-size: 5rem;
  line-height: 0.6;
  color: var(--accent);
  margin-bottom: 18px;
}

.testi-author { display: flex; align-items: center; gap: 16px; }

.testi-author .av {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #111;
  font-size: 1.1rem;
}

.testi-author b { display: block; font-size: 1.05rem; }
.testi-author span { color: var(--muted); font-size: 0.9rem; }

.testi-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 56px;
  gap: 20px;
}

.testi-dots { display: flex; gap: 8px; }

.testi-dots button {
  width: 36px;
  height: 4px;
  border-radius: 4px;
  background: var(--line-2);
  transition: background 0.3s, width 0.4s var(--ease);
}

.testi-dots button.active { background: var(--accent); width: 60px; }

.testi-arrows { display: flex; gap: 10px; }

.round-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.round-btn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- pricing ---------- */
.toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  margin-bottom: 56px;
  position: relative;
}

.toggle-wrap button {
  position: relative;
  z-index: 1;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.3s;
}

.toggle-wrap button.active { color: var(--accent-ink); font-weight: 600; }

.toggle-pill {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  border-radius: 100px;
  background: var(--accent);
  transition: transform 0.5s var(--ease), width 0.5s var(--ease);
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-card { display: flex; flex-direction: column; padding: 40px 36px; }
.price-card:hover { transform: translateY(-6px); }

.price-card.popular {
  background: linear-gradient(180deg, rgba(200, 255, 77, 0.1), transparent 45%), var(--surface);
  border-color: rgba(200, 255, 77, 0.35);
}

.popular-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
}

.price-card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.price-card .desc { color: var(--muted); font-size: 0.95rem; margin-bottom: 28px; min-height: 48px; }

.price {
  font-family: var(--font-head);
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price small { font-size: 1rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.price-from { font-size: 0.85rem; color: var(--muted); margin-bottom: 30px; }

.price-list { display: grid; gap: 14px; margin-bottom: 36px; flex: 1; }

.price-list li {
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
  color: #d3d3dd;
}

.price-list li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-top: 2px;
  background: rgba(200, 255, 77, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8ff4d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.price-list li.no { color: var(--muted); text-decoration: line-through; opacity: 0.6; }
.price-list li.no::before { background: rgba(255, 255, 255, 0.05); }

.price-card .btn { justify-content: center; }

/* compare table */
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

.compare th,
.compare td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.compare thead th {
  font-family: var(--font-head);
  font-size: 1.1rem;
  background: var(--surface);
  position: sticky;
  top: 0;
}

.compare td:not(:first-child),
.compare th:not(:first-child) { text-align: center; }

.compare tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--accent); font-weight: 700; }
.compare .nope { color: #55556a; }
.compare .group td { background: var(--bg-2); color: var(--accent); font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600; }

/* calculator */
.calc {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}

.calc-group { margin-bottom: 36px; }
.calc-group:last-child { margin-bottom: 0; }

.calc-label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 16px;
}

.calc-label span { color: var(--accent); font-family: var(--font-head); }

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.option-grid.two { grid-template-columns: repeat(2, 1fr); }

.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }

.opt label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  height: 100%;
}

.opt label b { font-size: 0.97rem; }
.opt label small { color: var(--muted); font-size: 0.82rem; }
.opt label:hover { border-color: var(--text); }

.opt input:checked + label {
  border-color: var(--accent);
  background: rgba(200, 255, 77, 0.07);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.opt input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent) var(--p, 20%), rgba(255, 255, 255, 0.1) var(--p, 20%));
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--bg);
  cursor: pointer;
}

.calc-result { position: sticky; top: 110px; }

.calc-total {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 10px 0 6px;
}

.calc-breakdown { display: grid; gap: 10px; margin: 28px 0; padding-top: 24px; border-top: 1px dashed var(--line-2); font-size: 0.93rem; }
.calc-breakdown div { display: flex; justify-content: space-between; color: var(--muted); }
.calc-breakdown div b { color: var(--text); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 900px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.3s;
}

.faq-item.open { border-color: rgba(200, 255, 77, 0.35); }

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  text-align: left;
  font-weight: 600;
  font-size: 1.07rem;
}

.faq-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  position: relative;
  transition: transform 0.4s var(--ease), background 0.3s;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--text);
  transform: translate(-50%, -50%);
}

.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.4s var(--ease); }
.faq-item.open .faq-icon { background: var(--accent); border-color: var(--accent); transform: rotate(180deg); }
.faq-item.open .faq-icon::before { background: var(--accent-ink); }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(0); background: var(--accent-ink); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}

.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 28px 26px; color: var(--muted); max-width: 760px; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  border-radius: 32px;
  padding: 100px 60px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(135deg, #1a1033, #0c1a24);
  border: 1px solid var(--line-2);
}

.cta .blob { opacity: 0.55; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(2.4rem, 6vw, 5rem); margin-bottom: 22px; }
.cta .lead { margin: 0 auto 40px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- about ---------- */
.about-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(200, 255, 77, 0.5), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(124, 92, 255, 0.7), transparent 50%),
    linear-gradient(160deg, #15152a, #0a0a12);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
}

.about-visual .big-mark {
  font-family: var(--font-head);
  font-size: clamp(8rem, 18vw, 14rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.6);
  animation: bob 8s ease-in-out infinite;
}

.about-visual .float-card { position: absolute; }

.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.value-card h3 { margin: 22px 0 10px; }
.value-card p { color: var(--muted); }

.value-card .big-num {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
  transition: -webkit-text-stroke-color 0.4s, color 0.4s;
}

.value-card:hover .big-num { color: var(--accent); -webkit-text-stroke-color: var(--accent); }

.timeline { position: relative; padding-left: 40px; }

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--violet), transparent);
}

.tl-item { position: relative; padding-bottom: 48px; }
.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.tl-item .when { color: var(--accent); font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.tl-item h4 { font-size: 1.35rem; margin-bottom: 8px; }
.tl-item p { color: var(--muted); }

.skills { display: grid; gap: 22px; }

.skill-top { display: flex; justify-content: space-between; margin-bottom: 10px; font-weight: 500; }
.skill-top span { color: var(--muted); font-family: var(--font-head); }

.skill-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }

.skill-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--accent));
  transition: width 1.6s var(--ease);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.tech {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  transition: transform 0.4s var(--ease), border-color 0.3s, color 0.3s;
}

.tech b { font-family: var(--font-head); font-size: 1.6rem; color: var(--text); }
.tech:hover { transform: translateY(-4px); border-color: var(--accent); color: var(--text); }

/* ---------- services detail ---------- */
.svc-detail {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.svc-detail:first-child { border-top: 0; padding-top: 0; }

.svc-detail-head { position: sticky; top: 120px; align-self: start; }
.svc-detail-head .service-num { display: block; margin-bottom: 14px; color: var(--accent); }
.svc-detail-head h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 20px; }

.svc-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.svc-point {
  padding: 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
}

.svc-point h4 { font-size: 1.08rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.svc-point h4::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.svc-point p { color: var(--muted); font-size: 0.93rem; }

.svc-deliver {
  grid-column: span 2;
  padding: 26px;
  border-radius: var(--radius-sm);
  background: linear-gradient(120deg, rgba(124, 92, 255, 0.15), rgba(34, 211, 238, 0.08));
  border: 1px solid var(--line-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.svc-deliver div b { display: block; font-family: var(--font-head); font-size: 1.5rem; }
.svc-deliver div span { color: var(--muted); font-size: 0.9rem; }

.side-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
}

.contact-info { display: grid; gap: 14px; }

.contact-line {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}

.contact-line:hover { border-color: var(--accent); transform: translateX(6px); }
.contact-line .icon-box { margin: 0; width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0; }
.contact-line .icon-box svg { width: 22px; height: 22px; }
.contact-line small { color: var(--muted); display: block; font-size: 0.82rem; }
.contact-line b { font-weight: 600; }

.availability {
  padding: 26px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(200, 255, 77, 0.25);
  background: rgba(200, 255, 77, 0.05);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.availability .pulse { margin-top: 8px; flex-shrink: 0; }

.form { padding: 44px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { position: relative; margin-bottom: 18px; }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 26px 18px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.field textarea { min-height: 150px; resize: vertical; }

.field label {
  position: absolute;
  left: 19px;
  top: 18px;
  color: var(--muted);
  pointer-events: none;
  transition: all 0.25s var(--ease);
  font-size: 0.97rem;
}

.field input:focus,
.field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(200, 255, 77, 0.1); }

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: 8px;
  font-size: 0.75rem;
  color: var(--accent);
}

.field.error input,
.field.error textarea { border-color: var(--pink); }

.field .err {
  display: none;
  color: var(--pink);
  font-size: 0.8rem;
  margin-top: 6px;
}

.field.error .err { display: block; }

.chip-group { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip-label { font-weight: 600; margin-bottom: 12px; display: block; font-size: 0.95rem; }

.chip input { position: absolute; opacity: 0; pointer-events: none; }

.chip span {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.chip span:hover { border-color: var(--text); color: var(--text); }
.chip input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 10px; }
.form-foot small { color: var(--muted); max-width: 280px; }

.form-success {
  display: none;
  text-align: center;
  padding: 40px 10px;
}

.form-success .tick {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  margin: 0 auto 26px;
  animation: pop 0.6s var(--ease);
}

.form-success .tick svg { width: 42px; height: 42px; }

@keyframes pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.form.sent form { display: none; }
.form.sent .form-success { display: block; }

.map-card {
  height: 340px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--bg-2);
}

.map-card .road { position: absolute; background: rgba(255, 255, 255, 0.07); }
.map-card .r1 { left: 0; right: 0; top: 55%; height: 14px; transform: rotate(-6deg); }
.map-card .r2 { top: 0; bottom: 0; left: 38%; width: 10px; transform: rotate(12deg); }
.map-card .r3 { left: 0; right: 0; top: 25%; height: 6px; transform: rotate(8deg); }

.map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.map-pin b {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.map-pin i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  animation: pulse 2s infinite;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 100px 0 40px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
}

.footer h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 600;
}

.footer ul { display: grid; gap: 12px; }
.footer ul a { color: #cfcfda; transition: color 0.3s; }
.footer ul a:hover { color: var(--accent); }

.footer-brand p { color: var(--muted); max-width: 320px; margin: 18px 0 26px; }

.newsletter {
  display: flex;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 5px;
  max-width: 360px;
}

.newsletter input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  padding: 0 16px;
}

.footer-big {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(4rem, 17vw, 16rem);
  letter-spacing: -0.06em;
  line-height: 0.85;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  margin-bottom: 30px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.socials { display: flex; gap: 10px; }

.socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  transition: all 0.3s;
}

.socials a svg { width: 18px; height: 18px; }
.socials a:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 800;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.4s var(--ease);
}

.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); color: var(--accent-ink); }

.to-top svg.ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); }
.to-top svg.ring circle { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 157; stroke-dashoffset: 157; }

/* ---------- reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.in { opacity: 1; transform: none; }

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

.split-words .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
}

.split-words .w > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1s var(--ease);
}

.split-words.in .w > span { transform: none; }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 120px);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 14px 24px;
  border-radius: 100px;
  font-weight: 600;
  z-index: 1300;
  transition: transform 0.5s var(--ease);
}

.toast.show { transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .burger { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 480px; max-width: 640px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card.featured { grid-column: span 2; }
  .pricing { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .tech-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: 1fr; }
  .calc-result { position: static; }
}

@media (max-width: 900px) {
  .section { padding: 90px 0; }
  .split, .contact-grid, .svc-detail { grid-template-columns: 1fr; gap: 50px; }
  .svc-detail-head { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .process::before, .process-line { display: none; }
  .work-grid { grid-template-columns: 1fr; }
  .work-item.tall .work-thumb { aspect-ratio: 4 / 3; }
  .values { grid-template-columns: 1fr; }
  .cta { padding: 70px 26px; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .hero { padding-top: 130px; }
  .hero-visual { height: 380px; }
  .fc-3 { display: none; }
  .fc-1 { left: 0; }
  .fc-2 { right: 0; }
  .browser { inset: 30px 0 30px 0; }
  .sk-cards .sk { height: 60px; }
  .sk-hero { height: 120px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card.featured { grid-column: span 1; }
  .process { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form { padding: 28px 22px; }
  .svc-points { grid-template-columns: 1fr; }
  .svc-deliver { grid-column: span 1; }
  .option-grid { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .page-hero { padding: 150px 0 70px; }
  .card { padding: 28px; }
  .scroll-hint { display: none; }
  .testi-controls { flex-direction: column-reverse; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .split-words .w > span { opacity: 1; transform: none; }
}

[id] { scroll-margin-top: 110px; }
.hero h1.display { font-size: clamp(2.6rem, 5.2vw, 5rem); }

/* meniul mobil nu e accesibil cât timp e închis */
.mobile-menu { visibility: hidden; transition: clip-path 0.8s var(--ease), visibility 0s linear 0.8s; }
.menu-open .mobile-menu { visibility: visible; transition: clip-path 0.8s var(--ease), visibility 0s; }
.menu-open .header { z-index: 960; transform: none; }

/* ---------- lansare 2027 ---------- */
.launch-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--accent);
  padding: 8px 14px;
  border: 1px solid rgba(200, 255, 77, 0.3);
  border-radius: 100px;
  background: rgba(200, 255, 77, 0.06);
  white-space: nowrap;
}

.launch { overflow: hidden; background: var(--bg-2); }

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
}

.cd-box {
  text-align: center;
  padding: 34px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: rgba(18, 18, 27, 0.7);
  backdrop-filter: blur(10px);
}

.cd-box b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}

.cd-box:first-child b { color: var(--accent); }
.cd-box span { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em; }

.launch-perks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin-top: 40px;
  color: var(--muted);
}

.launch-perks div { display: flex; align-items: center; gap: 10px; }
.launch-perks b { color: var(--accent); font-family: var(--font-head); }

@media (max-width: 1480px) { .launch-chip { display: none; } }
.logo { white-space: nowrap; }
@media (max-width: 640px) {
  .countdown { grid-template-columns: repeat(2, 1fr); }
  .cd-box { padding: 24px 8px; }
}

/* formular inactiv până la lansare */
.form-notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; margin-bottom: 30px; border-radius: var(--radius-sm); border: 1px solid rgba(200, 255, 77, 0.3); background: rgba(200, 255, 77, 0.06); color: var(--text); font-size: 0.93rem; }
.form-notice .pulse { margin-top: 7px; flex-shrink: 0; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn:disabled::after { display: none; }
