/* Coach Duardo — base styles */

:root {
  --obsidian: #1A1D21;
  --chainlink: #4A4E54;
  --orange: #F47C20;
  --yellow: #F4BF25;
  --salt: #F8F9FA;
  --grey: #9a9fa6;

  /* Dark mode: obsidian background, salt/grey text, same accents */
  --bg: var(--obsidian);
  --bg-raised: var(--chainlink);
  --text: var(--salt);
  --text-secondary: var(--grey);
  --border-subtle: #2A2E33;

  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* mobile browsers: account for address bar chrome */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
  padding: 96px 0;
}

/* Reusable ambient background layers, driven by Rellax (data-rellax-speed).
   Any section can host a set of these to keep parallax motion continuous
   as the page scrolls, not just within the hero. */

.section-layer {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
}

.section-layer--grid {
  background-image:
    linear-gradient(var(--chainlink) 1px, transparent 1px),
    linear-gradient(90deg, var(--chainlink) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.12;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero__photo {
  background-image:
    radial-gradient(ellipse 65% 55% at 50% 50%, rgba(26, 29, 33, 0.78) 0%, rgba(26, 29, 33, 0.4) 60%, rgba(26, 29, 33, 0.6) 100%),
    url("../hero.jpg");
  background-size: cover, cover;
  background-position: center, 32% 40%;
  background-repeat: no-repeat, no-repeat;
}

.section-layer--glow-orange {
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  left: -10%;
  top: 10%;
  right: auto;
  bottom: auto;
  background: radial-gradient(circle, var(--orange) 0%, transparent 65%);
  opacity: 0.35;
  filter: blur(10px);
}

.section-layer--glow-orange.section-layer--flip {
  left: auto;
  right: -10%;
  top: auto;
  bottom: 8%;
}

.section-layer--glow-yellow {
  width: 40vw;
  height: 40vw;
  max-width: 480px;
  max-height: 480px;
  left: auto;
  top: auto;
  right: -5%;
  bottom: 5%;
  background: radial-gradient(circle, var(--yellow) 0%, transparent 65%);
  opacity: 0.28;
  filter: blur(10px);
}

.section-layer--glow-yellow.section-layer--flip {
  right: auto;
  left: -5%;
  bottom: auto;
  top: 8%;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 clamp(20px, 6vw, 24px);
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2.5rem, 12vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 24px;
  text-wrap: balance;
}

.hero__tagline {
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  line-height: 1.5;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 40px;
  text-wrap: balance;
}

.hero__cta {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--obsidian);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, background 0.15s ease;
}

.hero__cta:hover {
  background: var(--yellow);
  transform: translateY(-2px);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 2px solid var(--grey);
  border-radius: 14px;
  z-index: 1;
}

.hero__scroll-hint span {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--yellow);
  animation: scroll-hint 1.6s ease-in-out infinite;
}

/* ---------- Features ---------- */

.features {
  position: relative;
  overflow: hidden;
}

.features__inner {
  position: relative;
  z-index: 1;
  padding: 120px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.features__intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 64px;
}

.features__heading {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 16px;
  text-wrap: balance;
}

.features__subheading {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.5;
  color: var(--text-secondary);
  text-wrap: balance;
}

.features__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.feature-card {
  flex: 1 1 260px;
  max-width: 340px;
  background: var(--bg-raised);
  border-radius: 16px;
  padding: 32px 28px;
  border: 1px solid var(--border-subtle);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card__icon svg {
  width: 22px;
  height: 22px;
}

.feature-card--orange .feature-card__icon {
  background: rgba(244, 124, 32, 0.14);
  color: var(--orange);
}

.feature-card--yellow .feature-card__icon {
  background: rgba(244, 191, 37, 0.14);
  color: var(--yellow);
}

.feature-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.feature-card__body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

@media (max-width: 480px) {
  .features__inner {
    padding: 80px 20px;
  }

  .features__intro {
    margin-bottom: 40px;
  }

  .feature-card {
    padding: 24px 22px;
  }
}

/* ---------- Page header (non-hero pages) ---------- */

.page-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 0;
}

.page-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.page-header__brand img {
  border-radius: 8px;
  display: block;
}

/* ---------- Legal content ---------- */

.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal__title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
}

.legal__updated {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.legal__section {
  margin-bottom: 36px;
}

.legal__section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.legal__section p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.legal__section p:last-child {
  margin-bottom: 0;
}

.legal__section strong {
  color: var(--text);
}

.legal__section a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal__section a:hover {
  color: var(--yellow);
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  border-top: 1px solid var(--border-subtle);
}

.site-footer__copy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.site-footer__copy:hover {
  color: var(--orange);
}

.site-footer__copy img {
  border-radius: 7px;
  display: block;
}

.site-footer__links {
  display: flex;
  gap: 24px;
}

.site-footer__links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.site-footer__links a:hover {
  color: var(--orange);
}

@keyframes scroll-hint {
  0% { opacity: 1; top: 7px; }
  60% { opacity: 0; top: 18px; }
  100% { opacity: 0; top: 18px; }
}

/* ---------- Responsive tweaks ---------- */

@media (max-width: 480px) {
  .section-layer--grid {
    background-size: 40px 40px;
  }

  .hero__cta {
    padding: 13px 28px;
    font-size: 0.9rem;
  }

  .hero__eyebrow {
    letter-spacing: 0.12em;
  }
}

/* Short/landscape viewports: content shouldn't fight the scroll hint for space */
@media (max-height: 560px) {
  .hero {
    padding: 72px 0 56px;
  }

  .hero__title {
    margin-bottom: 16px;
  }

  .hero__tagline {
    margin-bottom: 24px;
  }

  .hero__scroll-hint {
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-hint span {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
