/* ==========================================================================
   T&M Technology — public site styles (RTL, dark tech theme)
   ========================================================================== */

:root {
  --bg: #060912;
  --bg-2: #0a0f1d;
  --bg-card: #0c1222;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.26);
  --text: #e6ebf5;
  --muted: #9aa8bf;
  --dim: #64748b;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --indigo: #6366f1;
  --violet: #a855f7;
  --pink: #ec4899;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --grad: linear-gradient(120deg, #22d3ee 0%, #6366f1 52%, #a855f7 100%);
  --grad-soft: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(168, 85, 247, 0.16));
  --radius: 18px;
  --radius-lg: 24px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --glow: 0 18px 50px -18px rgba(99, 102, 241, 0.75);
  --font: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display: 'Space Grotesk', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --header-h: 76px;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
main { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(99, 102, 241, 0.5); color: #fff; }

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

.mono { font-family: var(--mono); }
.accent { color: var(--cyan); }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

.skip-link {
  position: absolute; top: -60px; right: 16px; z-index: 200;
  background: var(--cyan); color: #04121a; padding: 8px 16px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.bg-grid {
  position: absolute; inset: 0 0 auto 0; height: 1100px; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.78em 1.45em; border-radius: 14px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.98rem; line-height: 1.3; cursor: pointer; white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); background-size: 140% 100%; color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 22px 60px -18px rgba(99, 102, 241, 0.95); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(34, 211, 238, 0.6); color: #fff; background: rgba(34, 211, 238, 0.07); }
.btn-sm { padding: 0.6em 1.1em; font-size: 0.9rem; border-radius: 12px; }
.btn-lg { padding: 0.95em 1.75em; font-size: 1.03rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45em; color: var(--cyan); font-weight: 600; font-size: 0.95rem;
  transition: gap 0.25s ease, color 0.25s ease;
}
.link-arrow:hover { gap: 0.8em; color: #67e8f9; }

/* ---------- header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled, .site-header.open {
  background: rgba(6, 9, 18, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 40px; height: 40px; filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.35)); }
.brand-logo { height: 44px; width: auto; max-width: 190px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--display); }
.brand-text strong { font-size: 1.32rem; letter-spacing: 0.06em; font-weight: 700; }
.brand-text small { font-size: 0.68rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 0.97rem;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.active { color: #fff; }
.nav a.active::after {
  content: ''; position: absolute; inset-inline: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad);
}
.nav .nav-cta-mobile { display: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--surface); cursor: pointer; padding: 0; position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.site-header.open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.open .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  position: relative; min-height: min(100vh, 940px); display: flex; align-items: center;
  padding: calc(var(--header-h) + 60px) 0 90px; overflow: hidden; isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.55; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); z-index: -2; pointer-events: none; }
.hero-glow.glow-1 { width: 520px; height: 520px; top: -140px; right: -120px; background: rgba(34, 211, 238, 0.22); animation: drift 16s ease-in-out infinite alternate; }
.hero-glow.glow-2 { width: 560px; height: 560px; bottom: -220px; left: -160px; background: rgba(168, 85, 247, 0.22); animation: drift 18s ease-in-out infinite alternate-reverse; }

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.35rem, 5vw, 4rem); line-height: 1.25; margin: 22px 0 22px; }
.hero-copy h1 .gradient-text { display: block; }
.lead { font-size: clamp(1.03rem, 1.4vw, 1.18rem); color: var(--muted); max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 30px; }
.hero-cta.center { justify-content: center; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--muted); font-size: 0.95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--green); }

.badge-live {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 14px; border-radius: 999px;
  background: rgba(34, 211, 238, 0.07); border: 1px solid rgba(34, 211, 238, 0.28); color: #a5f3fc; font-size: 0.9rem; font-weight: 500;
}
.badge-live .dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.badge-live .dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--green); opacity: 0;
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.hero-visual { position: relative; }
.terminal {
  position: relative; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 21, 40, 0.92), rgba(8, 12, 26, 0.94));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.02) inset, 0 0 90px -30px rgba(34, 211, 238, 0.45);
  backdrop-filter: blur(10px);
}
.terminal::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(34, 211, 238, 0.55), transparent 35%, transparent 65%, rgba(168, 85, 247, 0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}
.terminal-bar .tl { width: 12px; height: 12px; border-radius: 50%; }
.tl.red { background: #ff5f57; }
.tl.yellow { background: #febc2e; }
.tl.green { background: #28c840; }
.terminal-bar em { margin-left: auto; margin-right: auto; font-style: normal; font-size: 0.8rem; color: var(--dim); transform: translateX(-26px); }
.terminal-body {
  margin: 0; padding: 22px 24px; font-size: 0.86rem; line-height: 1.85; text-align: left; color: #cbd5e1;
  min-height: 352px; white-space: pre; overflow-x: auto;
}
.terminal-status {
  display: flex; gap: 18px; padding: 9px 18px; font-size: 0.72rem; color: var(--dim);
  border-top: 1px solid var(--border); background: rgba(255, 255, 255, 0.02);
}
.terminal-status span { display: inline-flex; align-items: center; gap: 6px; }
.terminal-status span:last-child { margin-left: auto; }
.terminal-status .ok { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.tk-c { color: #5b6b85; font-style: italic; }
.tk-k { color: #c084fc; }
.tk-f { color: #22d3ee; }
.tk-s { color: #34d399; }
.tk-v { color: #f472b6; }
.tk-n { color: #fbbf24; }
.type-cursor {
  display: inline-block; width: 8px; height: 1.15em; vertical-align: text-bottom; margin-left: 1px;
  background: var(--cyan); animation: blink 1s steps(1) infinite;
}

.float-chip, .float-card {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(12, 18, 34, 0.82); border: 1px solid var(--border-strong); backdrop-filter: blur(12px);
  border-radius: 14px; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.8); font-size: 0.85rem; font-weight: 600;
  animation: float 6s ease-in-out infinite;
}
.float-chip { padding: 9px 14px; font-family: var(--mono); font-size: 0.78rem; }
.float-chip .icon { color: var(--cyan); }
.chip-1 { top: -22px; left: 12%; }
.chip-2 { top: 34%; right: -26px; animation-delay: -2s; }
.chip-2 .icon { color: var(--amber); }
.chip-3 { bottom: 64px; left: -30px; animation-delay: -4s; }
.chip-3 .icon { color: var(--green); }
.float-card { bottom: -30px; right: 10%; padding: 12px 16px; gap: 12px; animation-delay: -3s; white-space: nowrap; }
.float-card strong { display: block; font-family: var(--display); font-size: 1rem; }
.float-card small { color: var(--muted); font-weight: 500; font-size: 0.8rem; }
.float-card-icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--grad);
}

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 14px; border: 2px solid var(--border-strong);
}
.scroll-hint span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan);
  animation: scroll-dot 1.8s ease-in-out infinite;
}

/* ---------- marquee ---------- */

.marquee {
  position: relative; overflow: hidden; padding: 22px 0; border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  -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; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; gap: 46px; padding-right: 46px; }
.marquee-group span {
  display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.98rem; white-space: nowrap;
  transition: color 0.2s ease;
}
.marquee-group span:hover { color: #fff; }
.marquee-group i { width: 7px; height: 7px; border-radius: 2px; background: var(--grad); transform: rotate(45deg); }

/* ---------- sections ---------- */

.section { position: relative; padding: 110px 0; }
.section-tight { padding-top: 60px; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.045) 18%, rgba(99, 102, 241, 0.045) 82%, transparent); }
.section-head { text-align: center; max-width: 740px; margin: 0 auto 58px; }
.section-head h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }
.section-more { text-align: center; margin-top: 48px; }
.eyebrow {
  display: inline-block; color: var(--cyan); font-size: 0.82rem; letter-spacing: 0.04em; margin-bottom: 14px;
  padding: 5px 12px; border-radius: 8px; background: rgba(34, 211, 238, 0.07); border: 1px solid rgba(34, 211, 238, 0.18);
}
.sub-title { font-size: 1.5rem; margin: 46px 0 22px; }

