/* =============================================
   HERON MATH — STYLESHEET
   Fonts: Raleway (headings) + Lora (body/italic)
   Theme: Deep navy + orange brand + dark teal
============================================= */

/* --- VARIABLES --- */
:root {
  --navy:       #0d1b2a;
  --navy-mid:   #132336;
  --navy-light: #1e3a52;
  --gold:       #ff7a00;
  --gold-light: #ff9d3f;
  --teal:       #4a9b8e;
  --teal-light: #7ec8b8;
  --white:      #f5f0e8;
  --white-dim:  rgba(245, 240, 232, 0.6);
  --white-faint:rgba(245, 240, 232, 0.15);
  --text:       #d4cfc7;
  --radius:     12px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--text);
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.75;
  min-height: 100vh;
}

h1, h2, h3, h4, .nav-logo, .footer-logo {
  font-family: 'Raleway', sans-serif;
  color: var(--white);
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; }

p { margin-bottom: 1.2rem; }
em { color: var(--gold-light); font-style: italic; }
strong { color: var(--white); font-weight: 600; }

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

ul { padding-left: 1.4rem; margin-bottom: 1.2rem; }
ul li { margin-bottom: 0.4rem; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.content-narrow { max-width: 740px; margin: 0 auto; }

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.5rem;
  background: rgba(13, 27, 42, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--white-faint);
}

.nav-logo {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 0.05em;
}
.nav-logo:hover { color: var(--gold); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  padding: 0;
  margin: 0;
}

.nav-links a {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-dim);
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 8rem 2.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hero-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 40%, rgba(74,155,142,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 70%, rgba(200,169,110,0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.hero-content { flex: 1; max-width: 560px; }

.hero-eyebrow {
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-title {
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--white-dim);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

/* --- DOWNLOAD BUTTONS --- */
.download-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-store {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--white);
}
.btn-store:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-android {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white-faint);
}
.btn-android:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-store svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn-store span { display: flex; flex-direction: column; line-height: 1.2; }
.btn-store span small { font-size: 0.65rem; font-weight: 400; opacity: 0.7; letter-spacing: 0.05em; }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-block;
  transition: all var(--transition);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}

/* --- PHONE MOCKUP --- */
.hero-visual {
  flex: 0 0 auto;
  opacity: 0;
  animation: fadeIn 1s ease 1s forwards;
}

.phone-mockup {
  width: 240px;
  height: 460px;
  background: var(--navy-mid);
  border-radius: 36px;
  border: 2px solid var(--white-faint);
  padding: 1.5rem 1rem;
  box-shadow:
    0 0 0 1px rgba(200,169,110,0.1),
    0 40px 80px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.phone-screen { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }

.mock-equation {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Raleway', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  background: var(--navy-light);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  width: 100%;
  justify-content: center;
}

.term {
  background: rgba(255,255,255,0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}
.term.highlight {
  background: rgba(200,169,110,0.25);
  color: var(--gold-light);
  border: 1px solid rgba(200,169,110,0.4);
}
.op { color: var(--white-dim); font-weight: 400; }

.mock-circle-container { width: 100%; display: flex; justify-content: center; }
.mock-circle { width: 130px; height: 130px; }

/* --- FEATURES --- */
.features {
  padding: 6rem 0;
  background: var(--navy-mid);
  border-top: 1px solid var(--white-faint);
  border-bottom: 1px solid var(--white-faint);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--navy);
  border: 1px solid var(--white-faint);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: rgba(200,169,110,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.feature-icon {
  font-size: 2rem;
  color: var(--gold);
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1;
}

/* --- HERON TEASER --- */
.heron-teaser {
  padding: 6rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.heron-teaser-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.heron-quote {
  border-left: 3px solid var(--gold);
  padding-left: 2rem;
}
.heron-quote p {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.heron-quote span {
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--white-dim);
  text-transform: uppercase;
}

.text-link {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  color: var(--gold);
  font-size: 0.95rem;
  display: inline-block;
  margin-top: 0.5rem;
  letter-spacing: 0.03em;
}
.text-link:hover { color: var(--gold-light); }

/* --- PAGE HERO (inner pages) --- */
.page-hero {
  padding: 9rem 2.5rem 4rem;
  background: var(--navy-mid);
  border-bottom: 1px solid var(--white-faint);
  text-align: center;
}

.page-hero-sub {
  font-size: 1.15rem;
  color: var(--white-dim);
  max-width: 600px;
  margin: 0 auto;
}

/* --- CONTENT SECTION --- */
.content-section {
  padding: 5rem 2.5rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.divider {
  border: none;
  border-top: 1px solid var(--white-faint);
  margin: 3rem 0;
}

/* --- TUTORIAL CARDS --- */
.tutorial-card {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--navy-mid);
  border-radius: var(--radius);
  border: 1px solid var(--white-faint);
}

.tutorial-number {
  font-family: 'Raleway', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  opacity: 0.5;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 0.2rem;
}

/* --- PRIVACY HIGHLIGHT --- */
.privacy-highlight {
  background: rgba(74,155,142,0.1);
  border: 1px solid rgba(74,155,142,0.3);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  color: var(--teal-light);
  font-size: 1rem;
}
.privacy-highlight strong { color: var(--teal-light); }

/* --- FOOTER --- */
.footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--white-faint);
  padding: 3rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  align-items: start;
  padding-bottom: 2.5rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.3rem;
}

.footer-brand p {
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  color: var(--white-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  color: var(--white-dim);
  font-weight: 600;
}
.footer-links a:hover { color: var(--gold); }

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--white-faint);
  color: var(--white-dim);
  transition: all var(--transition);
}
.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
  border-top: 1px solid var(--white-faint);
  padding: 1.25rem 2rem;
  text-align: center;
}
.footer-bottom p {
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  color: var(--white-dim);
  margin: 0;
  letter-spacing: 0.05em;
}

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

/* --- RESPONSIVE --- */
@media (max-width: 860px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 7rem;
    gap: 3rem;
  }
  .download-buttons { justify-content: center; }
  .heron-teaser-inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-social { flex-direction: row; }
}

@media (max-width: 600px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-mid); padding: 1.5rem; gap: 1rem; border-bottom: 1px solid var(--white-faint); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 6rem 1.5rem 3rem; }
  .download-buttons { flex-direction: column; align-items: center; }
  .tutorial-card { flex-direction: column; gap: 1rem; }
  .content-section { padding: 3rem 1.5rem; }
  .page-hero { padding: 7rem 1.5rem 3rem; }
}
