/* ============================================
   Gazellia v3 — Agent-Forward, Image-Rich
   Dark theme, gold accents, editorial layout
   ============================================ */

:root {
  --gold: #E8B931;
  --gold-bright: #F2C31C;
  --gold-dim: #C49B1A;
  --gold-subtle: rgba(232, 185, 49, 0.06);
  --green: #34d399;
  --green-dim: rgba(52, 211, 153, 0.15);
  --blue: #60a5fa;
  --blue-dim: rgba(96, 165, 250, 0.15);
  --bg: #08080A;
  --bg-elevated: #0C0C0F;
  --bg-card: #111114;
  --bg-card-hover: #161619;
  --border: #1A1A1E;
  --border-light: #242429;
  --text: #F0F0F2;
  --text-secondary: #9E9EA8;
  --text-muted: #5C5C66;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --max-width: 1120px;
  --nav-height: 60px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

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

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

h1 {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
h4 {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.text-gold { color: var(--gold); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.btn-primary { background: var(--gold); color: #08080A; }
.btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(232, 185, 49, 0.2);
}
.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); }
.btn-full { width: 100%; }

/* ---- Nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(8, 8, 10, 0.88);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto; padding: 0 24px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 9px; }
.nav-logo-img { height: 22px; }
.nav-logo-text { font-size: 0.88rem; font-weight: 700; letter-spacing: 0.12em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 0.8rem; color: var(--text-muted); transition: color 0.2s; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 7px 16px !important;
  background: var(--gold) !important;
  color: #08080A !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--gold-bright) !important; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--text); }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 48px) 24px 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,10,0.3) 0%, rgba(8,8,10,0.7) 60%, var(--bg) 100%);
}
.hero-content { position: relative; max-width: 720px; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px 6px 12px;
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.15);
  border-radius: 100px;
  font-size: 0.72rem; font-weight: 500; color: var(--green);
  margin-bottom: 28px; letter-spacing: 0.02em;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-subtitle {
  font-size: 1.05rem; color: var(--text-secondary);
  margin-top: 20px; max-width: 560px;
  margin-left: auto; margin-right: auto; line-height: 1.75;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 36px; }

/* Ticker */
.hero-ticker {
  position: relative; z-index: 1;
  margin-top: 72px;
  width: 100%; overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.ticker-inner {
  display: flex; gap: 48px;
  animation: ticker 30s linear infinite;
  width: max-content;
}
.ticker-item {
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
  font-size: 0.78rem; color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
}
.ticker-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.ticker-dot.green { background: var(--green); box-shadow: 0 0 6px rgba(52,211,153,0.3); }
.ticker-dot.gold { background: var(--gold); box-shadow: 0 0 6px rgba(232,185,49,0.3); }

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Partners ---- */
.partners {
  padding: 36px 24px;
}
.partners-inner {
  max-width: var(--max-width);
  margin: 0 auto; text-align: center;
}
.partners-track {
  display: flex; justify-content: center; align-items: center;
  gap: 0; flex-wrap: wrap;
}
.partner {
  font-size: 0.82rem; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.04em; opacity: 0.4;
  padding: 4px 16px;
}
.partner-sep {
  color: var(--border-light); font-size: 0.7rem;
}

/* ---- Section Common ---- */
.section-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--gold); margin-bottom: 14px;
}
.section-desc {
  color: var(--text-secondary); font-size: 0.95rem;
  margin-top: 10px; max-width: 480px;
  margin-left: auto; margin-right: auto;
}

/* ---- Agent Showcase ---- */
.agents { padding: 140px 0 100px; }

.agent-showcase {
  display: flex; flex-direction: column; gap: 32px;
}

.agent-card {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  align-items: center;
}
.agent-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}
.agent-card.reverse {
  grid-template-columns: 1fr 340px;
}
.agent-card.reverse .agent-visual { order: 2; }
.agent-card.reverse .agent-info { order: 1; }

.agent-visual {
  height: 100%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.3);
  padding: 32px;
}
.agent-visual img {
  width: 100%; max-width: 260px;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.agent-card:hover .agent-visual img {
  transform: scale(1.05);
}

.agent-info { padding: 40px 40px 40px 0; }
.agent-card.reverse .agent-info { padding: 40px 0 40px 40px; }

.agent-header { margin-bottom: 12px; }
.agent-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
}
.status-dot.live {
  background: var(--green);
  box-shadow: 0 0 8px rgba(52,211,153,0.4);
  animation: pulse 2s ease-in-out infinite;
}
.status-dot.beta {
  background: var(--blue);
  box-shadow: 0 0 8px rgba(96,165,250,0.3);
  animation: pulse 2s ease-in-out infinite;
}
.agent-status { color: var(--green); }
.agent-card:nth-child(4) .agent-status,
.agent-card:nth-child(5) .agent-status { color: var(--blue); }

.agent-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.agent-card p {
  color: var(--text-secondary); font-size: 0.9rem; line-height: 1.75;
}

