/* ==========================================================================
   SIN Agency — Premium Multi-Page Stylesheet
   Modern dark theme | Fully responsive | Animation-rich
   ========================================================================== */

:root {
  --bg: #05050a;
  --bg-elevated: #0a0a10;
  --bg-card: #0e0e16;
  --bg-card-hover: #14141e;
  --bg-input: #0c0c14;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.11);
  --border-accent: rgba(139, 92, 246, 0.35);
  --text: #f4f4f5;
  --text-secondary: #d4d4d8;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --text-faint: #52525b;
  --accent: #f3702c;
  --accent-bright: #ff8a4c;
  --accent-soft: #ffb088;
  --accent-dim: rgba(243, 112, 44, 0.14);
  --accent-glow: rgba(243, 112, 44, 0.3);
  --cyan: #22d3ee;
  --cyan-soft: #67e8f9;
  --cyan-dim: rgba(34, 211, 238, 0.12);
  --indigo: #8b5cf6;
  --violet: #8b5cf6;
  --violet-bright: #a78bfa;
  --success: #34d399;
  --success-dim: rgba(52, 211, 153, 0.12);
  --warning: #fbbf24;
  --danger: #f87171;
  --danger-dim: rgba(248, 113, 113, 0.12);
  --telegram: #229ED9;
  --telegram-hover: #1a8fc4;
  --gradient-primary: linear-gradient(135deg, #f3702c 0%, #ff6b35 40%, #8b5cf6 100%);
  --gradient-text: linear-gradient(135deg, #ffb088 0%, #f3702c 40%, #a78bfa 100%);
  --gradient-dark: linear-gradient(180deg, rgba(139, 92, 246, 0.08), transparent);
  --gradient-card: linear-gradient(145deg, rgba(139, 92, 246, 0.06), rgba(34, 211, 238, 0.03));
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 60px rgba(243, 112, 44, 0.22);
  --shadow-glow-strong: 0 0 80px rgba(243, 112, 44, 0.35);
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', var(--font);
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  --header-h: 76px;
  --container: 1180px;
  --container-narrow: 760px;
  --container-wide: 1320px;
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
ul, ol { list-style: none; }
button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
::selection {
  background: rgba(139, 92, 246, 0.35);
  color: #fff;
}

/* Background atmosphere */
.bg-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 15% -5%, rgba(139, 92, 246, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 45% at 85% 5%, rgba(34, 211, 238, 0.09), transparent 50%),
    radial-gradient(ellipse 50% 35% at 50% 100%, rgba(99, 102, 241, 0.07), transparent 55%),
    radial-gradient(ellipse 40% 30% at 70% 60%, rgba(139, 92, 246, 0.04), transparent 50%),
    var(--bg);
}
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Layout utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.container-wide {
  max-width: var(--container-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.section {
  padding: 100px 0;
  position: relative;
}
.section-sm { padding: 64px 0; }
.section-lg { padding: 120px 0; }
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.section-header.left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.8vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin-bottom: 16px;
  color: var(--text);
}
.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.grid { display: grid; }
.w-full { width: 100%; }
.relative { position: relative; }
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  border-radius: 12px;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  line-height: 1.2;
}
.btn svg { flex-shrink: 0; }
.btn-xs { padding: 8px 14px; font-size: 0.8rem; border-radius: 8px; }
.btn-sm { padding: 10px 18px; font-size: 0.875rem; }
.btn-md { padding: 13px 22px; font-size: 0.95rem; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-xl { padding: 18px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(243, 112, 44, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(243, 112, 44, 0.45);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}
.btn-outline {
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent-soft);
}
.btn-ghost {
  color: var(--text-muted);
  background: transparent;
}
.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.btn-telegram {
  background: var(--telegram);
  color: #fff;
}
.btn-telegram:hover {
  background: var(--telegram-hover);
  transform: translateY(-1px);
}
.btn-danger {
  background: var(--danger-dim);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.25);
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}
.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
}

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
.header.scrolled {
  background: rgba(5, 5, 10, 0.88);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--border), 0 8px 32px rgba(0, 0, 0, 0.25);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  z-index: 20;
  flex-shrink: 0;
}
.logo-mark {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-text { color: var(--text); font-weight: 600; letter-spacing: -0.02em; }

.nav { display: flex; align-items: center; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 9px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 9px;
  transition: color var(--transition-fast), background var(--transition-fast);
  position: relative;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}
.nav-link.active {
  color: var(--text);
  background: rgba(139, 92, 246, 0.12);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.9;
}

.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-item {
  display: block;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-radius: 8px;
  transition: all var(--transition-fast);
}
.nav-dropdown-item:hover {
  background: var(--accent-dim);
  color: var(--accent-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 10px;
  z-index: 20;
  transition: background var(--transition-fast);
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.05); }
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
@media (max-width: 960px) {
  .nav {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 10, 0.97);
    backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    z-index: 15;
  }
  .nav.open {
    opacity: 1;
    visibility: visible;
  }
  .nav-list {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  .nav-link {
    font-size: 1.35rem;
    padding: 14px 28px;
  }
  .nav-link.active::after { display: none; }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0 12px;
    min-width: auto;
  }
  .nav-dropdown-item { font-size: 1.1rem; padding: 10px 16px; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-telegram.desktop-only { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 80px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-soft);
  background: var(--accent-dim);
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: var(--radius-full);
  margin-bottom: 28px;
}
.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.2vw, 3.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.75;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 52px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Hero visual / dashboard card */
.hero-visual {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}
.hero-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
  animation: float-card 7s ease-in-out infinite;
  transform-style: preserve-3d;
}
.hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 15%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}
@keyframes float-card {
  0%, 100% { transform: translateY(0) rotateX(3deg) rotateY(-2deg); }
  50% { transform: translateY(-14px) rotateX(0deg) rotateY(0deg); }
}
.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.hero-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.hero-card-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--success);
  font-weight: 500;
}
.hero-card-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}
.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.metric-row:last-of-type { border-bottom: none; }
.metric-value { font-weight: 600; color: var(--text); }
.metric-value.up { color: var(--success); }
.metric-value.down { color: var(--danger); }
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 96px;
  margin-top: 18px;
  padding-top: 10px;
}
.chart-bar {
  flex: 1;
  height: var(--h, 50%);
  background: var(--gradient-primary);
  border-radius: 5px 5px 2px 2px;
  opacity: 0.88;
  animation: bar-in 1.1s var(--ease-out) backwards;
}
.chart-bar:nth-child(1) { animation-delay: 0.08s; }
.chart-bar:nth-child(2) { animation-delay: 0.16s; }
.chart-bar:nth-child(3) { animation-delay: 0.24s; }
.chart-bar:nth-child(4) { animation-delay: 0.32s; }
.chart-bar:nth-child(5) { animation-delay: 0.4s; }
.chart-bar:nth-child(6) { animation-delay: 0.48s; }
.chart-bar:nth-child(7) { animation-delay: 0.56s; }
.chart-bar:nth-child(8) { animation-delay: 0.64s; }
@keyframes bar-in {
  from { height: 0; opacity: 0; }
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}
.hero-scroll a {
  display: flex;
  width: 26px;
  height: 42px;
  border: 2px solid var(--border-strong);
  border-radius: 20px;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
  transition: border-color var(--transition);
}
.hero-scroll a:hover { border-color: var(--accent); }
.hero-scroll span {
  width: 3px;
  height: 8px;
  background: var(--accent);
  border-radius: 3px;
  animation: scroll-hint 1.8s ease-in-out infinite;
}
@keyframes scroll-hint {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* --------------------------------------------------------------------------
   Cards & Grids
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition), background var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 18px;
  background: var(--accent-dim);
  color: var(--accent-bright);
}
.card-icon.meta { background: rgba(24, 119, 242, 0.14); color: #5b9fff; }
.card-icon.google { background: rgba(66, 133, 244, 0.12); color: #8ab4f8; }
.card-icon.cyan { background: var(--cyan-dim); color: var(--cyan); }
.card-icon.success { background: var(--success-dim); color: var(--success); }
.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

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

/* Feature list inside cards */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 18px;
}
.feature-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  padding: calc(var(--header-h) + 64px) 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.page-hero-content {
  max-width: 720px;
}
.page-hero .section-tag { margin-bottom: 12px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 18px;
}
.page-hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 580px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.breadcrumb a:hover { color: var(--accent-soft); }
.breadcrumb span { color: var(--text-faint); }

/* --------------------------------------------------------------------------
   About page specifics
   -------------------------------------------------------------------------- */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.about-text h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.75;
}
.about-text p:last-child { margin-bottom: 0; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.value-card {
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.value-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--accent-soft);
}
.value-card p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}

