/* ============================================
   Agentus.Cloud — Landing Page Styles
   ============================================ */

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

:root {
  --bg: #0a0e1a;
  --bg-subtle: #111827;
  --bg-card: #151c2c;
  --bg-card-hover: #1a2236;
  --border: #1e293b;
  --border-light: #2d3a52;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --accent: #818cf8;
  --accent-bright: #a5b4fc;
  --gradient-start: #6366f1;
  --gradient-end: #8b5cf6;
  --success: #34d399;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--accent-bright); text-decoration: none; transition: color 0.2s; }
a:hover { color: #c7d2fe; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
}
.logo:hover { color: var(--text); }
.logo-dot { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
  border-radius: var(--radius-xs);
  background: var(--gradient-start);
  color: #fff;
}
.btn-sm:hover { color: #fff; background: var(--gradient-end); }

.btn-primary {
  padding: 14px 28px;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff;
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}
.btn-primary:active { transform: translateY(0); }

/* --- Hero --- */
.hero {
  position: relative;
  padding: 160px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

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

.badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-bright);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-bright), #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: 1.15rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* --- Waitlist Form --- */
.waitlist-form { max-width: 480px; margin: 0 auto; }

.input-group {
  display: flex;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 6px;
}

.input-group input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  background: transparent;
  border: none;
  color: var(--text);
  outline: none;
}
.input-group input::placeholder { color: var(--text-muted); }

.form-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-msg {
  margin-top: 12px;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: var(--radius-xs);
}
.form-msg.success {
  color: var(--success);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
}
.form-msg.error {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Terminal --- */
.terminal {
  max-width: 720px;
  margin: 56px auto 0;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background: #0d1117;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #161b22;
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

.terminal-body {
  padding: 20px 24px;
  overflow-x: auto;
}

.terminal-body pre {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.8;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
}

.t-prompt { color: var(--success); font-weight: 600; }
.t-info { color: var(--accent); }
.t-success { color: var(--success); }
.t-highlight { color: var(--accent-bright); }
.t-dim { color: var(--text-muted); }
.t-table { color: var(--text-dim); }

/* --- Social Proof --- */
.social-proof {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.social-proof-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-header p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* --- Features --- */
.features {
  padding: 100px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s;
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  color: var(--accent-bright);
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* --- How It Works --- */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.8;
}

.step-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.step-content p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* --- Pricing --- */
.pricing {
  padding: 100px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  position: relative;
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.pricing-card.featured {
  border-color: var(--gradient-start);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.12);
}

.pricing-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  text-align: left;
}
.pricing-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}
.pricing-features li::before {
  content: '✓';
  color: var(--success);
  margin-right: 10px;
  font-weight: 600;
}

/* --- CTA --- */
.cta {
  padding: 100px 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  text-align: center;
}
.cta-inner h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta-inner p {
  max-width: 520px;
  margin: 0 auto 32px;
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* --- Footer --- */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
}

.footer-tagline {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 32px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links a:not(.btn) { display: none; }

  .hero { padding: 120px 0 60px; }

  .feature-grid { grid-template-columns: 1fr; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  .input-group { flex-direction: column; }
  .input-group input { padding: 14px 16px; }

  .terminal-body pre { font-size: 0.72rem; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { gap: 40px; }

  .step { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
}
