/* ────────────────────────────
   SiteNest — Core stylesheet
──────────────────────────── */

:root {
  --bg: #ffffff;
  --bg-alt: #F8FAFC;
  --text: #0F172A;
  --text-muted: #475569;
  --dark-blue: #0F172A;
  --accent: #3B82F6;
  --accent-light: #93C5FD;
  --accent-soft: rgba(59, 130, 246, 0.1);
  --border: #E2E8F0;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --header-h: 76px;
}

[data-theme="dark"] {
  --bg: #0B1220;
  --bg-alt: #0F172A;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --border: #1E293B;
  --accent-soft: rgba(59, 130, 246, 0.16);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
  padding-top: var(--header-h);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 16px; font-weight: 800; }
p { line-height: 1.7; color: var(--text-muted); margin: 0 0 16px; }

.text-accent { color: var(--accent); }

/* ── Buttons ────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: var(--radius-sm); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}
.btn-primary:hover { background: #2f6fe0; box-shadow: 0 12px 28px rgba(59, 130, 246, 0.45); }

.btn-glow { position: relative; }
.btn-glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), #60A5FA);
  opacity: 0;
  z-index: -1;
  filter: blur(12px);
  transition: opacity 0.3s ease;
}
.btn-glow:hover::after { opacity: 0.6; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); }

.btn-discord {
  background: var(--dark-blue);
  color: #fff;
}
[data-theme="dark"] .btn-discord { background: var(--accent); }

/* ── Badge ──────────────────── */
.badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ── Hero ───────────────────── */
.hero {
  position: relative;
  padding: 110px 24px 90px;
  text-align: center;
  overflow: hidden;
}
.hero-inner { max-width: 760px; margin: 0 auto; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
.hero-sub { font-size: 18px; max-width: 560px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-glow {
  position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.25), transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* ── USP strip ──────────────── */
.usp-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: -30px auto 40px;
  padding: 0 24px;
}
.usp-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.usp-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.usp-icon { font-size: 26px; display: block; margin-bottom: 8px; }
.usp-item p { margin: 0; font-weight: 600; color: var(--text); font-size: 14px; }

/* ── Sections ───────────────── */
.section { padding: 90px 24px; max-width: 1160px; margin: 0 auto; }
.section-alt { background: var(--bg-alt); max-width: none; border-radius: var(--radius-lg); }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }

