/* Elegant Chat — Design System */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&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&display=swap');

:root {
  /* Colors */
  --color-navy: #0a1628;
  --color-navy-light: #152238;
  --color-navy-muted: #1e3050;
  --color-off-white: #f8f9fc;
  --color-white: #ffffff;
  --color-gold: #c9a962;
  --color-gold-light: #dfc88a;
  --color-indigo: #6366f1;
  --color-indigo-dark: #4f46e5;
  --color-indigo-light: #818cf8;
  --color-success: #10b981;
  --color-text: #1a2332;
  --color-text-muted: #64748b;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-light: #e2e8f0;

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing & layout */
  --container-max: 1140px;
  --section-padding: clamp(4rem, 8vw, 7rem);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 4px 24px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 12px 48px rgba(10, 22, 40, 0.12);
  --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.15);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0a1628 0%, #152238 40%, #1e3050 100%);
  --gradient-cta: linear-gradient(135deg, var(--color-indigo) 0%, var(--color-indigo-dark) 100%);
  --gradient-gold: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
  --gradient-mesh: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(99, 102, 241, 0.18) 0%, transparent 60%),
                   radial-gradient(ellipse 60% 50% at 20% 80%, rgba(201, 169, 98, 0.12) 0%, transparent 50%);
}

/* Reset & base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-off-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Typography */
.heading-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.text-muted {
  color: var(--color-text-muted);
}

.text-gold {
  color: var(--color-gold);
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-padding) 0;
}

.section-dark {
  background: var(--color-navy);
  color: var(--color-white);
}

.section-light {
  background: var(--color-off-white);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gradient-cta);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-border-light);
}

.btn-outline-dark:hover {
  background: var(--color-white);
  border-color: var(--color-indigo);
  color: var(--color-indigo);
}

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

/* Cards */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-dark {
  background: var(--color-navy-light);
  border-color: var(--color-border);
  color: var(--color-white);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  background: rgba(201, 169, 98, 0.15);
  color: var(--color-gold);
  border: 1px solid rgba(201, 169, 98, 0.3);
}

/* Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: center;
}

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

  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-logo span {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--color-white);
}

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: 5rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--color-gold);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* Chat mockup */
.chat-mockup {
  background: var(--color-navy-light);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  box-shadow: var(--shadow-glow);
  max-width: 380px;
  margin: 0 auto;
}

.chat-mockup-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-navy);
  font-size: 0.875rem;
}

.chat-name {
  font-weight: 600;
  color: var(--color-white);
  font-size: 0.9375rem;
}

.chat-status {
  font-size: 0.75rem;
  color: var(--color-success);
}

.chat-bubble {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  max-width: 85%;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.chat-bubble-in {
  background: var(--color-navy-muted);
  color: rgba(255, 255, 255, 0.85);
  border-bottom-left-radius: 4px;
}

.chat-bubble-out {
  background: var(--color-indigo);
  color: var(--color-white);
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.chat-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Stats strip */
.stats-strip {
  background: var(--color-navy-light);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 0.375rem;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Features */
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
  color: var(--color-navy);
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-cta);
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.step h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-white);
}

.step p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
}

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

/* CTA banner */
.cta-banner {
  background: var(--gradient-hero);
  border-radius: var(--radius-xl);
  padding: clamp(3rem, 6vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--color-white);
  margin-bottom: 1rem;
  position: relative;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 480px;
  margin: 0 auto 2rem;
  position: relative;
}

.cta-banner .btn {
  position: relative;
}

/* Footer */
.footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.footer-brand img {
  height: 28px;
}

.footer-brand span {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--color-white);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.8125rem;
  padding-top: 2rem;
  margin-top: 1rem;
  border-top: 1px solid var(--color-border);
  color: rgba(255, 255, 255, 0.4);
}

/* Section headings */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

.section-dark .section-header h2 {
  color: var(--color-white);
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.6);
}

/* Privacy page */
.privacy-page {
  padding-top: 6rem;
  padding-bottom: 4rem;
  min-height: 100vh;
}

.privacy-page h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--color-navy);
  border-bottom: 2px solid var(--color-border-light);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.privacy-page h2 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  color: var(--color-navy);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.privacy-page p,
.privacy-page li {
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.privacy-page ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.privacy-page a {
  color: var(--color-indigo);
}

.privacy-page a:hover {
  text-decoration: underline;
}
