/* CANDAI — refined marketing site */
:root {
  --ink: #0b1220;
  --ink-soft: #1e293b;
  --muted: #64748b;
  --line: #e8edf2;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --white: #ffffff;
  --brand: #e30613; /* CANDAI red */
  --brand-dark: #b8050f;
  --brand-soft: #fff1f2;
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --shadow: 0 12px 40px rgba(11, 18, 32, 0.07);
  --shadow-sm: 0 4px 14px rgba(11, 18, 32, 0.06);
  --radius: 16px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* Header */
.header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  position: sticky; top: 0; z-index: 50;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.header.is-scrolled {
  box-shadow: 0 8px 28px rgba(11, 18, 32, 0.08);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; gap: 1rem;
}
.logo {
  font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.logo {
  font-weight: 800; font-size: 1.45rem; letter-spacing: -0.03em;
  color: var(--ink); text-decoration: none;
}
.logo span {
  color: #e30613;
  text-shadow: 0 0 0 transparent;
}
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.35rem; }
.nav a {
  color: var(--ink-soft); font-weight: 600; font-size: 0.9rem;
  text-decoration: none; position: relative;
  transition: color .2s ease;
}
.nav a:hover, .nav a.active { color: var(--brand); text-decoration: none; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px;
  height: 2px; background: var(--brand);
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav a:not(.btn):hover::after, .nav a:not(.btn).active::after { transform: scaleX(1); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.35rem; border-radius: 10px;
  font-weight: 700; font-size: 0.9rem;
  border: none; cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, transform .18s ease, box-shadow .18s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 8px 20px rgba(227, 6, 19, 0.25);
}
.btn-primary:hover {
  background: var(--brand-dark); color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 26px rgba(227, 6, 19, 0.3);
}
.btn-secondary {
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line);
}
.btn-secondary:hover {
  border-color: #cbd5e1; color: var(--ink);
  transform: translateY(-2px);
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-ghost {
  background: transparent; color: #e2e8f0;
  border: 1px solid rgba(255,255,255,0.28);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08); color: #fff;
  border-color: rgba(255,255,255,0.45);
}

/* Hero */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(227, 6, 19, 0.18), transparent 55%),
    linear-gradient(165deg, #0b1220 0%, #152238 48%, #0b1220 100%);
  color: #f1f5f9;
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.75rem;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.eyebrow {
  display: inline-block;
  color: #fca5a5;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 0.85rem;
}
.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.1rem;
}
.hero .lead {
  font-size: 1.08rem;
  color: #cbd5e1;
  max-width: 36rem;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  backdrop-filter: blur(8px);
}
.hero-card h3 {
  color: #fff; font-size: 1rem; margin-bottom: 1rem;
  font-weight: 700;
}
.hero-card ul { list-style: none; }
.hero-card li {
  color: #cbd5e1; font-size: 0.92rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  line-height: 1.45;
}
.hero-card li:last-child { border-bottom: none; }
.hero-card strong { color: #f8fafc; }

/* Trust strip */
.trust {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}
.trust-inner {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  justify-content: center; align-items: center;
  font-size: 0.85rem; color: var(--muted); font-weight: 600;
}
.trust-inner span::before {
  content: "✓ ";
  color: var(--brand);
  font-weight: 800;
}

/* Sections */
.section { padding: 4rem 0; }
.section.alt { background: var(--bg-soft); }
.section-title {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.section-sub {
  color: var(--muted);
  max-width: 36rem;
  font-size: 1.02rem;
  margin-bottom: 2rem;
}

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card .num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.06em;
  margin-bottom: 0.65rem;
}
.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.card p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.15rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.step strong {
  display: block;
  font-size: 1.35rem;
  color: var(--brand);
  margin-bottom: 0.35rem;
}
.step span { font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, #0b1220, #1a2744);
  color: #e2e8f0;
  padding: 3.5rem 0;
  text-align: center;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}
.cta-band p { color: #94a3b8; margin-bottom: 1.5rem; max-width: 32rem; margin-inline: auto; }

/* Page hero (inner pages) */
.page-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 2.75rem 0 2.25rem;
}
.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.page-hero p { color: var(--muted); max-width: 36rem; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  padding: 2.5rem 0;
}
.muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-2 { margin-top: 1.5rem; }

/* Footer */
.footer {
  background: var(--ink);
  color: #94a3b8;
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer strong {
  display: block;
  color: #f1f5f9;
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
}
.footer a {
  display: block;
  color: #cbd5e1;
  font-size: 0.9rem;
  margin: 0.35rem 0;
  transition: color .2s ease;
}
.footer a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #64748b;
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
@keyframes candaiFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.hero-animate .eyebrow { animation: candaiFadeUp .55s ease both; }
.hero-animate h1 { animation: candaiFadeUp .65s ease .08s both; }
.hero-animate .lead { animation: candaiFadeUp .7s ease .16s both; }
.hero-animate .hero-actions { animation: candaiFadeUp .7s ease .24s both; }
.hero-animate .hero-card { animation: candaiFadeUp .75s ease .2s both; }
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Prose pages */
.prose { max-width: 720px; }
.prose h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.65rem;
  letter-spacing: -0.015em;
}
.prose p, .prose li {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.prose ul { margin: 0.5rem 0 1.25rem 1.2rem; }
