:root {
  --bg-primary: #0b0e14;
  --bg-secondary: #131720;
  --bg-card: #1a1f2e;
  --bg-card-hover: #222839;
  --accent: #2d7ff9;
  --accent-hover: #5a9dff;
  --accent-glow: rgba(45, 127, 249, 0.15);
  --text-primary: #e8eaf0;
  --text-secondary: #8a90a0;
  --text-muted: #5a6070;
  --border: #252a3a;
  --success: #34c759;
  --warning: #ff9500;
  --danger: #ff3b30;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

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

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Under Construction Banner ── */
.construction-banner {
  background: linear-gradient(90deg, var(--warning), #e68600);
  color: #000;
  text-align: center;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 1001;
}

/* ── Header ── */
.site-header {
  background: rgba(11, 14, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--accent); }

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

.nav a {
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
}
.nav a:hover { color: var(--text-primary); background: var(--bg-card); }
.nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-glow);
}

.nav-sep {
  color: var(--text-muted);
  font-size: 0.8rem;
  user-select: none;
}

/* ── Hamburger Menu ── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all 0.3s;
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero Section ── */
.hero {
  padding: 80px 0 48px;
  text-align: center;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ── Buttons ── */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.button:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(45, 127, 249, 0.3);
}
.button-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.button-secondary:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  box-shadow: var(--shadow);
}
.button-lg { padding: 14px 32px; font-size: 1.05rem; }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 4px 24px rgba(45, 127, 249, 0.08);
}
.card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--accent);
}
.card p { color: var(--text-secondary); margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }
.card ul { list-style: none; padding: 0; }
.card ul li {
  padding: 6px 0 6px 20px;
  position: relative;
  color: var(--text-secondary);
}
.card ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ── Feature Grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(45, 127, 249, 0.1);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; }
.feature-card ul { list-style: none; padding: 0; margin-top: 8px; }
.feature-card ul li {
  padding: 4px 0 4px 18px;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.93rem;
}
.feature-card ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── Forms ── */
.form { display: grid; gap: 16px; }
.form button[type="submit"] { justify-self: center; }
.field label, .field > span {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.input, .textarea, select.input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font: inherit;
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.textarea { resize: vertical; min-height: 140px; }
.hp { display: none; }
.note { margin-top: 12px; font-size: 0.9rem; color: var(--text-muted); }
.form-status {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  text-align: center;
  display: none;
}
.form-status.error {
  display: block;
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
}
.form-status.success {
  display: block;
  background: rgba(52, 199, 89, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
}

/* ── Policy Page ── */
.policy-section { margin-bottom: 32px; }
.policy-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}
.policy-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin: 20px 0 8px;
}
.policy-section p { color: var(--text-secondary); margin-bottom: 12px; }
.policy-section ul { list-style: none; padding: 0; }
.policy-section ul li {
  padding: 4px 0 4px 20px;
  position: relative;
  color: var(--text-secondary);
}
.policy-section ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 12px 20px;
  margin-bottom: 24px;
  font-weight: 600;
  color: var(--accent);
}

/* ── Section Headers ── */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Coming Soon Badge ── */
.coming-soon {
  display: inline-block;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── System Requirements ── */
.sys-req { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.sys-req-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  flex: 1;
  min-width: 200px;
  text-align: center;
}
.sys-req-item .label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.sys-req-item .value { font-weight: 700; color: var(--text-primary); margin-top: 4px; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 32px 0;
  text-align: center;
  background: var(--bg-secondary);
}
.site-footer small { display: block; color: var(--text-muted); font-size: 0.85rem; }
.footer-powered {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.footer-powered a { color: var(--text-muted); }
.footer-powered a:hover { color: var(--accent); }
.footer-links {
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hamburger { display: block; }
  
  .nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 1001;
  }
  .nav.open { display: flex; }
  .nav a { font-size: 1.2rem; padding: 12px 32px; }
  .nav-sep { display: none; }
  
  .hero { padding: 48px 0 32px; }
  .hero h1 { font-size: 2rem; }
  .hero .subtitle { font-size: 1.05rem; }
  
  .feature-grid { grid-template-columns: 1fr; }
  
  .site-header .container { min-height: 56px; }
  
  .sys-req { flex-direction: column; }
  .sys-req-item { min-width: unset; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .button-lg { width: 100%; text-align: center; }
  .card { padding: 20px; }
  .container { padding: 0 16px; }
}

/* ── reCAPTCHA dark theme override ── */
.g-recaptcha { margin: 8px auto; display: flex; justify-content: center; }

/* ── Utility ── */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
