/* AttestedCall - Diplomatic Dark Design System */

/* ============================================
   Google Fonts Import
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Outfit:wght@300;400;500&family=JetBrains+Mono:wght@400&display=swap');

/* ============================================
   CSS Variables - Diplomatic Dark Theme
   ============================================ */
:root {
  /* Background Colors */
  --bg: #090B0F;
  --surface: #0F1117;
  --card: #161920;

  /* Border Colors */
  --border: #252830;
  --border-mid: #353945;

  /* Text Colors */
  --text-primary: #EDE9E3;
  --text-secondary: #9B98A4;
  --text-ghost: #5A5860;

  /* Verified State */
  --verified: #1FB895;
  --verified-hover: #1CA885;
  --verified-glow: rgba(31, 184, 149, 0.10);
  --verified-border: rgba(31, 184, 149, 0.28);

  /* Unknown State */
  --unknown: #C9923A;
  --unknown-glow: rgba(201, 146, 58, 0.10);

  /* Accent Colors */
  --gold: #A87D42;
  --gold-bright: #C9A05A;
  --mono-blue: #4E82A8;

  /* Typography */
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Typography Scale */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */

  /* Spacing Scale */
  --space-1: 0.25rem;      /* 4px */
  --space-2: 0.5rem;       /* 8px */
  --space-3: 0.75rem;      /* 12px */
  --space-4: 1rem;         /* 16px */
  --space-6: 1.5rem;       /* 24px */
  --space-8: 2rem;         /* 32px */
  --space-12: 3rem;        /* 48px */
  --space-16: 4rem;        /* 64px */
  --space-24: 6rem;        /* 96px */

  /* Border Radius */
  --radius-sm: 0.25rem;    /* 4px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 1rem;       /* 16px */

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ============================================
   Base Styles
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(135deg, #090B0F 0%, #0D1015 25%, #0A0C10 50%, #0F1218 75%, #090B0F 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography Classes
   ============================================ */

/* Display Font (Cormorant Garamond) */
.font-display {
  font-family: var(--font-display);
}

.font-body {
  font-family: var(--font-body);
}

.font-mono {
  font-family: var(--font-mono);
}

/* Text Sizes */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }
.text-6xl { font-size: var(--text-6xl); }

/* Font Weights */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }

/* Text Colors */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-ghost { color: var(--text-ghost); }

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.04;
}
h2 {
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
}
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

/* Paragraphs */
p {
  margin-bottom: var(--space-4);
}

/* Links */
a {
  color: var(--verified);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold-bright);
}

/* ============================================
   Utility Classes
   ============================================ */

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Mobile Breakpoint: 768px */
@media (max-width: 768px) {
  :root {
    --text-5xl: 2.5rem;    /* 40px on mobile - H1 */
    --text-4xl: 1.75rem;   /* 28px on mobile - H2 */
    --text-3xl: 1.5rem;    /* 24px on mobile */
  }

  .container {
    padding: 0 var(--space-4);
  }

  .header-slogan {
    display: none;
  }
}

@media (min-width: 769px) {
  .container {
    padding: 0 var(--space-8);
  }
}

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: rgba(9, 11, 15, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  animation: fadeIn 400ms ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 44px;
  width: auto;
}

.header-slogan {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  white-space: nowrap;
  font-style: italic;
}

/* ============================================
   Buttons
   ============================================ */
.button-primary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  border: 1px solid transparent;
}

.button-primary {
  background-color: var(--verified);
  color: var(--bg);
  border-color: var(--verified);
}

.button-primary:hover {
  background-color: var(--verified-hover);
  border-color: var(--verified-hover);
  box-shadow: 0 0 24px rgba(31, 184, 149, 0.3);
}

.button-ghost {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: var(--border-mid);
}

