/* ============================================================
   Cobinar Phone — Public website
   phone.cobinar.com
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg:           #080810;
  --bg-card:      #0e0e1a;
  --bg-lift:      #141424;
  --border:       #1e1e32;
  --border-hi:    #2c2c44;
  --accent:       #635bff;
  --accent-light: #8078ff;
  --accent-dim:   rgba(99,91,255,0.12);
  --accent-glow:  rgba(99,91,255,0.35);
  --text-1:       #f0effe;
  --text-2:       #8880b8;
  --text-3:       #50507a;
  --success:      #00c896;

  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --ease:  cubic-bezier(0.16, 1, 0.3, 1);
  --t:     220ms;
  --max-w: 1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent-dim); color: var(--text-1); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: #28283e; border-radius: 3px; }

/* ── CONTAINER ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── NAVBAR ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center;
  padding: 0 24px; height: 64px;
  background: rgba(8, 8, 16, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w); margin: 0 auto; width: 100%;
  display: flex; align-items: center; gap: 0;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--text-1);
}
.nav-logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 16px var(--accent-glow);
}
.nav-logo-mark svg { width: 17px; height: 17px; color: #fff; }

.nav-links {
  display: flex; align-items: center; gap: 6px;
  margin-left: 32px;
}
.nav-link {
  padding: 6px 12px; border-radius: 6px;
  font-size: 14px; color: var(--text-2);
  transition: color var(--t);
}
.nav-link:hover { color: var(--text-1); }

.nav-ctas {
  display: flex; align-items: center; gap: 10px;
  margin-left: auto;
}
.btn-nav-ghost {
  padding: 7px 16px; border-radius: 7px;
  font-size: 14px; font-weight: 500; color: var(--text-2);
  border: 1px solid transparent;
  transition: all var(--t);
}
.btn-nav-ghost:hover { color: var(--text-1); background: var(--bg-lift); border-color: var(--border); }

.btn-nav-primary {
  padding: 7px 18px; border-radius: 7px;
  font-size: 14px; font-weight: 600; color: #fff;
  background: var(--accent);
  transition: all var(--t) var(--ease);
}
.btn-nav-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 4px 16px var(--accent-glow);
  transform: translateY(-1px);
}

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

/* Radial glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(99,91,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid rgba(99,91,255,0.25);
  font-size: 12px; font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.hero-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-light); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text-1);
  max-width: 820px;
  margin: 0 auto 24px;
}

.hero-title-accent { color: var(--accent-light); }

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 10px;
  font-size: 15px; font-weight: 600; color: #fff;
  background: var(--accent);
  transition: all var(--t) var(--ease);
}
.btn-hero-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 6px 24px var(--accent-glow);
  transform: translateY(-2px);
}
.btn-hero-primary svg { width: 16px; height: 16px; }

.btn-hero-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--text-2);
  background: var(--bg-card); border: 1px solid var(--border-hi);
  transition: all var(--t);
}
.btn-hero-secondary:hover { color: var(--text-1); border-color: var(--accent); }

/* ── PHONE NUMBER DEMO ── */
.phone-demo {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-top: 72px; flex-wrap: wrap;
}
.phone-demo-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  animation: float-up 0.6s var(--ease) both;
}
.phone-demo-card:nth-child(1) { animation-delay: 0.1s; }
.phone-demo-card:nth-child(2) { animation-delay: 0.2s; }
.phone-demo-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes float-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.phone-demo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.dot-green  { background: var(--success); box-shadow: 0 0 8px rgba(0,200,150,0.5); }
.dot-purple { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }

.phone-demo-num {
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 500;
  color: var(--text-1); letter-spacing: 0.04em;
}
.phone-demo-status {
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px;
}
.ds-verified { background: rgba(0,200,150,0.12); color: var(--success); }
.ds-active   { background: var(--accent-dim); color: var(--accent-light); }

/* ── SECTION ── */
.section { padding: 96px 0; }
.section-sm { padding: 48px 0; }