.team-placeholder {
  padding: 40px;
  background: var(--bg-card);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  text-align: center;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   Services page
   -------------------------------------------------------------------------- */
.service-detail-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  transition: border-color var(--transition);
}
.service-detail-card:hover { border-color: var(--border-accent); }
.service-detail-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  flex-shrink: 0;
}
.service-detail-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.service-detail-card > div > p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}
.service-detail-card .btn { margin-top: 8px; }

.pricing-note {
  padding: 20px 24px;
  background: var(--accent-dim);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Process / Timeline
   -------------------------------------------------------------------------- */
.process-timeline {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}
.process-timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--cyan));
  opacity: 0.35;
}
.process-step {
  display: flex;
  gap: 28px;
  padding-bottom: 44px;
  position: relative;
}
.process-step:last-child { padding-bottom: 0; }
.process-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-bright);
}
.process-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 6px;
  display: block;
}
.process-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.process-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.process-content ul {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.process-content ul li {
  font-size: 0.875rem;
  color: var(--text-dim);
  padding-left: 14px;
  position: relative;
}
.process-content ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Case studies
   -------------------------------------------------------------------------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.case-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}
.case-card-visual {
  height: 160px;
  background: var(--gradient-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.case-card-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(139, 92, 246, 0.2), transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(34, 211, 238, 0.12), transparent 45%);
}
.case-card-tag {
  position: relative;
  z-index: 1;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-soft);
  backdrop-filter: blur(8px);
}
.case-card-body { padding: 28px; }
.case-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.case-card-body p {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.case-metrics {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.case-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.case-metric-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--success);
}
.case-metric-label {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.active { border-color: var(--border-accent); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-weight: 560;
  font-size: 1rem;
  color: var(--text);
  transition: background var(--transition-fast);
}
.faq-question:hover { background: rgba(255, 255, 255, 0.02); }
.faq-icon {
  flex-shrink: 0;
  color: var(--text-dim);
  transition: transform var(--transition), color var(--transition);
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}
.faq-item.active .faq-answer { max-height: 400px; }
.faq-answer p {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.contact-info .section-title { text-align: left; }
.contact-info .section-desc {
  text-align: left;
  margin-bottom: 28px;
}
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.channel-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), background var(--transition);
}
.channel-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}
.channel-card.telegram:hover { border-color: rgba(34, 158, 217, 0.4); }
.channel-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(34, 158, 217, 0.14);
  color: #4db8e8;
  flex-shrink: 0;
}
.channel-icon.email {
  background: var(--accent-dim);
  color: var(--accent-bright);
}
.channel-card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.channel-card span {
  font-size: 0.85rem;
  color: var(--text-dim);
}
.contact-note {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.65;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.required { color: var(--accent-bright); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: var(--danger);
}
.error-msg {
  display: block;
  font-size: 0.78rem;
  color: var(--danger);
  margin-top: 6px;
  min-height: 1.1em;
}
.form-disclaimer {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}
.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.spinner {
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-success {
  text-align: center;
  padding: 48px 20px;
}
.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--success-dim);
  color: var(--success);
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.form-success p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 36px 0 14px;
  letter-spacing: -0.015em;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--text-secondary);
}
.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.8;
  margin-bottom: 14px;
}
.legal-content ul {
  margin: 0 0 16px 20px;
  list-style: disc;
}
.legal-content ul li { margin-bottom: 8px; }
.legal-content a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content a:hover { color: var(--cyan-soft); }
.legal-updated {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   CTA banner
   -------------------------------------------------------------------------- */
.cta-banner {
  padding: 72px 0;
  position: relative;
}
.cta-banner-inner {
  text-align: center;
  padding: 56px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.cta-banner-inner::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18), transparent 70%);
  pointer-events: none;
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
}
.cta-banner p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 28px;
  position: relative;
}
.cta-banner .btn { position: relative; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 64px;
  background: var(--bg-elevated);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 16px;
  line-height: 1.7;
  max-width: 300px;
}
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 0.925rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--text); }
.footer-telegram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4db8e8;
  font-weight: 500;
  margin-bottom: 10px;
}
.footer-telegram:hover { opacity: 0.85; }
.footer-email {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer-disclaimer {
  max-width: 520px;
  text-align: right;
  line-height: 1.55;
}
.footer-legal-links {
  display: flex;
  gap: 16px;
}
.footer-legal-links a:hover { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Floating Telegram
   -------------------------------------------------------------------------- */
.floating-telegram {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--telegram);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 24px rgba(34, 158, 217, 0.45);
  z-index: 900;
  transition: transform var(--transition), box-shadow var(--transition);
}
.floating-telegram:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(34, 158, 217, 0.55);
}

