@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ReggieSoft shared styles: tokens, nav, buttons, cards, footer.
   Page-specific themes live in each page's own <style> block.
   Edit shared components here so both pages stay in sync. */

:root {
  --bg: #070a12;
  --bg-surface: #0e1424;
  --card-bg: rgba(14, 20, 36, 0.72);
  --card-border: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(96, 165, 250, 0.4);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-light: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.2);
  --button-glow: rgba(59, 130, 246, 0.35);
  --button-glow-hover: rgba(59, 130, 246, 0.5);
  --green: #10b981;
  --green-glow: rgba(16, 185, 129, 0.2);
  --amber: #f59e0b;

  /* Studio palette: "Sunny Beach Day".
     Background is a darkened Charcoal Blue to keep the site dark.
     Used by the homepage; product pages keep their own accents. */
  --studio-bg: #0d1a20;
  --studio-surface: #142830;
  --studio-charcoal: #264653;
  --studio-border: rgba(233, 240, 238, 0.09);
  --studio-text: #f4efe6;
  --studio-muted: #a9bcc0;
  --studio-faint: #7f979c;
  --studio-peach: #e76f51;
  --studio-sand: #f4a261;
  --studio-jasmine: #e9c46a;
  --studio-verdigris: #2a9d8f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.5rem 3rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Shared sticky nav.
   The backdrop lives on ::before so it can span the full viewport
   and fade out at the bottom instead of ending in a hard edge.
   Pages tint it by setting --nav-bg. */
nav {
  width: 100%;
  max-width: var(--page-max-width, 960px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  font-family: 'Inter', 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
nav::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background: var(--nav-bg, rgba(7, 10, 18, 0.9));
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
nav::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 18%, rgba(255, 255, 255, 0.08) 82%, transparent 100%);
  pointer-events: none;
}
nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  line-height: 1;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.015em;
  color: var(--text);
  text-decoration: none;
}
nav .brand svg {
  display: block;
  width: 20px;
  height: 20px;
  transform: translateY(-1px);
  fill: var(--accent-light);
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.4));
}
nav .brand img {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}
nav a { color: var(--text); text-decoration: none; }
nav .links {
  display: flex;
  gap: 1.5rem;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.025em;
}
nav .links a {
  color: var(--text-muted);
  transition: color 0.15s ease, border-color 0.15s ease;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
}
nav .links a:hover { color: var(--text); }
nav .links a.active {
  color: var(--nav-active-color, var(--accent, #1DE1FE));
  border-bottom: 1.5px solid var(--nav-active-color, var(--accent, #1DE1FE));
}
@media (max-width: 560px) {
  nav .links { gap: 1rem; font-size: 0.72rem; }
}

main {
  width: 100%;
  max-width: var(--page-max-width, 960px);
  display: flex;
  flex-direction: column;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.65rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.18s ease;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 0 20px var(--button-glow);
  cursor: pointer;
}
.btn:hover {
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--button-glow-hover);
}
.btn:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  color: var(--text);
  box-shadow: none;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.card {
  background: linear-gradient(180deg, rgba(17, 24, 42, 0.8) 0%, rgba(11, 16, 30, 0.75) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.6), 0 0 24px rgba(59, 130, 246, 0.12);
}
.card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.card .emoji { font-size: 1.75rem; margin-bottom: 0.75rem; display: inline-block; }

.coming {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.6rem 1.1rem;
  border-radius: 9999px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 720px) { .grid { grid-template-columns: 1fr 1fr; } }

footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: var(--page-max-width, 960px);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}
footer a { color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
footer a:hover { color: var(--text); }

/* Form styles */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  text-align: left;
}
.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.6rem;
  padding: 0.75rem 0.9rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-select option {
  background: #0e1424;
  color: var(--text);
}
.form-textarea {
  min-height: 140px;
  resize: vertical;
}
.form-alert {
  padding: 0.85rem 1rem;
  border-radius: 0.6rem;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  display: none;
}
.form-alert.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}
.form-alert.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}
