/* ==========================================================================
   ForGOD Intelligence Network (FIN) — Master Stylesheet
   Color Palette:
   - Primary BG: #0A0B0E (Near Black)
   - Secondary Surface: #12141A / Glassmorphism
   - Text Primary: #F5F1E8 (Warm Off-White)
   - Gold Accent: #C9A24D (Muted Gold) / #E5C268 (Hover Gold)
   - Emerald Accent: #1F6D4C (Emerald Green) / #2BB673 (Bright Emerald)
   Typography:
   - Headings: Fraunces (Editorial Serif)
   - Body: Inter (Sans-Serif)
   ========================================================================== */

:root {
  --bg-dark: #0A0B0E;
  --bg-surface: #12141A;
  --bg-surface-glass: rgba(18, 20, 26, 0.75);
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);

  --text-main: #F5F1E8;
  --text-muted: #A3A8B5;
  --text-dim: #6C7280;

  --gold-primary: #C9A24D;
  --gold-light: #E5C268;
  --gold-glow: rgba(201, 162, 77, 0.25);

  --emerald-primary: #1F6D4C;
  --emerald-bright: #2BB673;
  --emerald-glow: rgba(31, 109, 76, 0.3);

  --border-gold: rgba(201, 162, 77, 0.25);
  --border-emerald: rgba(31, 109, 76, 0.3);
  --border-subtle: rgba(255, 255, 255, 0.08);

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-gold: 0 10px 30px -10px rgba(201, 162, 77, 0.3);
  --shadow-emerald: 0 10px 30px -10px rgba(31, 109, 76, 0.3);
  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Ambient Decorative Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.glow-gold {
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--gold-primary) 0%, transparent 70%);
}

.glow-emerald {
  bottom: 20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--emerald-primary) 0%, transparent 70%);
}

/* Typography Utilities */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

.text-gold {
  color: var(--gold-primary);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-emerald {
  color: var(--emerald-bright);
}

/* Container */
.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section {
  padding: 80px 0;
}

.section-header {
  margin-bottom: 50px;
}

.section-header.text-center {
  text-align: center;
}

.section-kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* Header Section */
.site-header {
  padding: 30px 0 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 11, 14, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.site-logo {
  height: auto;
  max-height: 60px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.site-logo:hover {
  transform: scale(1.02);
}

.header-tagline {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  letter-spacing: 2.5px;
  color: var(--gold-primary);
  margin-top: 6px;
  text-transform: uppercase;
}

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

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: transform var(--transition-fast);
}

.badge:hover {
  transform: translateY(-2px);
}

.badge-gold {
  background: rgba(201, 162, 77, 0.12);
  color: var(--gold-light);
  border: 1px solid var(--border-gold);
}

.badge-emerald {
  background: rgba(31, 109, 76, 0.18);
  color: var(--emerald-bright);
  border: 1px solid var(--border-emerald);
}

.badge-subtle {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.hero-title {
  font-size: 3.6rem;
  line-height: 1.12;
  margin-bottom: 20px;
  max-width: 900px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-cta-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
  color: #0A0B0E;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(201, 162, 77, 0.45);
  background: linear-gradient(135deg, #FFF0BD 0%, var(--gold-light) 100%);
}

.btn-secondary {
  background: rgba(31, 109, 76, 0.25);
  color: var(--emerald-bright);
  border: 1px solid var(--border-emerald);
}

.btn-secondary:hover {
  background: var(--emerald-primary);
  color: #FFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-emerald);
}

.btn-submit {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
  color: #0A0B0E;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 18px 36px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(201, 162, 77, 0.4);
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.45);
}

.btn-block {
  width: 100%;
}

.btn-link {
  background: none;
  border: none;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.btn-link:hover {
  color: var(--gold-light);
}

/* Hero Feature Image Card */
.hero-image-card {
  width: 100%;
  max-width: 960px;
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.hero-image-card:hover {
  border-color: rgba(201, 162, 77, 0.5);
  transform: translateY(-4px);
}

.image-inner {
  width: 100%;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-normal);
}

.hero-image-card:hover .hero-img {
  transform: scale(1.02);
}

.image-caption-bar {
  padding: 16px 24px;
  background: rgba(10, 11, 14, 0.9);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.92rem;
  color: var(--gold-light);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* What You'll Learn Grid */
.learn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.learn-card {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  backdrop-filter: blur(12px);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.learn-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.learn-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.learn-card:hover::before {
  opacity: 1;
}

.learn-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(201, 162, 77, 0.12);
  color: var(--gold-light);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.learn-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.learn-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Materials Callout Section */
.materials-section {
  padding: 60px 0;
}

.callout-card {
  background: linear-gradient(145deg, rgba(18, 20, 26, 0.9) 0%, rgba(31, 109, 76, 0.15) 100%);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}

.callout-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: center;
}

.callout-image-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  background: #000;
}

.callout-img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.callout-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(31, 109, 76, 0.25);
  border: 1px solid var(--emerald-bright);
  color: var(--emerald-bright);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.callout-title {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.callout-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  line-height: 1.65;
}

.callout-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.callout-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-main);
}

.check-icon {
  color: var(--emerald-bright);
  font-weight: bold;
}

/* Community Section */
.community-section {
  padding: 80px 0;
}

.community-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}

.community-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 18px;
  color: var(--text-main);
}