/* ---------- stats ---------- */

.stats-section { padding: 70px 0; }
.stats-section + .section { padding-top: 60px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  position: relative; text-align: center; padding: 30px 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); overflow: hidden;
}
.stat::after {
  content: ''; position: absolute; inset: auto 20% 0; height: 2px; background: var(--grad); opacity: 0.6; border-radius: 2px;
}
.stat-icon {
  width: 46px; height: 46px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 14px;
  background: var(--grad-soft); color: var(--cyan); border: 1px solid rgba(34, 211, 238, 0.2);
}
.stat-icon .icon { width: 22px; height: 22px; }
.stat strong {
  display: block; font-family: var(--display); font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.1; margin-bottom: 6px;
  background: linear-gradient(180deg, #fff, #9fb3d1); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat > span:last-child { color: var(--muted); font-size: 0.95rem; }

/* ---------- glow cards ---------- */

.glow-card { position: relative; isolation: isolate; }
.glow-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity 0.35s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, 0.12), transparent 45%);
}
.glow-card:hover::before { opacity: 1; }

/* ---------- services ---------- */

.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 22px; }
.service-card {
  display: flex; flex-direction: column; padding: 32px 28px 26px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border); overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, 0.35); box-shadow: 0 30px 60px -30px rgba(34, 211, 238, 0.35); }