.button-ghost:hover {
  color: var(--text-primary);
  border-color: var(--verified-border);
  background-color: rgba(31, 184, 149, 0.05);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  padding-top: 160px;
  padding-bottom: var(--space-24);
  display: flex;
  align-items: center;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-ghost);
  text-transform: uppercase;
  margin-bottom: var(--space-6);
  animation: fadeIn 400ms ease 0ms both;
}

.hero h1 {
  font-size: var(--text-6xl);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  animation: fadeUp 600ms ease 200ms both;
}

.hero .subhead {
  font-size: var(--text-xl);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  animation: fadeUp 600ms ease 400ms both;
}

.hero .button-primary {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
  animation: fadeUp 600ms ease 600ms both;
}

.platform-note {
  font-size: var(--text-sm);
  color: var(--text-ghost);
  margin-top: var(--space-4);
  animation: fadeUp 600ms ease 600ms both;
}

/* Mobile Hero */
@media (max-width: 768px) {
  .hero {
    padding-top: 120px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: var(--text-5xl);
  }

  .hero .subhead {
    font-size: var(--text-lg);
  }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

/* Scroll-triggered fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

/* Elegant scroll reveal from reframe */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
  }

  .fade-in-visible {
    transition: none;
  }

  @keyframes fadeIn,
  @keyframes fadeUp,
  @keyframes slideUp,
  @keyframes pulse {
    from, to {
      opacity: 1;
      transform: none;
    }
  }
}

/* ============================================
   Phone Mockups
   ============================================ */
.hero-mockups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  animation: slideUp 600ms ease 500ms both;
  position: relative;
}

/* Verified phone glow */
.phone-verified::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(31, 184, 149, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.phone-mockup {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  max-width: 280px;
  margin: 0 auto;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background-color: var(--surface);
  border-radius: var(--space-6);
  border: 2px solid var(--border);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

/* Call Status Strip */
.call-status {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  text-align: center;
  margin-bottom: var(--space-8);
}

.call-status.verified {
  background-color: rgba(31, 184, 149, 0.08);
}

.call-status.unverified {
  background-color: transparent;
}

.status-text {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  font-weight: 400;
  text-transform: uppercase;
}

.call-status.verified .status-text {
  color: var(--verified);
}

.call-status.unverified .status-text {
  color: var(--text-ghost);
}

/* Pulse Dot Animation */
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--verified);
  margin-right: var(--space-2);
  animation: pulse 2.5s ease-in-out infinite;
}

/* Caller Info */
.caller-info {
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
}

.caller-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--card);
  margin-bottom: var(--space-2);
}

.caller-avatar.verified-border {
  border: 2px solid var(--verified);
}

.caller-avatar.unverified-border {
  border: 2px dashed var(--border-mid);
}

.caller-name {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text-primary);
}

.caller-number {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* Call Actions */
.call-actions {
  display: flex;
  gap: var(--space-3);
}

.call-button {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid var(--border-mid);
  background-color: transparent;
  color: var(--text-secondary);
}

.call-button:hover {
  color: var(--text-primary);
  border-color: var(--verified-border);
  background-color: rgba(31, 184, 149, 0.05);
}

/* Mobile Phone Mockups */
@media (max-width: 768px) {
  .hero-mockups {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    max-width: 280px;
    margin: 0 auto;
  }

  .phone-mockup {
    max-width: 100%;
  }
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works {
  padding: var(--space-24) 0;
  background-color: transparent;
}

.section-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: var(--space-12);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-mid) 0%, transparent 100%);
  max-width: 200px;
}

.how-it-works h2 {
  font-size: var(--text-5xl);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: var(--space-16);
  text-align: left;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.step-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-8);
  align-items: start;
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 300;
  line-height: 1;
  color: var(--border-mid);
  opacity: 0.3;
  letter-spacing: -0.03em;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.step-label {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.step-body {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.platform-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.platform-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--gold);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  background-color: transparent;
}

