/* Design System & CSS Variables */
:root {
  --bg-dark: #000000;
  --surface-dark: #111113;
  --surface-card: #1C1C1E;
  --border-muted: #2C2C2E;
  --border-active: #38383A;
  
  --accent-green: #34C759;
  --accent-green-subtle: rgba(52, 199, 89, 0.12);
  --accent-green-border: rgba(52, 199, 89, 0.4);
  --accent-green-glow: rgba(52, 199, 89, 0.25);
  
  --accent-blue: #0A84FF;
  --accent-blue-subtle: rgba(10, 132, 255, 0.12);
  --accent-orange: #FF9F0A;
  --accent-pink: #FF2D55;
  
  --text-main: #FFFFFF;
  --text-secondary: #8E8E93;
  --text-muted: #6E6E73;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 99px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography Helpers */
a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Header & Sticky Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 0.5px solid var(--border-muted);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-container {
  width: 100%;
  max-width: 960px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #1C1C1E 0%, #2C2C2E 100%);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
}

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

.nav-cta {
  background: var(--accent-green);
  color: #000000;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: none;
  transition: var(--transition);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-green-glow);
}

/* Views & Routing */
.route-screen {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding-top: 64px; /* navbar offset */
  min-height: 100vh;
}

.route-screen.active {
  display: block;
  opacity: 1;
}

/* Hero Section */
.hero {
  padding: 80px 24px 60px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-green-subtle);
  border: 0.5px solid var(--accent-green-border);
  color: var(--accent-green);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  box-shadow: 0 0 12px var(--accent-green-glow);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

h1 {
  font-size: 46px;
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.8px;
}