/* --------------------------------------------------------------------------
   Reveal animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* --------------------------------------------------------------------------
   Tables (for comparison / pricing style blocks)
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.data-table {
  width: 100%;
  font-size: 0.9rem;
}
.data-table th,
.data-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.data-table td { color: var(--text-secondary); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255, 255, 255, 0.015); }

/* --------------------------------------------------------------------------
   Stats strip
   -------------------------------------------------------------------------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stats-strip-item {
  background: var(--bg-card);
  padding: 28px 20px;
  text-align: center;
}
.stats-strip-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.stats-strip-label {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   Responsive — Mobile-first enhancements
   -------------------------------------------------------------------------- */

/* Tablet landscape / small desktop */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; border-top: none; padding-top: 0; }
  .hero-visual { order: -1; }
  .hero-card { max-width: 300px; margin: 0 auto; }
  .about-intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .section-header { margin-bottom: 40px; }
}

/* Tablet portrait */
@media (max-width: 768px) {
  :root {
    --header-h: 60px;
    --radius: 12px;
    --radius-lg: 18px;
  }

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

  body {
    font-size: 15px;
    overflow-x: hidden;
  }

  .container,
  .container-narrow,
  .container-wide {
    padding-left: 16px;
    padding-right: 16px;
    max-width: 100%;
  }

  /* Header */
  .header { height: var(--header-h); }
  .logo { font-size: 1.2rem; }
  .nav-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  /* Mobile nav full screen */
  .nav {
    padding: env(safe-area-inset-top) 24px env(safe-area-inset-bottom);
  }
  .nav-list { gap: 4px; width: 100%; max-width: 320px; }
  .nav-link {
    font-size: 1.2rem;
    padding: 14px 20px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  .nav-dropdown-item {
    font-size: 1rem;
    padding: 12px 16px;
    min-height: 44px;
  }

  /* Sections */
  .section { padding: 56px 0; }
  .section-sm { padding: 40px 0; }
  .section-lg { padding: 64px 0; }
  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.25;
  }
  .section-desc { font-size: 0.975rem; }

  /* Grids → single column */
  .grid-2,
  .grid-3,
  .grid-4,
  .case-grid,
  .values-grid { grid-template-columns: 1fr; gap: 16px; }

  .service-detail-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 18px;
  }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* Hero mobile */
  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 28px) 0 48px;
  }
  .hero-title {
    font-size: clamp(1.75rem, 7.5vw, 2.35rem);
    letter-spacing: -0.02em;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 28px;
  }
  .hero-badge {
    font-size: 0.72rem;
    padding: 6px 12px;
    margin-bottom: 18px;
  }
  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    gap: 12px;
    margin-bottom: 36px;
  }
  .hero-cta .btn {
    width: 100%;
    min-height: 52px;
    font-size: 0.95rem;
  }
  .hero-stats {
    gap: 16px 24px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-stat-value { font-size: 0.95rem; }
  .hero-stat-label { font-size: 0.75rem; }
  .hero-card {
    max-width: 100%;
    padding: 20px;
    animation: none;
  }
  .hero-scroll { display: none; }

  /* Page hero */
  .page-hero {
    padding-top: calc(var(--header-h) + 28px);
    padding-bottom: 36px;
  }
  .page-hero h1 {
    font-size: clamp(1.6rem, 6.5vw, 2.2rem);
  }
  .page-hero p { font-size: 1rem; }
  .breadcrumb {
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 6px;
  }

  /* Cards */
  .card {
    padding: 22px 18px;
  }
  .card h3 { font-size: 1.05rem; }
  .card p { font-size: 0.9rem; }

  /* Process timeline */
  .process-timeline::before { left: 15px; }
  .process-dot {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }
  .process-step { gap: 18px; padding-bottom: 32px; }
  .process-content h3 { font-size: 1.05rem; }
  .process-content p { font-size: 0.9rem; }

  /* FAQ */
  .faq-question {
    padding: 16px 16px;
    font-size: 0.95rem;
    min-height: 52px;
    gap: 12px;
  }
  .faq-answer p {
    padding: 0 16px 16px;
    font-size: 0.9rem;
  }

  /* Form */
  .form-card { padding: 22px 16px; }
  .form-group { margin-bottom: 14px; }
  .form-group label { font-size: 0.8rem; margin-bottom: 6px; }
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 14px 14px;
    font-size: 16px; /* prevents iOS zoom */
    min-height: 48px;
    border-radius: 10px;
  }
  .form-group textarea { min-height: 120px; }
  .btn-block { min-height: 52px; font-size: 1rem; }
  .channel-card {
    padding: 14px;
    gap: 12px;
  }
  .channel-icon {
    width: 44px;
    height: 44px;
  }

  /* Case studies */
  .case-card-visual { height: 120px; }
  .case-card-body { padding: 20px 16px; }
  .case-metrics { gap: 16px; }

  /* CTA */
  .cta-banner { padding: 48px 0; }
  .cta-banner-inner { padding: 32px 18px; }
  .cta-banner h2 { font-size: 1.35rem; }
  .cta-banner p { font-size: 0.925rem; margin-bottom: 20px; }
  .cta-banner .btn {
    width: 100%;
    max-width: 280px;
    min-height: 48px;
  }
  .cta-banner .flex { flex-direction: column; align-items: center; width: 100%; }

  /* Footer */
  .footer { padding-top: 48px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 36px;
  }
  .footer-brand p { max-width: 100%; }
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .footer-disclaimer { text-align: center; font-size: 0.75rem; }
  .footer-legal-links { justify-content: center; gap: 20px; }
  .footer-col ul { gap: 8px; }
  .footer-col a {
    display: inline-block;
    padding: 4px 0;
    min-height: 36px;
  }

  /* Floating Telegram — safe area */
  .floating-telegram {
    bottom: max(16px, env(safe-area-inset-bottom));
    right: max(16px, env(safe-area-inset-right));
    width: 52px;
    height: 52px;
  }

  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stats-strip-item { padding: 20px 12px; }
  .stats-strip-value { font-size: 1.35rem; }

  /* Why / about cards tighter */
  .about-card, .why-item { padding: 20px 16px; }

  /* Hide complex float animation on mobile for performance */
  .hero-card { animation: none !important; }
  .hero::before, .hero::after { opacity: 0.6; }
}