/* Mobile How It Works */
@media (max-width: 768px) {
  .how-it-works {
    padding: var(--space-16) 0;
  }

  .step-row {
    grid-template-columns: 60px 1fr;
    gap: var(--space-4);
  }

  .step-number {
    font-size: var(--text-5xl);
  }

  .step-body {
    font-size: var(--text-base);
  }
}

/* ============================================
   STIR/SHAKEN Comparison Section
   ============================================ */
.stir-comparison {
  padding: var(--space-24) 0;
  background: linear-gradient(180deg, rgba(15, 17, 23, 0.4) 0%, rgba(15, 17, 23, 0.6) 100%);
  backdrop-filter: blur(8px);
}

.stir-comparison h2 {
  font-size: var(--text-5xl);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: var(--space-6);
  text-align: left;
}

.comparison-intro {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 800px;
  margin-bottom: var(--space-16);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.comparison-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  max-width: 1000px;
  margin: 0 auto;
}

.comparison-card {
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background-color: var(--bg);
  border: 2px solid var(--border-mid);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.comparison-card h3 {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.comparison-card p {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* STIR/SHAKEN Card Styling */
.stir-card {
  border-color: var(--border-mid);
}

/* AttestedCall Card Styling */
.attested-card {
  border-color: var(--verified-border);
  background: radial-gradient(circle at top right, rgba(31, 184, 149, 0.05) 0%, var(--bg) 60%);
}

.attested-card h3 {
  color: var(--verified);
}

/* Mobile STIR Comparison */
@media (max-width: 768px) {
  .stir-comparison {
    padding: var(--space-16) 0;
  }

  .comparison-intro {
    font-size: var(--text-base);
    margin-bottom: var(--space-12);
  }

  .comparison-cards {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* ============================================
   Waitlist Section
   ============================================ */
.waitlist {
  padding: var(--space-24) 0;
  background-color: transparent;
}

.waitlist-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.waitlist h2 {
  font-size: var(--text-5xl);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: var(--space-6);
}

.waitlist-subhead {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--space-12);
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.waitlist-form input[type="email"],
.waitlist-form textarea {
  width: 100%;
  padding: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background-color: var(--card);
  border: 2px solid var(--border-mid);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.waitlist-form input[type="email"]:focus,
.waitlist-form textarea:focus {
  outline: none;
  border-color: var(--verified);
  background-color: var(--surface);
  box-shadow: 0 0 0 4px rgba(31, 184, 149, 0.1);
}

.waitlist-form textarea {
  resize: vertical;
  min-height: 120px;
}

.button-full {
  width: 100%;
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.privacy-note {
  font-size: var(--text-sm);
  color: var(--text-ghost);
  text-align: center;
  margin-top: var(--space-2);
  margin-bottom: 0;
}

/* Mobile Waitlist */
@media (max-width: 768px) {
  .waitlist {
    padding: var(--space-16) 0;
  }

  .waitlist h2 {
    font-size: var(--text-4xl);
  }

  .waitlist-subhead {
    font-size: var(--text-base);
    margin-bottom: var(--space-8);
  }
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: var(--space-16) 0 var(--space-8);
  background: linear-gradient(180deg, transparent 0%, rgba(9, 11, 15, 0.5) 100%);
  border-top: 1px solid var(--border);
}

.footer-main {
  display: flex;
  align-items: flex-start;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-logo {
  flex-shrink: 0;
}

.footer-logo img {
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

.footer-logo img:hover {
  opacity: 1;
}

.footer-info {
  flex-grow: 1;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.footer-copyright {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--text-ghost);
  margin-bottom: 0;
}

.footer-privacy {
  text-align: center;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.footer-privacy a {
  font-size: var(--text-xs);
  color: var(--text-ghost);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-privacy a:hover {
  color: var(--text-secondary);
}

/* Mobile Footer */
@media (max-width: 768px) {
  .footer {
    padding: var(--space-12) 0 var(--space-6);
  }

  .footer-main {
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
    text-align: center;
  }

  .footer-tagline,
  .footer-copyright {
    text-align: center;
  }
}
