/* =============================================================
   REVOLUTION WORLD INC. — Global stylesheet
   Premium, minimal, technology-driven corporate site.
   Sections:
   1. Tokens / variables
   2. Base & reset
   3. Layout helpers
   4. Buttons
   5. Announcement strip
   6. Header / navigation
   7. Hero & page hero
   8. Sections, cards, features
   9. Launch banner component
   10. Information page
   11. Footer
   12. Motion / reveal
   ============================================================= */

/* ---------- 1. Tokens ------------------------------------------------ */
:root {
  /* Green & white theme — no blue/violet/purple, no neon combinations */
  --ink: #0c3a24;          /* deep forest green — used for dark sections */
  --ink-2: #0a2f1d;        /* deeper green — illustration panels */

  --bg: #ffffff;
  --bg-soft: #f2f7f3;      /* very pale green-grey */
  --surface: #ffffff;
  --border: #e1e8e3;
  --border-strong: #ccd8d0;

  --text: #14231b;         /* near-black, subtle green undertone */
  --text-soft: #55655c;
  --text-invert: #eef4f0;
  --text-invert-soft: #a9c0b3;

  --brand: #1ba24f;        /* primary green — matches the logo */
  --brand-2: #17a34a;      /* mid green */
  --brand-3: #4cbf82;      /* light sage green (illustration accents) */
  --brand-strong: #148a41; /* hover / pressed */
  --brand-gradient: linear-gradient(180deg, #1fae57, #1ba24f);
  --focus: #1ba24f;

  --shadow-sm: 0 1px 2px rgba(12, 40, 26, .06), 0 2px 8px rgba(12, 40, 26, .07);
  --shadow-md: 0 10px 34px -10px rgba(12, 40, 26, .16);
  --shadow-lg: 0 30px 70px -18px rgba(12, 40, 26, .26);

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;

  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

/* ---------- 2. Base & reset --------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
  overflow-x: clip;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }

::selection { background: rgba(27, 162, 79, .2); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -70px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- 3. Layout helpers ----------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark {
  background:
    radial-gradient(1100px 600px at 15% -20%, rgba(76, 191, 130, .14), transparent 62%),
    var(--ink);
  color: var(--text-invert);
}
.section--dark p { color: var(--text-invert-soft); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .74rem;
  color: var(--brand);
  margin: 0;
}
.section--dark .eyebrow { color: var(--brand-3); }

.section-head { max-width: 62ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: .6rem 0 .8rem;
}
.section-head p { color: var(--text-soft); font-size: 1.05rem; }
.section--dark .section-head p { color: var(--text-invert-soft); }

.prose p {
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 68ch;
}
.prose p + p { margin-top: 1.1rem; }
.section--dark .prose p { color: var(--text-invert-soft); }

.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 60ch; }

/* ---------- 4. Buttons ----------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  padding: .95rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease,
    border-color .25s ease, color .25s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: 0 10px 24px -12px rgba(11, 94, 48, .55);
}
.btn--primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #1ba24f, #148a41);
  box-shadow: 0 16px 32px -12px rgba(11, 94, 48, .6);
}

.btn--secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn--secondary:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); }

.section--dark .btn--secondary,
.page-hero .btn--secondary {
  color: var(--text-invert);
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .2);
  box-shadow: none;
}
.section--dark .btn--secondary:hover,
.page-hero .btn--secondary:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
}

.btn--lg { padding: 1.1rem 1.9rem; font-size: 1.05rem; }
.btn--sm { padding: .6rem 1.05rem; font-size: .85rem; }
.btn[aria-disabled="true"] { cursor: default; }

/* ---------- 5. Announcement strip ----------------------------- */
.announce {
  background: var(--brand);
  color: #fff;
  font-size: .86rem;
}
.announce[hidden] { display: none; }
.announce__inner { display: flex; align-items: center; gap: 14px; padding: 9px 0; }
.announce__text { margin: 0; font-weight: 500; display: flex; align-items: center; gap: 9px; }
.announce__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  flex: none;
  animation: pulse 2.6s infinite;
}
.announce__cta {
  margin-left: auto;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .55);
  padding: 5px 13px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .2s ease;
}
.announce__cta:hover { background: rgba(255, 255, 255, .16); }
.announce__close {
  background: none; border: 0;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  opacity: .85;
}
.announce__close:hover { opacity: 1; }
@media (max-width: 640px) {
  .announce__text { font-size: .78rem; }
  .announce__cta { display: none; }
}

