/* ═══════════════════ DeeTing.org — Theme ═══════════════════ */

:root {
  --bg: #0a0a0f;
  --bg-card: #14141e;
  --bg-card-hover: #1a1a2a;
  --text: #e8e8f0;
  --text-dim: #8888a0;
  --accent: #20de8c;
  --accent-dim: #18b073;
  --border: #2a2a3a;
  --announce-bg: #1a2a1a;
  --announce-border: #20de8c;
  --max-width: 960px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #fff; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ═══ Announcement Bar ═══ */

.announcement-bar {
  background: var(--announce-bg);
  border-bottom: 1px solid var(--announce-border);
  text-align: center;
  padding: 10px 20px;
  font-size: 14px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.announcement-bar.hidden { display: none; }
.announcement-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.announcement-close:hover { color: #fff; }

/* ═══ Hero ═══ */

.hero {
  text-align: center;
  padding: 80px 20px 60px;
}
.hero-logo {
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.hero-tagline {
  font-size: 20px;
  color: var(--text-dim);
  margin-bottom: 30px;
  line-height: 1.6;
}
.hero-tagline .dim { font-size: 16px; }
.hero-badges { margin-top: 20px; }

.btn-google-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  border: 2px solid var(--text-dim);
  border-radius: 12px;
  padding: 10px 24px;
  text-decoration: none;
  color: #fff;
  transition: border-color 0.2s;
}
.btn-google-play:hover {
  border-color: var(--accent);
  color: #fff;
}
.gp-icon { font-size: 28px; color: var(--accent); }
.gp-text { text-align: left; line-height: 1.3; }
.gp-text small { font-size: 11px; color: var(--text-dim); }
.gp-text strong { font-size: 18px; }

/* ═══ Sections ═══ */

section { padding: 60px 0; }
section:nth-child(even) { background: var(--bg-card); }

h2 {
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
  color: #fff;
}

/* ═══ Feature Grid ═══ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color 0.2s, background 0.2s;
}
.feature-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}
.feature-icon { font-size: 32px; margin-bottom: 12px; }
.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ═══ Modes Grid ═══ */

.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
}
.mode-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
}
.mode-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ═══ Signal Diagram ═══ */

.signal-diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.signal-node {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}
.signal-arrow {
  font-size: 20px;
  color: var(--text-dim);
}
.signal-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

/* ═══ Footer ═══ */

.footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--border);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-dim);
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

/* ═══ Sub Pages (help, privacy, guide) ═══ */

.sub-nav {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.back-link {
  font-size: 15px;
  color: var(--text-dim);
}
.back-link:hover { color: var(--accent); }

.page-content {
  padding: 40px 0 60px;
}
.page-content h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}
.page-content .updated {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 32px;
}
.page-content section {
  background: none !important;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.page-content section:last-child { border-bottom: none; }
.page-content h2 {
  font-size: 20px;
  text-align: left;
  margin-bottom: 12px;
  color: var(--accent);
}
.page-content p {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 12px;
  line-height: 1.8;
}
.page-content ul {
  list-style: none;
  padding: 0;
}
.page-content ul li {
  font-size: 14px;
  color: var(--text-dim);
  padding: 4px 0 4px 20px;
  position: relative;
}
.page-content ul li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--accent);
}

/* ═══ Responsive ═══ */

@media (max-width: 600px) {
  .hero h1 { font-size: 32px; }
  .hero-tagline { font-size: 16px; }
  .hero { padding: 50px 16px 40px; }
  section { padding: 40px 0; }
  h2 { font-size: 22px; }
  .feature-grid, .modes-grid { grid-template-columns: 1fr; }
  .signal-diagram { flex-direction: column; gap: 4px; }
  .signal-arrow { transform: rotate(90deg); }
}
