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

:root {
  --navy:      #1a2744;
  --navy-dark: #111b33;
  --blue:      #2563eb;
  --blue-light:#3b82f6;
  --accent:    #60a5fa;
  --white:     #ffffff;
  --gray-50:   #f8fafc;
  --gray-100:  #f1f5f9;
  --gray-200:  #e2e8f0;
  --gray-400:  #94a3b8;
  --gray-600:  #475569;
  --gray-800:  #1e293b;
  --text:      #1e293b;
  --radius:    0.75rem;
  --shadow:    0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-light); }

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

/* ─── Layout ────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-main { min-height: calc(100vh - 72px - 220px); }

/* ─── Header ────────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.site-logo:hover { color: var(--accent); }

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 8px;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.site-nav a:hover,
.site-nav a.active { color: var(--white); }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,99,235,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1e3a6e 100%);
  padding: 7rem 0 6rem;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  right: -200px;
  top: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 640px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero h1 .accent { color: var(--accent); }

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

/* ─── Section Titles ────────────────────────────────────────── */
.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--gray-600);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* ─── Apps Section ──────────────────────────────────────────── */
.apps-section {
  padding: 5rem 0;
  background: var(--gray-50);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.app-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.75rem;
  color: var(--text);
  transition: all 0.2s;
  box-shadow: var(--shadow);
  position: relative;
}

.app-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  color: var(--text);
}

.app-icon {
  font-size: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.app-card-body { flex: 1; }

.app-card-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.app-card-body p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.app-platform {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(37,99,235,0.08);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.app-card-arrow {
  color: var(--gray-400);
  font-size: 1.2rem;
  align-self: center;
  transition: transform 0.15s, color 0.15s;
}
.app-card:hover .app-card-arrow {
  color: var(--blue);
  transform: translateX(3px);
}

/* ─── About Section ─────────────────────────────────────────── */
.about-section {
  padding: 5rem 0;
  background: var(--white);
}

.about-content {
  max-width: 680px;
}

.about-content h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.about-content p {
  color: var(--gray-600);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

/* ─── Page Header ───────────────────────────────────────────── */
.page-header {
  background: var(--navy);
  padding: 4rem 0 3rem;
}

.page-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.page-description {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

/* ─── App Detail Page ───────────────────────────────────────── */
.app-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 5rem 0 4rem;
}

.app-hero-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.app-hero-icon {
  font-size: 5rem;
  flex-shrink: 0;
}

.app-hero-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.app-hero-text .tagline {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
}

.app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.badge-blue  { background: rgba(96,165,250,0.2); color: var(--accent); }
.badge-green { background: rgba(52,211,153,0.2); color: #34d399; }
.badge-gray  { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.75); }

.app-features {
  padding: 5rem 0;
  background: var(--gray-50);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.app-privacy {
  padding: 5rem 0;
  background: var(--white);
}

.privacy-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 700px;
}

.privacy-box h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.privacy-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.privacy-box li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--gray-600);
}

.privacy-box li::before {
  content: '✓';
  color: #22c55e;
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── Apps Listing Page ─────────────────────────────────────── */
.apps-listing {
  padding: 5rem 0;
  background: var(--gray-50);
}

/* ─── Page Content (Legal) ──────────────────────────────────── */
.page-content {
  padding: 4rem 0;
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.prose h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.prose p { margin-bottom: 1rem; color: var(--gray-600); }

.prose ul, .prose ol {
  margin: 0.75rem 0 1rem 1.5rem;
  color: var(--gray-600);
}

.prose li { margin-bottom: 0.4rem; }

.prose a { color: var(--blue); }
.prose a:hover { text-decoration: underline; }

.prose strong { color: var(--gray-800); font-weight: 600; }

.prose .last-updated {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 2rem;
}

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  padding: 3.5rem 0 0;
  color: rgba(255,255,255,0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-mark { margin-bottom: 0.75rem; }

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
  margin-top: 0.5rem;
}

.footer-links h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  padding: 1.25rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-header .container { height: 60px; }
  .logo-text { display: none; }

  .hero { padding: 4rem 0 3.5rem; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand { grid-column: 1 / -1; }

  .app-hero-inner { flex-direction: column; gap: 1.5rem; }
  .app-hero-text h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}
