/* Dialro — Enterprise Voice AI Platform */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #060B18;
  --bg-2: #0C1325;
  --bg-3: #131D38;
  --surface: rgba(255,255,255,0.03);
  --surface-hover: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(0,224,200,0.25);
  --teal: #00E0C8;
  --teal-dim: rgba(0,224,200,0.12);
  --teal-glow: rgba(0,224,200,0.35);
  --amber: #FBB040;
  --green: #34D399;
  --red: #F87171;
  --text: #F1F5F9;
  --text-dim: #94A3B8;
  --text-faint: #64748B;
  --radius: 14px;
  --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

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;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
a { color: var(--teal); text-decoration: none; transition: color .2s; }
code { font-family: 'Fira Code', 'SF Mono', monospace; font-size: 0.85em; color: var(--teal); }

/* === NAV === */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6,11,24,0.85); backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 68px; }
.logo {
  font-weight: 800; font-size: 1.4rem; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), #0EA5E9);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--bg); font-weight: 900;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a:not(.btn) { color: var(--text-dim); font-size: 0.88rem; font-weight: 500; transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--text); }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.88rem;
  background: var(--teal); color: var(--bg); transition: all .2s;
  border: none; cursor: pointer; letter-spacing: -0.01em;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 30px var(--teal-glow); }
.btn-sm { padding: 7px 16px; font-size: 0.82rem; }
.btn-lg { padding: 15px 36px; font-size: 0.95rem; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { background: var(--surface); border-color: var(--border-hover); }
.btn-block { width: 100%; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }

/* === HERO === */
.hero {
  position: relative; padding: 120px 0 100px; text-align: center;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0,224,200,0.08), transparent);
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,224,200,0.04), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(14,165,233,0.04), transparent 50%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; border-radius: 99px;
  background: var(--teal-dim); border: 1px solid rgba(0,224,200,0.2);
  color: var(--teal); font-size: 0.82rem; font-weight: 500;
  margin-bottom: 28px;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero h1 {
  font-size: 3.4rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 24px; max-width: 820px; margin-left: auto; margin-right: auto;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--teal), #0EA5E9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: 1.15rem; color: var(--text-dim); max-width: 600px;
  margin: 0 auto 36px; line-height: 1.7;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-bottom: 72px; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 56px; justify-content: center; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block; font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--teal), #0EA5E9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-stat span { font-size: 0.82rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; }

/* === TRUST BAR === */
.trust-bar {
  padding: 32px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.trust-inner { display: flex; gap: 40px; justify-content: center; align-items: center; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; color: var(--text-faint); font-size: 0.85rem; font-weight: 500; }
.trust-item svg { width: 18px; height: 18px; opacity: 0.6; }

/* === SECTIONS === */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-2); }
.section-title {
  font-size: 2.4rem; font-weight: 800; text-align: center; margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.section-title .gradient {
  background: linear-gradient(135deg, var(--teal), #0EA5E9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-sub { text-align: center; color: var(--text-dim); font-size: 1.1rem; margin-bottom: 56px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* === STEPS === */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 24px; transition: all .3s; position: relative;
}
.step:hover { border-color: var(--border-hover); background: var(--surface-hover); transform: translateY(-2px); }
.step-num {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--teal-dim); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; margin-bottom: 20px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 10px; font-weight: 700; }
.step p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; }

/* === TEMPLATES === */
.templates-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px;
}
.template-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 20px; transition: all .3s; cursor: default; position: relative; overflow: hidden;
}
.template-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), #0EA5E9); opacity: 0; transition: opacity .3s;
}
.template-card:hover { border-color: var(--border-hover); transform: translateY(-3px); background: var(--surface-hover); }
.template-card:hover::before { opacity: 1; }
.template-icon { font-size: 1.8rem; margin-bottom: 12px; }
.template-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.template-card p { font-size: 0.8rem; color: var(--text-faint); line-height: 1.5; }
.template-card .template-fns {
  margin-top: 12px; display: flex; flex-wrap: wrap; gap: 4px;
}
.template-card .template-fn {
  font-size: 0.68rem; padding: 2px 8px; border-radius: 99px;
  background: var(--teal-dim); color: var(--teal); font-weight: 500;
}

/* === FEATURES === */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: all .3s;
}
.feature:hover { border-color: var(--border-hover); background: var(--surface-hover); }
.feature-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--teal-dim); display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--teal); margin-bottom: 16px; font-size: 0.78rem; letter-spacing: -0.02em;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; font-weight: 700; }
.feature p { color: var(--text-dim); font-size: 0.88rem; line-height: 1.6; }

/* === FLOW DIAGRAM === */
.flow { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 40px; }
.flow-step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; text-align: center; min-width: 140px; max-width: 180px;
}
.flow-step .flow-icon { font-size: 1.5rem; margin-bottom: 8px; }
.flow-step h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.flow-step p { font-size: 0.75rem; color: var(--text-faint); }
.flow-arrow { color: var(--teal); font-size: 1.2rem; opacity: 0.5; }

