/* Author: Andre Luis Machado Lopes */
/* Vaxio v2 — shared stylesheet */

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

:root {
  color-scheme: light dark;

  --color-primary: #22C55E;
  --color-primary-dark: #3DD98F;
  --color-primary-text: #1B7F3A;

  --color-text: #1A1A1A;
  --color-text-light: #2D2D2D;
  --color-text-on-dark: #E8E8E8;

  --color-bg: #FFFFFF;
  --color-bg-dark: #0A0A0A;
  --color-bg-elev: #F7F7F8;
  --color-border: #E5E5E5;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.06);
  --shadow-glow: 0 12px 32px rgba(34, 197, 94, 0.15);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #3DD98F;
    --color-primary-text: #3DD98F;
    --color-text: #FFFFFF;
    --color-text-light: #E0E0E0;
    --color-text-on-dark: #E0E0E0;
    --color-bg: #0A0A0A;
    --color-bg-dark: #1A1A1A;
    --color-bg-elev: #141416;
    --color-border: #2D2D2D;
    --shadow-glow: 0 12px 32px rgba(61, 217, 143, 0.18);
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

.skip-to-content {
  position: absolute; top: -40px; left: 0;
  background-color: var(--color-primary); color: #1A1A1A;
  padding: 8px 16px; z-index: 1001;
  text-decoration: none; font-weight: 600; font-size: 14px;
}
.skip-to-content:focus { top: 0; }

@keyframes presence-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 4px rgba(34,197,94,0.3); }
  50%      { transform: scale(1.08); box-shadow: 0 0 12px rgba(34,197,94,0.6); }
}
@keyframes presence-pulse-dark {
  0%, 100% { transform: scale(1); box-shadow: 0 0 4px rgba(61,217,143,0.4); }
  50%      { transform: scale(1.08); box-shadow: 0 0 12px rgba(61,217,143,0.7); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes wave-bar {
  0%, 100% { height: 8px;  opacity: 0.6; }
  50%      { height: 36px; opacity: 1; }
}

/* ================== NAV ================== */

nav {
  position: sticky; top: 0;
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
  background-color: rgba(255,255,255,0.92);
  z-index: 1000;
}
@media (prefers-color-scheme: dark) {
  nav { background-color: rgba(10,10,10,0.92); }
}

.nav-container {
  max-width: 1200px; margin: 0 auto;
  padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center;
}

.logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 18px;
  text-decoration: none; color: var(--color-text);
  transition: opacity 0.3s;
}
.logo:hover { opacity: 0.85; }

.logo-mark {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-text);
  animation: presence-pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
@media (prefers-color-scheme: dark) {
  .logo-mark { animation: presence-pulse-dark 2.2s ease-in-out infinite; }
}

.nav-links { display: flex; gap: 28px; align-items: center; list-style: none; }
.nav-links a:not(.nav-cta) { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--color-text); transition: color 0.3s; }
.nav-links a:not(.nav-cta):hover { color: var(--color-primary); }
.nav-links a:not(.nav-cta).active { color: var(--color-primary); }

.nav-cta {
  padding: 10px 18px; background-color: var(--color-primary);
  color: #0A0A0A; text-decoration: none;
  font-weight: 600; font-size: 14px; border-radius: 8px;
  transition: all 0.3s;
}
.nav-cta:hover {
  color: #0A0A0A;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34,197,94,0.3);
}

.breadcrumbs {
  max-width: 1200px; margin: 0 auto;
  padding: 12px 20px; font-size: 13px; color: var(--color-text-light);
}
.breadcrumbs a { color: var(--color-primary); text-decoration: none; }
.breadcrumbs a:hover { opacity: 0.85; }

/* ================== LAYOUT ================== */

main { display: block; }

.section {
  max-width: 1200px; margin: 0 auto;
  padding: 80px 20px;
}
.section--narrow { max-width: 900px; }
.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  max-width: none; padding: 0;
}
.section--dark .section-inner {
  max-width: 1200px; margin: 0 auto; padding: 80px 20px;
}
.section--dark h2,
.section--dark h3,
.section--dark p,
.section--dark li { color: var(--color-text-on-dark); }

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--color-primary) 35%, transparent);
  border-radius: 999px;
  margin-bottom: 16px;
}

