/* ============================================================
   HummOut — Design System
   ============================================================ */

:root {
  /* Brand palette */
  --bg:            #0d1117;
  --bg-soft:       #131a24;
  --surface:       #161e2b;
  --surface-2:     #1c2738;
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text:          #eef2f7;
  --text-muted:    #9fb0c3;
  --text-dim:      #6b7c91;

  --brand:         #ff6b4a;   /* warm coral */
  --brand-2:       #ffb347;   /* amber */
  --accent:        #4ad0c7;   /* teal */
  --accent-2:      #7c6cff;   /* violet */

  --grad-warm: linear-gradient(120deg, #ff6b4a 0%, #ffb347 100%);
  --grad-cool: linear-gradient(120deg, #4ad0c7 0%, #7c6cff 100%);
  --grad-hero: radial-gradient(1200px 600px at 75% -10%, rgba(124, 108, 255, 0.18), transparent 60%),
               radial-gradient(1000px 500px at 10% 10%, rgba(255, 107, 74, 0.16), transparent 55%);

  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --shadow:    0 18px 50px -20px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, 0.55);

  --maxw: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }

p { margin: 0; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 16px;
}

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

.lead {
  font-size: 1.18rem;
  color: var(--text-muted);
  max-width: 60ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--grad-warm);
  color: #1a0f0a;
  box-shadow: 0 12px 30px -12px rgba(255, 107, 74, 0.7);
}
.btn-primary:hover { box-shadow: 0 18px 40px -12px rgba(255, 107, 74, 0.85); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 17, 23, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
}
.brand .logo {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 9px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.96rem;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links a.active { color: var(--text); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  width: 44px;
  height: 42px;
  cursor: pointer;
  color: var(--text);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background: var(--grad-hero);
  padding: 110px 0 90px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(900px 500px at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 26px;
}
.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(74, 208, 199, 0.18);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  max-width: 16ch;
}
.hero .lead { margin-top: 24px; font-size: 1.28rem; }
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
}
.tag {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}
.tag span { margin-right: 7px; }

/* ============================================================
   Section heads
   ============================================================ */
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; }
.section-head p { margin-top: 16px; color: var(--text-muted); font-size: 1.1rem; }

/* ============================================================
   Cards / steps
   ============================================================ */
.grid {
  display: grid;
  gap: 22px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.step-num {
  position: absolute;
  top: 26px;
  right: 30px;
  font-size: 2.6rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.06);
  letter-spacing: -0.04em;
}
.icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: rgba(255, 107, 74, 0.12);
  color: var(--brand);
}
.icon-badge.teal { background: rgba(74, 208, 199, 0.12); color: var(--accent); }
.icon-badge.violet { background: rgba(124, 108, 255, 0.14); color: var(--accent-2); }
.icon-badge svg { width: 26px; height: 26px; }

.card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-muted); }

/* ============================================================
   Why HummOut (split feature)
   ============================================================ */
.why {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.split h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
.split p { margin-top: 18px; color: var(--text-muted); font-size: 1.1rem; }

.stat-stack { display: grid; gap: 16px; }
.stat {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.stat .check {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-cool);
  color: #08121a;
}
.stat .check svg { width: 16px; height: 16px; }
.stat h4 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 700; }
.stat p { margin: 0; font-size: 0.97rem; color: var(--text-muted); }

/* ============================================================
   Status banner
   ============================================================ */
.status-banner {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  display: flex;
  gap: 26px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.status-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-warm);
  opacity: 0.06;
}
.status-banner > * { position: relative; z-index: 1; }
.status-banner .pulse {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 179, 71, 0.14);
  color: var(--brand-2);
}
.status-banner h3 { font-size: 1.35rem; margin-bottom: 6px; }
.status-banner p { color: var(--text-muted); }

/* ============================================================
   Products
   ============================================================ */
.page-hero {
  background: var(--grad-hero);
  padding: 84px 0 56px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; max-width: 18ch; }
.page-hero p { margin-top: 18px; }

