/* =================================================================
   BASAITO — DESIGN SYSTEM
   Everything you'd want to change lives in :root below.
   Change a color or font here and it updates across the whole site.
   ================================================================= */

:root {
  /* ---- Colors ---- */
  --ink:        #0B0D10;   /* main background — deep near-black */
  --ink-soft:   #12151A;   /* raised panels / alternating sections */
  --line:       #232830;   /* hairline borders */
  --text:       #EDEDE7;   /* primary off-white text */
  --text-dim:   #9AA1AC;   /* secondary / muted text */
  --accent:     #C6F24E;   /* electric lime — CTAs, highlights, the loop */
  --accent-ink: #0B0D10;   /* text that sits on the accent color */

  /* ---- Type ---- */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* ---- Spacing / layout ---- */
  --container: 1160px;
  --gutter: 24px;
  --section-pad: 120px;      /* vertical padding between sections */
  --radius: 14px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Shared type helpers ------------------------------------------------ */
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.section-lead {
  color: var(--text-dim);
  font-size: 1.15rem;
  max-width: 620px;
  margin-top: 20px;
}

.accent-text { color: var(--accent); }

/* =================================================================
   BUTTONS
   ================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: 16px 32px; font-size: 1rem; }

.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--accent:hover { transform: translateY(-2px); background: #d4ff5f; }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--nav {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 20px;
  font-size: 0.9rem;
}
.btn--nav:hover { transform: translateY(-2px); background: #d4ff5f; }

/* =================================================================
   NAVIGATION
   ================================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
/* solid state once scrolled (toggled by JS) */
.nav.is-scrolled {
  background: rgba(11, 13, 16, 0.82);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.nav__logo-dot { color: var(--accent); }

.nav__links {
  display: flex;
  gap: 34px;
  margin-left: auto;
  margin-right: 34px;
}
.nav__links a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s var(--ease);
}
.nav__links a:hover { color: var(--text); }

/* Mobile hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 26px; height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 18px var(--gutter) 28px;
  background: rgba(11, 13, 16, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__mobile a {
  font-family: var(--font-display);
  font-weight: 500;
  padding: 12px 4px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line);
}
.nav__mobile a.btn--accent { color: var(--accent-ink); border-bottom: none; margin-top: 10px; }
.nav__mobile a:last-child { border-bottom: none; margin-top: 10px; text-align: center; }
.nav__mobile.is-open { display: flex; }

/* =================================================================
   HERO
   ================================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  overflow: hidden;
}
/* faint grid in the background — signals "systems / structure" */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.25;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 78%);
}

.hero__inner { position: relative; z-index: 1; max-width: 900px; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.hero__sub {
  color: var(--text-dim);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 620px;
  margin-top: 28px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* =================================================================
   CREDIBILITY BAR
   ================================================================= */
.cred {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-soft);
}
.cred__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px var(--gutter);
}
.cred__item {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
}
.cred__sep { color: var(--accent); opacity: 0.6; }

/* =================================================================
   PROBLEM
   ================================================================= */
.problem { padding-block: var(--section-pad); }
.problem__inner { max-width: 820px; }
.problem__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.problem__body { margin-top: 28px; font-size: 1.2rem; color: var(--text-dim); }
.problem__body p + p { margin-top: 20px; }
.problem__punch {
  color: var(--text);
  font-weight: 500;
  border-left: 2px solid var(--accent);
  padding-left: 22px;
}

/* =================================================================
   THE BASAITO LOOP
   ================================================================= */
.loop {
  padding-block: var(--section-pad);
  background: var(--ink-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.loop__head { max-width: 620px; margin-bottom: 20px; }

.loop__diagram { position: relative; margin-top: 40px; }

/* connecting arcs sit behind the step cards on wide screens */
.loop__svg {
  position: absolute;
  top: -18px; left: 0;
  width: 100%;
  height: 200px;
  display: block;
  pointer-events: none;
  z-index: 0;
}
.loop__path {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 6 7;
  opacity: 0.7;
}
.loop__path--return { opacity: 0.4; }

.loop__steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.loop__step {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.loop__step:hover { transform: translateY(-6px); border-color: var(--accent); }
.loop__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.loop__step h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 12px 0 12px;
}
.loop__step p { color: var(--text-dim); font-size: 1rem; }

/* =================================================================
   SERVICES
   ================================================================= */
.services { padding-block: var(--section-pad); }
.services__head { margin-bottom: 52px; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.service:hover { transform: translateY(-6px); border-color: var(--accent); background: var(--ink-soft); }
.service__mark { color: var(--accent); font-size: 1rem; margin-bottom: 20px; }
.service h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.service p { color: var(--text-dim); font-size: 1rem; }

.services__note {
  margin-top: 44px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 500;
  color: var(--text);
  max-width: 720px;
  margin-inline: auto;
}

/* =================================================================
   ABOUT / FOUNDER
   ================================================================= */
.about {
  padding-block: var(--section-pad);
  background: var(--ink-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about__inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: center;
}
.about__photo {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 25%, rgba(198,242,78,0.18), transparent 60%),
    var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__initials {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.85;
}
.about__content .section-title { margin-bottom: 24px; }
.about__content p { color: var(--text-dim); }
.about__content p + p { margin-top: 18px; }

/* =================================================================
   FINAL CTA
   ================================================================= */
.cta { padding-block: calc(var(--section-pad) + 20px); }
.cta__inner { max-width: 760px; margin-inline: auto; text-align: center; }
.cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.cta__sub {
  color: var(--text-dim);
  font-size: 1.2rem;
  margin: 24px auto 38px;
  max-width: 600px;
}

/* =================================================================
   FOOTER
   ================================================================= */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 56px;
}
.footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.footer__logo { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.footer__tag { color: var(--text-dim); font-size: 0.95rem; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; margin-top: 6px; }
.footer__links a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: color 0.2s var(--ease);
}
.footer__links a:hover { color: var(--accent); }
.footer__copy { color: var(--text-dim); font-size: 0.82rem; opacity: 0.7; margin-top: 8px; }

/* =================================================================
   SCROLL REVEAL ANIMATION
   ================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 940px) {
  :root { --section-pad: 88px; }

  .loop__steps, .services__grid { grid-template-columns: 1fr; }
  .loop__svg { display: none; }              /* arcs only make sense in a row */

  .about__inner { grid-template-columns: 1fr; gap: 36px; }
  .about__media { max-width: 260px; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__inner .btn--nav { display: none; }
  .nav__toggle { display: flex; }

  .hero { min-height: auto; padding-top: 130px; padding-bottom: 80px; }
  .hero__cta .btn { flex: 1 1 auto; }

  .cred__inner { gap: 10px; }
  .cred__sep { display: none; }
  .cred__item {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.8rem;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
