/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #1a1a2e;
  color: #e2e8f0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #93bbfd;
}

/* ===== Typography ===== */
h1, h2, h3 {
  color: #ffffff;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: #cbd5e1;
}

/* ===== Layout ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* ===== Hero ===== */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 6rem 0;
  background: linear-gradient(180deg, #0f0f23 0%, #1a1a2e 100%);
  position: relative;
  overflow: hidden;
}

/* Radial glow behind hero content */
.hero::before {
  content: "";
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(
    ellipse at center,
    rgba(74, 222, 128, 0.12) 0%,
    rgba(96, 165, 250, 0.06) 35%,
    rgba(74, 222, 128, 0.04) 55%,
    transparent 75%
  );
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* Glowing divider at bottom of hero */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(74, 222, 128, 0.4) 30%,
    rgba(74, 222, 128, 0.6) 50%,
    rgba(74, 222, 128, 0.4) 70%,
    transparent 100%
  );
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.15), 0 0 4px rgba(74, 222, 128, 0.1);
}

.hero .container {
  max-width: 800px;
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero .tagline {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #94a3b8;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-block;
  background-color: #4ade80;
  color: #0f0f23;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 2.25rem;
  border-radius: 8px;
  transition: background-color 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background-color: #22c55e;
  color: #0f0f23;
  transform: translateY(-1px);
}

/* ===== Use Case Sections ===== */
.use-case {
  background-color: #16213e;
}

.use-case:nth-child(even) {
  background-color: #1a1a2e;
}

.use-case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.use-case-grid.reverse .use-case-visual {
  order: -1;
}

.use-case-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.use-case-visual img {
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  max-height: 480px;
  width: auto;
}

.use-case-visual .icon-graphic {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
}

.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4ade80;
  margin-bottom: 0.75rem;
}

.use-case-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.use-case-text ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: #cbd5e1;
}

.use-case-text ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #4ade80;
}

/* ===== Channel Icons (Use Case 3) ===== */
.channel-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.channel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 72px;
}

.channel-item svg {
  width: 36px;
  height: 36px;
  fill: #94a3b8;
  transition: fill 0.2s;
}

.channel-item:hover svg {
  fill: #4ade80;
}

.channel-item span {
  font-size: 0.7rem;
  color: #94a3b8;
  text-align: center;
}

/* ===== Footer ===== */
.site-footer {
  background-color: #0f0f23;
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid #1e293b;
}

.site-footer p {
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: #4ade80;
}

.site-footer a:hover {
  color: #22c55e;
}

/* ===== SVG icon illustrations ===== */
.sage-illustration {
  background: rgba(74, 222, 128, 0.05);
  border: 1px solid rgba(74, 222, 128, 0.15);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.sage-illustration svg {
  width: 80px;
  height: 80px;
}

.flow-steps {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.flow-step {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  color: #e2e8f0;
  white-space: nowrap;
}

.flow-arrow {
  color: #4ade80;
  font-size: 1.2rem;
}

/* ===== Agent Platform Illustration ===== */
.agent-illustration {
  background: rgba(96, 165, 250, 0.05);
  border: 1px solid rgba(96, 165, 250, 0.15);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.agent-illustration .core-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.agent-illustration .integrations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.agent-illustration .integrations span {
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 6px;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  color: #cbd5e1;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  section {
    padding: 3.5rem 0;
  }

  .hero {
    min-height: 60vh;
    padding: 4rem 0;
  }

  .use-case-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .use-case-grid.reverse .use-case-visual {
    order: 0;
  }

  .use-case-visual img {
    max-height: 360px;
  }

  .sage-illustration,
  .agent-illustration {
    padding: 1.5rem;
  }

  .flow-steps {
    gap: 0.5rem;
  }

  .channel-grid {
    gap: 1rem;
  }

  .channel-item {
    width: 60px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: auto;
    padding: 3rem 0;
  }

  .flow-arrow {
    display: none;
  }

  .flow-steps {
    flex-direction: column;
  }
}