.service-icon {
  width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; margin-bottom: 22px;
  background: var(--grad-soft); border: 1px solid rgba(99, 102, 241, 0.32); color: #a5f3fc;
  box-shadow: 0 0 30px -10px rgba(99, 102, 241, 0.6) inset;
}
.service-icon .icon { width: 27px; height: 27px; }
.service-index { position: absolute; top: 26px; left: 26px; font-size: 2.4rem; font-weight: 700; color: rgba(148, 163, 184, 0.09); line-height: 1; }
.service-card h3 { font-size: 1.24rem; }
.service-card > p { color: var(--muted); font-size: 0.97rem; }
.check-list { display: grid; gap: 9px; margin: 6px 0 22px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.93rem; color: #c7d2e2; }
.check-list .icon { color: var(--green); margin-top: 0.32em; width: 1em; height: 1em; }
.service-foot { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price-tag { font-size: 0.88rem; font-weight: 600; color: var(--amber); background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.25); padding: 4px 12px; border-radius: 999px; }

/* ---------- works ---------- */

.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 26px; }
.work-card {
  display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.work-card:hover { transform: translateY(-6px); border-color: rgba(168, 85, 247, 0.4); box-shadow: 0 30px 70px -30px rgba(168, 85, 247, 0.45); }
.work-card.is-hidden { display: none; }
.work-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #0b1022; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.work-card:hover .work-media img, .work-card:hover .cover .mock-browser, .work-card:hover .cover .mock-phone:not(.mock-phone-back) { transform: translateY(-6px) scale(1.03); }
.work-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.work-cat { font-size: 0.82rem; color: var(--cyan); font-weight: 600; margin-bottom: 8px; }
.work-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.work-body h3 a:hover { color: var(--cyan); }
.work-body p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.chip {
  font-family: var(--mono); font-size: 0.72rem; padding: 4px 10px; border-radius: 8px; color: #c7d2fe;
  background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.25);
}

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 44px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; font-weight: 500; font-size: 0.94rem;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted); transition: all 0.25s ease;
}
.filter:hover { color: var(--text); border-color: var(--border-strong); }
.filter span { font-family: var(--mono); font-size: 0.72rem; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); }
.filter.active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--glow); }
.filter.active span { background: rgba(255, 255, 255, 0.2); }

