/* ==========================================================================
   SAHIR VMS CLOUD — Product Landing (sahircloud.uz)
   ========================================================================== */

:root {
  --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-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; }

.bg-field {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(55vw 55vw at 90% -10%, rgba(6, 182, 212, 0.20), transparent 60%),
    radial-gradient(45vw 45vw at 5% 40%, rgba(37, 99, 235, 0.18), transparent 60%),
    radial-gradient(40vw 40vw at 50% 100%, rgba(16, 185, 129, 0.09), 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.14; }
h2.section-title { font-size: clamp(30px, 4vw, 46px); margin-bottom: 16px; }
.section-lede { color: var(--gray); font-size: 17px; max-width: 580px; 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); }
.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: 18px; }
.brand svg { width: 28px; height: 28px; }
.brand .tag { font-family: var(--font-mono); font-weight: 500; font-size: 11px; color: var(--cyan); border: 1px solid var(--border-strong); border-radius: 999px; padding: 3px 9px; margin-left: 2px; letter-spacing: 0.04em; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.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; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
@media (max-width: 980px) { .nav-links, .header-actions .btn-ghost { display: none; } .nav-toggle { display: flex; } }

.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: 24px; padding: 13px 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; }

/* Hero */
.hero { padding: 190px 0 100px; display: grid; grid-template-columns: 0.95fr 1.05fr; align-items: center; gap: 40px; min-height: 88vh; }
.hero-copy h1 { font-size: clamp(36px, 5vw, 62px); margin-bottom: 22px; }
.hero-copy p.lede { color: var(--gray); font-size: 18px; max-width: 520px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-trust { display: flex; gap: 28px; 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 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: 560px; margin: 0 auto 10px; }
}

/* Dashboard showcase */
.dashboard-section { }
.dashboard-frame {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  backdrop-filter: blur(16px);
  padding: 14px;
  box-shadow: var(--shadow-card);
}
.dashboard-frame svg { width: 100%; height: auto; border-radius: 18px; }
.dashboard-tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.dashboard-tabs button {
  padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--border); color: var(--gray); transition: all 0.3s var(--ease);
}
.dashboard-tabs button.active, .dashboard-tabs button:hover { color: #fff; border-color: var(--border-strong); background: var(--surface-strong); }

/* Feature grid */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1100px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .features-grid { grid-template-columns: 1fr; } }
.feature-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);
}
.feature-pill:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.feature-pill svg { width: 17px; height: 17px; color: var(--emerald); flex-shrink: 0; }

/* Comparison table */
.compare-wrap { border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; background: var(--surface); backdrop-filter: blur(14px); }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 18px 22px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--border); }
.compare-table th { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: #fff; }
.compare-table thead th:nth-child(2) { color: var(--cyan); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.compare-table td:first-child { color: var(--gray); }
.compare-table .yes { color: var(--emerald); }
.compare-table .no { color: var(--gray-dim); }
.compare-table svg { width: 16px; height: 16px; }
@media (max-width: 720px) { .compare-table { font-size: 12.5px; } .compare-table th, .compare-table td { padding: 12px 10px; } }

/* Architecture diagram */
.arch-wrap { border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--surface); padding: 40px; backdrop-filter: blur(14px); }
.arch-wrap svg { width: 100%; height: auto; }

/* Use cases */
.usecases-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 980px) { .usecases-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .usecases-grid { grid-template-columns: repeat(2, 1fr); } }
.usecase-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px 18px; text-align: center; transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.usecase-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.usecase-card .icon { width: 42px; height: 42px; margin: 0 auto 14px; border-radius: 10px; background: linear-gradient(145deg, rgba(37,99,235,0.22), rgba(6,182,212,0.14)); display: flex; align-items: center; justify-content: center; }
.usecase-card .icon svg { width: 20px; height: 20px; color: var(--cyan); }
.usecase-card span { font-size: 13.5px; font-weight: 500; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px 28px; display: flex; flex-direction: column; backdrop-filter: blur(14px);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
  position: relative;
}
.price-card:hover { transform: translateY(-6px); }
.price-card.featured { border-color: var(--blue-soft); background: linear-gradient(180deg, rgba(37,99,235,0.10), rgba(6,182,212,0.05)); box-shadow: 0 20px 60px -20px rgba(37,99,235,0.4); }
.price-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad-primary); font-size: 11.5px; font-weight: 600; padding: 6px 16px; border-radius: 999px; font-family: var(--font-mono); white-space: nowrap; }
.price-card h3 { font-size: 20px; margin-bottom: 6px; }
.price-card .price-sub { color: var(--gray-dim); font-size: 13.5px; margin-bottom: 22px; }
.price-card .price { font-family: var(--font-display); font-size: 34px; margin-bottom: 4px; }
.price-card .price span { font-size: 14px; color: var(--gray-dim); font-family: var(--font-body); font-weight: 400; }
.price-card .price-note { font-size: 12.5px; color: var(--gray-dim); margin-bottom: 26px; font-family: var(--font-mono); }
.price-card ul { display: flex; flex-direction: column; gap: 13px; margin-bottom: 30px; flex-grow: 1; }
.price-card li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #DDE3EE; }
.price-card li svg { width: 15px; height: 15px; color: var(--emerald); flex-shrink: 0; margin-top: 2px; }

/* FAQ (shared pattern) */
.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); }
.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; }

/* 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; }
.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; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; 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; }

.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, .field select {
  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 select option { background: #111827; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue-soft); background: rgba(37,99,235,0.06); }
.field textarea { resize: vertical; min-height: 96px; }
.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; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 72px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 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: 280px; 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: all .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 */
[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); }
