/* ==========================================================================
   SORA DESIGN — SORA RECEPTIONIST — STYLESHEET
   ========================================================================== */

:root {
  --bg-dark: #0B0B0C;
  --bg-studio: #070708;
  --border-light: rgba(255, 255, 255, 0.08);
  --blue-brand: #0052FF;
  --orange-brand: #FF5A36;
  --text-muted: #8E9196;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
}

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

body {
  background-color: var(--bg-dark);
  color: #FFFFFF;
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== GENERAL CONTAINER & LAYOUT ===== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4%;
  width: 100%;
}

.section {
  padding: 120px 0;
  position: relative;
  border-top: 1px solid var(--border-light);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.label-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--blue-brand);
}

.label-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.section-heading {
  font-size: 48px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

/* ===== HEADER / NAVIGATION ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 4%;
  z-index: 1000;
  background: rgba(11, 11, 12, 0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--blue-brand);
}

.logo-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 20px;
  border-radius: 100px;
  transition: background 0.3s, border 0.3s;
}

.header-cta:hover {
  background: #FFFFFF;
  color: var(--bg-dark);
  border-color: #FFFFFF;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 180px 0 120px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(0, 82, 255, 0.15) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-eyebrow-line {
  width: 32px;
  height: 1px;
  background: var(--blue-brand);
}

.hero-eyebrow span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--blue-brand);
}

.hero-heading {
  font-size: 64px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--blue-brand);
  background: linear-gradient(to right, #0052FF, #FF5A36);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 20px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--blue-brand);
  color: #FFFFFF;
  padding: 16px 36px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.3s, background 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #0040E5;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  padding: 16px 36px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.3s, border 0.3s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #FFFFFF;
}

/* ===== ORB GRAPHIC ===== */
.hero-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
}

.orb-container {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.orb-pulsing-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(0, 82, 255, 0.2);
  border-radius: 50%;
  animation: pulseRing 3s ease-out infinite;
}

.orb-pulsing-ring:nth-child(2) {
  animation-delay: 1.5s;
}

@keyframes pulseRing {
  from {
    transform: scale(0.6);
    opacity: 1;
  }
  to {
    transform: scale(1.2);
    opacity: 0;
  }
}

.orb-core {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, #0052FF 0%, #FF5A36 100%);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #FFFFFF;
  box-shadow: 0 0 50px rgba(0, 82, 255, 0.6);
  z-index: 5;
  animation: floatOrb 6s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  from { transform: translateY(-8px) scale(0.98); }
  to { transform: translateY(8px) scale(1.02); }
}

