/* ESP RainMaker Neo — static marketing site
   Palette lifted from rainmaker.espressif.com: accent #E8362D, body text #38393A. */

:root {
  --red: #e8362d;
  --red-dark: #c62a22;
  --red-soft: #fdecea;
  --ink: #38393a;
  --ink-soft: #5f6163;
  --ink-faint: #8a8d90;
  --line: #e6e8ea;
  --tint: #f7f8f9;
  --dark: #1d1f21;
  --white: #fff;

  --wrap: 1180px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(29,31,33,.05), 0 8px 24px rgba(29,31,33,.06);
  --shadow-lg: 0 2px 6px rgba(29,31,33,.06), 0 18px 48px rgba(29,31,33,.10);

  --font: "Trueno", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -.015em; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 22px; border-radius: 999px;
  font-size: .95rem; font-weight: 600; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 14px 30px; font-size: 1rem; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--outline { border-color: var(--red); color: var(--red); background: transparent; }
.btn--outline:hover { background: var(--red-soft); }
.btn--ghost { color: var(--ink); }
.btn--ghost:hover { color: var(--red); }
.btn--ghostlight { color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghostlight:hover { background: rgba(255,255,255,.12); }

/* ── Announcement bar ────────────────────────────────── */
.announce { background: var(--dark); color: rgba(255,255,255,.82); font-size: .88rem; }
.announce__inner {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap; padding: 11px 24px; text-align: center;
}
.announce__inner p { margin: 0; }
.announce__tag {
  background: var(--red); color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px;
}
.announce a { color: #fff; font-weight: 600; white-space: nowrap; }
.announce a:hover { color: var(--red); }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: 0 2px 12px rgba(29,31,33,.05); }

.nav__inner { display: flex; align-items: center; gap: 28px; height: 89px; }

.nav__brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.nav__brand img { width: 44px; height: 44px; }
.nav__brandtext { font-weight: 600; font-size: 1.05rem; letter-spacing: -.02em; }
.nav__brandtext b { color: var(--red); font-weight: 800; }
.nav__pill {
  background: var(--red-soft); color: var(--red); font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px;
  border-radius: 999px; white-space: nowrap;
}

.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font-size: .94rem; font-weight: 500; color: var(--ink-soft); position: relative; padding: 4px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--red); transition: right .22s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { right: 0; }

.nav__actions { display: flex; align-items: center; gap: 10px; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px; margin-left: auto;
  background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 84px 0 76px;
  background: linear-gradient(180deg, #fff 0%, var(--tint) 100%);
}
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }

.eyebrow {
  margin: 0 0 14px; font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--red);
}
.eyebrow--center { text-align: center; }
.eyebrow--light { color: #ff8b83; }

.badge {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px;
  background: var(--red-soft); color: var(--red); border: 1px solid #f7ccc8;
  padding: 6px 15px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.badge__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 0 rgba(232,54,45,.6); animation: pulse 2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(232,54,45,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,54,45,0); }
}
@media (prefers-reduced-motion: reduce) { .badge__dot { animation: none; } }

.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.35rem); margin-bottom: 20px; }

