/* ============================================================================
   INTERVIEW by Clozo — site design system
   Matches the clozo.ai family look (dark, Inter, cyan accent) but is fully
   self-contained: no dependency on clozo's files.
   ============================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

:root {
  --cyan: #22d3ee;
  --cyan-dim: rgba(34, 211, 238, 0.12);
  --cyan-border: rgba(34, 211, 238, 0.25);
  --purple: #a78bfa;
  --emerald: #34d399;
  --rose: #fb7185;
  --bg: #050510;
  --bg-raised: #0a0a1e;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --text-primary: rgba(255, 255, 255, 0.92);
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-tertiary: rgba(255, 255, 255, 0.35);
  --container: 1080px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul, ol { list-style: none; }
::selection { background: rgba(34, 211, 238, 0.25); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: clamp(56px, 7vw, 96px) 0; }

/* --- Navbar --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  background: rgba(5, 5, 16, 0.72);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  max-width: var(--container); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: baseline; gap: 10px; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand .byline { font-size: 0.72rem; font-weight: 500; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.12em; }
.navbar-links { display: flex; align-items: center; gap: 26px; font-size: 0.92rem; }
.navbar-links a { color: var(--text-secondary); transition: color 0.2s; }
.navbar-links a:hover { color: var(--text-primary); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.95rem; line-height: 1.2;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--cyan); color: #04121a;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.25);
}
.btn-primary:hover { box-shadow: 0 0 40px rgba(34, 211, 238, 0.4); }
.btn-ghost {
  background: var(--bg-card); color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn[disabled], .btn.is-loading { opacity: 0.6; pointer-events: none; }
.btn .spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.25); border-top-color: currentColor;
  animation: spin 0.7s linear infinite; display: none;
}
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Hero --- */
.hero { padding: clamp(140px, 18vw, 200px) 0 clamp(64px, 8vw, 110px); text-align: center; position: relative; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 320px at 50% 0%, rgba(34, 211, 238, 0.09), transparent 70%);
}
.hero-inner { position: relative; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 500; color: var(--cyan);
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 6px 14px; border-radius: var(--radius-full);
  background: var(--cyan-dim); border: 1px solid rgba(34, 211, 238, 0.15);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 20px;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--cyan), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead {
  font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: var(--text-secondary);
  max-width: 640px; margin: 0 auto 36px;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 0.82rem; color: var(--text-tertiary); }

/* --- Sections --- */
.section-header { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-label {
  display: inline-block; font-size: 0.76rem; font-weight: 600; color: var(--cyan);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px;
}
.section-header h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 750; letter-spacing: -0.02em; line-height: 1.15; }
.section-header p { margin-top: 14px; color: var(--text-secondary); font-size: 1.02rem; }

/* --- Cards / grids --- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); transform: translateY(-2px); }
.card h3 { font-size: 1.05rem; font-weight: 650; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { font-size: 0.92rem; color: var(--text-secondary); }
.card .icon {
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cyan-dim); border: 1px solid rgba(34, 211, 238, 0.15);
  color: var(--cyan);
}

/* --- Steps --- */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: #04121a; background: var(--cyan);
}

/* --- Pricing --- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 330px)); gap: 20px; justify-content: center; }
.price-card { display: flex; flex-direction: column; padding: 32px; }
.price-card.featured { border-color: var(--cyan-border); box-shadow: 0 0 48px rgba(34, 211, 238, 0.1); }
.price-badge {
  align-self: flex-start; font-size: 0.72rem; font-weight: 600; color: var(--cyan);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 10px; border-radius: var(--radius-full);
  background: var(--cyan-dim); border: 1px solid rgba(34, 211, 238, 0.2);
  margin-bottom: 14px;
}
.price-name { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
.price-amount { margin: 14px 0 4px; font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.price-amount span { font-size: 1rem; font-weight: 500; color: var(--text-secondary); }
.price-desc { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 22px; }
.price-features { display: grid; gap: 10px; margin-bottom: 28px; font-size: 0.92rem; color: var(--text-secondary); }
.price-features li { display: flex; gap: 10px; align-items: flex-start; }
.price-features li::before { content: '✓'; color: var(--cyan); font-weight: 700; flex-shrink: 0; }
.price-card .btn { margin-top: auto; width: 100%; }
.form-error {
  display: none; margin-top: 14px; padding: 10px 14px; border-radius: var(--radius);
  background: rgba(251, 113, 133, 0.08); border: 1px solid rgba(251, 113, 133, 0.25);
  color: var(--rose); font-size: 0.88rem;
}
.form-error.visible { display: block; }

/* --- Forms / panels (manage, success) --- */
.panel {
  max-width: 520px; margin: 0 auto; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px;
}
.panel h1 { font-size: 1.6rem; font-weight: 750; letter-spacing: -0.02em; margin-bottom: 10px; }
.panel .sub { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 26px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--text-secondary); }
.field input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--text-primary); font: inherit; font-size: 0.95rem;
  transition: border-color 0.2s;
}
.field input:focus { outline: none; border-color: var(--cyan-border); }
.field { margin-bottom: 18px; }
.page-main { padding: clamp(140px, 18vw, 180px) 0 clamp(64px, 8vw, 100px); min-height: 60vh; }

.token-box {
  margin: 22px 0; padding: 14px 16px; border-radius: var(--radius);
  background: rgba(255,255,255,0.04); border: 1px dashed var(--border-hover);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.85rem;
  word-break: break-all; color: var(--text-secondary); user-select: all;
}
.status-note { font-size: 0.9rem; color: var(--text-secondary); margin-top: 18px; }
.status-note.warn { color: var(--rose); }

/* --- Install steps --- */
.install-steps { max-width: 720px; margin: 0 auto; display: grid; gap: 16px; counter-reset: istep; }
.install-step {
  display: flex; gap: 18px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px;
}
.install-step .step-num { flex-shrink: 0; margin-bottom: 0; }
.install-step h3 { font-size: 1rem; font-weight: 650; margin-bottom: 6px; }
.install-step p { font-size: 0.92rem; color: var(--text-secondary); }
.install-step code, .prose code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.85em;
  background: rgba(255,255,255,0.07); border: 1px solid var(--border);
  padding: 2px 6px; border-radius: 6px; color: var(--cyan);
}

/* --- Footer --- */
.footer { border-top: 1px solid var(--border); padding: 44px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { font-weight: 700; }
.footer-brand .byline { font-size: 0.72rem; font-weight: 500; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.12em; margin-left: 8px; }
.footer-links { display: flex; gap: 22px; font-size: 0.88rem; color: var(--text-secondary); }
.footer-links a:hover { color: var(--text-primary); }
.footer-copy { width: 100%; margin-top: 18px; font-size: 0.8rem; color: var(--text-tertiary); }

/* --- Prose --- */
.prose { max-width: 720px; margin: 0 auto; color: var(--text-secondary); font-size: 0.98rem; }
.prose p { margin-bottom: 14px; }
.prose a { color: var(--cyan); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: minmax(0, 480px); }
}
@media (max-width: 560px) {
  .grid-4, .steps { grid-template-columns: 1fr; }
  .navbar-links { gap: 16px; font-size: 0.85rem; }
}
