/* ============================================================
   Strata — neutral placeholder recreation
   Design tokens recovered from StackPrism site_experience_profile.v1
   (target: https://stripe.com/jp). Brand & copy fully neutralized.
   ============================================================ */

:root {
  /* --- Colors (from profile designTokens.colors) --- */
  --brand: #533afd;            /* rgb(83,58,253) primary purple */
  --brand-strong: #3f29d6;     /* hover/darker variant */
  --ink: #061b31;             /* rgb(6,27,49) deep navy text */
  --muted: #64748d;           /* rgb(100,116,141) gray support text */
  --lilac: #e8e9ff;           /* rgb(232,233,255) */
  --lilac-2: #d6d9fc;         /* rgb(214,217,252) */
  --line: #e5edf5;            /* rgb(229,237,245) borders */
  --white: #ffffff;
  --bg: #ffffff;

  /* --- Aurora gradient (signature hero ribbon: orange -> pink -> purple) --- */
  --aurora: linear-gradient(
    115deg,
    #ffd27a 0%,
    #ff9a5c 14%,
    #ff5fa2 38%,
    #d65cff 60%,
    #7a5cff 80%,
    #533afd 100%
  );

  /* --- Typography --- */
  /* Profile font: sohne-var,"SF Pro Display". Expressive substitute below. */
  --font-display: "Space Grotesk", "SF Pro Display", sans-serif;
  --font-body: "Sora", system-ui, -apple-system, sans-serif;
  --fs-base: 16px;
  --fs-sm: 14px;

  /* --- Radii (from profile: 6px / 4px) --- */
  --radius: 6px;
  --radius-sm: 4px;
  --radius-lg: 14px;

  /* --- Signature long shadow (verbatim from profile shadows) --- */
  --shadow-signature: rgba(0, 0, 0, 0.1) 0px 30px 60px -50px,
    rgba(50, 50, 93, 0.25) 0px 30px 60px -10px;
  --shadow-soft: 0 2px 8px rgba(6, 27, 49, 0.06);

  /* --- Layout --- */
  --maxw: 1180px;
  --gutter: 24px;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.02em;
}

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

/* ---------- Buttons (component priority #1, count 20) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 11px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.24s, color 0.24s, border-color 0.24s,
    transform 0.25s, box-shadow 0.24s;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--brand);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--brand-strong);
  box-shadow: 0 8px 22px -10px rgba(83, 58, 253, 0.7);
}

.btn--ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--lilac-2);
  background: #fbfbff;
}

.btn--lg {
  font-size: var(--fs-base);
  padding: 14px 24px;
}

.btn__chev {
  transition: transform 0.25s;
}

.btn:hover .btn__chev {
  transform: translateX(3px);
}

/* ---------- Header / Nav (landmark: header, nav; component nav count 1) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.04em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.brand__mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--aurora);
  background-size: 200% 200%;
  animation: auroraShift 9s ease-in-out infinite alternate;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.24s;
}

.nav__links a:hover {
  color: var(--brand);
}

.nav__caret {
  width: 8px;
  height: 8px;
  opacity: 0.5;
}

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

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- Hero (full-bleed aurora, no cards) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
}

/* Right-half edge-to-edge aurora ribbon visual */
.hero__aurora {
  position: absolute;
  inset: 0 0 0 38%;
  background: var(--aurora);
  background-size: 200% 200%;
  animation: auroraShift 14s ease-in-out infinite alternate;
  -webkit-mask-image: radial-gradient(
    120% 130% at 78% 40%,
    #000 38%,
    rgba(0, 0, 0, 0.85) 55%,
    transparent 82%
  );
  mask-image: radial-gradient(
    120% 130% at 78% 40%,
    #000 38%,
    rgba(0, 0, 0, 0.85) 55%,
    transparent 82%
  );
  filter: saturate(1.05);
}

/* Soft ribbon streaks overlaid on aurora for the silk-ribbon feel */
.hero__aurora::before,
.hero__aurora::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgba(255, 255, 255, 0.35) 48%,
    transparent 64%
  );
  transform: rotate(-8deg);
  mix-blend-mode: screen;
  animation: ribbonDrift 18s ease-in-out infinite alternate;
}

.hero__aurora::after {
  animation-duration: 22s;
  animation-direction: alternate-reverse;
  opacity: 0.6;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding-block: 40px;
}

.hero__eyebrow {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin: 0 0 26px;
  font-weight: 500;
}

.hero__eyebrow b {
  color: var(--ink);
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  font-weight: 700;
}

.hero h1 .accent {
  color: var(--brand);
}

.hero__sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  max-width: 30ch;
  margin: 22px 0 34px;
}

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

.gicon {
  width: 16px;
  height: 16px;
}

/* ---------- Logo wall ---------- */
.logos {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  padding: 30px 0;
}

.logos__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.logos__item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.01em;
  color: #9aa7b8;
  opacity: 0.9;
  transition: color 0.3s, opacity 0.3s;
}

.logos__item:hover {
  color: var(--ink);
  opacity: 1;
}

/* ---------- Generic section ---------- */
.section {
  padding-block: 96px;
}

.section__head {
  max-width: 720px;
  margin-bottom: 52px;
}

.section__head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
}

.section__head p {
  color: var(--muted);
  font-size: 18px;
  margin-top: 16px;
}

