/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --bg-base: #ffffff;
  --bg-surface: #f5f5f7;
  --bg-elevated: #e8e8ed;
  --accent: #f56300;
  --accent-hover: #d45500;
  --accent-glow: rgba(245, 99, 0, 0.15);
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-muted: #a1a1a6;
  --badge-coming: #3a3a3c;
  --badge-coming-bg: rgba(0, 0, 0, 0.06);
  --radius-card: 16px;
  --radius-btn: 8px;
  --radius-badge: 20px;
  --transition: 0.2s ease;
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 8px 32px rgba(245, 99, 0, 0.15);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
}

/* ============================================================
   4. LAYOUT
   ============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   5. HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  min-height: 72px;
}

.nav__brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.nav__link:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.05);
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.theme-toggle__track {
  display: block;
  position: relative;
  width: 48px;
  height: 26px;
  border-radius: 13px;
  background: var(--bg-elevated);
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.theme-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-icon {
  position: absolute;
  transition: opacity 0.25s ease;
}

.toggle-icon--sun  { color: var(--accent); opacity: 1; }
.toggle-icon--moon { color: #5b6aad;       opacity: 0; }

[data-theme="dark"] .toggle-icon--sun  { opacity: 0; }
[data-theme="dark"] .toggle-icon--moon { opacity: 1; }

/* ============================================================
   6. HERO SECTION
   ============================================================ */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(245, 99, 0, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ============================================================
   7. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(245, 99, 0, 0.35);
}

.btn--play {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 10px 18px;
  font-size: 0.85rem;
}

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

.btn--disabled {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 10px 18px;
  font-size: 0.85rem;
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

/* ============================================================
   8. BADGE
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-badge);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge--coming {
  color: var(--badge-coming);
  background: var(--badge-coming-bg);
}

/* ============================================================
   9. SECTION TITLES
   ============================================================ */
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  color: var(--text-primary);
}

/* ============================================================
   10. APPS SECTION & GRID
   ============================================================ */
.apps-section {
  padding: 80px 0;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* ============================================================
   11. APP CARD
   ============================================================ */
.app-card {
  background: var(--bg-surface);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(245, 99, 0, 0.3);
}

.app-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.app-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
}

.app-card__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.app-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 24px;
}

.app-card__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.app-card__privacy {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  transition: color var(--transition);
}

.app-card__privacy:hover {
  color: var(--text-secondary);
}

/* ============================================================
   12. ABOUT SECTION
   ============================================================ */
.about-section {
  padding: 80px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.about-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-text:last-child {
  margin-bottom: 0;
}

/* ============================================================
   13. FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer__brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
}

.footer__links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================
   14. PRIVACY POLICY PAGE
   ============================================================ */
.privacy-page {
  padding: 60px 0 80px;
}

.privacy-content {
  max-width: 720px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.breadcrumb a {
  color: var(--accent);
  transition: color var(--transition);
}

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

.breadcrumb__sep {
  margin: 0 8px;
  color: var(--text-muted);
}

.privacy-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.privacy-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.privacy-section {
  margin-bottom: 40px;
}

.privacy-section h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.privacy-section p,
.privacy-section li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.privacy-section ul {
  padding-left: 20px;
}

.privacy-section li {
  list-style: disc;
  margin-bottom: 8px;
}

.privacy-section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   15. CONTACT SECTION
   ============================================================ */
.contact-section {
  padding: 80px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-content {
  max-width: 560px;
}

.contact-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.form-input,
.form-textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-btn);
  padding: 11px 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 99, 0, 0.12);
}

/* ============================================================
   16. RESPONSIVE
   ============================================================ */
@media (min-width: 600px) {
  .nav {
    padding: 0 40px;
  }

  .container {
    padding: 0 40px;
  }
}

@media (min-width: 900px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer__links {
    justify-content: center;
  }
}

/* ============================================================
   16. DARK THEME
   ============================================================ */
[data-theme="dark"] {
  --bg-base: #0f1115;
  --bg-surface: #181c23;
  --bg-elevated: #1e2330;
  --text-primary: #e8ecf4;
  --text-secondary: #8892a4;
  --text-muted: #4a5568;
  --badge-coming: #c8cdd8;
  --badge-coming-bg: rgba(255, 255, 255, 0.08);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 8px 40px rgba(245, 99, 0, 0.2);
}

[data-theme="dark"] .site-header {
  background: rgba(15, 17, 21, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .theme-toggle__track {
  background: var(--accent);
  border-color: var(--accent);
}

[data-theme="dark"] .theme-toggle__thumb {
  transform: translateX(22px);
}

[data-theme="dark"] .nav__link:hover {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .hero::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(245, 99, 0, 0.1) 0%, transparent 70%);
}

[data-theme="dark"] .btn--play {
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .btn--disabled {
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .app-card {
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .app-card:hover {
  border-color: rgba(245, 99, 0, 0.35);
}

[data-theme="dark"] .about-section {
  border-top-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .site-footer {
  border-top-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .contact-section {
  border-top-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea {
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 99, 0, 0.18);
}