.agent-capabilities {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px;
}
.agent-capabilities span {
  font-size: 0.72rem; padding: 5px 12px;
  background: var(--gold-subtle);
  border: 1px solid rgba(232,185,49,0.1);
  border-radius: 100px;
  color: var(--gold-dim); font-weight: 500;
}

/* ---- AgentCore ---- */
.agentcore {
  padding: 120px 0;
  background: var(--bg-elevated);
}
.agentcore-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.agentcore-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-top: 16px;
}
.agentcore-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ac-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ac-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-subtle);
  border-radius: var(--radius-sm);
  color: var(--gold);
}
.ac-icon svg { width: 18px; height: 18px; }
.ac-feature strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 3px;
}
.ac-feature span {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .agentcore-layout { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- Capabilities ---- */
.capabilities {
  padding: 120px 0;
}
.cap-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.cap-item {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}
.cap-item:hover {
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}
.cap-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  color: var(--gold);
}
.cap-icon svg { width: 20px; height: 20px; }
.cap-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.cap-item p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.7; }

/* ---- Process Visual ---- */
.process-visual { padding: 100px 0; }
.process-img-wrap {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border);
}
.process-img {
  width: 100%; display: block;
  filter: brightness(0.6);
}
.process-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 48px;
  background: linear-gradient(180deg, rgba(8,8,10,0.4), rgba(8,8,10,0.75));
}
.process-overlay p {
  color: var(--text-secondary);
  font-size: 1rem; max-width: 460px;
  margin-top: 14px; line-height: 1.7;
}

/* ---- Results ---- */
.results {
  padding: 120px 0;
  background: var(--bg-elevated);
}
.results-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.result-stat {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}
.result-stat:hover { background: var(--bg-card-hover); transform: translateY(-3px); }
.result-number {
  font-size: 2.4rem; font-weight: 800; color: var(--gold);
  letter-spacing: -0.03em; line-height: 1; margin-bottom: 16px;
}
.result-detail strong {
  display: block; font-size: 0.9rem; margin-bottom: 8px;
}
.result-detail p {
  color: var(--text-muted); font-size: 0.82rem; line-height: 1.65;
}

/* ---- Technology ---- */
.technology { padding: 120px 0; }
.tech-columns {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
}
.tech-columns ul {
  list-style: none;
}
.tech-columns li {
  padding: 9px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.tech-columns li:last-child { border-bottom: none; }
.tech-columns li:hover { color: var(--text); }

/* ---- CTA ---- */
.cta { padding: 120px 0; background: var(--bg-elevated); }
.cta-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.cta-icon { height: 36px; margin-bottom: 24px; }
.cta-text h2 { margin-bottom: 14px; }
.cta-text > p {
  color: var(--text-secondary); font-size: 0.95rem;
  line-height: 1.75; margin-bottom: 28px;
}
.cta-trust { display: flex; flex-direction: column; gap: 12px; }
.trust-item {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-secondary); font-size: 0.85rem;
}
.trust-item svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }

.cta-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; padding: 12px 14px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text); font-family: inherit; font-size: 0.85rem;
  margin-bottom: 12px; transition: border-color 0.2s; appearance: none;
}
.contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='%235C5C66'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--gold-dim); }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form textarea { resize: vertical; min-height: 80px; }
.contact-form .btn { margin-top: 4px; padding: 14px; font-size: 0.9rem; }

/* ---- Footer ---- */
.footer { padding: 32px 0; border-top: 1px solid var(--border); }
.footer-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; letter-spacing: 0.1em; font-size: 0.82rem;
}
.footer-logo { height: 18px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 0.78rem; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.72rem; color: var(--text-muted); }

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content { animation: fadeUp 0.7s ease forwards; }

.agent-card,
.cap-item,
.result-stat,
.tech-col {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.agent-card.visible,
.cap-item.visible,
.result-stat.visible,
.tech-col.visible {
  opacity: 1; transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .agent-card,
  .agent-card.reverse {
    grid-template-columns: 1fr;
  }
  .agent-card.reverse .agent-visual { order: 0; }
  .agent-card.reverse .agent-info { order: 0; }
  .agent-info,
  .agent-card.reverse .agent-info { padding: 32px !important; }
  .agent-visual { height: 240px; }

  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .results-row { grid-template-columns: repeat(2, 1fr); }
  .tech-columns { grid-template-columns: repeat(2, 1fr); }
  .cta-layout { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute;
    top: var(--nav-height); left: 0; right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 20px; gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { min-height: auto; padding-top: calc(var(--nav-height) + 40px); }
  .cap-grid { grid-template-columns: 1fr; }
  .results-row { grid-template-columns: 1fr; }
  .tech-columns { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner { flex-direction: column; gap: 14px; text-align: center; }
  .partners-track { gap: 0; }
  .partner-sep { display: none; }
  .partner { padding: 6px 12px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 260px; }
  h1 { font-size: 2.1rem; }
}