.lede { font-size: 1.12rem; color: var(--ink-soft); margin: 0 0 30px; max-width: 56ch; }
.lede--strong { color: var(--ink); font-weight: 700; margin-bottom: 26px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note { margin: 22px 0 0; font-size: .875rem; color: var(--ink-faint); }

.hero__art { position: relative; display: grid; place-items: center; min-height: 320px; }
/* Plain white disc behind the mark — the logo art is transparent, so anything
   tinted here bleeds through the cloud outline and muddies the gradient. */
.orb {
  position: absolute; inset: 0; margin: auto;
  width: 320px; height: 320px; border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(29,31,33,.07);
  animation: float 7s ease-in-out infinite;
}
.hero__logo {
  position: relative; width: 190px; height: 190px;
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .orb, .hero__logo { animation: none; } }

/* ── Strip ───────────────────────────────────────────── */
.strip { background: var(--dark); color: #fff; }
.strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px 24px; }
.strip__inner > div { text-align: center; }
.strip b { display: block; font-size: 1.65rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.strip span { font-size: .86rem; color: rgba(255,255,255,.62); }

/* ── Sections ────────────────────────────────────────── */
.section { padding: 86px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--dark); color: #fff; }

.section__title { font-size: clamp(1.7rem, 3vw, 2.3rem); text-align: center; margin-bottom: 16px; }
.section__title--left { text-align: left; }
.section__title--light { color: #fff; }

.section__sub {
  text-align: center; max-width: 68ch; margin: 0 auto 48px;
  color: var(--ink-soft); font-size: 1.05rem;
}
.section__sub--left { text-align: left; margin-inline: 0; }
.section__sub--light { color: rgba(255,255,255,.72); }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

/* ── Why items ───────────────────────────────────────── */
.why__item { padding: 24px 18px; border-top: 3px solid var(--line); transition: border-color .2s ease; }
.why__item:hover { border-top-color: var(--red); }
.why__num { font-size: .78rem; font-weight: 800; color: var(--red); letter-spacing: .1em; }
.why__item h3 { font-size: 1.02rem; margin: 10px 0 8px; }
.why__item p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

/* ── Tabs ────────────────────────────────────────────── */
.tabs__list {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px;
}
.tabs__tab {
  padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink-soft); font-family: inherit;
  font-size: .92rem; font-weight: 600; cursor: pointer; transition: .18s;
}
.tabs__tab:hover { border-color: var(--red); color: var(--red); }
.tabs__tab.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.tabs__panel { display: none; }
.tabs__panel.is-active {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow);
  animation: fade .25s ease;
}
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tabs__panel h3 { font-size: 1.3rem; margin-bottom: 10px; }
.tabs__panel > p { color: var(--ink-soft); margin: 0 0 18px; max-width: 74ch; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 27px; font-size: .95rem; color: var(--ink-soft); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  color: var(--red); font-weight: 800;
}

/* ── Cards ───────────────────────────────────────────── */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red); font-size: 1.25rem; margin-bottom: 16px;
}
.card h3 { font-size: 1.1rem; margin-bottom: 9px; }
.card p { margin: 0; color: var(--ink-soft); font-size: .94rem; }
.card--accent { background: linear-gradient(160deg, #fff, var(--red-soft)); border-color: #f7ccc8; }

/* ── Editions ────────────────────────────────────────── */
.edition {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px; display: flex; flex-direction: column;
}
.edition--featured { border: 2px solid var(--red); box-shadow: var(--shadow-lg); }
.ribbon {
  position: absolute; top: -13px; left: 34px; background: var(--red); color: #fff;
  font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
}
.edition h3 { font-size: 1.45rem; margin-bottom: 4px; }
.edition__tag { font-size: .82rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .09em; margin: 0 0 14px; }
.edition > p { color: var(--ink-soft); margin: 0 0 18px; }
.edition .ticks { margin-bottom: 26px; }
.edition .btn { align-self: flex-start; margin-top: auto; }

/* ── Assistants ──────────────────────────────────────── */
.assistants { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.assistants__panel { display: grid; gap: 14px; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; font-weight: 600; box-shadow: var(--shadow);
  border-left: 4px solid var(--red);
}
.chip--muted { border-left-color: var(--ink-faint); color: var(--ink-soft); font-weight: 500; }

/* ── Steps ───────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 44px; }
.step { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 28px; }
.step span {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 800; margin-bottom: 15px;
}
.step h3 { font-size: 1.06rem; margin-bottom: 8px; color: #fff; }
.step p { margin: 0; color: rgba(255,255,255,.68); font-size: .93rem; }

.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Contact ─────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.contact__card {
  background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; text-align: center;
}
.contact__card h3 { font-size: 1.2rem; margin-bottom: 9px; }
.contact__card p { color: var(--ink-soft); margin: 0 0 20px; }

/* ── Footer ──────────────────────────────────────────── */
.footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 60px 0 26px; }
.footer__inner { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; }
.footer__brand img { width: 52px; height: 52px; margin-bottom: 14px; }
.footer__brand p { margin: 0; font-size: .93rem; max-width: 34ch; }
.footer__col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .11em; color: #fff; margin-bottom: 14px; }
.footer__col a { display: block; font-size: .92rem; padding: 5px 0; color: rgba(255,255,255,.66); transition: color .16s; }
.footer__col a:hover { color: var(--red); }

.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.11);
  font-size: .86rem; color: rgba(255,255,255,.5);
}
.footer__bottom p { margin: 0; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1000px) {
  .grid--5 { grid-template-columns: repeat(3, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .announce__inner { font-size: .82rem; padding: 9px 20px; }
  .nav__pill { display: none; }
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 89px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
  }
  .nav.is-open .nav__links a { padding: 12px 0; border-bottom: 1px solid var(--line); }

  .hero { padding: 56px 0; }
  .hero__inner, .assistants { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { order: -1; min-height: 220px; }
  .hero__logo { width: 140px; height: 140px; }
  .orb { width: 220px; height: 220px; }

  .strip__inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .section { padding: 62px 0; }
  .grid--2, .grid--3, .grid--5, .steps, .contact { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .footer__inner { grid-template-columns: 1fr; }
  .tabs__panel.is-active { padding: 24px; }
  .btn--lg { width: 100%; }
}
