:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #0f3460;
  --highlight: #e94560;
  --highlight-soft: #ff6b6b;
  --bg: #fafafa;
  --surface: #f5f5f5;
  --card: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --divider: #e5e7eb;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.02);
  --shadow-elevated: 0 6px 16px rgba(0, 0, 0, 0.08), 0 12px 32px rgba(0, 0, 0, 0.04);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(250, 250, 250, 0.86);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface);
}

.nav-toggle {
  display: none;
  border: none;
  background: var(--surface);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

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

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-card);
}

.btn-primary:hover {
  box-shadow: var(--shadow-elevated);
}

.btn-outline {
  background: var(--card);
  color: var(--text);
  border: 1.5px solid var(--divider);
}

.btn-accent {
  background: linear-gradient(135deg, var(--highlight), var(--highlight-soft));
  color: white;
  box-shadow: 0 8px 24px rgba(233, 69, 96, 0.24);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.875rem;
}

/* Hero */
.hero {
  padding: 72px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-grid-single {
  grid-template-columns: 1fr;
  max-width: 720px;
  text-align: center;
}

.hero-grid-single .hero-copy p {
  margin-inline: auto;
}

.hero-grid-single .hero-actions {
  justify-content: center;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero-copy h1 span {
  background: linear-gradient(135deg, var(--highlight), var(--highlight-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  margin: 0 0 32px;
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 34ch;
  letter-spacing: -0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-card);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--highlight);
  box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.15);
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.map-card {
  position: relative;
  border-radius: var(--radius-2xl);
  background: var(--card);
  box-shadow: var(--shadow-elevated);
  border: 1px solid rgba(229, 231, 235, 0.9);
  overflow: hidden;
  aspect-ratio: 1;
}

.map-surface {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(15, 52, 96, 0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(233, 69, 96, 0.08), transparent 35%),
    linear-gradient(180deg, #eef2ff 0%, #f8fafc 45%, #eef2f7 100%);
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 26, 46, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 26, 46, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.map-pin {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  box-shadow: var(--shadow-elevated);
  display: grid;
  place-items: center;
  color: white;
  animation: float 4s ease-in-out infinite;
}

.map-pin::after {
  content: "";
  position: absolute;
  bottom: -8px;
  width: 12px;
  height: 12px;
  background: inherit;
  transform: rotate(45deg);
  border-radius: 2px;
  z-index: -1;
}

.map-pin svg {
  width: 22px;
  height: 22px;
}

.pin-1 { top: 22%; left: 28%; animation-delay: 0s; }
.pin-2 { top: 48%; left: 58%; animation-delay: 0.8s; width: 52px; height: 52px; border-radius: 16px; }
.pin-3 { top: 66%; left: 22%; animation-delay: 1.4s; }
.pin-4 { top: 34%; left: 72%; animation-delay: 2s; width: 38px; height: 38px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-elevated);
  padding: 14px 16px;
}

.floating-card strong {
  display: block;
  font-size: 0.875rem;
  letter-spacing: -0.02em;
}

.floating-card span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.card-top {
  top: 12%;
  right: -4%;
  width: 180px;
}

.card-bottom {
  bottom: 10%;
  left: -6%;
  width: 196px;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.orb-1 {
  width: 280px;
  height: 280px;
  top: -80px;
  right: 10%;
  background: rgba(233, 69, 96, 0.12);
}

.orb-2 {
  width: 320px;
  height: 320px;
  bottom: -120px;
  left: -80px;
  background: rgba(15, 52, 96, 0.1);
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.section-header h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.035em;
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s, box-shadow 0.25s;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--surface);
  color: var(--primary);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.cta-band {
  margin: 0 24px 88px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 56px 32px;
  text-align: center;
  box-shadow: var(--shadow-elevated);
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
}

.cta-band p {
  margin: 0 auto 28px;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.78);
}

.cta-band .btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.28);
}

/* Legal / content pages */
.page-hero {
  padding: 56px 0 32px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.04em;
}

.page-hero p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 60ch;
}

.prose {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-card);
  margin-bottom: 88px;
}

.prose h2 {
  margin: 32px 0 12px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--text-secondary);
}

.prose ul {
  padding-left: 1.2rem;
}

.prose a {
  color: var(--highlight);
  font-weight: 600;
}

.legal-prose h2 {
  margin-top: 2rem;
  font-size: 1.125rem;
}

.legal-prose hr {
  border: none;
  border-top: 1px solid var(--divider);
  margin: 1.5rem 0;
}

.legal-prose strong {
  color: var(--text);
}

/* Post open page */
.open-card {
  min-height: calc(100vh - 72px - 120px);
  display: grid;
  place-items: center;
  padding: 48px 0 88px;
}

.open-panel {
  width: min(480px, 100%);
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-2xl);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-elevated);
}

.open-panel h1 {
  margin: 20px 0 10px;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}

.open-panel p {
  margin: 0 0 28px;
  color: var(--text-secondary);
}

.store-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--divider);
  padding: 40px 0 48px;
  background: var(--card);
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
}

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

.footer-copy {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    min-height: 360px;
    max-width: 520px;
    margin-inline: auto;
  }

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

  .card-top { right: 0; }
  .card-bottom { left: 0; }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 32px, 1120px);
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    background: var(--card);
    border: 1px solid var(--divider);
    border-radius: var(--radius-xl);
    padding: 8px;
    box-shadow: var(--shadow-elevated);
  }

  .nav-links.open {
    display: flex;
  }

  .header-inner {
    position: relative;
  }

  .hero {
    padding-top: 48px;
  }

  .prose {
    padding: 28px 22px;
  }

  .cta-band {
    margin-inline: 16px;
  }
}
