/* =========================================================
   Amicus project site
   Brand tokens live here. Change a color or font once and it
   updates everywhere.
   ========================================================= */
:root {
  /* Brand colors (sampled from the logo) */
  --blue: #3854d3; /* wordmark + bubble outline */
  --blue-dark: #3854d3;
  --yellow: #fdd94f; /* duck */
  --cream: #fdf6bd; /* logo background */
  --cream-soft: #fffbe0;
  --orange: #fb9a3c; /* beak */
  --lavender: #8b8cf8; /* sparkle lines */

  /* Neutrals */
  --ink: #1c1f2e;
  --ink-soft: #5b6072;
  --line: #e7e8ef;
  --bg: #ffffff;

  /* Type */
  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;

  /* Layout */
  --max: 1160px;
  --radius: 20px;
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

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

a {
  color: var(--blue);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 0.75rem;
}

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

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85em 1.8em;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.2s;
}
.btn:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 46px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 2.25rem;
}
.site-nav a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--blue);
}

.nav-toggle {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 96px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.value-prop {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 0 0 2rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
}

.blob {
  position: absolute;
  inset: 4% -20% 4% 6%;
  background: var(--cream);
  border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%;
}

.phone {
  position: relative;
  width: 260px;
  background: var(--ink);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 30px 60px -20px rgba(28, 31, 46, 0.35);
  transform: rotate(4deg);
}

.phone-screen {
  border-radius: 30px;
  background: #fff;
  overflow: hidden;
  padding: 8px 6px 4px;
}

.phone-screenshot {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
}
.section-tint {
  background: var(--cream-soft);
}

.section-intro {
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 3rem;
}
.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* Concept pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.pillar {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.pillar h3 {
  color: var(--blue);
}
.pillar p {
  margin: 0;
  color: var(--ink-soft);
}

/* Process timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.step:not(.is-soon):hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -18px rgba(66, 100, 251, 0.45);
}
.step h3 {
  flex: 1;
  margin: 0.8rem 0 1.2rem;
}

.step-tag {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25em 0.8em;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
}

.step-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.step-links a,
.step-links .link-soon {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4em 0.95em;
  border-radius: 999px;
  text-decoration: none;
}
.step-links a {
  border: 1.5px solid var(--blue);
  color: var(--blue);
  transition:
    background 0.2s,
    color 0.2s;
}
.step-links a:hover {
  background: var(--blue);
  color: #fff;
}
.step-links .link-soon {
  border: 1.5px dashed var(--line);
  color: var(--ink-soft);
}

.step.is-soon {
  background: transparent;
}
.step.is-soon .step-tag {
  background: var(--line);
  color: var(--ink-soft);
}
.step.is-soon h3 {
  color: var(--ink-soft);
}

/* Videos */
.video-frame {
  max-width: 900px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-soft);
  border: 1px solid var(--line);
}
.video-frame video,
.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-family: var(--font-display);
}
.video-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  font-weight: 600;
}
.subsection-title {
  margin-top: 4rem;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.member {
  text-align: center;
}
.avatar {
  width: 140px;
  aspect-ratio: 1;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--yellow);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member h3 {
  margin-bottom: 0.15rem;
}
.member p {
  margin: 0;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-inner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .value-prop {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-visual {
    min-height: 440px;
  }
  .blob {
    inset: 0 8%;
  }
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
  }
  .nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition:
      transform 0.2s,
      opacity 0.2s;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav a {
    padding: 16px 24px;
    border-top: 1px solid var(--line);
  }

  .logo img {
    height: 38px;
  }
  .section {
    padding: 72px 0;
  }
  .hero {
    padding: 48px 0 64px;
  }
  .hero-visual {
    min-height: 380px;
  }
  .phone {
    width: 190px;
    border-radius: 32px;
    padding: 10px;
  }

  .pillars,
  .timeline {
    grid-template-columns: 1fr;
  }
  .team-grid {
    gap: 32px 16px;
  }
  .avatar {
    width: 110px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
