/* ============================================
   Reliaura — Global Stylesheet
   Color Philosophy:
     Indigo (#1e1b4b / #312e81)  → Reliability, depth
     Teal  (#0891b2 / #06b6d4)   → Curiosity, innovation
     Amber (#f59e0b / #fbbf24)   → Creativity, energy
   ============================================ */

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

:root {
  /* Core palette */
  --indigo-950: #1e1b4b;
  --indigo-900: #312e81;
  --indigo-800: #3730a3;
  --indigo-700: #4338ca;
  --indigo-600: #4f46e5;
  --indigo-100: #e0e7ff;
  --indigo-50:  #eef2ff;

  --teal-600: #0891b2;
  --teal-500: #06b6d4;
  --teal-400: #22d3ee;
  --teal-100: #cffafe;

  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-300: #fcd34d;

  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;
  --white:    #ffffff;

  /* Semantic tokens */
  --bg-primary:    var(--white);
  --bg-dark:       var(--indigo-950);
  --bg-section:    var(--gray-50);
  --text-primary:  var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-light:    var(--gray-500);
  --text-on-dark:  var(--gray-100);
  --accent:        var(--teal-500);
  --accent-hover:  var(--teal-600);
  --highlight:     var(--amber-500);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-sans);

  /* Spacing */
  --section-pad: 6rem 2rem;
  --container-max: 1140px;

  /* Misc */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 14px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
  --transition: .3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { max-width: 680px; }

.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

.section-title {
  margin-bottom: 1.25rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal-500), var(--indigo-600));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(6, 182, 212, .35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(6, 182, 212, .45);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.3);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
  color: var(--white);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(30, 27, 75, .95);
  backdrop-filter: blur(12px);
  padding: .7rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.15);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -.02em;
}

.nav-logo span {
  background: linear-gradient(135deg, var(--teal-400), var(--amber-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
  text-decoration: none;
}
.nav-links a:hover { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--indigo-950) 0%, var(--indigo-900) 40%, #1e3a5f 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 3rem;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-content h1 .highlight {
  background: linear-gradient(135deg, var(--teal-400), var(--amber-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  color: rgba(255,255,255,.75);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero visual — abstract geometric art via CSS */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-graphic {
  position: relative;
  width: 400px;
  height: 400px;
}

.hero-graphic .orb {
  position: absolute;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero-graphic .orb-1 {
  width: 220px; height: 220px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, rgba(6,182,212,.3), rgba(79,70,229,.3));
  border: 1px solid rgba(6,182,212,.2);
  backdrop-filter: blur(20px);
}

.hero-graphic .orb-2 {
  width: 140px; height: 140px;
  top: 10%; right: 5%;
  background: linear-gradient(135deg, rgba(245,158,11,.25), rgba(251,191,36,.15));
  border: 1px solid rgba(245,158,11,.2);
  animation-delay: -2s;
}

.hero-graphic .orb-3 {
  width: 80px; height: 80px;
  bottom: 15%; left: 10%;
  background: linear-gradient(135deg, rgba(34,211,238,.3), rgba(6,182,212,.2));
  border: 1px solid rgba(34,211,238,.2);
  animation-delay: -4s;
}

.hero-graphic .orb-ring {
  position: absolute;
  width: 320px; height: 320px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  animation: spin 20s linear infinite;
}

.hero-graphic .orb-ring::before {
  content: '';
  position: absolute;
  top: -4px; left: 50%;
  width: 8px; height: 8px;
  background: var(--amber-400);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--amber-400);
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-20px); }
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Floating particles */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ---------- About / Pillars Section ---------- */
.about {
  padding: var(--section-pad);
}

.about-header {
  text-align: center;
  margin-bottom: 4rem;
}

.about-header .section-subtitle {
  margin: 0 auto;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-500), var(--indigo-600));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.pillar-card:hover::before {
  transform: scaleX(1);
}

.pillar-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.pillar-icon.teach   { background: var(--indigo-50); color: var(--indigo-600); }
.pillar-icon.game    { background: var(--teal-100);   color: var(--teal-600); }
.pillar-icon.publish { background: #fff7ed;           color: #ea580c; }
.pillar-icon.film    { background: #fdf4ff;           color: #a855f7; }

.pillar-card h3 {
  margin-bottom: .5rem;
}

.pillar-card p {
  color: var(--text-secondary);
  font-size: .9rem;
  margin: 0 auto;
}

/* ---------- Featured App Section ---------- */
.featured-app {
  padding: var(--section-pad);
  background: var(--bg-section);
}

.featured-app .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.app-mockup {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 260px;
  height: 520px;
  background: linear-gradient(165deg, var(--indigo-900), var(--indigo-950));
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.1);
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #1a1035 0%, #0f172a 100%);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.phone-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  background: var(--indigo-950);
  border-radius: 0 0 12px 12px;
}

.phone-app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--amber-500), #ef4444);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(245,158,11,.4);
}

