/*
 * Globe Bridze — Website Styles
 * Design language: matches the iOS app icon (lime green on black),
 * Poppins font, subtle glass cards, iOS-style rounded rectangles.
 * Pipeline code is NOT touched.
 */

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

:root {
  color-scheme: dark;

  /* Background — matches the app icon's black rounded rectangle */
  --bg-start: #060606;
  --bg-end:   #0c0c0c;

  /* Surfaces — subtle glass on near-black */
  --surface:          rgba(255, 255, 255, 0.04);
  --surface-border:   rgba(255, 255, 255, 0.08);
  --surface-hover:    rgba(255, 255, 255, 0.07);
  --surface-border-hover: rgba(255, 255, 255, 0.14);

  /* Text */
  --text:        #f5f5f7;
  --text-muted:  #98989d;
  --text-muted2: #c7c7cc;

  /* Accent — matches the app icon's lime/chartreuse green */
  --accent:       #B4F02A;
  --accent-deep:  #9AD820;
  --accent-glow:  rgba(180, 240, 42, 0.30);

  /* Semantic colors from the app's privacy consent view */
  --cyan:    rgb(0, 199, 255);
  --pink:    rgb(242, 84, 217);
  --orange:  rgb(242, 153, 74);
  --green:   rgb(0, 242, 97);
  --red:     rgb(255, 82, 46);

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5);

  /* Radii — matches app's cornerRadius: 12 for cards, 14 for buttons */
  --radius-card: 12px;
  --radius-btn:  14px;
  --radius-pill: 999px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── Sticky Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 6, 6, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--surface-border);
}

.nav {
  max-width: 1120px;
  min-height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand strong {
  color: var(--accent);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--accent-glow);
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 28px);
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 580px;
  display: grid;
  place-items: center;
  padding: 100px 24px 80px;
  border-bottom: 1px solid var(--surface-border);
}

/* Subtle ambient glow behind hero */
.hero-glow {
  position: absolute;
  inset: auto 0 10%;
  width: min(600px, 80vw);
  height: 220px;
  margin: 0 auto;
  border-radius: 999px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.hero-app-icon {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto 32px;
  border-radius: 26px;
  box-shadow: 0 8px 40px rgba(180, 240, 42, 0.2), 0 2px 8px rgba(0, 0, 0, 0.4);
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h1 span {
  color: var(--accent);
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.65;
}

.actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 28px;
  border-radius: var(--radius-btn);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  color: #111;
  box-shadow: 0 8px 24px var(--accent-glow);
}
.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-glow);
}

.button.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--surface-border);
}
.button.secondary:hover {
  background: var(--surface-hover);
  border-color: var(--surface-border-hover);
  transform: translateY(-2px);
}

/* ─── Hero Preview Card ─── */
.hero-preview {
  margin-top: 48px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: 24px;
  text-align: left;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.preview-toolbar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--surface-border-hover);
}

.preview-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-card {
  padding: 20px;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--surface-border);
}
.preview-card p {
  margin-bottom: 0;
  color: var(--text-muted2);
}

.preview-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}

.preview-arrow {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.2rem;
}

