/* ============================================================
   GVYBE — Shared Stylesheet
   Used by: index.html, terms.html, privacy.html
   ============================================================ */

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

/* ── DESIGN TOKENS ── */
:root {
  --black:         #0e0e12;
  --surface:       #16161c;
  --surface2:      #1e1e27;
  --border:        rgba(255,255,255,0.07);
  --border-bright: rgba(255,255,255,0.13);
  --violet:        #7866FF;
  --violet-light:  #A599FF;
  --mauve:         #903c65;
  --mauve-mid:     #aa4777;
  --mauve-light:   #c36f98;
  --white:         #f5f4f2;
  --muted:         rgba(245,244,242,0.42);
  --font-display:  'Bebas Neue', sans-serif;
  --font-body:     'DM Sans', sans-serif;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* ── AMBIENT GLOWS ── */
.glow { position: fixed; border-radius: 50%; filter: blur(130px); pointer-events: none; z-index: 0; }
.glow-1 { width: 700px; height: 700px; background: radial-gradient(circle, rgba(120,102,255,0.11) 0%, transparent 68%); top: -220px; left: 50%; transform: translateX(-50%); }
.glow-2 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(170,71,119,0.09) 0%, transparent 68%); bottom: 80px; right: -80px; }
.glow-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(120,102,255,0.07) 0%, transparent 68%); top: 60%; left: -80px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 52px;
  background: linear-gradient(to bottom, rgba(14,14,18,0.95), transparent);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.14em;
  color: var(--white);
  text-decoration: none;
}
.nav-logo span { color: var(--violet-light); }
/* Logo image swap — ready when logo is delivered */
.nav-logo img { height: 74px; width: auto; display: block; }

.nav-badge {
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--violet-light);
  border: 1px solid rgba(120,102,255,0.35);
  padding: 6px 14px; border-radius: 100px;
  background: rgba(120,102,255,0.08);
}

/* ── BUTTONS ── */
.btn {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 18px 38px; border-radius: 5px;
  cursor: pointer; border: none;
  transition: all 0.25s ease;
  text-decoration: none; display: inline-block;
}
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-light); transform: translateY(-2px); box-shadow: 0 14px 40px rgba(120,102,255,0.38); }
.btn-secondary { background: transparent; color: var(--white); border: 1px solid var(--border-bright); }
.btn-secondary:hover { border-color: var(--mauve-light); color: var(--mauve-light); transform: translateY(-2px); }

/* ── LAYOUT ── */
.h-rule { border: none; border-top: 1px solid var(--border); margin: 0 52px; }

.section { position: relative; z-index: 1; padding: 100px 52px; max-width: 1120px; margin: 0 auto; }
.section-label { font-size: 0.63rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--violet-light); margin-bottom: 18px; }
.section-title { font-family: var(--font-display); font-size: clamp(2.6rem,5vw,4.2rem); letter-spacing: 0.06em; line-height: 1; margin-bottom: 60px; color: var(--white); }

/* ── HERO ── */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 130px 24px 90px;
}
.pulse-wrap { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 36px; opacity: 0; animation: fadeUp 0.7s ease forwards 0.1s; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet-light); position: relative; flex-shrink: 0; }
.pulse-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--violet-light); animation: ring 2.2s ease-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(2.4); opacity: 0; } }
.pulse-text { font-size: 0.64rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }

.hero-eyebrow { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--violet-light); margin-bottom: 28px; opacity: 0; animation: fadeUp 0.8s ease forwards 0.25s; }
.hero-title { font-family: var(--font-display); font-size: clamp(5.5rem,17vw,15rem); letter-spacing: 0.06em; line-height: 0.88; color: var(--white); opacity: 0; animation: fadeUp 0.9s ease forwards 0.4s; }
.hero-logo { width: clamp(200px, 40vw, 520px); height: auto; margin-bottom: 0; opacity: 0; animation: fadeUp 0.9s ease forwards 0.4s; }
.hero-title .accent { color: var(--violet-light); }
.hero-sub { font-size: clamp(1rem,2vw,1.15rem); font-weight: 300; color: var(--muted); max-width: 460px; line-height: 1.75; margin-top: 26px; opacity: 0; animation: fadeUp 0.9s ease forwards 0.55s; }
.hero-line { width: 1px; height: 56px; background: linear-gradient(to bottom, var(--violet), transparent); margin: 44px auto; opacity: 0; animation: fadeUp 0.9s ease forwards 0.7s; }
.cta-group { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; opacity: 0; animation: fadeUp 0.9s ease forwards 0.85s; }

