/* =============================================
   Freo Now — Base Styles
   Variables, Reset, Layout, Navbar, Hero, Buttons
   ============================================= */

@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@700&family=Lato:wght@400;700&display=swap");

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary:    #0c2d48;
  --primary-dk: #071f33;
  --navy-card:  #3d576d;
  --dark:       #0b1b2b;
  --white:      #ffffff;
  --light-gray: #f8f8f8;
  --black:      #000000;
  --radius:     12px;
  --shadow:     0 10px 30px rgba(0, 0, 0, 0.1);
  
  /* Gradients */
  --grad-hero:  linear-gradient(180deg, #ffffff 0%, #f5fbff 50%, #e8f3ff 85%);
  --grad-upper: linear-gradient(180deg, #e8f3ff 0%, #d0e4f5 50%, #b8d4ea 100%);
  --grad-deep:  linear-gradient(180deg, #b8d4ea 0%, #4a7a9b 50%, #1a3a5c 100%);
  --grad-floor: linear-gradient(180deg, #1a3a5c 0%, #0f2a45 60%, #0a1e35 100%);
  
  /* Sun Theme */
  --sun-core:   #fffbf0;
  --sun-ray:    #ffd700;
  --sun-glow-1: rgba(255, 215, 0, 0.6);
  --sun-glow-2: rgba(255, 215, 0, 0.4);
  --sun-glow-3: rgba(255, 220, 100, 0.2);
}

body {
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--black);
  background: var(--white);
}

/* ---- Layout ---- */
.container,
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section {
  padding: 3rem 1rem;
  position: relative;
}

.content-gradient {
  background: var(--grad-upper);
}

.signup-gradient {
  background: var(--grad-floor);
  color: var(--white);
}

.section h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
}

/* shared: centred text headings */
.section-title,
.section-subtitle {
  text-align: center;
  color: var(--black);
}

.section-subtitle {
  font-size: 1.2rem;
  margin: 1rem 0 2rem;
}



/* ---- Navbar ---- */
.navbar {
  background: var(--white);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid #f0f0f0;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
}

.nav-logo {
  height: 32px;
  width: auto;
}

/* ---- Hero ---- */
.hero {
  background: var(--grad-hero);
  text-align: center;
  padding: 4rem 1rem;
  position: relative;
  overflow: hidden;
}

/* Background Shine Overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Stronger, brighter gradient originating closer to the sun */
  background: radial-gradient(circle at 90% 10%, rgba(255, 252, 220, 0.85) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 90%);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s ease-out; /* Slightly faster snap */
  will-change: opacity;
}

/* When sun is hovered, shine the background */
.hero:has(.sun:hover)::after {
  opacity: 1;
}



/* ── Interactive Sun ── */
.sun {
  position: absolute;
  top: -120px;
  right: -120px;
  left: auto;
  transform: none;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  
  background: radial-gradient(circle, var(--sun-core) 20%, var(--sun-ray) 60%, rgba(255, 215, 0, 0) 70%);
  
  /* Massive glow reaching down */
  box-shadow: 
    0 0 60px var(--sun-glow-1), 
    0 0 120px var(--sun-glow-2),
    0 0 400px var(--sun-glow-3);
    
  z-index: 1; 
  cursor: pointer;
  will-change: transform, box-shadow, opacity;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: sunPulse 5s ease-in-out infinite;
}

.sun:hover {
  transform: scale(1.15); /* Subtle grow */
}

@keyframes sunPulse {
  0%, 100% { 
    box-shadow: 
      0 0 60px var(--sun-glow-1), 
      0 0 120px var(--sun-glow-2),
      0 0 400px var(--sun-glow-3);
    opacity: 0.95; 
  }
  50% { 
    box-shadow: 
      0 0 80px rgba(255, 215, 0, 0.8), 
      0 0 160px rgba(255, 215, 0, 0.6),
      0 0 500px rgba(255, 230, 120, 0.3);
    opacity: 1; 
  }
}

/* Particle canvas — sits behind all content */
#hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 95%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 95%);
}

.hero .container {
  position: relative;
  z-index: 1;
}



/* ── H1 styling ── */
.hero h1 {
  font-family: "Merriweather", serif;
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero h1 .em {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* ── H1 line colours ── */
.h1-line {
  display: block;
  color: var(--dark);
  /* Subtle sun reflection on text */
  text-shadow: 1px 1px 0 rgba(255, 215, 0, 0.15);
}
.h1-line .em {
  color: var(--primary);
  /* Subtle static highlight */
  text-shadow: 1px 1px 2px rgba(255, 215, 0, 0.2);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--black);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-image-container {
  max-width: 900px;
  margin: 2rem auto 0;
}

/* ── 3D floating mockup ── */
.hero-perspective {
  perspective: 1000px;
  display: inline-block;
  width: 100%;
}

.hero-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow:
    0 20px 60px rgba(12, 45, 72, 0.18),
    0 8px 20px rgba(12, 45, 72, 0.08);
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  will-change: transform;
}

.hero-perspective:hover .hero-image {
  box-shadow:
    0 30px 80px rgba(12, 45, 72, 0.22),
    0 12px 30px rgba(12, 45, 72, 0.10);
}

/* ---- Buttons ---- */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dk); transform: scale(1.05); }

.btn-white { background: var(--white); color: var(--primary); border: 2px solid var(--primary); }
.btn-white:hover { background: #f2f6f9; transform: scale(1.03); }

.btn-block {
  display: block;
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  text-align: center;
}

/* ---- Cards (generic) ---- */
.card {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid #eee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 1rem; color: var(--black); }
.card p  { line-height: 1.6; }