.community-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.community-stats {
  display: flex;
  gap: 30px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.community-image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-card);
  background: #000;
}

.community-img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

/* Registration Section & Form */
.register-section {
  padding: 90px 0 100px;
  background: radial-gradient(circle at 50% 30%, rgba(201, 162, 77, 0.08) 0%, transparent 70%);
}

.form-container-outer {
  max-width: 680px;
}

.form-card {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 44px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  position: relative;
}

.registration-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.required {
  color: #FF5A5A;
}

.optional {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 400;
}

.form-input, .form-select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(10, 11, 14, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus, .form-select:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(201, 162, 77, 0.2);
  background: rgba(10, 11, 14, 0.9);
}

.form-input::placeholder {
  color: var(--text-dim);
}

.select-wrapper {
  position: relative;
}

.form-select {
  appearance: none;
  cursor: pointer;
  padding-right: 40px;
}

.select-wrapper::after {
  content: '▾';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-primary);
  pointer-events: none;
  font-size: 1.2rem;
}

.form-hint {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.error-msg {
  font-size: 0.82rem;
  color: #FF5A5A;
  display: none;
  margin-top: 4px;
}

/* Radio Pill Group */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.pill-option {
  position: relative;
  cursor: pointer;
}

.pill-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pill-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: rgba(10, 11, 14, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  user-select: none;
}

.pill-option input[type="radio"]:checked + .pill-btn {
  background: rgba(201, 162, 77, 0.18);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  font-weight: 600;
}

.pill-option:hover .pill-btn {
  border-color: rgba(201, 162, 77, 0.4);
}

/* Form Alert State */
.form-alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
}

.form-alert.alert-error {
  background: rgba(255, 90, 90, 0.15);
  border: 1px solid rgba(255, 90, 90, 0.4);
  color: #FF7070;
}

/* Spinner */
.spinner {
  animation: rotate 1.5s linear infinite;
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
}

.spinner .path {
  stroke: #0A0B0E;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

@keyframes dash {
  0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

.privacy-note {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 8px;
  line-height: 1.4;
}

/* Success Card */
.success-card {
  text-align: center;
  padding: 20px 0;
  animation: fadeIn 0.4s ease-out;
}

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

.success-icon-box {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(31, 109, 76, 0.2);
  border: 2px solid var(--emerald-bright);
  color: var(--emerald-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-title {
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.success-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.6;
}

.success-next-step {
  background: rgba(10, 11, 14, 0.8);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  margin-bottom: 24px;
}

.success-next-step h4 {
  font-size: 1.2rem;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.success-next-step p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Footer */
.site-footer {
  padding: 50px 0 40px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(10, 11, 14, 0.95);
  text-align: center;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  height: auto;
  max-height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  margin-bottom: 8px;
}

.footer-motto {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold-primary);
  letter-spacing: 2px;
}

.footer-copy {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-sub {
  font-size: 0.8rem;
  margin-top: 4px;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .callout-grid, .community-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .community-grid {
    display: flex;
    flex-direction: column-reverse;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .form-card {
    padding: 28px 20px;
  }

  .callout-card {
    padding: 28px 20px;
  }

  .callout-title, .section-title {
    font-size: 1.9rem;
  }

  .pill-group {
    flex-direction: column;
  }

  .pill-btn {
    width: 100%;
    text-align: center;
  }

  .community-stats {
    flex-wrap: wrap;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.95rem;
  }

  .badge {
    font-size: 0.8rem;
    padding: 6px 14px;
  }

  .btn {
    width: 100%;
    padding: 15px 24px;
  }
}