.preview-pills {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.preview-pills span {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  font-size: 0.82rem;
  font-weight: 500;
}

/* ─── Stats ─── */
.stats {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-bottom: 1px solid var(--surface-border);
}

.stats div {
  text-align: center;
}
.stats strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.stats span {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ─── Sections ─── */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-header {
  max-width: 720px;
  margin-bottom: 48px;
}
.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

p {
  margin-bottom: 0;
  color: var(--text-muted);
}

/* ─── Grids ─── */
.grid {
  display: grid;
  gap: 20px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.tech-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* ─── Cards (matches app's RoundedRectangle style) ─── */
.card,
.content-card,
.pipeline-step,
.cta-panel,
.support-panel > * {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover,
.pipeline-step:hover {
  transform: translateY(-3px);
  border-color: var(--surface-border-hover);
}

.card {
  padding: 28px;
  min-height: 200px;
}
.card.compact {
  min-height: auto;
  padding: 24px;
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(180, 240, 42, 0.1);
  border: 1px solid rgba(180, 240, 42, 0.08);
  font-size: 1.25rem;
}

/* ─── Language Section ─── */
.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}

.section-copy {
  max-width: 440px;
}

.language-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.15s ease;
}
.pill:hover {
  transform: scale(1.05);
}

/* ─── Pipeline ─── */
.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.pipeline-step {
  position: relative;
  padding: 24px 20px;
}

.pipeline-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -14px;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
}

.pipeline-step span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* ─── CTA Panel ─── */
.cta-panel {
  border-radius: var(--radius-card);
  padding: clamp(28px, 5vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    radial-gradient(ellipse at top right, rgba(180, 240, 42, 0.1), transparent 20rem),
    var(--surface);
}

/* ─── Footer ─── */
.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  border-top: 1px solid var(--surface-border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.site-footer a {
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── Page Title (Privacy / Support pages) ─── */
.page-title {
  max-width: 880px;
  margin: 0 auto;
  padding: 80px 24px 40px;
  text-align: center;
}
.page-title .badge {
  margin-bottom: 20px;
}
.page-title h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}
.page-title p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ─── Content Card (Privacy page) ─── */
.content {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

.content-card {
  padding: clamp(24px, 4vw, 40px);
}

.content-card section + section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--surface-border);
}

.content-card h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.content-card ul {
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--text-muted);
}
.content-card li {
  margin: 8px 0;
}

/* ─── Privacy Key Points (matches PrivacyPolicyConsentView card style) ─── */
.privacy-highlight {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  margin-bottom: 14px;
}
.privacy-highlight:last-child {
  margin-bottom: 0;
}

.privacy-highlight-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.privacy-highlight h3 {
  margin-bottom: 6px;
  font-size: 0.95rem;
  font-weight: 600;
}
.privacy-highlight p {
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Gradient backgrounds matching the app consent view's gradient colors */
.icon-blue    { background: linear-gradient(135deg, rgb(0,199,255), rgb(0,115,255)); }
.icon-purple  { background: linear-gradient(135deg, rgb(242,84,217), rgb(112,0,255)); }
.icon-red     { background: linear-gradient(135deg, rgb(255,82,46), rgb(222,36,117)); }
.icon-teal    { background: linear-gradient(135deg, rgb(5,117,230), rgb(0,242,97)); }
.icon-amber   { background: linear-gradient(135deg, rgb(242,153,74), rgb(242,201,77)); }

/* ─── Support Panel ─── */
.support-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: stretch;
}

.support-panel > * {
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 36px);
}

.email-box {
  background:
    radial-gradient(ellipse at top right, rgba(180, 240, 42, 0.1), transparent 18rem),
    var(--surface);
}
.email-box a {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ─── "Who it is for" Section ─── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.audience-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.audience-card:hover {
  transform: translateY(-3px);
  border-color: var(--surface-border-hover);
}

.audience-card .audience-icon {
  font-size: 1.3rem;
}
.audience-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.audience-card p {
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ─── Responsive ─── */
@media (max-width: 980px) {
  .feature-grid,
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pipeline {
    grid-template-columns: 1fr;
  }
  .pipeline-step:not(:last-child)::after {
    display: none;
  }
  .split-section,
  .support-panel {
    grid-template-columns: 1fr;
  }
  .audience-grid {
    grid-template-columns: 1fr;
  }
  .language-cloud {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .nav {
    min-height: auto;
    padding-top: 16px;
    padding-bottom: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .hero {
    min-height: 0;
    padding-top: 64px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }
  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .nav,
  .hero,
  .section,
  .stats,
  .page-title,
  .content,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .button {
    width: 100%;
  }
}