/* generated project covers */
.cover {
  --c1: #22d3ee; --c2: #3b82f6;
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--c2) 42%, transparent), transparent 55%),
    radial-gradient(100% 100% at 0% 100%, color-mix(in srgb, var(--c1) 32%, transparent), transparent 60%),
    #0b1022;
}
.cover-store { --c1: #f472b6; --c2: #a855f7; }
.cover-mobile { --c1: #34d399; --c2: #06b6d4; }
.cover-software { --c1: #fbbf24; --c2: #f97316; }
.cover-design { --c1: #c084fc; --c2: #ec4899; }
.cover-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%);
  mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%);
}
.mock-browser {
  position: absolute; left: 12%; right: 12%; top: 15%; bottom: -12%; border-radius: 12px 12px 0 0; direction: ltr;
  background: rgba(8, 12, 26, 0.88); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
  transition: transform 0.6s ease;
}
.mock-bar { display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.mock-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.mock-bar i:first-child { background: #ff5f57; }
.mock-url { flex: 0 0 42%; height: 9px; margin-left: 14px; border-radius: 5px; background: rgba(255, 255, 255, 0.08); }
.mock-body { display: flex; flex-direction: column; gap: 9px; padding: 14px; }
.mock-line { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.13); }
.mock-line.w-40 { width: 40%; } .mock-line.w-60 { width: 60%; } .mock-line.w-80 { width: 80%; }
.mock-hero-block { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 8px; background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 25%, transparent), color-mix(in srgb, var(--c2) 18%, transparent)); }
.mock-hero-block .mock-line:first-child { height: 10px; background: rgba(255, 255, 255, 0.4); }
.mock-btn { width: 64px; height: 15px; border-radius: 8px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-row i { height: 40px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.07); }
.mock-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mock-products i { aspect-ratio: 3 / 4; border-radius: 8px; background: linear-gradient(180deg, color-mix(in srgb, var(--c1) 30%, transparent), rgba(255, 255, 255, 0.04)); border: 1px solid rgba(255, 255, 255, 0.07); }
.mock-dash { display: grid; grid-template-columns: 34px 1fr; gap: 10px; }
.mock-side { border-radius: 6px; background: rgba(255, 255, 255, 0.06); min-height: 120px; }
.mock-main { display: flex; flex-direction: column; gap: 10px; }
.mock-main .mock-row i { height: 28px; }
.mock-bars { display: flex; align-items: flex-end; gap: 7px; height: 76px; }
.mock-bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(0deg, var(--c2), var(--c1)); opacity: 0.85; }
.mock-swatches { display: flex; gap: 8px; }
.mock-swatches i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.12); }
.mock-swatches i:nth-child(1) { background: var(--c1); }
.mock-swatches i:nth-child(2) { background: var(--c2); }
.mock-swatches i:nth-child(3) { background: #f8fafc; }
.mock-swatches i:nth-child(4) { background: #64748b; }
.mock-swatches i:nth-child(5) { background: #0f172a; }
.mock-type { font-family: var(--display); font-size: 2.6rem; font-weight: 700; line-height: 1; background: linear-gradient(90deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mock-phone {
  position: absolute; z-index: 1; width: 27%; aspect-ratio: 9 / 18.5; left: 42%; top: 9%;
  display: flex; flex-direction: column; gap: 8px; padding: 18px 10px; border-radius: 22px;
  background: rgba(8, 12, 26, 0.92); border: 2px solid rgba(255, 255, 255, 0.18); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
  transition: transform 0.6s ease;
}
.mock-phone .mock-row { grid-template-columns: repeat(3, 1fr); gap: 5px; }
.mock-phone .mock-row i { height: 22px; border-radius: 6px; }
.mock-phone-back { z-index: 0; left: 20%; top: 20%; transform: rotate(-10deg); opacity: 0.5; }
.mock-notch { width: 38%; height: 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.16); margin: 0 auto 6px; }
.mock-card { height: 54px; border-radius: 10px; background: linear-gradient(135deg, var(--c1), var(--c2)); opacity: 0.85; }
.cover-icon {
  position: absolute; z-index: 2; bottom: 14px; right: 14px; width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 12px; color: var(--c1); background: rgba(8, 12, 26, 0.7); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(8px);
}
.cover-icon .icon { width: 21px; height: 21px; }

/* ---------- process ---------- */

.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.process::before {
  content: ''; position: absolute; top: 72px; inset-inline: 12%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 8px, transparent 8px 16px);
}
.process-step { position: relative; text-align: center; padding: 30px 20px 26px; }
.process-num { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); font-size: 0.78rem; color: var(--dim); letter-spacing: 0.1em; }
.process-icon {
  position: relative; z-index: 1; width: 84px; height: 84px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad) border-box; border: 1.5px solid transparent;
  color: var(--cyan); box-shadow: 0 0 40px -12px rgba(34, 211, 238, 0.6);
  transition: transform 0.35s ease;
}
.process-step:hover .process-icon { transform: translateY(-6px) rotate(-6deg); }
.process-icon .icon { width: 32px; height: 32px; }
.process-step h3 { font-size: 1.15rem; }
.process-step p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ---------- about ---------- */

.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.about-copy h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
.about-copy p, .prose p { color: #b6c2d6; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 26px 0 32px; }
.why-list li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.why-list .icon {
  width: 24px; height: 24px; padding: 5px; border-radius: 8px; color: var(--green);
  background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.25);
}
.about-image { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow); }

