:root {
  --bg: #000000;
  --bg-subtle: #1c1c1e;
  --surface: rgba(28, 28, 30, 0.6);
  --surface-hover: rgba(44, 44, 46, 0.8);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f5f5f7;
  --text-secondary: #86868b;
  --accent: #0a84ff;
  --accent-glow: rgba(10, 132, 255, 0.4);
  --accent-gradient: linear-gradient(135deg, #0a84ff, #5e5ce6);
  --danger: #ff453a;
  --success: #30d158;
  --radius: 20px;
  --max-width: 1024px;
  --header-height: 60px;
  --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-stack);
  color: var(--text);
  background-color: var(--bg);
  /* Subtle mesh gradient background */
  background-image: 
    radial-gradient(circle at 15% 0%, rgba(94, 92, 230, 0.15), transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(10, 132, 255, 0.15), transparent 40%);
  background-attachment: fixed;
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #5e5ce6;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 18px;
}

.brand:hover {
  color: var(--text);
  opacity: 0.9;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.nav a:hover, .nav a.active {
  color: var(--text);
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-card {
  max-width: 800px;
  margin: 0 auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 56px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -1.5px;
  margin: 0 0 24px;
  background: linear-gradient(180deg, #fff, #a1a1a6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 21px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* Buttons */
.cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 99px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

.button.primary {
  background: var(--text);
  color: #000;
}

.button.primary:hover {
  background: #fff;
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.button:not(.primary) {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.button:not(.primary):hover {
  background: rgba(255, 255, 255, 0.15);
}

.app-store-badge {
  display: inline-flex;
  height: 48px;
  transition: transform 0.2s ease;
}

.app-store-badge:hover {
  transform: scale(1.05);
}

.app-store-badge img {
  height: 100%;
  width: auto;
}

/* Grid & Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 60px 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  background: var(--surface-hover);
}

.card h2 {
  font-size: 20px;
  margin: 0 0 12px;
  color: var(--text);
}

.card p {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.card .small {
  margin-top: 16px;
  font-size: 14px;
}

/* Pages (Legal/Support) */
.main {
  padding: 40px 0 80px;
}

.page {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.page h1 {
  font-size: 32px;
  background: none;
  -webkit-text-fill-color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.page h2 {
  font-size: 20px;
  margin: 32px 0 12px;
  color: var(--text);
}

.page p, .page li {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.list {
  padding-left: 20px;
}

.list li {
  margin-bottom: 8px;
}

hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}

/* Forms */
form {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

input, textarea, select {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.15);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.notice {
  background: rgba(10, 132, 255, 0.1);
  border: 1px solid rgba(10, 132, 255, 0.2);
  color: var(--accent);
  padding: 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.notice strong {
  color: var(--accent);
}

/* Status Messages */
#support-status {
  display: inline-block;
  margin-left: 12px;
  font-weight: 500;
}

#support-status[data-type="success"] { color: var(--success); }
#support-status[data-type="error"] { color: var(--danger); }
#support-status[data-type="info"] { color: var(--accent); }

/* Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 13px;
}

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

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

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

/* Mobile */
@media (max-width: 768px) {
  h1 { font-size: 40px; }
  .hero { padding: 40px 0; }
  .nav { display: none; } /* Simple hide for now, or stack */
  .page { padding: 24px; }
  
  /* Simple mobile nav fix */
  .nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px;
    justify-content: space-around;
    border-top: 1px solid var(--border);
    z-index: 90;
  }
  .site-footer { padding-bottom: 80px; } /* Space for mobile nav */
}
