/* ==========================================================
   AsteyaAI — umbrella site design system
   Extends the visual language already used across the
   Salesforce IQ app (dark surface, indigo/cyan glow,
   Inter + Space Grotesk).
   ========================================================== */

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

:root {
  --bg: #070712;
  --surface: #0e0e1c;
  --surface-2: #12121f;
  --border: #1e1e35;
  --primary: #6366f1;
  --primary-2: #818cf8;
  --accent: #06b6d4;
  --primary-glow: rgba(99,102,241,.35);
  --text: #e8e8f0;
  --muted: #8a8aa8;
  --muted-2: #6b6b8a;
  --white: #fff;
  --radius: 16px;
  --maxw: 1160px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; color: var(--white); letter-spacing: -0.01em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* Ambient background orbs (reused pattern from the app's login screens) */
.orb { position: fixed; border-radius: 50%; filter: blur(130px); opacity: .28; pointer-events: none; z-index: 0; }
.orb-1 { width: 560px; height: 560px; background: #6366f1; top: -180px; left: -140px; }
.orb-2 { width: 460px; height: 460px; background: #06b6d4; bottom: -160px; right: -120px; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,7,18,.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; max-width: var(--maxw); margin: 0 auto;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { height: 28px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  font-size: .88rem; font-weight: 500; color: var(--muted);
  transition: color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta {
  padding: 9px 18px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: var(--white) !important; font-weight: 600; font-size: .85rem;
  box-shadow: 0 0 24px var(--primary-glow);
  transition: transform .15s;
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links { position: fixed; inset: 64px 0 0 0; background: var(--bg); flex-direction: column;
    justify-content: flex-start; padding: 36px 28px; gap: 22px; transform: translateX(100%);
    transition: transform .25s ease; border-top: 1px solid var(--border); }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; background: none; border: 1px solid var(--border); color: var(--white);
    width: 40px; height: 40px; border-radius: 8px; font-size: 1.1rem; cursor: pointer; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px; font-weight: 600; font-size: .92rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: var(--white); box-shadow: 0 0 30px var(--primary-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 40px var(--primary-glow); }
.btn-ghost { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--white); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 110px 0 90px; z-index: 1; }
.hero-inner { max-width: 760px; }
.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 700; line-height: 1.12; margin: 18px 0 22px; }
.hero h1 .grad { background: linear-gradient(135deg, var(--primary-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--muted); font-size: 1.08rem; max-width: 600px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { position: relative; z-index: 1; padding: 80px 0; }
.section-head { max-width: 620px; margin-bottom: 46px; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 14px 0 12px; }
.section-head p { color: var(--muted); font-size: 1rem; }

/* ---------- Product card (homepage) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; gap: 16px;
  transition: border-color .2s, transform .2s;
}
.product-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.product-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.product-card h3 { font-size: 1.2rem; }
.product-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.product-card .card-link { font-size: .86rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }

.product-card.placeholder { opacity: .5; border-style: dashed; }
.product-card.placeholder:hover { transform: none; border-color: var(--border); }
.tag-soon {
  align-self: flex-start; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 6px; background: var(--surface-2); color: var(--muted-2); border: 1px solid var(--border);
}

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.feature { padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.feature h4 { font-size: 1.02rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .9rem; }

/* ---------- Steps (enrollment) ---------- */
.steps-track { display: grid; gap: 18px; }
.step {
  display: grid; grid-template-columns: 46px 1fr; gap: 20px;
  padding: 22px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
}
.step-num {
  width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; color: var(--accent);
}
.step h4 { font-size: 1rem; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: .88rem; }

/* ---------- Split CTA panel ---------- */
.enroll-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.enroll-col { padding: 34px; }
.enroll-col + .enroll-col { border-left: 1px solid var(--border); background: var(--surface); }
.enroll-col h3 { font-size: 1.1rem; margin-bottom: 8px; }
.enroll-col p { color: var(--muted); font-size: .88rem; margin-bottom: 20px; }
@media (max-width: 720px) {
  .enroll-panel { grid-template-columns: 1fr; }
  .enroll-col + .enroll-col { border-left: none; border-top: 1px solid var(--border); }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 56px 40px; text-align: center;
}
.cta-band h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 12px; }
.cta-band p { color: var(--muted); margin-bottom: 26px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; position: relative; z-index: 1; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.site-footer img { height: 20px; opacity: .8; }
.site-footer .fine { color: var(--muted-2); font-size: .8rem; }
