/* ── Secretaria.ai Design System ── */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap");

:root {
  --bg: #050b14;
  --bg-elevated: #0c1220;
  --surface: rgba(12, 18, 32, 0.88);
  --surface-solid: #0c1220;
  --surface2: rgba(20, 28, 44, 0.92);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text: #f4f7fb;
  --text-soft: #b8c5d8;
  --muted: #8496ad;
  --accent: #34d9c8;
  --accent-dim: rgba(52, 217, 200, 0.14);
  --accent2: #8b7cff;
  --accent-glow: rgba(52, 217, 200, 0.4);
  --violet-glow: rgba(139, 124, 255, 0.32);
  --danger: #ff6b8a;
  --success: #42d98a;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-h: 68px;
  --shadow-glow: 0 0 60px -18px var(--accent-glow);
  --shadow-card: 0 20px 60px -24px rgba(0, 0, 0, 0.55);
  --space-field: 0.55rem;
  --space-stack: 1.5rem;
  --space-section: 3rem;
  --space-section-lg: 3.75rem;
  --space-block: 2rem;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  display: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #6ff5e8;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.container-wide {
  width: min(1320px, 94vw);
  margin: 0 auto;
}

/* ── Header ── */
.site-header,
.header-glass {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  position: relative;
  z-index: 50;
}

.header-glass {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.85rem 0;
  background: rgba(3, 7, 18, 0.55);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.header-glass.is-scrolled {
  border-bottom-color: var(--glass-border);
  background: rgba(3, 7, 18, 0.82);
}

.header-glass .container-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1320px, 94vw);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--text);
}

.logo span,
.logo em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.nav-link {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--text);
  background: var(--glass);
  text-decoration: none;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #5eead4 40%, var(--accent2) 100%);
  background-size: 200% 200%;
  color: #031018;
  box-shadow: 0 4px 24px -4px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px -4px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #020a0f;
}

.btn-ghost {
  background: var(--glass);
  border-color: var(--glass-border);
  color: var(--text-soft);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
}

.btn-lg {
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  z-index: -1;
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.3s;
}

.btn-glow:hover::after {
  opacity: 0.6;
}

/* ── Demo chat (shared) ── */
.demo-card,
.phone-mockup {
  background: var(--surface-solid);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.demo-header,
.phone-notch-bar {
  padding: 0.9rem 1.1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-bottom: 1px solid var(--glass-border);
}

.demo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px rgba(61, 214, 140, 0.7);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.92); }
}

.demo-messages {
  min-height: 300px;
  max-height: 380px;
  overflow-y: auto;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: linear-gradient(180deg, #080c14 0%, #0a1018 100%);
}

.demo-messages::-webkit-scrollbar {
  width: 5px;
}

.demo-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
}

.msg {
  max-width: 85%;
  padding: 0.7rem 0.95rem;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  animation: msg-in 0.4s var(--ease-out) both;
}

@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
}

.msg-bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom-left-radius: 5px;
}

.msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(46, 232, 214, 0.2), rgba(124, 107, 255, 0.25));
  border: 1px solid rgba(46, 232, 214, 0.2);
  border-bottom-right-radius: 5px;
}

.demo-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.35);
}

.demo-input-row input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.demo-input-row input:focus {
  outline: none;
  border-color: rgba(46, 232, 214, 0.45);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.demo-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 1rem;
}

.hint-chip {
  font-size: 0.78rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--glass);
  color: var(--muted);
  cursor: pointer;
  border: 1px solid var(--glass-border);
  font-family: var(--font-body);
  transition: all 0.2s var(--ease-out);
}

.hint-chip:hover {
  color: var(--accent);
  border-color: rgba(46, 232, 214, 0.35);
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.typing-dots {
  display: inline-flex;
  gap: 4px;
  padding: 0.15rem 0;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing-bounce 1.2s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* ── Footer ── */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--accent);
}

/* ── Utilities ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.wizard-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--surface2);
  border: 1px solid var(--glass-border);
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  z-index: 9999;
  transition: transform 0.3s var(--ease-out);
  max-width: min(92vw, 420px);
  text-align: center;
  backdrop-filter: blur(16px);
}

.wizard-toast--show {
  transform: translateX(-50%) translateY(0);
}

.wizard-toast[data-type="error"] {
  border-color: rgba(255, 107, 138, 0.4);
  color: #ffb4c4;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.nav-toggle-icon {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: background 0.2s;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), top 0.25s var(--ease-out);
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 45;
  padding: 1.25rem;
  background: rgba(5, 11, 20, 0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  color: var(--text-soft);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.mobile-nav a:hover {
  background: var(--glass);
  color: var(--text);
  text-decoration: none;
}

.mobile-nav .btn {
  margin-top: 0.75rem;
  width: 100%;
}

.price-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.compare-price {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 1rem;
  color: var(--text);
}

.price-card--hero .compare-price {
  color: var(--accent);
}

.compare-price small {
  font-size: 0.55em;
  font-weight: 600;
  color: var(--muted);
}

.compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
}

.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--glass-border);
  color: var(--muted);
  line-height: 1.45;
}

.compare-list li:last-child {
  border-bottom: none;
}

.compare-list .check {
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 700;
}

.compare-list .cross {
  opacity: 0.45;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 22rem;
  margin: 0.75rem 0 0;
  line-height: 1.55;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-col h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 0.65rem;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: var(--text-soft);
  font-size: 0.9rem;
  padding: 0.2rem 0;
}

.nav-cta-mobile {
  display: none;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

  .nav-link.hide-mobile,
  .header-glass .btn-ghost.hide-mobile {
    display: none;
  }

  .header-glass .btn-primary.hide-mobile {
    display: none;
  }

  .nav-cta-mobile {
    display: inline-flex;
    margin-right: 0.35rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .compare-mobile {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .msg { animation: none; }
}