/* Small phones */
@media (max-width: 480px) {
  .container,
  .container-narrow,
  .container-wide {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-title { font-size: 1.65rem; }
  .hero-badge { font-size: 0.68rem; letter-spacing: 0; }

  .section { padding: 48px 0; }
  .section-header { margin-bottom: 28px; }

  .card { padding: 18px 14px; }
  .service-detail-card { padding: 18px 14px; }

  .form-card { padding: 18px 12px; }
  .btn-lg { padding: 14px 20px; }

  .stats-strip { grid-template-columns: 1fr; }
  .stats-strip-item { padding: 16px; }

  .process-timeline::before { left: 13px; }
  .process-dot { width: 28px; height: 28px; box-shadow: 0 0 0 4px var(--accent-dim); }

  .cta-banner-inner { padding: 28px 14px; border-radius: 16px; }

  .floating-telegram {
    width: 48px;
    height: 48px;
    bottom: max(12px, env(safe-area-inset-bottom));
    right: max(12px, env(safe-area-inset-right));
  }

  .nav-actions .btn-telegram.desktop-only { display: none !important; }
}

/* Very small / notch phones */
@media (max-width: 360px) {
  .hero-title { font-size: 1.5rem; }
  .section-title { font-size: 1.35rem; }
  .btn { font-size: 0.875rem; }
}

/* Touch devices — larger hit areas, no hover-only UI */
@media (hover: none) and (pointer: coarse) {
  .nav-link,
  .btn,
  .faq-question,
  .channel-card,
  .footer-col a {
    -webkit-tap-highlight-color: rgba(139, 92, 246, 0.15);
  }
  .card:hover,
  .service-detail-card:hover,
  .case-card:hover {
    transform: none;
  }
  .btn-primary:hover {
    transform: none;
  }
  /* Disable tilt on touch */
  .hero-card { transform: none !important; }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 16px); padding-bottom: 24px; }
  .hero-visual { display: none; }
  .nav { padding-top: 12px; padding-bottom: 12px; }
  .nav-link { font-size: 1rem; padding: 10px 16px; min-height: 40px; }
}