/* ---------- 6. Header / navigation --------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.site-header.is-scrolled {
  background: #fff;
  border-color: var(--border);
  box-shadow: 0 6px 24px -14px rgba(12, 40, 26, .28);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.01em;
  font-size: 1rem;
}
.brand__mark { width: 30px; height: 30px; flex: none; object-fit: contain; border-radius: 50%; }
.brand__name { white-space: nowrap; }
@media (max-width: 400px) { .brand__name { font-size: .86rem; } }

.nav { display: flex; align-items: center; }
.nav__menu {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__menu a:not(.btn) {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--text-soft);
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s ease, background .2s ease;
}
.nav__menu a:not(.btn):hover { color: var(--text); background: var(--bg-soft); }
.nav__menu a.is-active { color: var(--text); }
.nav__menu a.is-active::after {
  content: "";
  display: block;
  height: 2px;
  margin: 5px 12px 0;
  border-radius: 2px;
  background: var(--brand);
}

.nav__toggle { display: none; }
.nav__backdrop { display: none; }

/* ---- Mobile / tablet: hamburger + slide-in drawer ---- */
@media (max-width: 1024px) {
  .nav__toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
    position: relative;
    z-index: 70;
  }
  .nav__toggle-bar {
    width: 20px; height: 2px;
    background: var(--text);
    margin: 0 auto;
    border-radius: 2px;
    transition: transform .28s ease, opacity .2s ease;
  }
  body.nav-open .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav__toggle-bar:nth-child(2) { opacity: 0; }
  body.nav-open .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav__menu {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(84vw, 360px);
    height: 100%;
    height: 100dvh;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .32s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .32s;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    padding: 88px 24px 32px;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 60;
  }
  body.nav-open .nav__menu {
    transform: translateX(0);
    visibility: visible;
    transition: transform .32s cubic-bezier(.4, 0, .2, 1);
  }
  .nav__menu > li { width: 100%; }
  .nav__menu a:not(.btn) { display: block; width: 100%; font-size: 1.05rem; padding: 14px 12px; }
  .nav__menu a.is-active::after { display: none; }
  .nav__menu a.is-active { color: var(--brand); font-weight: 600; }
  .nav__cta-item { margin-top: 18px; }
  .nav__cta-item .btn { width: 100%; }

  .nav__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(8, 24, 16, .5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 55;
  }
  body.nav-open .nav__backdrop { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
}

/* ---------- 7. Hero & page hero ----------------------------- */
.hero { position: relative; overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 7vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  margin: .6rem 0 1rem;
}
.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-invert-soft);
  max-width: 46ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.hero__note { margin-top: 1.3rem; font-size: .9rem; color: var(--text-invert-soft); }
.hero__visual { position: relative; }
.hero__visual svg { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(4, 24, 14, .5)); }

@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 520px; margin-inline: auto; }
}

.page-hero { padding: clamp(80px, 11vw, 150px) 0 clamp(44px, 6vw, 72px); }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: .7rem 0 1rem;
}
.page-hero p {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-invert-soft);
  max-width: 54ch;
}
.page-hero .hero__actions { margin-top: 1.9rem; }