.orbit { position: relative; width: min(calc(100% - 56px), 400px); aspect-ratio: 1; margin: 23px auto 57px; }
.orbit-core {
  position: absolute; inset: 35%; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3), rgba(8, 12, 26, 0.9) 70%);
  border: 1px solid rgba(99, 102, 241, 0.4); box-shadow: 0 0 80px -10px rgba(99, 102, 241, 0.7);
}
.orbit-core img { width: 56%; height: auto; }
.orbit-ring { position: absolute; border-radius: 50%; border: 1px dashed var(--border-strong); animation: spin 36s linear infinite; }
.orbit-ring.ring-1 { inset: 22%; animation-duration: 22s; }
.orbit-ring.ring-2 { inset: 10%; animation-duration: 34s; animation-direction: reverse; }
.orbit-ring.ring-3 { inset: 0; animation-duration: 48s; }
.orbit-ring span {
  position: absolute; width: 46px; height: 46px; margin: -23px; display: grid; place-items: center; border-radius: 14px;
  background: rgba(12, 18, 34, 0.92); border: 1px solid var(--border-strong); color: var(--cyan);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8); animation: spin 36s linear infinite reverse;
}
.orbit-ring.ring-1 span { animation-duration: 22s; }
.orbit-ring.ring-2 span { animation-duration: 34s; animation-direction: normal; color: var(--violet); }
.orbit-ring.ring-3 span { animation-duration: 48s; color: var(--pink); }
.orbit-ring span:nth-child(1) { top: 0; left: 50%; }
.orbit-ring span:nth-child(2) { top: 100%; left: 50%; }
.orbit-ring span:nth-child(3) { top: 50%; left: 0; }
.ring-3 span:nth-child(2) { top: 50%; left: 100%; }

.mv-cards { display: grid; gap: 14px; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mv-card {
  display: flex; gap: 16px; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
}
.mv-card > span {
  flex-shrink: 0; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--grad);
}
.mv-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.mv-card p { color: var(--muted); font-size: 0.93rem; margin: 0; }
.mv-card.big { padding: 34px; }
.mv-card.big > span { width: 58px; height: 58px; }
.mv-card.big h3 { font-size: 1.35rem; }
.mv-card.big p { font-size: 1rem; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.value-card { padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: transform 0.3s ease, border-color 0.3s ease; }
.value-card:hover { transform: translateY(-5px); border-color: rgba(34, 211, 238, 0.3); }
.value-card h3 { font-size: 1.15rem; }
.value-card p { color: var(--muted); font-size: 0.94rem; margin: 0; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.why-grid li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); font-weight: 500; }
.why-grid .icon { width: 30px; height: 30px; padding: 6px; border-radius: 10px; color: #fff; background: var(--grad); }

.stats-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--border); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.stats-panel > div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 40px 20px; background: var(--bg-card); }
.stats-panel strong { font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
.stats-panel span { color: var(--muted); }

/* ---------- pricing ---------- */

.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 26px; align-items: stretch; margin-inline: auto; }
.plans-1 { max-width: 440px; }
.plans-2 { max-width: 900px; }
.plan-card {
  position: relative; display: flex; flex-direction: column; padding: 38px 32px 32px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border); transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.plan-card:hover { transform: translateY(-6px); }
