/* ============================================================
   qriot.io — Brand Stylesheet
   Marketing landing page · Light + Dark mode
   ============================================================ */

/* ── 1. Design tokens ─────────────────────────────────────── */

:root {
  /* Brand gradient */
  --color-cyan:         #22D3EE;
  --color-cyan-light:   #6EE7F7;
  --color-indigo:       #818CF8;
  --color-indigo-deep:  #6366F1;

  /* Gradient shorthand */
  --gradient-brand:     linear-gradient(135deg, var(--color-cyan) 0%, var(--color-indigo) 100%);
  --gradient-brand-h:   linear-gradient(90deg,  var(--color-cyan) 0%, var(--color-indigo) 100%);

  /* Light mode surfaces */
  --color-bg:           #F8FAFC;
  --color-bg-alt:       #F1F5F9;
  --color-surface:      #FFFFFF;
  --color-surface-alt:  #F8FAFC;
  --color-border:       #E2E8F0;
  --color-border-focus: var(--color-cyan);

  /* Light mode text */
  --color-text:         #0F172A;
  --color-text-muted:   #475569;
  --color-text-subtle:  #94A3B8;

  /* Accent on light bg (slightly richer than raw brand values) */
  --color-accent:       #0EA5E9;
  --color-accent-2:     var(--color-indigo-deep);

  /* States */
  --color-success:      #10B981;
  --color-warning:      #F59E0B;
  --color-error:        #EF4444;

  /* Shadow */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.07);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.08);
  --shadow-glow: 0 0 24px rgba(34, 211, 238, .35);

  /* Spacing scale */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Typography */
  --font-sans:  'Inter', 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   200ms ease;
  --transition-slow:   350ms ease;

  /* Layout */
  --container-max: 1200px;
  --container-pad: var(--space-6);
}

/* Dark mode overrides */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg:          #0B1120;
    --color-bg-alt:      #111827;
    --color-surface:     #1A2540;
    --color-surface-alt: #162033;
    --color-border:      #1E3A5F;
    --color-border-focus: var(--color-cyan);

    --color-text:        #F1F5F9;
    --color-text-muted:  #94A3B8;
    --color-text-subtle: #475569;

    --color-accent:      var(--color-cyan);
    --color-accent-2:    var(--color-indigo);

    --shadow-sm:  0 1px 3px rgba(0,0,0,.4);
    --shadow-md:  0 4px 16px rgba(0,0,0,.5);
    --shadow-lg:  0 10px 40px rgba(0,0,0,.6);
    --shadow-glow: 0 0 32px rgba(34, 211, 238, .25);
  }
}


/* ── 2. Reset & base ──────────────────────────────────────── */

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color var(--transition-slow), color var(--transition-slow);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-indigo); }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

p { color: var(--color-text-muted); }

code, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

pre {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  overflow-x: auto;
}

code {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.1em 0.4em;
  font-size: var(--text-sm);
}

pre code { background: none; border: none; padding: 0; font-size: inherit; }


/* ── 3. Layout ────────────────────────────────────────────── */

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

.section {
  padding-block: var(--space-20);
}

.section--lg {
  padding-block: var(--space-24);
}

.section--alt {
  background-color: var(--color-bg-alt);
}

/* Simple CSS grid helpers */
.grid   { display: grid; gap: var(--space-6); }
.flex   { display: flex; gap: var(--space-4); }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .section { padding-block: var(--space-12); }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
}


/* ── 4. Navigation ────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--transition-slow), border-color var(--transition-slow);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--color-text);
  letter-spacing: -0.03em;
}

/* Wrap the SVG logo at nav size */
.nav__logo img,
.nav__logo svg {
  width: 36px;
  height: 36px;
}

.nav__logo-text em {
  font-style: normal;
  background: var(--gradient-brand-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}
.nav__links a:hover { color: var(--color-text); }

.nav__cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

@media (max-width: 768px) {
  .nav__links { display: none; }
}


/* ── 5. Hero ──────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-24);
  text-align: center;
}

/* Subtle radial glow behind hero content */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(34, 211, 238, .12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(129, 140, 248, .10) 0%, transparent 60%);
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(34, 211, 238, .08);
  border: 1px solid rgba(34, 211, 238, .25);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  margin-bottom: var(--space-6);
}

.hero__title {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
  font-weight: 800;
  letter-spacing: -0.04em;
  max-width: 14ch;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

.hero__title .gradient-text {
  background: var(--gradient-brand-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--space-10);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__logo {
  margin-inline: auto;
  margin-bottom: var(--space-12);
  width: 140px;
  height: 140px;
  filter: drop-shadow(0 0 24px rgba(34, 211, 238, .3));
}


/* ── 6. Buttons ───────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-6);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    opacity var(--transition-fast);
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

/* Primary — brand gradient */
.btn--primary {
  background: var(--gradient-brand-h);
  color: #0B1120;
  box-shadow: 0 4px 14px rgba(34, 211, 238, .3);
}
.btn--primary:hover {
  opacity: 0.9;
  box-shadow: 0 6px 20px rgba(34, 211, 238, .45);
  color: #0B1120;
}

/* Secondary — outlined */
.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn--secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(34, 211, 238, .05);
}

/* Ghost */
.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
}
.btn--ghost:hover {
  color: var(--color-text);
  background: var(--color-bg-alt);
}

