/* ============================================================
   Cloudo — marketing landing page
   Palette derived directly from the Cloudo wordmark: brushed
   steel-navy letterforms + a glowing cyan "o". Two tones, used
   with discipline; light sections use a cyan-tinted neutral
   rather than plain white.
   ============================================================ */

:root {
  /* --- Color tokens (light "mode" is the page's own light sections) --- */
  --navy-950: #0a1628;
  --navy-900: #0e1e35;
  --navy-800: #142a44;
  --navy-700: #1c3654;
  --steel-400: #7e97ad;
  --steel-300: #a7bccb;
  --cyan-300: #6fe0f4;
  --cyan-400: #35d0f0;
  --cyan-500: #17b9dd;
  --cyan-600: #0e9fc2;
  --ice-50: #eef7fa;
  --ice-100: #e2f1f6;
  --ice-200: #cfe6ee;
  --ink-900: #0c1b2a;
  --ink-700: #294256;
  --ink-600: #4c6478;
  --ink-500: #6b8194;
  --white: #ffffff;

  /* --- Semantic tokens --- */
  --bg-page: var(--ice-50);
  --bg-surface: var(--white);
  --bg-surface-raised: var(--white);
  --bg-dark: var(--navy-950);
  --bg-dark-surface: var(--navy-800);
  --text-primary: var(--ink-900);
  --text-secondary: var(--ink-600);
  --text-on-dark: #eaf4f8;
  --text-on-dark-secondary: var(--steel-300);
  --border-soft: var(--ice-200);
  --border-dark: rgba(126, 151, 173, 0.28);
  --accent: var(--cyan-400);
  --accent-strong: var(--cyan-500);
  --accent-ink: #04303c;
  --shadow-color: 205 60% 20%;

  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;

  --container: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
}

/* This design commits to one visual world (brushed steel + glowing
   cyan on deep navy / cyan-tinted ice) rather than swapping palettes
   per OS theme — the same considered reason a product logo doesn't
   redraw itself for dark mode. Colors are still fully token-driven. */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

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

section {
  padding-block: clamp(64px, 9vw, 112px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.7;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-top: 14px;
}

.section-head p {
  margin-top: 16px;
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 54ch;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .eyebrow {
  justify-content: center;
}

.section-head.center p {
  margin-inline: auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(180deg, var(--cyan-300), var(--cyan-500));
  color: #04222b;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 14px 28px -12px hsla(var(--shadow-color) / 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 18px 32px -12px hsla(var(--shadow-color) / 0.65);
}

.btn-ghost-dark {
  background: transparent;
  border-color: var(--border-dark);
  color: var(--text-on-dark);
}

.btn-ghost-dark:hover {
  border-color: var(--cyan-400);
  color: var(--cyan-300);
}

.btn-ghost-light {
  background: var(--white);
  border-color: var(--border-soft);
  color: var(--text-primary);
}

.btn-ghost-light:hover {
  border-color: var(--accent-strong);
  color: var(--accent-ink);
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 22, 40, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(126, 151, 173, 0.16);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 26px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-on-dark-secondary);
}

.nav-links a {
  transition: color 0.15s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions .btn {
  padding: 10px 18px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  color: var(--text-on-dark);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: radial-gradient(120% 90% at 82% -10%, #103150 0%, var(--navy-950) 46%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900));
  color: var(--text-on-dark);
  overflow: hidden;
  padding-block: clamp(72px, 10vw, 120px) clamp(90px, 11vw, 140px);
}

.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto auto;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(53, 208, 240, 0.32), rgba(53, 208, 240, 0) 68%);
  filter: blur(10px);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  left: -12%;
  bottom: -30%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(28, 54, 84, 0.9), rgba(28, 54, 84, 0) 70%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-copy .eyebrow {
  color: var(--cyan-300);
}

.hero-copy h1 {
  margin-top: 18px;
  font-size: clamp(34px, 4.6vw, 54px);
  color: var(--white);
}

.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--cyan-300), var(--cyan-500) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy .lede {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-on-dark-secondary);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.hero-fineprint {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 13.5px;
  color: var(--steel-300);
}

.hero-fineprint span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-fineprint svg {
  width: 15px;
  height: 15px;
  color: var(--cyan-400);
  flex-shrink: 0;
}

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

.hero-visual {
  position: relative;
  min-width: 0;
  /* konteyner chekkasidan tashqariga chiqib, rasmni kattaroq ko'rsatadi */
  margin-right: calc(-1 * clamp(0px, (100vw - var(--container)) / 2 - 4px, 240px));
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 4% 0 4% 10%;
  background: radial-gradient(60% 60% at 50% 50%, rgba(53, 208, 240, 0.18), rgba(53, 208, 240, 0) 72%);
  filter: blur(18px);
  pointer-events: none;
}

.hero-img {
  position: relative;
  display: block;
  width: calc(100% + 32px);
  max-width: none;
  margin-left: -32px;
  height: auto;
}

/* ---------- Features ---------- */

.features {
  background: var(--bg-page);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover {
  border-color: var(--cyan-400);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -24px hsla(var(--shadow-color) / 0.35);
}

.feature-card .ico {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(160deg, var(--ice-100), var(--ice-200));
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-card .ico svg {
  width: 21px;
  height: 21px;
}

.feature-card h3 {
  font-size: 17.5px;
}

.feature-card p {
  margin-top: 9px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- How it works ---------- */

.how {
  background: var(--bg-surface);
  border-block: 1px solid var(--border-soft);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 4px 20px 4px 0;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 22px;
  right: -2px;
  width: calc(100% - 44px);
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--border-soft) 0 6px, transparent 6px 12px);
}

.step .num {
  counter-increment: step;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-strong);
  border: 1px solid var(--ice-200);
  background: var(--ice-50);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.step .num::before {
  content: counter(step, decimal-leading-zero);
}

.step h3 {
  margin-top: 18px;
  font-size: 16.5px;
}

.step p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- Spotlight (variant tracking detail) ---------- */

.spotlight {
  background: var(--bg-page);
}

.spotlight .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.spotlight-panel {
  background: var(--navy-950);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.spotlight-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, rgba(53, 208, 240, 0.22), transparent 60%);
  pointer-events: none;
}

.variant-table {
  position: relative;
  border: 1px solid rgba(126, 151, 173, 0.22);
  border-radius: 14px;
  overflow: hidden;
  font-size: 13px;
}

.variant-row {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  padding: 12px 16px;
  color: var(--text-on-dark-secondary);
  border-bottom: 1px solid rgba(126, 151, 173, 0.16);
}

.variant-row.head {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-300);
  background: rgba(255, 255, 255, 0.02);
}

