/* StratoSales Demo — Luxe Design System */

:root {
  --luxe-ivory: #f8f2e8;
  --luxe-cream: #fff9ef;
  --luxe-ink: #1d1a16;
  --luxe-charcoal: #181512;
  --luxe-bronze: #b5824a;
  --luxe-bronze-soft: #e8c79d;
  --luxe-forest: #35554f;
  --luxe-stone: #726a60;
  --luxe-line: rgba(34, 27, 20, 0.14);
  --luxe-shadow: 0 22px 60px rgba(31, 22, 14, 0.12);
  --luxe-shadow-sm: 0 8px 24px rgba(31, 22, 14, 0.08);

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 0.75rem;
  --radius-md: 1.35rem;
  --radius-lg: 1.8rem;
  --radius-pill: 999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--luxe-ivory);
  color: var(--luxe-ink);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Navigation ── */

.nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 2rem);
  max-width: 980px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.2rem;
  background: rgba(255, 251, 245, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--luxe-line);
  border-radius: var(--radius-pill);
  box-shadow: var(--luxe-shadow-sm);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--luxe-ink);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--luxe-stone);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--luxe-ink);
}

/* ── Hero ── */

.hero {
  padding: 8rem 1.5rem 3rem;
  text-align: center;
  background:
    radial-gradient(circle at 8% -8%, rgba(181, 130, 74, 0.18), transparent 32%),
    radial-gradient(circle at 92% 4%, rgba(53, 85, 79, 0.14), transparent 28%),
    var(--luxe-ivory);
}

.hero-content {
  max-width: 680px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: rgba(53, 85, 79, 0.1);
  border: 1px solid rgba(53, 85, 79, 0.18);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--luxe-forest);
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--luxe-forest);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.015em;
  color: var(--luxe-ink);
  margin-bottom: 1.2rem;
}

.text-bronze {
  color: var(--luxe-bronze);
}

.hero-lead {
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  color: var(--luxe-stone);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto;
}

/* ── Demo Section ── */

.demo-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* ── Cards ── */

.card {
  background: var(--luxe-cream);
  border: 1px solid var(--luxe-line);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--luxe-shadow-sm);
}

.card-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--luxe-stone);
  margin-bottom: 1.2rem;
}

.label-icon {
  display: flex;
  color: var(--luxe-bronze);
}

/* Call Card */

.call-header h2 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}

.call-subtitle {
  font-size: 0.88rem;
  color: var(--luxe-stone);
  margin-bottom: 1.4rem;
}

.call-controls {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

/* Buttons */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.4rem;
  background: linear-gradient(120deg, #1f1b17, #3c3226 55%, #5a4634);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(31, 22, 14, 0.22);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.4rem;
  background: transparent;
  color: var(--luxe-ink);
  border: 1px solid var(--luxe-line);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
}

.btn-secondary:hover {
  transform: translateY(-1px);
  background: rgba(34, 27, 20, 0.04);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.4rem;
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-danger:hover {
  transform: translateY(-1px);
  background: #a93226;
}

/* Status Bar */

.status-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: rgba(53, 85, 79, 0.06);
  border: 1px solid rgba(53, 85, 79, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--luxe-forest);
  margin-bottom: 1rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--luxe-forest);
  flex-shrink: 0;
}

.status-bar.active .status-dot {
  animation: pulse-dot 1.2s ease-in-out infinite;
}

.status-bar.ended {
  background: rgba(181, 130, 74, 0.08);
  border-color: rgba(181, 130, 74, 0.15);
  color: var(--luxe-bronze);
}

.status-bar.ended .status-dot {
  background: var(--luxe-bronze);
  animation: none;
}

/* Transcript */

.transcript {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0.4rem;
  scroll-behavior: smooth;
}

.transcript::-webkit-scrollbar {
  width: 5px;
}

.transcript::-webkit-scrollbar-thumb {
  background: rgba(29, 26, 22, 0.12);
  border-radius: var(--radius-pill);
}

.transcript-bubble {
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.55;
  animation: bubble-in 0.3s ease-out;
}

@keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.transcript-bubble.agent {
  background: rgba(53, 85, 79, 0.08);
  border: 1px solid rgba(53, 85, 79, 0.1);
}