/* Print */
@media print {
  .header, .floating-telegram, .nav-toggle, .hero-scroll, .bg-atmosphere, .bg-noise { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 24px 0; }
  a { text-decoration: underline; }
}

/* ==========================================================================
   Enhanced modern animations & micro-interactions
   ========================================================================== */

/* Animated gradient mesh on hero */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.2), transparent 65%);
  animation: mesh-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: -5%;
  width: 50%;
  height: 55%;
  background: radial-gradient(ellipse, rgba(34, 211, 238, 0.12), transparent 65%);
  animation: mesh-drift 22s ease-in-out infinite alternate-reverse;
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

@keyframes mesh-drift {
  0% { transform: translate(0, 0) scale(1); opacity: 0.85; }
  100% { transform: translate(4%, 6%) scale(1.08); opacity: 1; }
}

/* Shimmer on primary buttons */
.btn-primary {
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.55s ease;
}
.btn-primary:hover::after { left: 120%; }

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Card glow border on hover */
.card, .service-detail-card, .case-card {
  position: relative;
}
.card::before, .service-detail-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, rgba(139, 92, 246, 0.5), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card:hover::before, .service-detail-card:hover::before { opacity: 1; }

/* Staggered reveal refinements */
.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.98);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Nav link underline animation */
.nav-link::before {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-link:hover::before,
.nav-link.active::before { transform: scaleX(1); }
.nav-link.active::after { display: none; }

/* Floating telegram pulse */
.floating-telegram {
  animation: float-tg 3.5s ease-in-out infinite;
}
.floating-telegram::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(34, 158, 217, 0.45);
  animation: tg-ring 2.2s ease-out infinite;
}
@keyframes float-tg {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes tg-ring {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.35); opacity: 0; }
}
.floating-telegram:hover { animation: none; transform: scale(1.1); }