.section-eyebrow {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent-light); margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; letter-spacing: -0.03em;
  color: var(--text-1); line-height: 1.15;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 17px; color: var(--text-2);
  line-height: 1.7; max-width: 560px;
}

/* ── FEATURE GRID ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 56px;
}
.feature-card {
  background: var(--bg);
  padding: 32px;
  transition: background var(--t);
}
.feature-card:hover { background: var(--bg-card); }

.feature-icon {
  width: 40px; height: 40px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-light); margin-bottom: 18px;
}
.feature-icon svg { width: 20px; height: 20px; }

.feature-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 17px; color: var(--text-1); margin-bottom: 8px;
}
.feature-desc { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* ── FLOW DIAGRAM ── */
.flow { display: flex; align-items: flex-start; gap: 0; justify-content: center; flex-wrap: wrap; margin-top: 48px; }
.flow-step {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  flex: 1; min-width: 140px; max-width: 180px; padding: 0 8px;
  position: relative;
}
.flow-step:not(:last-child)::after {
  content: '→';
  position: absolute; right: -14px; top: 18px;
  font-size: 18px; color: var(--border-hi);
}
.flow-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-dim); border: 2px solid rgba(99,91,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--accent-light); margin-bottom: 12px;
}
.flow-label { font-size: 13px; font-weight: 500; color: var(--text-1); margin-bottom: 4px; }
.flow-sub   { font-size: 11px; color: var(--text-3); line-height: 1.5; }

/* ── CODE BLOCK ── */
.code-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-hi);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 40px;
}
.code-panel-tabs {
  display: flex; border-bottom: 1px solid var(--border);
  padding: 0 20px;
}
.code-tab {
  padding: 12px 16px;
  font-size: 13px; font-weight: 500; color: var(--text-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  cursor: pointer; transition: all var(--t);
}
.code-tab.active { color: var(--accent-light); border-bottom-color: var(--accent); }
.code-body {
  padding: 24px;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--text-2); line-height: 1.8;
  overflow-x: auto;
}
.code-body .k  { color: #a29bfe; }  /* keyword */
.code-body .s  { color: #74b9ff; }  /* string */
.code-body .n  { color: #fdcb6e; }  /* number */
.code-body .c  { color: #50507a; }  /* comment */
.code-body .p  { color: var(--accent-light); } /* property */

.code-panel-tabs .code-tab[data-tab]:not(.active) ~ .code-pane { display: none; }
.code-pane { display: none; }
.code-pane.active { display: block; }

/* ── COMPARISON TABLE ── */
.compare-table {
  width: 100%; border-collapse: collapse;
  margin-top: 40px; font-size: 14px;
}
.compare-table th {
  padding: 12px 20px; text-align: left;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
}
.compare-table th:first-child { width: 240px; }
.compare-table td { padding: 14px 20px; border-bottom: 1px solid var(--border); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .attr { color: var(--text-1); font-weight: 500; }
.check  { color: var(--success); font-size: 16px; }
.cross  { color: var(--text-3); font-size: 16px; }
.col-ph { background: rgba(99,91,255,0.06); }

/* ── CTA SECTION ── */
.cta-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(99,91,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700; letter-spacing: -0.04em;
  color: var(--text-1); margin-bottom: 20px; line-height: 1.1;
}
.cta-sub {
  font-size: 18px; color: var(--text-2);
  margin-bottom: 40px; line-height: 1.6;
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--text-1); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-link { font-size: 13px; color: var(--text-3); transition: color var(--t); }
.footer-link:hover { color: var(--text-1); }
.footer-copy { font-size: 12px; color: var(--text-3); }

/* ── UTILITIES ── */
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }
.mb-0 { margin-bottom: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 120px 0 80px; }
  .phone-demo { gap: 10px; }
  .flow-step:not(:last-child)::after { display: none; }
  .footer-inner { flex-direction: column; gap: 24px; }
}
