/* ==========================================================================
   8Kloud — palette drawn from the cow-cloud logo
   navy: #131829 / #1a2036 / #232b47   ink: #2b2b33
   pink: #f2a0b5 / #d97c99   cream: #f0e6d2   cloud: #e8f1fd / #a9c6ea
   blue: #5b9bd9   green: #7ed957   yellow: #f5c542   steel: #3d4466
   ========================================================================== */

:root {
  --bg: #131829;
  --bg-raised: #1a2036;
  --bg-panel: #232b47;
  --ink: #2b2b33;
  --text: #eef0f7;
  --text-dim: #a9b0c9;
  --pink: #f2a0b5;
  --pink-deep: #d97c99;
  --cream: #f0e6d2;
  --cloud: #e8f1fd;
  --cloud-deep: #a9c6ea;
  --blue: #5b9bd9;
  --green: #7ed957;
  --yellow: #f5c542;
  --steel: #3d4466;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* ---------- type ---------- */

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 0.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }

h1 em {
  font-style: normal;
  color: var(--pink);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-dim);
}

.section-lead {
  color: var(--text-dim);
  max-width: 46rem;
  margin-bottom: 2.5rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--pink);
  color: var(--ink);
  box-shadow: 0 4px 18px rgba(242, 160, 181, 0.25);
}
.btn-primary:hover { background: #f7b3c4; }

.btn-ghost {
  color: var(--text);
  border: 2px solid var(--steel);
}
.btn-ghost:hover { border-color: var(--blue); }

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.9rem; }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.1rem; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(19, 24, 41, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bg-panel);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}

.brand-mark { height: 42px; width: 42px; }

.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-name span { color: var(--pink); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a:not(.btn) {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:not(.btn):hover { color: var(--text); }

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

.hero {
  padding: 5rem 0 4rem;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(91, 155, 217, 0.14), transparent),
    radial-gradient(ellipse 50% 40% at 15% 85%, rgba(242, 160, 181, 0.1), transparent);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
}

.hero-copy h1 { margin-bottom: 1.1rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.hero-art { display: flex; justify-content: center; }

.hero-logo {
  width: min(340px, 80%);
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}

/* ---------- sections ---------- */

.section { padding: 4.5rem 0; }

.section-alt {
  background: var(--bg-raised);
  border-top: 1px solid var(--bg-panel);
  border-bottom: 1px solid var(--bg-panel);
}

/* ---------- signal flow ---------- */

.flow {
  background: var(--bg);
  border: 1px solid var(--bg-panel);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  margin-bottom: 2.5rem;
  overflow-x: auto;
}
.flow svg { min-width: 720px; width: 100%; height: auto; display: block; }

/* ---------- cards ---------- */

.card-grid {
  display: grid;
  gap: 1.5rem;
}
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.three.spaced { margin-top: 2.5rem; }

.card {
  background: var(--bg-raised);
  border: 1px solid var(--bg-panel);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--steel);
  transform: translateY(-3px);
}

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

/* ---------- module cards ---------- */

.module-card p { color: var(--text-dim); }

.module-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.module-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
}

.module-stage {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cloud-deep);
  border: 1px solid var(--steel);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
}

.module-card h3 { margin-bottom: 0; }

.feature-list {
  list-style: none;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.25rem 0 0;
  font-size: 0.97rem;
}

.feature-list li {
  padding-left: 1.5rem;
  position: relative;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

/* ---------- why ---------- */

.why-item h3 { margin-top: 0.75rem; }
.why-item p { color: var(--text-dim); font-size: 0.98rem; }

.why-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dot, var(--pink));
  box-shadow: 0 0 14px var(--dot, var(--pink));
}

/* ---------- contact ---------- */

.contact-band {
  padding: 5rem 0;
  text-align: center;
  background:
    radial-gradient(ellipse 55% 65% at 50% 100%, rgba(242, 160, 181, 0.14), transparent),
    var(--bg-raised);
  border-top: 1px solid var(--bg-panel);
}

.contact-inner {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.contact-logo { width: 96px; }

.contact-alt {
  font-size: 0.95rem;
  color: var(--text-dim);
}
.contact-alt a { color: var(--pink); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--bg-panel);
  padding: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-tag { color: var(--steel); }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-art { order: -1; }
  .hero-logo { width: min(240px, 60%); }
  .card-grid.two, .card-grid.three { grid-template-columns: 1fr; }
  .why-item { text-align: center; }
  .why-dot { margin: 0 auto; }
  .site-nav a:not(.btn) { display: none; }
}

@media (max-width: 480px) {
  .header-inner { flex-wrap: wrap; justify-content: center; padding: 0.6rem 0; row-gap: 0.5rem; }
  .brand-mark { height: 34px; width: 34px; }
  .brand-name { font-size: 1rem; }
  .site-nav .btn-sm { padding: 0.45rem 1rem; font-size: 0.85rem; }
}