/* ===== SIMULATOR ===== */
.simulator-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.simulator-console {
  background: rgba(18, 19, 21, 0.4);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.console-header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.console-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.console-dot.green { background: #10B981; box-shadow: 0 0 10px #10B981; }

.console-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.console-screen {
  padding: 40px;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.call-state {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.sim-phone-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--blue-brand);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.call-state h3 {
  font-size: 32px;
  margin-bottom: 12px;
}

.call-state p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 80%;
  line-height: 1.6;
}

.btn-call-trigger {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  background: var(--blue-brand);
  color: #FFFFFF;
  padding: 14px 28px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-call-trigger:hover {
  background: #0040E5;
}

/* Ringing State */
.ringing-animation {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.ring-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 50%;
  animation: ringPulse 2s linear infinite;
}

.ring-circle:nth-child(2) {
  animation-delay: 1s;
}

@keyframes ringPulse {
  from { transform: scale(0.6); opacity: 1; }
  to { transform: scale(1.4); opacity: 0; }
}

.phone-icon-pulse {
  width: 50px;
  height: 50px;
  background: #10B981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  z-index: 5;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
}

.call-state h4 {
  font-size: 20px;
  margin-bottom: 6px;
}

.caller-id {
  font-family: var(--font-mono);
  font-size: 12px !important;
}

.call-actions {
  display: flex;
  gap: 20px;
}

.btn-action {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  color: #FFFFFF;
}

.btn-action.accept { background: #10B981; box-shadow: 0 0 15px rgba(16, 185, 129, 0.4); }
.btn-action.reject { background: #EF4444; }

/* Active Call State */
.call-state.active-call {
  align-items: stretch;
  text-align: left;
}

.active-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.active-indicator {
  width: 6px;
  height: 6px;
  background: #10B981;
  border-radius: 50%;
  animation: blink 1s alternate infinite;
}

@keyframes blink {
  from { opacity: 0.2; }
  to { opacity: 1; }
}

.call-duration {
  margin-left: auto;
}

.active-waveform {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  height: 40px;
  margin-bottom: 20px;
}

.wave-bar {
  width: 4px;
  height: 8px;
  background: var(--blue-brand);
  border-radius: 4px;
  animation: idleWave 1s ease-in-out infinite alternate;
}

.wave-bar:nth-child(even) {
  animation-delay: 0.2s;
}

@keyframes idleWave {
  from { height: 8px; }
  to { height: 28px; }
}

/* Active talking waveform overrides */
.active-waveform.talking .wave-bar {
  background: var(--orange-brand);
  animation: talkWave 0.6s ease-in-out infinite alternate;
}

@keyframes talkWave {
  from { height: 10px; }
  to { height: 42px; }
}

.transcription-container {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  height: 150px;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  scrollbar-width: thin;
}

.trans-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  animation: bubblePop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bubblePop {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.trans-bubble.sora {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.04);
  color: #FFFFFF;
  border-bottom-left-radius: 2px;
}

.trans-bubble.caller {
  align-self: flex-end;
  background: var(--blue-brand);
  color: #FFFFFF;
  border-bottom-right-radius: 2px;
}

.bubble-label {
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

.btn-hangup {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  background: #EF4444;
  color: #FFFFFF;
  border: none;
  padding: 12px;
  border-radius: 100px;
  cursor: pointer;
  text-align: center;
}

/* Hide other states initially */
.call-state { display: none; }
.call-state.idle { display: flex; }

/* ===== SIMULATOR STEPS ===== */
.details-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue-brand);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.details-desc {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.flow-step {
  display: flex;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.flow-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--blue-brand);
  font-weight: 600;
}

.step-content h4 {
  font-size: 18px;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== CRM DASHBOARD ===== */
.dashboard-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.dashboard-stats-row {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.dash-stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 32px;
  font-weight: 700;
  color: #FFFFFF;
  font-family: var(--font-serif);
}

.stat-lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.crm-console {
  background: rgba(18, 19, 21, 0.4);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
}

.crm-header {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.crm-pulse {
  width: 6px;
  height: 6px;
  background: var(--blue-brand);
  border-radius: 50%;
  animation: blink 1s alternate infinite;
}

.crm-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.crm-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 16px;
}

.crm-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.crm-time {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
}

.crm-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
}

.crm-badge.success { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.crm-badge.order { background: rgba(0, 82, 255, 0.1); color: #0052FF; }
.crm-badge.transfer { background: rgba(255, 90, 54, 0.1); color: #FF5A36; }

.crm-item h4 {
  font-size: 15px;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.crm-item p {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

.crm-tags {
  display: flex;
  gap: 10px;
}

.crm-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-light);
  padding: 80px 4% 40px;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 15px;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #FFFFFF;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 40px;
  max-width: 1400px;
  margin: 40px auto 0;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-legal a {
  margin-left: 24px;
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: #FFFFFF;
}

/* ===== MOBILE TRANSITIONS & OVERLAYS ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #FFFFFF;
  transition: transform 0.3s;
}

.menu-toggle.active span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle.active span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: auto;
}

.mobile-nav-links a {
  font-size: 32px;
  font-weight: 500;
}

.mobile-nav-footer a {
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== RESPONSIVENESS ===== */
@media (max-width: 1100px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
  .hero-eyebrow {
    justify-content: center;
  }
  .hero-heading {
    font-size: 48px;
  }
  .hero-ctas {
    justify-content: center;
  }
  .simulator-layout, .dashboard-split {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }
  .nav-links, .header-cta {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-legal a {
    margin: 0 12px;
  }
  .console-screen {
    padding: 20px;
  }
  .dashboard-stats-row {
    gap: 20px;
  }
  .stat-num {
    font-size: 24px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