/* ---------- Feature card grid (component priority #2, count 20) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s, box-shadow 0.24s, border-color 0.24s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-signature);
  border-color: transparent;
}

.card__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--lilac);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--brand);
}

.card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: var(--fs-sm);
  margin: 0;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  color: var(--brand);
  font-weight: 600;
  font-size: var(--fs-sm);
}

.card__link .btn__chev {
  transition: transform 0.25s;
}

.card:hover .card__link .btn__chev {
  transform: translateX(3px);
}

/* ---------- Platform split (tabs component, count 5) ---------- */
.platform {
  background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
}

.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 12px 6px;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}

.tab:hover {
  color: var(--ink);
}

.tab.is-active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.tabpanel {
  display: none;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.tabpanel.is-active {
  display: grid;
  animation: fadeUp 0.5s ease both;
}

.tabpanel h3 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
}

.tabpanel p {
  color: var(--muted);
  font-size: 17px;
  margin: 16px 0 0;
}

.tabpanel__list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.tabpanel__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
  color: var(--ink);
  font-size: var(--fs-base);
}

.tabpanel__list svg {
  flex: none;
  width: 18px;
  height: 18px;
  stroke: var(--brand);
  margin-top: 3px;
}

/* Mock billing panel (recreates the "Pro plan / usage" panel, neutralized) */
.mock {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 26px;
  box-shadow: var(--shadow-signature);
}

.mock__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.mock__row:last-child {
  border-bottom: 0;
}

.mock__label {
  color: var(--muted);
  font-size: var(--fs-sm);
}

.mock__value {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}

.mock__bar {
  height: 8px;
  border-radius: 99px;
  background: var(--lilac);
  margin-top: 16px;
  overflow: hidden;
}

.mock__bar span {
  display: block;
  height: 100%;
  width: 64%;
  border-radius: 99px;
  background: var(--aurora);
  background-size: 200% 200%;
  animation: auroraShift 8s ease-in-out infinite alternate;
}

/* ---------- Stats wall ---------- */
.stats {
  background: var(--ink);
  color: var(--white);
}

.stats h2 {
  color: var(--white);
}

.stats .section__head p {
  color: rgba(255, 255, 255, 0.66);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4vw, 48px);
  background: var(--aurora);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: auroraShift 10s ease-in-out infinite alternate;
}

.stat__label {
  color: rgba(255, 255, 255, 0.66);
  font-size: var(--fs-sm);
  margin-top: 8px;
}

/* ---------- Customer stories (list component, count 5) ---------- */
.stories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.story {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  background: var(--white);
  transition: box-shadow 0.24s, transform 0.25s;
}

.story:hover {
  box-shadow: var(--shadow-signature);
  transform: translateY(-3px);
}

.story__quote {
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 22px;
  line-height: 1.5;
}

.story__by {
  display: flex;
  align-items: center;
  gap: 12px;
}

.story__avatar {
  width: 40px;
  height: 40px;
  border-radius: 99px;
  background: var(--aurora);
  background-size: 200% 200%;
  flex: none;
}

.story__name {
  font-weight: 600;
  font-size: var(--fs-sm);
}

.story__role {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: 110px;
  background: var(--ink);
  color: var(--white);
}

.cta-band__aurora {
  position: absolute;
  inset: 0;
  background: var(--aurora);
  background-size: 200% 200%;
  opacity: 0.22;
  animation: auroraShift 16s ease-in-out infinite alternate;
}

.cta-band h2 {
  position: relative;
  color: var(--white);
  font-size: clamp(30px, 4vw, 46px);
}

.cta-band p {
  position: relative;
  color: rgba(255, 255, 255, 0.78);
  margin: 18px auto 32px;
  max-width: 50ch;
}

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

.cta-band .btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.cta-band .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding-block: 56px 36px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
}

.footer__brand .brand {
  margin-bottom: 14px;
}

.footer__brand p {
  color: var(--muted);
  font-size: var(--fs-sm);
  max-width: 28ch;
}

.footer__col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 14px;
  font-family: var(--font-body);
}

.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__col li {
  margin-bottom: 9px;
}

.footer__col a {
  color: var(--ink);
  font-size: var(--fs-sm);
  transition: color 0.24s;
}

.footer__col a:hover {
  color: var(--brand);
}

.footer__bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Scroll-reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Keyframes ---------- */
@keyframes auroraShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes ribbonDrift {
  0% {
    transform: rotate(-8deg) translateX(-6%);
  }
  100% {
    transform: rotate(-4deg) translateX(8%);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .tabpanel.is-active {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav__links,
  .nav__actions .btn--ghost {
    display: none;
  }
  .nav__toggle {
    display: block;
    margin-left: auto;
  }

  /* mobile menu open state */
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 18px var(--gutter);
  }

  .hero {
    min-height: auto;
    padding-block: 60px 30px;
  }
  .hero__aurora {
    inset: 0;
    opacity: 0.5;
    -webkit-mask-image: radial-gradient(
      130% 90% at 70% 18%,
      #000 30%,
      transparent 70%
    );
    mask-image: radial-gradient(130% 90% at 70% 18%, #000 30%, transparent 70%);
  }
  .hero__content {
    max-width: 100%;
  }
  .section {
    padding-block: 64px;
  }
}

@media (max-width: 560px) {
  .features,
  .stats__grid,
  .stories,
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__cta .btn {
    justify-content: center;
  }
}