.phone-app-title {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.phone-app-subtitle {
  color: rgba(255,255,255,.5);
  font-size: .75rem;
  margin-bottom: 1.5rem;
}

.phone-feature-list {
  width: 100%;
  text-align: left;
}

.phone-feature-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.7);
  font-size: .7rem;
  padding: .4rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.phone-feature-item svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--teal-400);
}

.app-info .section-label { }

.app-info h2 {
  margin-bottom: 1rem;
}

.app-info > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.app-features {
  list-style: none;
  margin-bottom: 2rem;
}

.app-features li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .6rem 0;
  color: var(--text-secondary);
  font-size: .95rem;
}

.app-features li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--teal-500);
  margin-top: 2px;
}

.app-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-dark {
  background: var(--indigo-950);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-dark:hover {
  background: var(--indigo-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

/* ---------- Values / Mission ---------- */
.values {
  padding: var(--section-pad);
}

.values .container {
  text-align: center;
}

.values-header {
  margin-bottom: 3.5rem;
}

.values-header .section-subtitle {
  margin: 0 auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: left;
}

.value-card {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.value-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}

.value-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  margin-bottom: .5rem;
  font-size: 1.1rem;
}

.value-card p {
  color: var(--text-secondary);
  font-size: .9rem;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--indigo-950), var(--indigo-900));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,.12), transparent 70%);
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
}

.cta-banner p {
  color: rgba(255,255,255,.7);
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  max-width: 500px;
  position: relative;
}

.cta-banner .btn {
  position: relative;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand .nav-logo {
  margin-bottom: .5rem;
  display: inline-block;
}

.footer-brand p {
  font-size: .85rem;
  color: var(--gray-500);
  max-width: 280px;
}

.footer-links h4 {
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .75rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: .4rem;
}

.footer-links a {
  color: var(--gray-500);
  font-size: .85rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 1.5rem;
  text-align: center;
  font-size: .8rem;
  color: var(--gray-500);
}

/* ---------- Privacy Policy Page ---------- */
.page-header {
  background: linear-gradient(135deg, var(--indigo-950), var(--indigo-900));
  padding: 8rem 2rem 4rem;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: .75rem;
}

.page-header p {
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  margin: 0 auto;
}

.privacy-content {
  padding: 4rem 2rem;
}

.privacy-content .container {
  max-width: 800px;
}

.privacy-section {
  margin-bottom: 2.5rem;
}

.privacy-section h2 {
  font-size: 1.4rem;
  margin-bottom: .75rem;
  color: var(--indigo-900);
}

.privacy-section h3 {
  font-size: 1.1rem;
  margin: 1.25rem 0 .5rem;
  color: var(--gray-800);
}

.privacy-section p {
  color: var(--text-secondary);
  margin-bottom: .75rem;
  max-width: none;
}

.privacy-section ul {
  color: var(--text-secondary);
  margin: .5rem 0 1rem 1.5rem;
}

.privacy-section li {
  margin-bottom: .4rem;
}

.privacy-highlight {
  background: var(--teal-100);
  border-left: 4px solid var(--teal-500);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

.privacy-highlight p {
  color: var(--gray-800);
  font-weight: 500;
  margin: 0;
}

/* ---------- Scroll Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 4rem 1.25rem;
  }

  /* Mobile nav */
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--indigo-950);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right var(--transition);
    box-shadow: -4px 0 20px rgba(0,0,0,.3);
  }

  .nav-links.active { right: 0; }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 999;
  }
  .nav-overlay.active { display: block; }

  .nav-links {
    z-index: 1001;
  }

  /* Hero */
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 7rem;
  }

  .hero-content p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }

  .hero-visual { order: -1; }
  .hero-graphic { width: 260px; height: 260px; }
  .hero-graphic .orb-1 { width: 150px; height: 150px; }
  .hero-graphic .orb-2 { width: 90px; height: 90px; }
  .hero-graphic .orb-3 { width: 50px; height: 50px; }
  .hero-graphic .orb-ring { width: 220px; height: 220px; }

  /* Sections */
  .pillars-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }

  .featured-app .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .app-mockup { order: -1; }
  .app-features li { justify-content: center; text-align: left; }

  .app-buttons { justify-content: center; }

  .footer-content { flex-direction: column; align-items: center; text-align: center; }
  .footer-brand p { margin: 0 auto; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }

  .phone-frame { width: 220px; height: 440px; }
}
