/* ==========================================================================
   SAHIR — Corporate Site (sahir.uz)
   Design system: Midnight glass, electric blue → cyan spectrum
   ========================================================================== */

:root {
  /* Core palette */
  --bg: #0B1220;
  --bg-alt: #0E1729;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --blue: #2563EB;
  --blue-soft: #3B82F6;
  --cyan: #06B6D4;
  --emerald: #10B981;
  --white: #FFFFFF;
  --gray: #94A3B8;
  --gray-dim: #5B6B85;

  --grad-primary: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  --grad-emerald: linear-gradient(135deg, #06B6D4 0%, #10B981 100%);
  --grad-text: linear-gradient(120deg, #FFFFFF 0%, #C7D6F5 45%, #67B8FF 100%);

  --shadow-glow: 0 0 0 1px rgba(37, 99, 235, 0.18), 0 20px 60px -20px rgba(37, 99, 235, 0.35);
  --shadow-card: 0 1px 0 rgba(255,255,255,0.06) inset, 0 30px 60px -30px rgba(0,0,0,0.6);

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --container: 1240px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Ambient background */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 85% -10%, rgba(37, 99, 235, 0.22), transparent 60%),
    radial-gradient(50vw 50vw at 0% 30%, rgba(6, 182, 212, 0.14), transparent 60%),
    radial-gradient(40vw 40vw at 50% 100%, rgba(16, 185, 129, 0.10), transparent 60%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(60% 50% at 50% 0%, black, transparent 90%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

main, header, footer, section { position: relative; z-index: 2; }

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px 2px var(--cyan);
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }

h2.section-title {
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 16px;
}
.section-lede {
  color: var(--gray);
  font-size: 17px;
  max-width: 560px;
  margin-bottom: 56px;
}
.section-head { display: flex; flex-direction: column; }
.section-head.center { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .section-lede { margin-left: auto; margin-right: auto; }

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

section { padding: 128px 0; }
@media (max-width: 768px) { section { padding: 84px 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37, 99, 235, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -8px rgba(37, 99, 235, 0.7); }
.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: #fff;
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: var(--surface-strong); transform: translateY(-2px); }
.btn-arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 12px 0;
  background: rgba(11, 18, 32, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.brand svg { width: 30px; height: 30px; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 14.5px;
  color: var(--gray);
  transition: color 0.25s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--white); }
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--grad-primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { padding: 11px 22px; font-size: 13.5px; }
.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 1.5px; background: #fff; position: relative; transition: all 0.3s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 900px) {
  .nav-links, .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 200px 0 120px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  min-height: 92vh;
}
.hero-copy h1 { font-size: clamp(38px, 5.4vw, 68px); margin-bottom: 24px; }
.hero-copy p.lede { color: var(--gray); font-size: 18px; max-width: 520px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-trust { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-trust .item { font-family: var(--font-mono); font-size: 12.5px; color: var(--gray-dim); display: flex; align-items: center; gap: 8px; }
.hero-trust .item svg { width: 15px; height: 15px; color: var(--cyan); }

.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 150px; text-align: center; }
  .hero-copy p.lede { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-visual { order: -1; max-width: 480px; margin: 0 auto 20px; }
}

/* ---------- Logos strip ---------- */
.logos-strip { padding: 48px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.logos-strip .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px; }
.logos-strip .label { font-family: var(--font-mono); font-size: 12px; color: var(--gray-dim); letter-spacing: 0.08em; text-transform: uppercase; }
.logos-row { display: flex; gap: 40px; flex-wrap: wrap; align-items: center; opacity: 0.6; }
.logos-row svg { height: 24px; width: auto; color: var(--gray); }

/* ---------- About ---------- */
.about { }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.about-visual { position: relative; }
.about-visual svg { width: 100%; }
.about-copy p { color: var(--gray); font-size: 16.5px; margin-bottom: 20px; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.about-stats .stat b { display: block; font-family: var(--font-display); font-size: 26px; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-stats .stat span { font-size: 12.5px; color: var(--gray-dim); font-family: var(--font-mono); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-visual { order: -1; max-width: 420px; margin: 0 auto; } }

/* ---------- Products ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .products-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  backdrop-filter: blur(14px);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease), box-shadow .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.product-card:hover { transform: translateY(-6px); background: var(--surface-strong); box-shadow: var(--shadow-card); }
.product-card:hover::before { opacity: 0.6; }
.product-card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, rgba(37,99,235,0.22), rgba(6,182,212,0.14));
  border: 1px solid var(--border-strong);
  margin-bottom: 20px;
}
.product-card .icon svg { width: 22px; height: 22px; color: var(--cyan); }
.product-card h3 { font-size: 17px; margin-bottom: 10px; }
.product-card p { font-size: 14px; color: var(--gray); margin-bottom: 18px; }
.product-card .more { font-size: 13px; font-weight: 600; color: var(--blue-soft); display: inline-flex; align-items: center; gap: 6px; }
.product-card .more svg { width: 13px; height: 13px; transition: transform 0.3s var(--ease); }
.product-card:hover .more svg { transform: translateX(3px); }

/* ---------- Advantages ---------- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
@media (max-width: 980px) { .adv-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .adv-grid { grid-template-columns: repeat(2, 1fr); } }
.adv-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 500;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.adv-pill:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.adv-pill svg { width: 17px; height: 17px; color: var(--emerald); flex-shrink: 0; }

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats-grid .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px);
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats-grid .stat span { color: var(--gray-dim); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; } }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(14px);
}
.testi-card .stars { display: flex; gap: 3px; margin-bottom: 18px; }
.testi-card .stars svg { width: 15px; height: 15px; color: var(--cyan); }
.testi-card p.quote { font-size: 15px; color: #DDE3EE; margin-bottom: 24px; }
.testi-person { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
}
.testi-person b { display: block; font-size: 14px; }
.testi-person span { font-size: 12.5px; color: var(--gray-dim); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 4px;
  font-size: 16px; font-weight: 600;
  text-align: left;
  color: #fff;
}
.faq-q .plus { width: 22px; height: 22px; flex-shrink: 0; position: relative; margin-left: 20px; }
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute; background: var(--cyan); border-radius: 2px;
  transition: transform 0.35s var(--ease);
}
.faq-q .plus::before { width: 100%; height: 1.5px; top: 50%; left: 0; transform: translateY(-50%); }
.faq-q .plus::after { width: 1.5px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }
.faq-item.open .faq-q .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}
.faq-a p { padding: 0 4px 24px; color: var(--gray); font-size: 14.5px; max-width: 640px; }
.faq-item.open .faq-a { max-height: 260px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-card {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 20px;
}
.contact-card .icon { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(145deg, rgba(37,99,235,0.24), rgba(6,182,212,0.14)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-card .icon svg { width: 18px; height: 18px; color: var(--cyan); }
.contact-card b { display: block; font-size: 13px; color: var(--gray-dim); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.contact-card a, .contact-card span { font-size: 15.5px; }
.map-placeholder {
  margin-top: 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  height: 180px;
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px) 0 0/28px 28px,
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px) 0 0/28px 28px,
    var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-dim); font-family: var(--font-mono); font-size: 12.5px; text-align: center; gap: 8px; flex-direction: column;
}
.map-placeholder svg { width: 22px; height: 22px; color: var(--cyan); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(14px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12.5px; color: var(--gray-dim); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-soft);
  background: rgba(37,99,235,0.06);
}
.field textarea { resize: vertical; min-height: 100px; }
.form-status { margin-top: 14px; font-size: 13.5px; color: var(--emerald); display: none; align-items: center; gap: 8px; font-family: var(--font-mono); }
.form-status.show { display: flex; }
.form-status svg { width: 16px; height: 16px; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, rgba(37,99,235,0.16), rgba(6,182,212,0.10));
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 16px; }
.cta-band p { color: var(--gray); margin-bottom: 32px; }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 72px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; margin-bottom: 56px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--gray-dim); font-size: 14px; max-width: 260px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.footer-social a:hover { background: var(--surface-strong); border-color: var(--border-strong); }
.footer-social svg { width: 15px; height: 15px; color: var(--gray); }
.footer-col h4 { font-size: 13px; color: var(--gray-dim); text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-mono); font-weight: 500; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14.5px; color: var(--gray); transition: color 0.25s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--gray-dim);
}
.footer-bottom a { color: var(--gray-dim); }
.footer-bottom a:hover { color: var(--gray); }

/* ---------- Reveal animation hooks ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal-stagger].in-view > * { opacity: 1; transform: translateY(0); }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(11,18,32,0.98);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  padding: 100px 32px 40px;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { font-family: var(--font-display); font-size: 26px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.mobile-nav .btn { margin-top: 30px; }
.mobile-close { position: absolute; top: 26px; right: 32px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