/* Input focus glow */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim), 0 0 24px rgba(139, 92, 246, 0.12);
}

/* Hero title gradient animation */
.gradient-text {
  background-size: 200% auto;
  animation: text-shine 5s linear infinite;
}
@keyframes text-shine {
  to { background-position: 200% center; }
}

/* Page load fade */
@keyframes page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
main { animation: page-in 0.5s ease; }

/* Stats strip hover */
.stats-strip-item {
  transition: background 0.3s ease, transform 0.3s ease;
}
.stats-strip-item:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

/* CTA banner subtle pulse border */
.cta-banner-inner {
  animation: cta-border 4s ease-in-out infinite;
}
@keyframes cta-border {
  0%, 100% { box-shadow: 0 0 0 1px var(--border), 0 0 40px rgba(139, 92, 246, 0.08); }
  50% { box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.35), 0 0 60px rgba(139, 92, 246, 0.15); }
}

/* Smooth magnetic-ish button lift */
.btn-lg, .btn-md {
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

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

/* ==========================================================================
   Light / Dark theme
   ========================================================================== */

[data-theme="light"] {
  --bg: #f4f4f7;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f8fb;
  --bg-input: #f0f0f5;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.12);
  --border-accent: rgba(109, 40, 217, 0.35);
  --text: #18181b;
  --text-secondary: #3f3f46;
  --text-muted: #52525b;
  --text-dim: #71717a;
  --text-faint: #a1a1aa;
  --accent: #7c3aed;
  --accent-bright: #6d28d9;
  --accent-soft: #5b21b6;
  --accent-dim: rgba(124, 58, 237, 0.1);
  --accent-glow: rgba(124, 58, 237, 0.18);
  --cyan: #0891b2;
  --cyan-soft: #0e7490;
  --cyan-dim: rgba(8, 145, 178, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.12);
  --gradient-text: linear-gradient(135deg, #6d28d9 0%, #7c3aed 40%, #0891b2 100%);
  --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #6366f1 45%, #0891b2 100%);
}

[data-theme="light"] .bg-atmosphere {
  background:
    radial-gradient(ellipse 90% 55% at 15% -5%, rgba(124, 58, 237, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 45% at 85% 5%, rgba(8, 145, 178, 0.06), transparent 50%),
    radial-gradient(ellipse 50% 35% at 50% 100%, rgba(99, 102, 241, 0.05), transparent 55%),
    var(--bg);
}

[data-theme="light"] .bg-noise { opacity: 0.02; }

[data-theme="light"] .header.scrolled {
  background: rgba(244, 244, 247, 0.9);
  box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .hero-card {
  box-shadow: var(--shadow-md), 0 0 40px rgba(124, 58, 237, 0.08);
}

[data-theme="light"] .btn-outline {
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.8);
}
[data-theme="light"] .btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

[data-theme="light"] .nav.open {
  background: rgba(244, 244, 247, 0.98);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .footer {
  background: #ebebef;
}

[data-theme="light"] .logo-text { color: var(--text); }

[data-theme="light"] .metric-value.up,
[data-theme="light"] .case-metric-value { color: #059669; }

[data-theme="light"] .hero::before {
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.1), transparent 65%);
}
[data-theme="light"] .hero::after {
  background: radial-gradient(ellipse, rgba(8, 145, 178, 0.08), transparent 65%);
}

/* Theme toggle button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
  position: relative;
}
.theme-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-accent);
}
[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.07);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-45deg) scale(0.7);
}
.theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}
[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}
[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(45deg) scale(0.7);
}

@media (max-width: 960px) {
  .theme-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
}

/* ==========================================================================
   Vizibl-inspired impact layout + trending 2025/26 animations
   Unique SIN identity: coral energy + violet tech
   ========================================================================== */

/* Ambient orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  animation: orb-float 14s ease-in-out infinite;
}
.orb-1 {
  width: 420px; height: 420px;
  background: rgba(243, 112, 44, 0.35);
  top: -120px; left: -80px;
}
.orb-2 {
  width: 360px; height: 360px;
  background: rgba(139, 92, 246, 0.28);
  top: 20%; right: -100px;
  animation-delay: -4s;
  animation-duration: 18s;
}
.orb-3 {
  width: 280px; height: 280px;
  background: rgba(34, 211, 238, 0.18);
  bottom: 10%; left: 30%;
  animation-delay: -8s;
  animation-duration: 16s;
}
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.08); }
  66% { transform: translate(-20px, 25px) scale(0.95); }
}

/* Marquee / ticker */
.marquee-wrap {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  padding: 14px 0;
  position: relative;
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 48px;
}
.marquee-track span::after {
  content: '◆';
  color: var(--accent);
  font-size: 0.55rem;
  opacity: 0.8;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

/* Big impact stats row (Vizibl-style) */
.impact-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.impact-stat {
  text-align: center;
  padding: 28px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.impact-stat:hover {
  border-color: rgba(243, 112, 44, 0.45);
  transform: translateY(-4px);
}
.impact-stat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(243,112,44,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.impact-stat:hover::before { opacity: 1; }
.impact-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  margin-bottom: 6px;
}
.impact-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* Bento grid */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.bento-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.bento-item:hover {
  border-color: rgba(243, 112, 44, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.bento-lg { grid-column: span 7; }
.bento-md { grid-column: span 5; }
.bento-sm { grid-column: span 4; }
.bento-full { grid-column: span 12; }

/* Text reveal line animation */
.reveal-line {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.reveal-line span {
  display: inline-block;
  transform: translateY(110%);
  animation: line-up 0.9s var(--ease-out) forwards;
}
@keyframes line-up {
  to { transform: translateY(0); }
}

/* Glow pulse CTA */
.btn-glow {
  box-shadow: 0 0 0 0 rgba(243, 112, 44, 0.45);
  animation: glow-pulse 2.4s ease-out infinite;
}
@keyframes glow-pulse {
  0% { box-shadow: 0 0 0 0 rgba(243, 112, 44, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(243, 112, 44, 0); }
  100% { box-shadow: 0 0 0 0 rgba(243, 112, 44, 0); }
}

/* Section divider glow */
.section-glow-top {
  position: relative;
}
.section-glow-top::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(480px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--violet-bright, #a78bfa), transparent);
  opacity: 0.6;
}

/* Logo mark uses coral gradient now */
.logo-mark {
  background: linear-gradient(135deg, #ff8a4c, #f3702c 50%, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Counter will be animated via JS */
[data-count] { font-variant-numeric: tabular-nums; }

/* Light theme adjust for coral */
[data-theme="light"] {
  --accent: #e85d04;
  --accent-bright: #f3702c;
  --accent-soft: #c2410c;
  --accent-dim: rgba(232, 93, 4, 0.1);
  --accent-glow: rgba(232, 93, 4, 0.18);
  --gradient-primary: linear-gradient(135deg, #e85d04 0%, #f3702c 40%, #7c3aed 100%);
  --gradient-text: linear-gradient(135deg, #c2410c 0%, #e85d04 40%, #6d28d9 100%);
}

@media (max-width: 900px) {
  .impact-stats { grid-template-columns: 1fr; gap: 12px; }
  .bento { grid-template-columns: 1fr; }
  .bento-lg, .bento-md, .bento-sm, .bento-full { grid-column: span 1; }
  .orb { opacity: 0.35; filter: blur(60px); }
}

/* Form loading / success reliability */
.contact-form[hidden],
.form-success[hidden] {
  display: none !important;
}
.form-success:not([hidden]) {
  display: block !important;
}
#submitBtn:disabled {
  opacity: 0.75;
  cursor: wait;
}