h1, h2, h3, h4 { letter-spacing: -0.5px; line-height: 1.2; }
h1 { font-size: clamp(36px, 7vw, 60px); font-weight: 800; letter-spacing: -1px; }
h2 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; margin-bottom: 24px; }
h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }

p { font-size: 17px; line-height: 1.7; }

.lede {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--color-text-light);
  line-height: 1.65;
  max-width: 640px;
}

/* ================== HERO ================== */

.hero {
  max-width: 1200px; margin: 0 auto;
  padding: 96px 20px 80px;
  display: grid; grid-template-columns: 1fr; gap: 56px;
  align-items: center;
  animation: fadeInUp 0.8s ease-out;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; padding: 120px 20px 100px; }
}

.hero h1 { margin-bottom: 18px; }
.hero .lede { margin-bottom: 32px; }

.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 10px;
  font-weight: 600; font-size: 15px;
  text-decoration: none; transition: all 0.25s;
  border: 1px solid transparent;
}
.btn--primary { background: var(--color-primary); color: #0A0A0A; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(34,197,94,0.32); }
.btn--ghost { color: var(--color-text); border-color: var(--color-border); background: transparent; }
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* Ghost buttons sitting on always-dark surfaces (section--dark, footer) must
   stay readable in BOTH light and dark OS modes — the surface is dark either
   way, so the text/border are anchored to the on-dark palette instead of
   flipping with prefers-color-scheme. */
.section--dark .btn--ghost,
footer .btn--ghost {
  color: var(--color-text-on-dark);
  border-color: rgba(255, 255, 255, 0.22);
}
.section--dark .btn--ghost:hover,
footer .btn--ghost:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.hero-meta {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 18px;
  font-size: 13px; color: var(--color-text-light);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); }

/* hero visual: voice waveform card */
.voice-card {
  position: relative;
  padding: 28px;
  border-radius: 20px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--color-primary) 6%, transparent), transparent 60%), var(--color-bg-elev);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.voice-card__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
  font-size: 12px; color: var(--color-text-light);
}
.voice-card__pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  color: var(--color-primary-text);
  font-weight: 600; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.voice-card__pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-primary);
  animation: presence-pulse 2.2s ease-in-out infinite;
}
.voice-card__transcript {
  display: flex; flex-direction: column; gap: 10px;
  padding-bottom: 20px;
}
.bubble {
  font-size: 14px; line-height: 1.55;
  padding: 10px 14px; border-radius: 12px;
  max-width: 86%;
}
.bubble--user {
  align-self: flex-start;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}
.bubble--ai {
  align-self: flex-end;
  background: color-mix(in srgb, var(--color-primary) 14%, transparent);
  color: var(--color-text);
  border: 1px solid color-mix(in srgb, var(--color-primary) 35%, transparent);
}
.bubble small { display: block; opacity: 0.6; font-size: 11px; margin-top: 4px; font-weight: 500; }

.waveform {
  display: flex; align-items: end; gap: 4px; height: 44px;
  padding: 8px 0;
  border-top: 1px solid var(--color-border);
}
.waveform span {
  display: block; width: 4px; border-radius: 2px;
  background: var(--color-primary);
  animation: wave-bar 1.4s ease-in-out infinite;
}
.waveform span:nth-child(1)  { animation-delay: 0.0s; }
.waveform span:nth-child(2)  { animation-delay: 0.07s; }
.waveform span:nth-child(3)  { animation-delay: 0.14s; }
.waveform span:nth-child(4)  { animation-delay: 0.21s; }
.waveform span:nth-child(5)  { animation-delay: 0.28s; }
.waveform span:nth-child(6)  { animation-delay: 0.35s; }
.waveform span:nth-child(7)  { animation-delay: 0.42s; }
.waveform span:nth-child(8)  { animation-delay: 0.49s; }
.waveform span:nth-child(9)  { animation-delay: 0.56s; }
.waveform span:nth-child(10) { animation-delay: 0.63s; }
.waveform span:nth-child(11) { animation-delay: 0.70s; }
.waveform span:nth-child(12) { animation-delay: 0.77s; }
.waveform span:nth-child(13) { animation-delay: 0.84s; }
.waveform span:nth-child(14) { animation-delay: 0.91s; }
.waveform span:nth-child(15) { animation-delay: 0.98s; }

