/* ============================================
   Textis — Shared Design System
   Aligned with the Textis mobile app tokens
   ============================================ */

/* Google Fonts: Syne (display) + DM Mono (monospace) */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Mono:wght@400;500&display=swap');

:root {
  --bg-deep: #0F1117;
  --bg-surface: #171B26;
  --bg-card: #1E2333;
  --bg-elevated: #252A3A;

  --accent: #00D4B4;
  --accent-dark: #00B89C;
  --accent-dim: rgba(0, 212, 180, 0.15);
  --accent-glow: rgba(0, 212, 180, 0.3);

  --text-primary: #F0F4FF;
  --text-secondary: #8892AA;
  --text-muted: #4A5268;
  --text-inverse: #0A1F1D;

  --border: #2A3040;
  --border-subtle: #1E2333;

  --success: #4ECDC4;
  --error: #FF6B6B;
  --warning: #FFB347;
  --info: #74B9FF;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --font-display: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

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

/* ---- Base ---- */
body {
  font-family: var(--font-display);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ---- Navigation ---- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  text-decoration: none;
}

.site-nav .brand img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

.site-nav .nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.site-nav .nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

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

/* ---- Typography ---- */
h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}

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

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

p, li {
  margin-bottom: 0.6rem;
  color: var(--text-primary);
  line-height: 1.7;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.effective-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

ul { padding-left: 1.5rem; }

strong { color: var(--text-primary); }

/* ---- Language Switch ---- */
.lang-switch {
  text-align: right;
  margin-bottom: 1.5rem;
}

.lang-switch a {
  color: var(--accent);
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.lang-switch a:hover {
  background: var(--accent);
  color: var(--text-inverse);
}

/* ---- Tables ---- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th, td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  font-size: 0.95rem;
}

th {
  background: var(--bg-card);
  font-weight: 600;
  color: var(--text-primary);
}

td {
  color: var(--text-primary);
}

/* ---- Cards / Boxes ---- */
.contact-box,
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
}

.contact-box {
  margin-top: 1rem;
  border-left: 3px solid var(--accent);
}

.contact-box a {
  color: var(--accent);
  font-weight: 600;
}

.faq-item strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.faq-item p,
.faq-item {
  color: var(--text-secondary);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--text-inverse);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px var(--accent-glow);
  color: var(--text-inverse);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- Store Badges ---- */
.store-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.store-badges a {
  display: inline-block;
  transition: transform 0.15s, opacity 0.2s;
}

.store-badges a:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.store-badges img {
  height: 48px;
}

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    ellipse at 30% 20%,
    rgba(0, 212, 180, 0.12) 0%,
    rgba(0, 212, 180, 0.04) 30%,
    transparent 60%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero .app-icon {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(0, 212, 180, 0.2);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero .tagline {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.hero .description {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 500px;
  margin: 1rem auto 0;
  line-height: 1.6;
}

/* ---- Features Grid ---- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  max-width: 720px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.15s;
}

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

.feature-card .icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

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

/* ---- SEO Content Sections ---- */
.seo-section {
  margin-bottom: 2.5rem;
}

.seo-section h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.seo-section p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

/* ---- Footer ---- */
footer {
  margin-top: 3rem;
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

footer a {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

footer a:hover {
  color: var(--accent);
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero .app-icon {
    width: 96px;
    height: 96px;
  }

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

  .site-nav {
    flex-direction: column;
    gap: 0.75rem;
  }

  .store-badges {
    justify-content: center;
  }
}