.plan-card.featured {
  background: linear-gradient(180deg, #111a33, var(--bg-card)) padding-box, var(--grad) border-box;
  border: 1.5px solid transparent; box-shadow: 0 40px 90px -40px rgba(99, 102, 241, 0.8);
}
.plan-badge {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 16px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 0.84rem; font-weight: 600; white-space: nowrap;
  box-shadow: var(--glow);
}
.plan-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.plan-desc { color: var(--muted); font-size: 0.94rem; min-height: 3.4em; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 6px 0 26px; padding-bottom: 24px; border-bottom: 1px dashed var(--border-strong); }
.plan-price .amount { font-family: var(--display); font-size: 3.2rem; font-weight: 700; line-height: 1; }
.plan-price .amount.text { font-family: var(--font); font-size: 2rem; }
.plan-price .currency { font-size: 1.4rem; color: var(--muted); font-weight: 600; }
.plan-price .period { color: var(--muted); font-size: 0.95rem; }
.plan-card.featured .amount { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-features { display: grid; gap: 13px; margin-bottom: 32px; }
.plan-features li { display: flex; align-items: flex-start; gap: 11px; font-size: 0.96rem; }
.plan-features .icon {
  width: 22px; height: 22px; padding: 4px; margin-top: 0.15em; border-radius: 50%; color: var(--green);
  background: rgba(52, 211, 153, 0.12);
}
.plan-features li.off { color: var(--dim); }
.plan-features li.off .icon { color: var(--dim); background: rgba(100, 116, 139, 0.12); }
.plan-card .btn { margin-top: auto; }

.faq { max-width: 840px; margin: 90px auto 0; }
.faq .sub-title { text-align: center; margin-top: 0; }
.faq-item { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); margin-bottom: 12px; overflow: hidden; transition: border-color 0.25s ease; }
.faq-item[open] { border-color: rgba(34, 211, 238, 0.3); }
.faq-item summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle { position: relative; flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); }
.faq-toggle::before, .faq-toggle::after { content: ''; position: absolute; top: 50%; left: 50%; width: 11px; height: 2px; margin: -1px 0 0 -5.5px; background: var(--cyan); border-radius: 2px; transition: transform 0.25s ease; }
.faq-toggle::after { transform: rotate(90deg); }
.faq-item[open] .faq-toggle::after { transform: rotate(0deg); }
.faq-item p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ---------- licenses ---------- */

.licenses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 380px)); justify-content: center; gap: 24px; }
.license-card { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--bg-card); border: 1px solid var(--border); transition: transform 0.3s ease, border-color 0.3s ease; }
.license-card:hover { transform: translateY(-5px); border-color: rgba(52, 211, 153, 0.35); }
.license-media { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, rgba(52, 211, 153, 0.14), transparent 65%), #0b1022; border-bottom: 1px solid var(--border); overflow: hidden; }
.license-media a { position: absolute; inset: 0; display: block; padding: 16px; cursor: zoom-in; }
.license-media img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; transition: transform 0.5s ease; }
.license-card:hover .license-media img { transform: scale(1.04); }
.license-icon { width: 86px; height: 86px; display: grid; place-items: center; border-radius: 24px; color: var(--green); background: rgba(52, 211, 153, 0.08); border: 1px solid rgba(52, 211, 153, 0.25); }
.license-icon .icon { width: 40px; height: 40px; }
.license-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.verified { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 0.8rem; font-weight: 600; color: var(--green); padding: 3px 10px; border-radius: 999px; background: rgba(52, 211, 153, 0.08); border: 1px solid rgba(52, 211, 153, 0.22); margin-bottom: 12px; }
.license-body h3 { font-size: 1.15rem; }
.license-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 16px; }
.license-meta dt { font-size: 0.78rem; color: var(--dim); }
.license-meta dd { margin: 0; font-size: 0.92rem; font-weight: 500; }
.license-body p { color: var(--muted); font-size: 0.93rem; }
.license-body .link-arrow { margin-top: auto; }

/* ---------- CTA ---------- */