/* Sizes */
.btn--sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); border-radius: var(--radius-sm); }
.btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); border-radius: var(--radius-lg); }

/* Disabled */
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}


/* ── 7. Cards ─────────────────────────────────────────────── */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
  border-color: rgba(34, 211, 238, .35);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Glowing feature card */
.card--feature {
  position: relative;
  overflow: hidden;
}

.card--feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-brand-h);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card--feature:hover::before {
  opacity: 1;
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(34, 211, 238, .1);
  border: 1px solid rgba(34, 211, 238, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  font-size: 1.4rem;
}

.card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.card__body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Stat card */
.card--stat {
  text-align: center;
  padding: var(--space-6);
}
.card--stat .stat__value {
  font-size: var(--text-4xl);
  font-weight: 800;
  background: var(--gradient-brand-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.04em;
}
.card--stat .stat__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}


/* ── 8. Badges & chips ────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
  padding: 0.2em 0.75em;
}

.badge--cyan {
  color: var(--color-cyan);
  background: rgba(34, 211, 238, .1);
  border: 1px solid rgba(34, 211, 238, .25);
}

.badge--indigo {
  color: var(--color-indigo);
  background: rgba(129, 140, 248, .1);
  border: 1px solid rgba(129, 140, 248, .25);
}

.badge--success {
  color: var(--color-success);
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .25);
}

.badge--warning {
  color: var(--color-warning);
  background: rgba(245, 158, 11, .1);
  border: 1px solid rgba(245, 158, 11, .25);
}

.badge--error {
  color: var(--color-error);
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .25);
}

/* Dot indicator */
.badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.badge--no-dot::before { display: none; }


/* ── 9. Forms ─────────────────────────────────────────────── */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  outline: none;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--color-text-subtle); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .15);
}

.form-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.form-hint {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
}


/* ── 10. Section headings ─────────────────────────────────── */

.section-header {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}

.section-header__eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section-header__title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}

.section-header__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
}


/* ── 11. Gradient dividers & decorations ─────────────────── */

.divider {
  height: 1px;
  background: var(--color-border);
  margin-block: var(--space-16);
}

.divider--gradient {
  background: linear-gradient(90deg,
    transparent 0%,
    var(--color-cyan) 30%,
    var(--color-indigo) 70%,
    transparent 100%);
  opacity: 0.35;
  height: 1px;
  border: none;
}

/* Gradient text utility */
.gradient-text {
  background: var(--gradient-brand-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradient border utility */
.gradient-border {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  background: var(--gradient-brand);
  z-index: -1;
}


/* ── 12. Step / process list ─────────────────────────────── */

.steps {
  display: grid;
  gap: var(--space-8);
  counter-reset: steps;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-5);
  align-items: start;
  counter-increment: steps;
}

.step__number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
  color: #0B1120;
  font-weight: 800;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step__number::after { content: counter(steps); }

.step__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.step__body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}


/* ── 13. CTA banner ──────────────────────────────────────── */

.cta-banner {
  background: var(--gradient-brand);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-8);
  text-align: center;
  color: #0B1120;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-banner__title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
  color: #0B1120;
}

.cta-banner__subtitle {
  font-size: var(--text-lg);
  opacity: 0.75;
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  color: #0B1120;
}

.cta-banner .btn--secondary {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.4);
  color: #0B1120;
}
.cta-banner .btn--secondary:hover {
  background: rgba(255,255,255,.3);
  border-color: rgba(255,255,255,.7);
}


/* ── 14. Footer ──────────────────────────────────────────── */

.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-16) var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer__brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  max-width: 30ch;
  line-height: 1.7;
}

.footer__col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}
.footer__links a:hover { color: var(--color-accent); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; gap: var(--space-3); text-align: center; }
}


/* ── 15. Utility classes ─────────────────────────────────── */

.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

.text-xs      { font-size: var(--text-xs); }
.text-sm      { font-size: var(--text-sm); }
.text-lg      { font-size: var(--text-lg); }
.text-xl      { font-size: var(--text-xl); }

.font-bold    { font-weight: 700; }
.font-medium  { font-weight: 500; }

.text-muted   { color: var(--color-text-muted); }
.text-subtle  { color: var(--color-text-subtle); }
.text-accent  { color: var(--color-accent); }
.text-indigo  { color: var(--color-indigo); }
.text-cyan    { color: var(--color-cyan); }

.mt-auto  { margin-top: auto; }
.mb-0     { margin-bottom: 0; }
.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;
}


/* ── 16. Animations ──────────────────────────────────────── */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 16px rgba(34, 211, 238, .3); }
  50%       { box-shadow: 0 0 32px rgba(34, 211, 238, .6); }
}

.animate-fade-up {
  animation: fade-up 0.5s ease both;
}

.animate-fade-in {
  animation: fade-in 0.4s ease both;
}

.animate-pulse-glow {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

/* Staggered delay helpers */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

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