/* ---------- 8. Cards & features ---------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(27, 162, 79, .12);
  color: var(--brand);
  margin-bottom: 16px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 .45rem; }
.card p { color: var(--text-soft); font-size: .98rem; margin: 0; }

.section--dark .card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); }
.section--dark .card p { color: var(--text-invert-soft); }
.section--dark .card__icon { color: var(--brand-3); }

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(44px, 6vw, 76px) 0;
}
.feature + .feature { border-top: 1px solid var(--border); }
.feature__media {
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(18px, 4vw, 40px);
}
.feature__media svg { width: 100%; height: 100%; }
.feature--reverse .feature__media { order: 2; }
.feature h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: .5rem 0 .7rem;
}
.feature p { color: var(--text-soft); font-size: 1.03rem; line-height: 1.7; }

@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature--reverse .feature__media { order: 0; }
}

/* ---------- 9. Launch banner component -------------------- */
.launch-banner { padding: clamp(48px, 7vw, 96px) 0; }
.launch-banner__inner {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(44px, 7vw, 84px) clamp(24px, 5vw, 64px);
  background:
    radial-gradient(680px 340px at 50% -25%, rgba(76, 191, 130, .2), transparent 65%),
    var(--ink);
  color: var(--text-invert);
  border: 1px solid rgba(255, 255, 255, .09);
}
.launch-banner__inner .eyebrow { color: var(--brand-3); }
.launch-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  line-height: 1.14;
  letter-spacing: -.02em;
  margin: .7rem auto .8rem;
  max-width: 22ch;
}
.launch-banner__text {
  color: var(--text-invert-soft);
  max-width: 54ch;
  margin: 0 auto 1.9rem;
  font-size: 1.05rem;
}

/* ---------- 10. Information page -------------------------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-sm);
}
.info-card h2 {
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-family: var(--font-display);
  margin: 0 0 .9rem;
}
.info-card p { margin: .25rem 0; font-size: 1.05rem; color: var(--text); }
.info-card address { font-style: normal; }
.info-card a { color: var(--brand); text-decoration: none; font-weight: 500; }
.info-card a:hover { text-decoration: underline; }
.info-card .big { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }

/* ---------- 10b. Inspirations page ---------------------- */
.quote {
  margin: 0;
  border-left: 3px solid var(--brand);
  padding: .4rem 0 .4rem 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1.35;
  letter-spacing: -.015em;
  color: var(--text);
}
.quote cite {
  display: block;
  margin-top: .9rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--text-soft);
}
.section--dark .quote { color: var(--text-invert); border-left-color: var(--brand-3); }
.section--dark .quote cite { color: var(--text-invert-soft); }

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 4vw, 48px);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: clamp(14px, 3vw, 28px);
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.timeline li:last-child { border-bottom: 1px solid var(--border); }
.timeline .timeline__year {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand);
  font-size: 1rem;
}
.timeline .timeline__body { color: var(--text-soft); font-size: 1rem; line-height: 1.65; }
.timeline .timeline__body strong { color: var(--text); font-weight: 600; }
@media (max-width: 560px) {
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- 11. Footer ---------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--text-invert-soft);
  padding: clamp(56px, 8vw, 92px) 0 40px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr .8fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
}
.site-footer .brand { color: var(--text-invert); }
.site-footer__brand p { margin: 1rem 0 0; max-width: 42ch; font-size: .96rem; }
.site-footer__heading {
  color: var(--text-invert);
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-footer a { color: var(--text-invert-soft); text-decoration: none; }
.site-footer a:hover { color: var(--text-invert); }
.site-footer address { font-style: normal; display: grid; gap: .4rem; font-size: .96rem; }
.site-footer__bottom {
  margin-top: clamp(36px, 6vw, 64px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  justify-content: space-between;
  gap: 12px 28px;
  flex-wrap: wrap;
  font-size: .85rem;
}
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- 12. Motion / reveal ------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s cubic-bezier(.2, .6, .2, 1), transform .7s cubic-bezier(.2, .6, .2, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

.floaty { animation: floaty 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.floaty--2 { animation-delay: -2.3s; }
.floaty--3 { animation-delay: -4.6s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); }
  70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- 13. Small-screen tuning --------------------- */
@media (max-width: 720px) {
  .section { padding: clamp(52px, 12vw, 80px) 0; }
  .hero__grid { gap: 28px; }
  .hero__visual { max-width: 440px; }
  .feature { padding: 32px 0; gap: 24px; }
  .launch-banner__inner { padding: 40px 22px; }
}

@media (max-width: 560px) {
  .hero__actions,
  .cta-band .hero__actions,
  .page-hero .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .launch-banner .btn,
  .cta-band > .btn { width: 100%; }
  .section-head h2 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .announce__inner { padding: 8px 0; }
  .announce__text { font-size: .74rem; line-height: 1.35; }
}

@media (max-width: 360px) {
  .brand__name { font-size: .78rem; }
  .container { padding-inline: 16px; }
}