.cta-section { padding-top: 40px; }
.cta-box {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center;
  padding: 60px 56px; border-radius: 30px;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(34, 211, 238, 0.2), transparent 60%),
    radial-gradient(60% 120% at 0% 100%, rgba(168, 85, 247, 0.25), transparent 60%),
    linear-gradient(135deg, #0d1430, #0a0f22) padding-box,
    var(--grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 40px 100px -40px rgba(99, 102, 241, 0.7);
}
.cta-copy h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-copy p { color: #b6c2d6; margin: 0; max-width: 620px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-orbit { position: absolute; inset: 0; pointer-events: none; }
.cta-orbit span { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.07); pointer-events: none; }
.cta-orbit span:nth-child(1) { width: 300px; height: 300px; left: -80px; top: -120px; }
.cta-orbit span:nth-child(2) { width: 480px; height: 480px; left: -170px; top: -210px; }
.cta-orbit span:nth-child(3) { width: 660px; height: 660px; left: -260px; top: -300px; }

/* ---------- inner page hero ---------- */

.page-hero { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: calc(var(--header-h) + 80px) 0 70px; }
.page-hero .hero-glow.glow-1 { width: 420px; height: 420px; top: -200px; right: 10%; }
.page-hero .hero-glow.glow-2 { width: 420px; height: 420px; bottom: -260px; left: 10%; top: auto; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: 14px; }
.page-hero .lead { margin: 0 auto; }
.crumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; font-size: 0.88rem; color: var(--dim); margin-bottom: 22px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--cyan); }
.crumbs [aria-current] { color: var(--text); }

/* ---------- work detail ---------- */

