:root {
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --text-body: #374151;
  --bg: #FFFFFF;
  --card-bg: #F9FAFB;
  --border: #F3F4F6;
  --border-hover: #E5E7EB;
  --border-subtle: #D1D5DB;
  --accent: #C4704B;
  --content-width: 640px;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
}

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

/* Page wrapper */
.page {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Nav */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  animation: fadeIn 0.6s ease both;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-brand-text {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  letter-spacing: 0.2px;
}

.nav-contact {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-contact:hover {
  color: var(--text-secondary);
}

/* Hero */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0 60px;
}

.logo-mark {
  margin-bottom: 36px;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.1s;
}

.hero h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin-bottom: 12px;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.2s;
}

.hero .tagline {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 400px;
  margin-bottom: 48px;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.3s;
}

/* Product Card */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  width: 100%;
  max-width: 420px;
  text-align: left;
  transition: border-color 0.25s ease;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.4s;
}

.product-card:hover {
  border-color: var(--border-hover);
}

.product-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.product-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
  font-family: Georgia, 'Times New Roman', serif;
  flex-shrink: 0;
}

.product-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
}

.product-platform {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.product-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease;
}

.product-link:hover {
  border-color: var(--text-primary);
}

/* Footer */
footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  animation: fadeIn 0.6s ease both;
  animation-delay: 0.5s;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Legal pages */
.legal-page {
  flex: 1;
  padding: 48px 0 64px;
  animation: fadeIn 0.5s ease both;
}

.legal-page h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.legal-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal-page h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-page p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 16px;
}

.legal-page ul {
  margin-bottom: 16px;
  padding-left: 20px;
}

.legal-page li {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 8px;
}

.legal-page strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-page a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--border-subtle);
  transition: text-decoration-color 0.2s ease;
}

.legal-page a:hover {
  text-decoration-color: var(--text-primary);
}

.legal-page hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.legal-changelog {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.legal-changelog p {
  font-size: 13px;
  color: var(--text-muted);
}

.legal-contact {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.75;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .hero .tagline {
    font-size: 15px;
  }

  .hero {
    padding: 60px 0 40px;
  }

  .nav-contact {
    display: none;
  }

  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .legal-page h1 {
    font-size: 20px;
  }

  .legal-page h2 {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
  }
}