@media (prefers-reduced-motion: reduce) {
  .waveform span { animation: none; height: 16px; opacity: 0.7; }
}

/* ================== GRIDS / CARDS ================== */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 24px 0;
}
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  padding: 28px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-3px); border-color: var(--color-primary); box-shadow: var(--shadow-glow); }
.card h3 { color: var(--color-primary-text); }
.card p { color: var(--color-text-light); font-size: 15px; }

.section--dark .card {
  background: var(--color-bg);
  color: var(--color-text);
}
.section--dark .card p { color: var(--color-text-light); }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 36px 0;
}
.kpi {
  padding: 28px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  text-align: center;
}
.section--dark .kpi { background: var(--color-bg); color: var(--color-text); }
.kpi__number {
  font-size: 40px; font-weight: 800; line-height: 1;
  color: var(--color-primary-text); margin-bottom: 8px;
  letter-spacing: -1px;
}
.kpi__label { font-size: 14px; color: var(--color-text-light); line-height: 1.5; }
.kpi__source { font-size: 11px; color: #6B6B6B; margin-top: 10px; font-style: italic; }

/* tech specs (technology.html) */
.spec-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
}
@media (min-width: 700px) {
  .spec-row { grid-template-columns: 220px 1fr; gap: 32px; }
}
.spec-row:last-child { border-bottom: none; }
.spec-row__label { font-size: 13px; font-weight: 600; color: var(--color-primary); letter-spacing: 0.06em; text-transform: uppercase; }
.spec-row__value { font-size: 16px; color: var(--color-text); }
.spec-row__value code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; padding: 2px 6px; background: var(--color-bg-elev); border-radius: 4px; border: 1px solid var(--color-border); }

.diagram {
  margin: 32px 0;
  padding: 28px;
  background: var(--color-bg-elev);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
  color: var(--color-text);
}

/* ================== TIMELINE (roadmap) ================== */

.timeline {
  position: relative;
  padding-left: 28px;
  margin: 24px 0;
}
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px;
  width: 2px; background: var(--color-border);
}
.timeline-item {
  position: relative; padding: 8px 0 28px 24px;
}
.timeline-item::before {
  content: ""; position: absolute; left: -28px; top: 14px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--color-bg);
  border: 3px solid var(--color-primary);
}
.timeline-item--done::before { background: var(--color-primary); }
.timeline-item h3 { margin-bottom: 4px; }
.timeline-item .when {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-primary); margin-bottom: 8px;
}

/* ================== FORMS / CONTACT ================== */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

/* ================== FOOTER ================== */

footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  padding: 48px 20px 32px;
  margin-top: 40px;
  border-top: 1px solid var(--color-border);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; gap: 36px;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-brand p { font-size: 14px; color: var(--color-text-on-dark); opacity: 0.78; margin-top: 12px; max-width: 280px; }
footer h4 { color: var(--color-text-on-dark); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; text-decoration: none; color: var(--color-text-on-dark); opacity: 0.85; }
.footer-links a:hover { color: var(--color-primary); opacity: 1; }
.footer-bottom {
  max-width: 1200px; margin: 36px auto 0;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px; color: var(--color-text-on-dark); opacity: 0.65;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ================== UTILS ================== */

.muted { color: var(--color-text-light); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.mb-6 { margin-bottom: 48px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.tag {
  display: inline-block;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
  background: var(--color-bg-elev);
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
}
.tag--primary { background: color-mix(in srgb, var(--color-primary) 12%, transparent); color: var(--color-primary-text); border-color: color-mix(in srgb, var(--color-primary) 30%, transparent); }

a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ================== MOBILE ================== */

@media (max-width: 760px) {
  .nav-links { gap: 16px; }
  .nav-links li:not(:last-child) { display: none; }
  .section, .section--dark .section-inner { padding: 60px 20px; }
  .hero { padding: 60px 20px 40px; gap: 32px; }
  h1 { font-size: clamp(32px, 9vw, 44px); }
  h2 { font-size: clamp(24px, 6vw, 32px); }
  .voice-card { padding: 22px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
