:root {
  --primary: #0284C7;
  --primary-dark: #0369A1;
  --primary-light: #E0F2FE;
  --accent: #059669;
  --accent-light: #D1FAE5;
  --surface: #FFFFFF;
  --background: #F8FAFC;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(2, 132, 199, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  z-index: 102;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  line-height: 1.2;
}

/* Desktop Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
}

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

/* Mobile Nav Toggle (Hamburger Button) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  z-index: 102;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  background-color: var(--background);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Hero Section */
.hero {
  padding: clamp(40px, 8vw, 72px) 0 clamp(32px, 6vw, 48px);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  max-width: 100%;
  box-sizing: border-box;
}

.hero h1 {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: #0B1E33;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 32px;
  font-weight: 450;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #0F172A;
  color: #FFFFFF;
  padding: 12px 24px;
  min-height: 52px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.btn-store:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-store.alt {
  background: #000000;
}

/* Features Grid */
.features {
  padding: clamp(32px, 6vw, 56px) 0;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(28px, 5vw, 44px);
}

.section-header h2 {
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  max-width: 580px;
  margin: 0 auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(16px, 3vw, 24px);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(20px, 4vw, 28px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  background: var(--primary-light);
  color: var(--primary);
  flex-shrink: 0;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Legal / Policy / Support Page Content */
.legal-page {
  padding: clamp(24px, 5vw, 48px) 0 clamp(48px, 8vw, 80px);
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 5vw, 40px);
  box-shadow: var(--shadow-sm);
  overflow-wrap: break-word;
  word-break: break-word;
}

.legal-card h1 {
  font-size: clamp(1.65rem, 5vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.25;
}

.legal-card .updated-date {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 24px;
  display: block;
}

.lang-switcher {
  display: inline-flex;
  gap: 6px;
  background: var(--background);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: var(--text-main);
}

.lang-btn.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.legal-content h2 {
  font-size: clamp(1.2rem, 3.5vw, 1.4rem);
  font-weight: 800;
  margin: 32px 0 12px;
  color: #0F172A;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  line-height: 1.35;
}

.legal-content h3 {
  font-size: clamp(1.05rem, 2.5vw, 1.15rem);
  font-weight: 700;
  margin: 24px 0 8px;
  color: #1E293B;
  line-height: 1.4;
}

.legal-content p,
.legal-content ul {
  font-size: 1rem;
  color: #334155;
  margin-bottom: 16px;
  line-height: 1.65;
}

.legal-content ul {
  padding-left: clamp(18px, 4vw, 24px);
}

.legal-content li {
  margin-bottom: 8px;
}

.highlight-box {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: clamp(14px, 3vw, 18px) clamp(16px, 3vw, 20px);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-weight: 500;
  color: #064E3B;
  font-size: clamp(0.92rem, 2.5vw, 1rem);
  line-height: 1.6;
}

/* Contact Cards Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.contact-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: clamp(18px, 4vw, 24px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

/* Footer */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: clamp(32px, 6vw, 48px) 0 24px;
  margin-top: clamp(40px, 8vw, 64px);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.15s ease;
  padding: 4px 0;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ----------------------------------------------------
   Responsive Media Queries
   ---------------------------------------------------- */

/* Tablet & Mobile Nav Toggle (<= 768px) */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 16px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    display: none;
    z-index: 101;
  }

  .nav-links.open {
    display: flex;
    animation: slideDown 0.22s ease-out;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links a {
    display: block;
    padding: 12px 14px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: var(--primary-light);
    color: var(--primary-dark);
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .footer-links {
    justify-content: center;
    gap: 16px;
  }
}

/* Small Smartphone Optimization (<= 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .nav-bar {
    min-height: 64px;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .brand-title {
    font-size: 1.1rem;
  }

  .brand-subtitle {
    font-size: 0.72rem;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 5px 12px;
    white-space: normal;
    text-align: left;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .btn-store {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }

  .legal-card {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .legal-content ul {
    padding-left: 20px;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

/* Ultra-small screens (<= 340px) */
@media (max-width: 340px) {
  .brand-subtitle {
    display: none;
  }
  
  .hero h1 {
    font-size: 1.6rem;
  }
}
