@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

/* ── Voxa — Shared Stylesheet (Redesigned) ─────────────────────────────────── */

:root {
  --bg:        #f4f3ef; /* Warm Clay / Sand-Grey */
  --bg2:       #ffffff; /* Crisp white for cards & interactive layers */
  --bg3:       #eae9e5; /* Muted clay for input backgrounds & tabs */
  --border:    rgba(23, 23, 23, 0.08); /* High-end subtle line work */
  --accent:    #ff5d40; /* Vibrant Coral / Persimmon */
  --accent-hi: #e04b30; /* Darker Coral for hovers and active states */
  --text:      #171717; /* Deep Slate Charcoal for primary text */
  --text2:     #525252; /* Medium Slate Gray for body copy */
  --text3:     #8e8e8e; /* Muted Slate Gray for metadata & borders */
  --green:     #16a34a; /* Action success green */
  --red:       #dc2626; /* Action warning red */
  --yellow:    #d97706; /* Warning yellow */
  --radius:    8px;
  --radius-lg: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-hi); }

img { max-width: 100%; display: block; }

/* ── Nav ──────────────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 243, 239, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.5px;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 14px; color: var(--text2); font-weight: 600;
  transition: color .15s ease;
  letter-spacing: -0.1px;
}
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; gap: 12px; align-items: center; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 20px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.btn:hover { opacity: .9; transform: translateY(-1px); }
.btn:active { transform: scale(.97) translateY(0); }

.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 12px rgba(255, 93, 64, 0.12);
}
.btn-primary:hover { color: #fff; background: var(--accent-hi); box-shadow: 0 6px 16px rgba(255, 93, 64, 0.22); opacity: 1; }

.btn-ghost {
  background: transparent; color: var(--text2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); background: rgba(0,0,0,0.02); border-color: var(--text); opacity: 1; }

.btn-lg { padding: 14px 30px; font-size: 15px; border-radius: 10px; }

.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--text);
}
.btn-outline:hover { background: var(--text); color: #fff; opacity: 1; }

/* ── Layout helpers ───────────────────────────────────────────────────────── */

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

section { padding: 80px 0; }

.section-label {
  font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px); font-weight: 700;
  color: var(--text); line-height: 1.2; letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 17px; color: var(--text2); max-width: 560px; line-height: 1.65;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */

.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}
.card:hover { border-color: rgba(255, 93, 64, 0.3); }

/* ── Divider ──────────────────────────────────────────────────────────────── */

.divider {
  border: none; border-top: 1px solid var(--border);
  margin: 0;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 36px 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}

.footer-logo {
  font-size: 16px; font-weight: 700; color: var(--text2);
}
.footer-logo span { color: var(--accent); }

.footer-links {
  display: flex; gap: 24px; list-style: none; flex-wrap: wrap;
}
.footer-links a { font-size: 13px; color: var(--text3); }
.footer-links a:hover { color: var(--text2); }

.footer-copy { font-size: 12px; color: var(--text3); width: 100%; text-align: center; margin-top: 8px; }

/* ── Form inputs ──────────────────────────────────────────────────────────── */

.input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg3);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.input:focus { 
  background-color: var(--bg2);
  border-color: var(--accent); 
  box-shadow: 0 0 0 4px rgba(255, 93, 64, 0.1);
}
.input::placeholder { color: var(--text3); }

label.field-label {
  font-size: 13px; color: var(--text2); display: block; margin-bottom: 8px; font-weight: 600;
}

.field { margin-bottom: 20px; }

/* ── Alerts ───────────────────────────────────────────────────────────────── */

.alert {
  padding: 11px 16px; border-radius: var(--radius);
  font-size: 13px; line-height: 1.5;
}
.alert-error { background: #fff0f0; border: 1px solid #f5c0c0; color: #b91c1c; }
.alert-success { background: #f0faf3; border: 1px solid #a7d7b8; color: #166534; }
.alert-warn { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }

.hidden { display: none !important; }

/* ── Badge ────────────────────────────────────────────────────────────────── */

.badge {
  display: inline-block; padding: 4px 12px;
  border-radius: 999px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.badge-accent { background: rgba(255, 93, 64, .1); color: var(--accent); }
.badge-green  { background: rgba(22, 163, 74, .1); color: var(--green); }

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .nav-links { display: none; }
  section { padding: 56px 0; }
  .footer { justify-content: center; text-align: center; }
}

/* ── Redesign Utilities ────────────────────────────────────────────────────── */

.grid-lines {
  position: relative;
}
.grid-lines::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: var(--border);
  z-index: -1;
  pointer-events: none;
}

.kbd-cap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-bottom-width: 3.5px;
  border-radius: 6px;
  padding: 3px 8px;
  font-family: -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.glow-blur {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: multiply;
  opacity: 0.15;
  filter: blur(60px);
  z-index: -1;
}

/* Animated speech waveform bars */
.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 24px;
}
.waveform-bar {
  width: 3px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 99px;
}

.waveform-bar.animate {
  animation: bounce 0.8s ease-in-out infinite alternate;
}

@keyframes bounce {
  0% { height: 4px; }
  100% { height: 24px; }
}
