:root {
  --bg: #fafafa;
  --text: #1a1a1a;
  --muted: #666;
  --border: #e0e0e0;
  --accent: #0F4C81;
  --card-bg: #fff;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

body {
  font-family: Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 3D world background */
#world {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#aurora {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: none;
}

body > *:not(#world):not(#aurora):not(script) {
  position: relative;
  z-index: 1;
}

/* Landing page */
.hero {
  text-align: center;
  padding: 80px 20px 40px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.logo-main {
  font-family: 'Jost', sans-serif;
  font-size: 3.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.1;
}

.logo-sub {
  font-family: 'Jost', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.6;
  margin-top: -2px;
}

.hero p {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 600;
  color: var(--muted);
  margin-top: 16px;
  font-size: 1.1rem;
}

.app-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  padding: 40px 20px 80px;
  max-width: 800px;
  margin: 0 auto;
}

.app-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 40px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.app-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.app-link img {
  width: 80px;
  height: 80px;
  border-radius: 18px;
}

.app-link span {
  font-size: 1.05rem;
  font-weight: 600;
}

/* Footer */
footer {
  text-align: center;
  padding: 32px 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

/* Sub-pages (privacy, support) */
.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.page .back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.page .back:hover {
  text-decoration: underline;
}

.page h1 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.page .subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.page h2 {
  font-size: 1.1rem;
  margin-top: 28px;
  margin-bottom: 8px;
}

.page h3 {
  font-size: 1rem;
  margin-top: 16px;
  margin-bottom: 6px;
}

.page p, .page li {
  color: #444;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

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

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

/* Support page */
.support-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.support-header img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
}

.support-header.no-icon img {
  display: none;
}

.support-header h1 {
  margin-bottom: 0;
}

.support-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.support-form label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 12px;
}

.support-form input,
.support-form textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.support-form input:focus,
.support-form textarea:focus {
  border-color: var(--accent);
}

.support-form textarea {
  resize: vertical;
  min-height: 120px;
}

.support-form button {
  margin-top: 16px;
  padding: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.support-form button:hover {
  background: #0a3660;
}

.success-message {
  text-align: center;
  padding: 32px;
  background: #e0f5ee;
  border-radius: 12px;
  margin-bottom: 24px;
}

.success-message p {
  color: #1a7a52;
  font-weight: 500;
}

.support-alt {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 600px) {
  .hero { padding: 48px 16px 24px; }
  .logo-main { font-size: 1.8rem; }
  .logo-sub { font-size: 0.7rem; letter-spacing: 0.2em; }
  .hero p { font-size: 1rem; }
  .app-list { padding: 24px 16px 48px; gap: 20px; }
  .app-link { width: 100%; padding: 24px; }
  .page { padding: 32px 16px 60px; }
  .page h1 { font-size: 1.3rem; }
  footer { padding: 24px 16px; }
}