/* === PRICING === */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 960px; margin: 0 auto; }
.plan {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 28px; position: relative; transition: all .3s;
}
.plan:hover { border-color: var(--border-hover); }
.plan-popular {
  border-color: var(--teal); background: linear-gradient(180deg, rgba(0,224,200,0.06), var(--surface));
  box-shadow: 0 0 40px rgba(0,224,200,0.08);
}
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--teal), #0EA5E9); color: var(--bg);
  padding: 5px 18px; border-radius: 99px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em;
}
.plan h3 { font-size: 1.2rem; margin-bottom: 8px; font-weight: 700; }
.plan-desc { font-size: 0.82rem; color: var(--text-faint); margin-bottom: 16px; }
.plan-price { font-size: 2.6rem; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.02em; }
.plan-price small { font-size: 0.9rem; font-weight: 400; color: var(--text-dim); }
.plan-price .currency { font-size: 1.2rem; vertical-align: top; color: var(--text-dim); margin-right: 2px; }
.plan ul { list-style: none; margin-bottom: 28px; }
.plan ul li { padding: 7px 0; color: var(--text-dim); font-size: 0.87rem; display: flex; align-items: start; gap: 8px; }
.plan ul li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.pricing-note { text-align: center; color: var(--text-faint); margin-top: 32px; font-size: 0.85rem; }

/* === API === */
.api-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.api-card {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
}
.api-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--teal); font-weight: 700; }
.api-card p { color: var(--text-dim); font-size: 0.87rem; margin-bottom: 16px; line-height: 1.6; }
.api-card pre {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px; overflow-x: auto; font-size: 0.78rem; line-height: 1.6;
}
.api-card pre code { color: var(--text); }
.api-cta { text-align: center; margin-top: 40px; }

/* === FAQ === */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 10px; overflow: hidden; transition: border-color .2s;
}
.faq-item[open] { border-color: var(--border-hover); }
.faq-item summary {
  padding: 18px 24px; cursor: pointer; font-weight: 600; font-size: 0.92rem;
  list-style: none; transition: background .2s;
}
.faq-item summary:hover { background: var(--surface-hover); }
.faq-item summary::after { content: "+"; float: right; color: var(--teal); font-size: 1.3rem; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 24px 18px; color: var(--text-dim); font-size: 0.88rem; line-height: 1.7; }

/* === CTA === */
.cta-final {
  text-align: center; padding: 100px 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0,224,200,0.06), transparent);
}
.cta-final h2 { font-size: 2.2rem; margin-bottom: 14px; font-weight: 800; letter-spacing: -0.02em; }
.cta-final p { color: var(--text-dim); margin-bottom: 32px; font-size: 1.1rem; }

/* === FOOTER === */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-size: 0.85rem; margin-bottom: 14px; color: var(--text); font-weight: 600; }
.footer-col a { display: block; color: var(--text-dim); font-size: 0.84rem; padding: 5px 0; }
.footer-col a:hover { color: var(--teal); }
.footer-col p { color: var(--text-dim); font-size: 0.84rem; }
.footer-copy { text-align: center; color: var(--text-faint); font-size: 0.8rem; padding-top: 28px; border-top: 1px solid var(--border); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero { padding: 80px 0 60px; }
  .hero h1 { font-size: 2.1rem; }
  .hero-stats { gap: 28px; }
  .hero-stat strong { font-size: 1.5rem; }
  .nav-links { gap: 12px; }
  .nav-links a:not(.btn):not(#lang-toggle) { display: none; }
  .section { padding: 60px 0; }
  .section-title { font-size: 1.7rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
}

/* === DOCS === */
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; max-width: 1140px; margin: 0 auto; padding: 40px 24px; }
.docs-sidebar { position: sticky; top: 84px; }
.docs-sidebar h4 { font-size: 0.78rem; text-transform: uppercase; color: var(--text-faint); margin: 18px 0 8px; letter-spacing: 0.05em; }
.docs-sidebar a { display: block; padding: 5px 0; font-size: 0.84rem; color: var(--text-dim); }
.docs-sidebar a:hover { color: var(--teal); }
.docs-content { min-width: 0; }
.docs-content h2 { font-size: 1.6rem; margin: 36px 0 12px; font-weight: 700; }
.docs-content h3 { font-size: 1.15rem; margin: 24px 0 8px; font-weight: 600; }
.docs-content p { color: var(--text-dim); margin-bottom: 12px; font-size: 0.92rem; line-height: 1.7; }
.docs-content pre {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px; overflow-x: auto; margin: 12px 0; font-size: 0.8rem; line-height: 1.6;
}
.docs-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.docs-content th, .docs-content td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.84rem; }
.docs-content th { color: var(--teal); font-weight: 600; }
.docs-content td { color: var(--text-dim); }
.docs-content code { color: var(--teal); }
.docs-content ul { margin: 8px 0 16px 20px; color: var(--text-dim); font-size: 0.88rem; }

@media (max-width: 768px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { display: none; }
}