/* ── Steps ──────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 17px; margin-bottom: 8px; }
.step-card p { font-size: 14px; margin: 0; }

/* ── Features ───────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 24px;
}
.feature-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 30px; display: block; margin-bottom: 14px; }
.feature-card h3 { font-size: 18px; }
.feature-card p { font-size: 14px; margin: 0; }

/* ── FAQ ────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--accent); transition: transform 0.25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; font-size: 14px; }

/* ── GolfPer ────────────────── */
.golfper-section {
  margin: 20px 24px 100px;
  padding: 60px 40px;
  border-radius: var(--radius-lg);
  background: #16322b;
  background: linear-gradient(120deg, #265040 0%, #265040 45%, #16322b 100%);
  position: relative;
  overflow: hidden;
}
.golfper-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}
.golfper-logo { width: 88px; height: 88px; max-width: 88px; max-height: 88px; object-fit: contain; flex-shrink: 0; }
.golfper-text h2 { color: #fff; margin-bottom: 12px; }
.golfper-text p { color: #C7D9CF; max-width: 520px; }
.golfper-badge { background: rgba(255,255,255,0.12); color: #A7D8BE; margin-bottom: 16px; }
.golfper-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.btn-golfper { background: #A7D8BE; color: #16322b; }
.btn-golfper:hover { background: #ffffff; }
.golfper-link { color: #A7D8BE; font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.golfper-link:hover { color: #ffffff; }

.golfper-hero {
  text-align: center;
  padding: 110px 24px 80px;
  background: #16322b;
  background: linear-gradient(160deg, #265040 0%, #265040 40%, #16322b 100%);
}
.golfper-hero-inner { max-width: 560px; margin: 0 auto; }
.golfper-hero-logo {
  width: 80px; height: 80px; max-width: 80px; max-height: 80px;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
}
.golfper-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); }
.golfper-hero-sub { color: #C7D9CF; font-size: 17px; }
.golfper-cta { background: linear-gradient(135deg, #265040, #16322b); }
.golfper-cta p { color: #C7D9CF; }

/* ── CTA band ───────────────── */
.cta-band {
  text-align: center;
  margin: 40px 24px 100px;
  padding: 70px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--dark-blue), #1E3A8A);
  color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--accent-light); margin-bottom: 28px; }

/* ── Pricing ────────────────── */
.pricing-wrap { display: flex; justify-content: center; padding: 0 24px; }
.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 380px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}
.pricing-card.featured { border: 2px solid var(--accent); }
.pricing-card .price { font-size: 42px; font-weight: 800; margin: 12px 0 24px; }
.pricing-card .price span { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.pricing-features { text-align: left; margin-bottom: 28px; }
.pricing-features li {
  position: relative;
  padding: 8px 0 8px 28px;
  color: var(--text-muted);
  font-size: 14px;
  border-bottom: 1px dashed var(--border);
}
.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.pricing-note { max-width: 720px; margin: 60px auto 0; padding: 0 24px; text-align: center; }

/* ── About ──────────────────── */
.about-content { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.team-grid { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; padding: 0 24px; }
.team-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  width: 220px;
  box-shadow: var(--shadow-sm);
}
.team-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #1E3A8A);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin: 0 auto 14px;
}
.team-role { color: var(--accent); font-weight: 600; font-size: 13px; margin: 0; }

/* ── Contact form ───────────── */
.contact-section { max-width: 780px; }
.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.form-group-full { grid-column: 1 / -1; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.optional { font-weight: 400; color: var(--text-muted); }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-error { color: #EF4444; font-size: 12px; margin-top: 6px; display: block; }
.domain-input { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-alt); }
.domain-input input { border: none; box-shadow: none !important; }
.domain-suffix { padding: 0 14px; color: var(--text-muted); font-size: 14px; white-space: nowrap; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.alert { padding: 24px 28px; border-radius: var(--radius); text-align: center; }
.alert-success { background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3); }
.alert-success h3 { color: #16A34A; margin-bottom: 8px; }
.alert-error { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.25); }
.alert-error p { color: #B91C1C; }

/* ── Shared form styling (dashboard + auth pages) ── */
.dash-form { max-width: 640px; }
.dash-form .form-group { margin-bottom: 18px; }
.dash-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.dash-form input, .dash-form select, .dash-form textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
}
.dash-form input:focus, .dash-form select:focus, .dash-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 12px; margin-top: 24px; }

/* ── Login / register pages ──── */
.auth-section { max-width: 420px; margin: 90px auto; padding: 0 24px; }
.auth-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 22px; text-align: center; }
.auth-card p.auth-sub { text-align: center; font-size: 14px; margin-bottom: 24px; }
.auth-switch { text-align: center; font-size: 14px; margin-top: 18px; }
.auth-switch a { color: var(--accent); font-weight: 600; }

/* ── Legal pages ────────────── */
.legal-content { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.legal-content h3 { font-size: 18px; margin-top: 36px; }
.legal-content p { font-size: 15px; white-space: pre-wrap; }
.legal-content code { background: var(--bg-alt); padding: 2px 6px; border-radius: 6px; font-size: 13px; }

/* ── Error pages ────────────── */
.error-section {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.error-code { font-size: 90px; font-weight: 800; color: var(--accent); line-height: 1; }

/* ── Page loader ────────────── */
.page-loader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo {
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
  animation: bounce 1s ease-in-out infinite;
}

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