.product-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.product-visual {
  background: linear-gradient(150deg, #1b2436, #232f47);
  padding: 48px;
  display: grid;
  place-items: center;
  position: relative;
}
.product-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 240px at 50% 30%, rgba(124,108,255,0.22), transparent 70%);
}
.product-emblem {
  position: relative;
  z-index: 1;
  width: 150px;
  height: 150px;
  border-radius: 36px;
  background: linear-gradient(145deg, #ff9a3c, #ff5e62);
  display: grid;
  place-items: center;
  box-shadow: 0 30px 60px -20px rgba(255, 94, 98, 0.5);
}
.product-emblem svg { width: 78px; height: 78px; color: #fff; }

.product-body { padding: 44px; }
.product-body .pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(74, 208, 199, 0.14);
  color: var(--accent);
  margin-bottom: 18px;
}
.product-body h2 { font-size: 2rem; font-weight: 800; }
.product-body .sub { color: var(--brand-2); font-weight: 700; margin-top: 6px; }
.product-body p.desc { margin-top: 16px; color: var(--text-muted); font-size: 1.05rem; }
.feature-list {
  list-style: none;
  margin: 24px 0 30px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--text-muted);
}
.feature-list li svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* Product hub link card */
.product-link {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.product-link:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.product-banner {
  position: relative;
  min-height: 240px;
  background: #0e1428;
}
.product-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-link-body { padding: 40px 44px; }
.product-link-body .pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(74, 208, 199, 0.14);
  color: var(--accent);
  margin-bottom: 18px;
}
.product-link-body h2 { font-size: 2rem; font-weight: 800; }
.product-link-body .sub { color: var(--brand-2); font-weight: 700; margin-top: 6px; }
.product-link-body .desc { margin-top: 16px; color: var(--text-muted); font-size: 1.05rem; }
.product-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  font-weight: 700;
  color: var(--brand);
}
.product-link-cta svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.product-link:hover .product-link-cta svg { transform: translateX(5px); }

.coming-soon-note {
  margin-top: 30px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  color: var(--text-dim);
}
.coming-soon-note strong { color: var(--text-muted); }

/* ============================================================
   Contact
   ============================================================ */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 32px; }
.contact-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.contact-item:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.contact-item .icon-badge { margin-bottom: 16px; }
.contact-item h4 { font-size: 1.1rem; margin-bottom: 6px; }
.contact-item p { color: var(--text-muted); font-size: 0.96rem; }
.contact-item a.mail { color: var(--brand-2); font-weight: 700; display: inline-block; margin-top: 8px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-top: 16px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 7px; color: var(--text-muted); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: inherit;
  font-size: 0.97rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.18);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.84rem; color: var(--text-dim); margin-top: 14px; }

/* ============================================================
   Legal / prose pages
   ============================================================ */
.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose .meta { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 40px; }
.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 44px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.prose h2:first-of-type { border-top: none; padding-top: 0; }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin: 26px 0 10px; }
.prose p, .prose li { color: var(--text-muted); }
.prose p { margin: 12px 0; }
.prose ul { padding-left: 22px; margin: 12px 0; }
.prose li { margin: 8px 0; }
.prose a { color: var(--brand-2); font-weight: 600; }
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 24px 0;
}
.callout p { color: var(--text-muted); margin: 0; }

/* ============================================================
   CTA strip
   ============================================================ */
.cta-strip {
  background: var(--grad-warm);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  color: #1a0f0a;
  position: relative;
  overflow: hidden;
}
.cta-strip h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.cta-strip p { margin: 14px auto 0; max-width: 50ch; font-weight: 500; opacity: 0.85; }
.cta-strip .btn { margin-top: 28px; }
.cta-strip .btn-dark { background: #1a0f0a; color: #fff; }
.cta-strip .btn-dark:hover { box-shadow: 0 16px 40px -14px rgba(0,0,0,0.5); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); max-width: 34ch; font-size: 0.96rem; }
.footer-col h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin: 0 0 16px;
  font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-col a { color: var(--text-muted); font-size: 0.96rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .product-card { grid-template-columns: 1fr; }
  .product-link { grid-template-columns: 1fr; }
  .product-banner { min-height: 200px; }
  .product-visual { padding: 56px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 6px 0 0; justify-content: center; }
  .nav-toggle { display: flex; }
  .contact-grid, .contact-card, .form-row { grid-template-columns: 1fr; }
  .contact-card { padding: 28px; }
  .status-banner { flex-direction: column; align-items: flex-start; padding: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-strip { padding: 40px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