.transcript-bubble.caller {
  background: rgba(181, 130, 74, 0.06);
  border: 1px solid rgba(181, 130, 74, 0.1);
}

.bubble-role {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.transcript-bubble.agent .bubble-role {
  color: var(--luxe-forest);
}

.transcript-bubble.caller .bubble-role {
  color: var(--luxe-bronze);
}

.bubble-text {
  color: var(--luxe-ink);
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--luxe-bronze);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: blink-cursor 0.7s step-end infinite;
}

@keyframes blink-cursor {
  50% { opacity: 0; }
}

/* ── Intake Card ── */

.intake-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--luxe-stone);
  margin-bottom: 1.4rem;
  padding: 0.5rem 0.8rem;
  background: rgba(114, 106, 96, 0.06);
  border-radius: var(--radius-sm);
}

.intake-status.active {
  color: var(--luxe-forest);
  background: rgba(53, 85, 79, 0.06);
}

.intake-status.complete {
  color: var(--luxe-bronze);
  background: rgba(181, 130, 74, 0.08);
}

.intake-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.intake-status.active .intake-status-dot {
  animation: pulse-dot 1.2s ease-in-out infinite;
}

.intake-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field-full {
  display: flex;
  flex-direction: column;
}

.field {
  display: flex;
  flex-direction: column;
}

.field label,
.field-full label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--luxe-stone);
  margin-bottom: 0.35rem;
}

.field-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--luxe-ink);
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--luxe-line);
  border-radius: var(--radius-sm);
  min-height: 2.5rem;
  transition: background 0.3s, border-color 0.3s;
}

.field-value.filled {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(53, 85, 79, 0.2);
  animation: field-fill 0.4s ease-out;
}

@keyframes field-fill {
  0% { background: rgba(53, 85, 79, 0.12); }
  100% { background: rgba(255, 255, 255, 0.9); }
}

.field-value-notes {
  min-height: 5rem;
  font-size: 0.85rem;
  line-height: 1.55;
  white-space: pre-wrap;
  color: var(--luxe-stone);
}

.field-value-notes.filled {
  color: var(--luxe-ink);
}

.intake-actions {
  margin-top: 1.2rem;
}

.action-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  animation: bubble-in 0.4s ease-out;
}

.action-badge-success {
  background: rgba(53, 85, 79, 0.1);
  color: var(--luxe-forest);
  border: 1px solid rgba(53, 85, 79, 0.15);
}

/* ── Features Strip ── */

.features-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--luxe-line);
}

.feature-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(181, 130, 74, 0.1);
  color: var(--luxe-bronze);
  flex-shrink: 0;
}

.feature-item strong {
  font-size: 0.92rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.15rem;
}

.feature-item p {
  font-size: 0.82rem;
  color: var(--luxe-stone);
  line-height: 1.45;
}

/* ── CTA ── */

.cta-section {
  text-align: center;
  margin-top: 3rem;
  padding: 3rem 2rem;
  background: linear-gradient(130deg, #24201b, #343028 68%, #4a3f31);
  border-radius: var(--radius-lg);
  color: var(--luxe-cream);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(181, 130, 74, 0.15), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(53, 85, 79, 0.12), transparent 50%);
  pointer-events: none;
}

.cta-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  position: relative;
}

.cta-section p {
  font-size: 1rem;
  color: rgba(248, 242, 232, 0.7);
  margin-bottom: 1.5rem;
  position: relative;
}

.btn-cta {
  position: relative;
  background: linear-gradient(120deg, var(--luxe-bronze), #c99a5c);
  color: var(--luxe-charcoal);
  font-weight: 800;
  padding: 0.85rem 1.8rem;
}

.btn-cta:hover {
  box-shadow: 0 12px 32px rgba(181, 130, 74, 0.3);
}

/* ── Footer ── */

.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.8rem;
  color: var(--luxe-stone);
}

/* ── Responsive ── */

@media (max-width: 860px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .features-strip {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}

@media (max-width: 480px) {
  .nav-inner {
    padding: 0.55rem 0.9rem;
  }

  .hero {
    padding: 7rem 1rem 2rem;
  }

  .demo-section {
    padding: 0 1rem 3rem;
  }

  .card {
    padding: 1.2rem;
  }
}

/* ── Reduced Motion ── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