.variant-row:last-child {
  border-bottom: none;
}

.variant-row .name {
  color: var(--white);
  font-weight: 600;
}

.variant-row .qty {
  font-family: var(--font-mono);
  text-align: right;
}

.variant-row .qty.low {
  color: #ff9d7a;
}

.variant-row .qty.ok {
  color: var(--cyan-300);
}

.spotlight-copy .section-head {
  margin-bottom: 20px;
}

.check-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.check-list svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent-strong);
}

.check-list strong {
  color: var(--text-primary);
}

/* ---------- Pricing ---------- */

.pricing {
  background: radial-gradient(120% 100% at 50% 0%, #0f2540 0%, var(--navy-950) 55%);
  color: var(--text-on-dark);
}

.pricing .section-head h2,
.pricing .section-head p {
  color: var(--text-on-dark);
}

.pricing .section-head p {
  color: var(--text-on-dark-secondary);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 820px;
  margin-inline: auto;
}

.price-card {
  background: var(--navy-900);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  position: relative;
}

.price-card.featured {
  border-color: var(--cyan-400);
  background: linear-gradient(165deg, #123049, var(--navy-900));
  box-shadow: 0 30px 60px -30px rgba(53, 208, 240, 0.35);
}

.price-badge {
  position: absolute;
  top: -13px;
  left: 30px;
  background: linear-gradient(180deg, var(--cyan-300), var(--cyan-500));
  color: #04222b;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
}

.price-card .plan-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--steel-300);
}

.price-card .plan-price {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-card .plan-price .amount {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 600;
  color: var(--white);
}

.price-card .plan-price .period {
  font-size: 14px;
  color: var(--steel-300);
}

.price-card .plan-desc {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-on-dark-secondary);
  line-height: 1.6;
}

.plan-features {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.plan-features li {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-on-dark-secondary);
}

.plan-features svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--cyan-400);
}

.price-card .btn {
  margin-top: 26px;
}

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

.cta-band {
  background: var(--bg-page);
}

.cta-box {
  background: linear-gradient(120deg, var(--navy-950), var(--navy-800) 120%);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  right: -6%;
  top: -40%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(53, 208, 240, 0.28), transparent 70%);
}

.cta-box h2 {
  position: relative;
  color: var(--white);
  font-size: clamp(24px, 3vw, 32px);
  max-width: 480px;
}

.cta-box p {
  position: relative;
  margin-top: 10px;
  color: var(--text-on-dark-secondary);
  font-size: 15px;
}

.cta-actions {
  position: relative;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-950);
  color: var(--text-on-dark-secondary);
  padding-block: 56px 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(126, 151, 173, 0.18);
}

.footer-brand img {
  height: 22px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 32ch;
  color: var(--text-on-dark-secondary);
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--steel-300);
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--cyan-300);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 13px;
}

/* ---------- Reveal-on-scroll ---------- */

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

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    order: -1;
    margin-right: 0;
  }

  .hero-img {
    width: 100%;
    margin-left: 0;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }

  .step:nth-child(2)::after {
    display: none;
  }

  .spotlight .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    row-gap: 32px;
  }
}

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

  .nav-toggle {
    display: flex;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .step::after {
    display: none;
  }

  .price-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

}