/* ── STEPS ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2px; }
.step { background: var(--surface); padding: 40px 30px; border: 1px solid var(--border); transition: border-color 0.3s ease, background 0.3s ease; }
.step:hover { border-color: rgba(120,102,255,0.3); background: rgba(120,102,255,0.04); }
.step-num { font-family: var(--font-display); font-size: 3.2rem; line-height: 1; margin-bottom: 20px; background: linear-gradient(135deg, var(--violet-light), rgba(120,102,255,0.2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.step-title { font-size: 0.95rem; font-weight: 500; letter-spacing: 0.04em; margin-bottom: 11px; color: var(--white); }
.step-body { font-size: 0.87rem; line-height: 1.72; color: var(--muted); }

.step-finale { background: linear-gradient(135deg, #1a1025 0%, #1e1530 50%, #1a1a2e 100%); border-color: rgba(170,71,119,0.4); position: relative; overflow: hidden; }
.step-finale::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at top right, rgba(170,71,119,0.18) 0%, transparent 60%), radial-gradient(ellipse at bottom left, rgba(120,102,255,0.14) 0%, transparent 60%); pointer-events: none; }
.step-finale:hover { border-color: rgba(195,111,152,0.6); background: linear-gradient(135deg, #1e1230 0%, #221838 50%, #1c1c34 100%); }
.step-finale .step-num { background: linear-gradient(135deg, #c36f98, #7866FF); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.step-finale .step-title { font-size: 1.05rem; background: linear-gradient(90deg, #fff 0%, #c36f98 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.step-highlight { color: #c36f98; font-weight: 500; font-style: italic; -webkit-text-fill-color: #c36f98; }

/* ── FOOTER ── */
footer { position: relative; z-index: 1; padding: 48px 52px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-logo { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.14em; color: var(--muted); }
.footer-logo span { color: var(--violet-light); }
/* Logo image swap — ready when logo is delivered */
.footer-logo img { height: 64px; width: auto; opacity: 0.6; }
.footer-links { display: flex; gap: 30px; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 0.73rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--violet-light); }
.footer-copy { font-size: 0.72rem; color: rgba(245,244,242,0.18); width: 100%; }

/* ── MODAL ── */
.modal-overlay {
  display: flex;
  position: fixed; inset: 0;
  background: rgba(8,8,12,0.85);
  backdrop-filter: blur(14px);
  z-index: 9999;
  align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; pointer-events: all; }
.modal {
  background: var(--surface); border: 1px solid var(--border-bright);
  border-radius: 10px; padding: 52px 48px;
  max-width: 540px; width: 100%;
  position: relative; max-height: 90vh; overflow-y: auto;
  transform: translateY(16px); transition: transform 0.3s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal::-webkit-scrollbar { width: 4px; }
.modal::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 4px; }
.modal-close { position: absolute; top: 18px; right: 18px; background: none; border: none; color: var(--muted); font-size: 1.5rem; cursor: pointer; line-height: 1; padding: 4px 8px; transition: color 0.2s; }
.modal-close:hover { color: var(--white); }
.modal-eyebrow { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--violet-light); margin-bottom: 12px; }
.modal-title { font-family: var(--font-display); font-size: 2.5rem; letter-spacing: 0.06em; line-height: 1; margin-bottom: 8px; color: var(--white); }
.modal-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.72; margin-bottom: 34px; }

/* ── FORMS ── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.form-input, .form-select, .form-textarea { width: 100%; background: var(--surface2); border: 1px solid var(--border); border-radius: 5px; padding: 13px 15px; font-family: var(--font-body); font-size: 0.9rem; font-weight: 300; color: var(--white); outline: none; transition: border-color 0.2s; -webkit-appearance: none; }
.form-input::placeholder, .form-textarea::placeholder { color: rgba(245,244,242,0.2); }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--violet); }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(245,244,242,0.28)' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; cursor: pointer; }
.form-select option { background: #1e1e27; }
.form-textarea { resize: vertical; min-height: 96px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn-submit { width: 100%; margin-top: 6px; padding: 17px; }
.form-note { font-size: 0.7rem; color: rgba(245,244,242,0.22); text-align: center; margin-top: 14px; line-height: 1.6; }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.check-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--violet); margin-top: 2px; flex-shrink: 0; cursor: pointer; }
.check-label { font-size: 0.8rem; color: var(--muted); line-height: 1.55; }
.check-label a { color: var(--violet-light); text-decoration: underline; text-underline-offset: 3px; }

/* ── SUCCESS STATE ── */
.success-state { display: none; text-align: center; padding: 24px 0; }
.success-state.show { display: block; }
.success-icon { font-size: 2.8rem; margin-bottom: 18px; }
.success-title { font-family: var(--font-display); font-size: 2.2rem; letter-spacing: 0.08em; margin-bottom: 12px; color: var(--violet-light); }
.success-body { font-size: 0.9rem; color: var(--muted); line-height: 1.72; }

/* ── LEGAL PAGES (terms.html, privacy.html) ── */
.legal-wrap { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 140px 52px 100px; }
.legal-wrap h1 { font-family: var(--font-display); font-size: clamp(3rem,6vw,5rem); letter-spacing: 0.06em; line-height: 1; color: var(--white); margin-bottom: 8px; }
.legal-meta { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 60px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.legal-wrap h2 { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.06em; color: var(--white); margin: 48px 0 16px; }
.legal-wrap p { font-size: 0.9rem; line-height: 1.8; color: var(--muted); margin-bottom: 16px; }
.legal-wrap ul { padding-left: 20px; margin-bottom: 16px; }
.legal-wrap ul li { font-size: 0.9rem; line-height: 1.8; color: var(--muted); margin-bottom: 8px; }
.legal-wrap a { color: var(--violet-light); text-underline-offset: 3px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  nav { padding: 20px 24px; }
  .section { padding: 60px 24px; }
  .h-rule { margin: 0 24px; }
  footer { padding: 40px 24px; }
  .modal { padding: 40px 26px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-group { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; text-align: center; }
  .legal-wrap { padding: 120px 24px 80px; }
}