.work-detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.work-hero-media { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: #0b1022; }
.work-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.work-hero-media a { display: block; height: 100%; }
.prose { margin-top: 40px; }
.prose h2 { font-size: 1.5rem; }
.prose p { line-height: 2; font-size: 1.03rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.gallery a { display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery a:hover img { transform: scale(1.06); }
.work-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.info-card { padding: 28px; border-radius: 22px; background: var(--bg-card); border: 1px solid var(--border); }
.info-card h3 { font-size: 1.15rem; margin-bottom: 18px; }
.info-card h4 { font-size: 0.95rem; color: var(--muted); margin: 22px 0 12px; }
.info-card dl { margin: 0; }
.info-card dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.info-card dt { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.info-card dt .icon { color: var(--cyan); }
.info-card dd { margin: 0; font-weight: 600; text-align: left; }
.info-card dd a:hover { color: var(--cyan); }
.info-actions { display: grid; gap: 10px; margin-top: 24px; }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 44px; align-items: start; }
.contact-info h2 { font-size: 1.8rem; }
.contact-info > p { color: var(--muted); }
.contact-cards { display: grid; gap: 12px; margin: 26px 0; }
.contact-cards li { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.contact-cards li > span { flex-shrink: 0; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: var(--cyan); background: var(--grad-soft); border: 1px solid rgba(34, 211, 238, 0.2); }
.contact-cards small { display: block; color: var(--dim); font-size: 0.8rem; }
.contact-cards a, .contact-cards strong { font-weight: 600; }
.contact-cards a:hover { color: var(--cyan); }
.contact-form { position: relative; padding: 34px; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; margin-bottom: 7px; font-size: 0.9rem; font-weight: 500; color: #c7d2e2; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border-strong); background: rgba(2, 6, 23, 0.55);
  color: var(--text); outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: 20px 55%, 14px 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-left: 40px; }
.field select option { background: #0c1222; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 0; font-size: 0.85rem; color: var(--dim); }
.alert { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: 14px; margin-bottom: 22px; font-weight: 500; font-size: 0.95rem; }
.alert-success { flex-direction: row; align-items: center; gap: 10px; color: #a7f3d0; background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.3); }
.alert-error { color: #fecaca; background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.3); }

.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted); transition: all 0.25s ease; }
.socials a:hover { color: #fff; background: var(--grad); border-color: transparent; transform: translateY(-3px); }

/* ---------- footer ---------- */

.site-footer { position: relative; overflow: hidden; margin-top: 40px; padding-top: 80px; border-top: 1px solid var(--border); background: linear-gradient(180deg, rgba(10, 15, 29, 0.6), #04060d); }
.footer-glow { position: absolute; width: 600px; height: 300px; top: -200px; left: 50%; transform: translateX(-50%); background: rgba(99, 102, 241, 0.18); filter: blur(100px); pointer-events: none; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; }
.footer-brand p { color: var(--muted); font-size: 0.95rem; margin: 20px 0 22px; max-width: 360px; }
.footer-col h4 { font-size: 1.02rem; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--muted); font-size: 0.94rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--cyan); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 0.94rem; }
.footer-contact .icon { color: var(--cyan); margin-top: 0.35em; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px 0; border-top: 1px solid var(--border); color: var(--dim); font-size: 0.88rem; }

.wa-float {
  position: fixed; z-index: 90; bottom: 22px; left: 22px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 14px 34px -10px rgba(37, 211, 102, 0.7); transition: transform 0.25s ease;
}
.wa-float::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite; }
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon { width: 28px; height: 28px; }
.to-top {
  position: fixed; z-index: 90; bottom: 22px; right: 22px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px;
  border: 1px solid var(--border-strong); background: rgba(12, 18, 34, 0.85); backdrop-filter: blur(10px); color: var(--text); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease;
}
.to-top .icon { transform: rotate(-90deg); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- misc ---------- */

.empty-state { text-align: center; padding: 70px 20px; border-radius: var(--radius-lg); border: 1px dashed var(--border-strong); color: var(--muted); }
.empty-state .icon { width: 48px; height: 48px; color: var(--dim); margin-bottom: 14px; }
.empty-state p { margin: 0; font-size: 1.05rem; }

.error-page { text-align: center; padding-top: calc(var(--header-h) + 120px); min-height: 70vh; }
.error-code { font-size: clamp(6rem, 18vw, 10rem); font-weight: 700; line-height: 1; margin-bottom: 10px; }
.error-page p { color: var(--muted); }

.lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 30px;
  background: rgba(2, 4, 10, 0.92); backdrop-filter: blur(8px); cursor: zoom-out; animation: fade-in 0.25s ease;
}
.lightbox img { max-width: min(1200px, 100%); max-height: 88vh; border-radius: 14px; box-shadow: var(--shadow); }
.lightbox button { position: absolute; top: 20px; left: 20px; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface-2); cursor: pointer; display: grid; place-items: center; }

/* reveal on scroll (only once JS is running) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- keyframes ---------- */

@keyframes ping { 75%, 100% { transform: scale(1.9); opacity: 0; } 0% { opacity: 0.8; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 40px) scale(1.15); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .nav a { padding: 8px 10px; font-size: 0.93rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav {
    position: fixed; top: var(--header-h); inset-inline: 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 20px 24px; background: rgba(6, 9, 18, 0.97); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all 0.3s ease; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .site-header.open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 13px 14px; font-size: 1.02rem; }
  .nav a.active { background: var(--surface-2); }
  .nav a.active::after { display: none; }
  .nav .nav-cta-mobile { display: inline-flex; margin-top: 10px; color: #fff; }

  .hero { min-height: auto; padding-top: calc(var(--header-h) + 50px); }
  .hero-grid { grid-template-columns: 1fr; gap: 70px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-cta, .hero-points { justify-content: center; }
  .hero-visual { max-width: 600px; width: 100%; margin: 0 auto; }
  .scroll-hint { display: none; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process::before { display: none; }
  .about-grid, .work-detail, .contact-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .work-aside { position: static; }
  .cta-box { grid-template-columns: 1fr; text-align: center; padding: 48px 32px; }
  .cta-copy p { margin-inline: auto; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: min(1200px, 100% - 32px); }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 42px; }
  .brand-text strong { font-size: 1.15rem; }
  .brand-mark { width: 36px; height: 36px; }
  .hero-cta .btn { width: 100%; }
  .terminal-body { font-size: 0.72rem; padding: 18px 16px; min-height: 300px; }
  .terminal-status span:nth-child(2) { display: none; }
  .float-chip { display: none; }
  .float-card { right: 50%; transform: translateX(50%); bottom: -34px; animation: none; }
  .stats-grid { gap: 12px; }
  .stat { padding: 22px 12px; }
  .process { grid-template-columns: 1fr; }
  .why-list, .mv-grid, .form-row, .license-meta { grid-template-columns: 1fr; }
  .form-row { gap: 0; }
  .contact-form { padding: 24px 20px; }
  .plan-card { padding: 34px 24px 26px; }
  .cta-box { padding: 40px 22px; border-radius: 24px; }
  .cta-actions .btn { width: 100%; white-space: normal; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .mv-card.big { padding: 24px; }
  .wa-float { width: 52px; height: 52px; bottom: 16px; left: 16px; }
  .to-top { bottom: 16px; right: 16px; }
}

@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; }
  .js .reveal { opacity: 1; transform: none; }
}