h1 span {
  color: var(--accent-green);
  background: linear-gradient(180deg, #34C759 0%, #248A3D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 36px;
  font-weight: 400;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent-green);
  color: #000;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  border: none;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-green-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Chat Mockup Container */
.chat-preview {
  max-width: 360px;
  margin: 56px auto 0;
  background: #1C1C1E;
  border-radius: 24px;
  border: 0.5px solid var(--border-active);
  padding: 18px;
  font-size: 13px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  position: relative;
}

.chat-header {
  border-bottom: 0.5px solid var(--border-muted);
  padding-bottom: 12px;
  margin-bottom: 14px;
  text-align: center;
}

.chat-name {
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
}

.chat-subtext {
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 2px;
}

.msg-them {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  align-items: flex-end;
}

.msg-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.msg-bubble-them {
  background: #2C2C2E;
  border-radius: 18px 18px 18px 4px;
  padding: 10px 14px;
  color: #fff;
  max-width: 220px;
  text-align: left;
}

.msg-me {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.msg-bubble-me {
  background: var(--accent-blue);
  border-radius: 18px 18px 4px 18px;
  padding: 10px 14px;
  color: #fff;
  max-width: 220px;
  text-align: right;
}

/* Poker iMessage Card */
.poker-card {
  background: linear-gradient(180deg, #0E1610 0%, #0D0D0E 100%);
  border: 1px solid var(--accent-green);
  border-radius: 16px;
  padding: 14px;
  margin: 8px 0 8px 12px;
  box-shadow: 0 8px 24px rgba(52, 199, 89, 0.15);
  text-align: left;
}

.poker-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.poker-title {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.poker-pill {
  background: rgba(52, 199, 89, 0.15);
  border: 0.5px solid var(--accent-green);
  color: var(--accent-green);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.poker-table-view {
  background: #142217;
  border: 1px solid rgba(52, 199, 89, 0.3);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
}

.pot-badge {
  text-align: center;
  font-size: 11px;
  color: #8E8E93;
  margin-bottom: 8px;
}

.pot-badge span {
  color: #FFD700;
  font-weight: 700;
  font-size: 12px;
}

.community-cards {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 10px;
}

.playing-card {
  width: 28px;
  height: 38px;
  background: #ffffff;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.playing-card.red { color: #E53935; }
.playing-card.black { color: #1A1A1A; }
.playing-card .suit { font-size: 11px; margin-top: 1px; }

.action-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.action-btn {
  flex: 1;
  background: #2C2C2E;
  border: 0.5px solid #38383A;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 6px 0;
  border-radius: 6px;
  text-align: center;
}

.action-btn.call {
  background: var(--accent-green);
  color: #000;
  border: none;
}

.poker-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 0.5px solid var(--border-muted);
  padding-top: 10px;
}

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

.player-av {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #1C1C1E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
}

.card-cta {
  color: var(--accent-blue);
  font-size: 11px;
  font-weight: 600;
}

/* Dividers */
.divider {
  height: 0.5px;
  background: var(--border-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* Features Section */
.features {
  padding: 80px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.section-label {
  color: var(--accent-green);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

h2 {
  font-size: 32px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.section-sub {
  color: var(--text-secondary);
  text-align: center;
  font-size: 16px;
  margin-bottom: 48px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--surface-dark);
  border: 0.5px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.feature-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.feature-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* How It Works Section */
.how-it-works {
  padding: 80px 24px;
  max-width: 780px;
  margin: 0 auto;
}

.steps {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  position: relative;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--accent-green);
  background: #000;
  color: var(--accent-green);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 0 12px var(--accent-green-glow);
}

.step-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.step-line {
  position: absolute;
  top: 18px;
  left: 50%;
  right: -50%;
  height: 1px;
  background: var(--border-muted);
  z-index: 0;
}

.step:last-child .step-line {
  display: none;
}

/* Waitlist Section */
.waitlist {
  padding: 80px 24px 40px;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.waitlist h2 {
  margin-bottom: 10px;
}

.waitlist p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 16px;
}

.phone-row {
  display: flex;
  gap: 10px;
}

.country-select {
  background: var(--surface-card);
  border: 0.5px solid var(--border-active);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 15px;
  padding: 0 12px;
  height: 50px;
  appearance: none;
  cursor: pointer;
  min-width: 80px;
  text-align: center;
  outline: none;
  transition: var(--transition);
}

.phone-input {
  flex: 1;
  background: var(--surface-card);
  border: 0.5px solid var(--border-active);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 15px;
  padding: 0 16px;
  height: 50px;
  outline: none;
  transition: var(--transition);
}

.phone-input::placeholder {
  color: var(--text-muted);
}

.phone-input:focus, .country-select:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green-glow);
}

.submit-btn {
  background: var(--accent-green);
  color: #000;
  font-size: 15px;
  font-weight: 600;
  padding: 0 22px;
  height: 50px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.submit-btn:hover {
  box-shadow: 0 4px 16px var(--accent-green-glow);
}

.compliance {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
}

.compliance a {
  color: var(--text-secondary);
  text-decoration: underline;
  cursor: pointer;
  transition: var(--transition);
}

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

.success-msg {
  display: none;
  background: var(--accent-green-subtle);
  border: 0.5px solid var(--accent-green-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 20px;
  color: var(--accent-green);
  font-size: 14px;
  line-weight: 500;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Privacy Policy View Styling */
.privacy-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-green);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 28px;
  cursor: pointer;
  transition: var(--transition);
}

.back-link:hover {
  transform: translateX(-3px);
}

.privacy-header {
  margin-bottom: 36px;
}

.privacy-header h1 {
  text-align: left;
  font-size: 38px;
  margin-bottom: 8px;
}

.privacy-updated {
  color: var(--text-secondary);
  font-size: 14px;
}

.privacy-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.privacy-card {
  background: var(--surface-dark);
  border: 0.5px solid var(--border-muted);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.privacy-card h2 {
  text-align: left;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-muted);
  padding-bottom: 8px;
}

.privacy-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.privacy-card p:last-child {
  margin-bottom: 0;
}

.privacy-card ul {
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.privacy-card li {
  margin-bottom: 8px;
}

.privacy-card strong {
  color: var(--text-main);
}

.callout-box {
  background: rgba(255, 159, 10, 0.1);
  border: 0.5px solid rgba(255, 159, 10, 0.4);
  border-radius: var(--radius-md);
  padding: 16px;
  color: #FFB340;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 12px;
}

.contact-email-btn {
  display: inline-block;
  background: var(--accent-green);
  color: #000;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  margin-top: 12px;
  transition: var(--transition);
}

.contact-email-btn:hover {
  box-shadow: 0 4px 16px var(--accent-green-glow);
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 0.5px solid var(--border-muted);
  margin-top: 60px;
  background: var(--bg-dark);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
  list-style: none;
}

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

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

/* Responsive Styles */
@media (max-width: 768px) {
  .nav-menu {
    display: none; /* simple mobile cleanup */
  }

  h1 {
    font-size: 34px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    flex-direction: column;
    gap: 32px;
  }

  .step-line {
    display: none;
  }

  .phone-row {
    flex-direction: column;
  }

  .country-select, .phone-input, .submit-btn {
    width: 100%;
  }

  .privacy-card {
    padding: 20px;
  }
}
