/* =========================================================
   Substack JP — LP
   Design system: dark glassmorphism, Apple HIG, high contrast
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* palette */
  --ink: #07080d;
  --ink-2: #0c0e16;
  --paper: #fbfbfd;
  --text: #ffffff;
  --text-dim: rgba(251, 251, 253, 0.72);
  --text-mute: rgba(251, 251, 253, 0.5);

  --orange: #ff6719;
  --orange-bright: #ff8a4c;
  --orange-deep: #e04f00;
  --violet: #8b5cf6;
  --electric: #5b8cff;

  /* glass */
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  --glass-bg-strong: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055));
  --glass-border: rgba(255, 255, 255, 0.13);
  --glass-border-strong: rgba(255, 255, 255, 0.22);
  --glass-hi: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 24px 70px -28px rgba(0, 0, 0, 0.75);

  /* type */
  --f-display: "Inter", "Noto Sans JP", system-ui, sans-serif;
  --f-jp: "Noto Sans JP", "Inter", system-ui, sans-serif;
  --f-mono: "Space Mono", "SFMono-Regular", ui-monospace, monospace;

  /* shape */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;

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

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-jp);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--orange); color: #fff; }

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

/* =========================================================
   Background layers
   ========================================================= */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg__gradient {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(255, 103, 25, 0.18), transparent 55%),
    radial-gradient(120% 100% at 100% 20%, rgba(91, 140, 255, 0.16), transparent 55%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}
.orb--1 {
  width: 46vw; height: 46vw; max-width: 720px; max-height: 720px;
  top: -8%; left: -6%;
  background: radial-gradient(circle, var(--orange) 0%, transparent 65%);
}
.orb--2 {
  width: 40vw; height: 40vw; max-width: 620px; max-height: 620px;
  top: 18%; right: -10%;
  background: radial-gradient(circle, var(--violet) 0%, transparent 65%);
  opacity: 0.45;
}
.orb--3 {
  width: 50vw; height: 50vw; max-width: 780px; max-height: 780px;
  bottom: -20%; left: 30%;
  background: radial-gradient(circle, var(--electric) 0%, transparent 65%);
  opacity: 0.35;
}
.bg__noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================
   Glass utilities
   ========================================================= */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-hi);
}
.glass--strong {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(38px) saturate(200%);
  backdrop-filter: blur(38px) saturate(200%);
  border: 1px solid var(--glass-border-strong);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  --btn-pad-y: 0.7rem;
  --btn-pad-x: 1.3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: 999px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s;
  white-space: nowrap;
  cursor: pointer;
}
.btn svg { transition: transform 0.35s var(--ease); }
.btn--primary {
  background: linear-gradient(135deg, var(--orange-bright), var(--orange) 55%, var(--orange-deep));
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(255, 103, 25, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 42px -10px rgba(255, 103, 25, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.btn--lg { --btn-pad-y: 0.95rem; --btn-pad-x: 1.7rem; font-size: 1.02rem; }
.btn--xl { --btn-pad-y: 1.15rem; --btn-pad-x: 2.1rem; font-size: 1.1rem; }

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 28px));
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0.7rem 0.6rem 1.1rem;
  border-radius: 999px;
  transition: background 0.4s, box-shadow 0.4s, border-color 0.4s;
}
.nav.scrolled {
  background: rgba(12, 14, 22, 0.6);
  box-shadow: var(--glass-shadow);
}
.nav__brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; font-family: var(--f-display); letter-spacing: -0.01em; }
.nav__logo {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--orange-bright), var(--orange-deep));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}
.nav__name { font-size: 1.02rem; }
.nav__name em { font-style: normal; color: var(--orange-bright); font-family: var(--f-mono); font-weight: 700; font-size: 0.78em; margin-left: 2px; }
.nav__links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.25s;
}
.nav__links a:hover { color: var(--text); }
.nav__cta { margin-left: 0.2rem; padding: 0.55rem 1.1rem; font-size: 0.88rem; }

/* =========================================================
   Layout primitives
   ========================================================= */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 9rem) 1.4rem;
}
.section--alt {
  max-width: none;
  margin-inline: 0;
  padding-inline: 1.4rem;
}
.section--alt > * { max-width: 1180px; margin-inline: auto; }
.section__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.kicker {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-bright);
  margin-bottom: 1rem;
  display: inline-block;
}
.kicker::before { content: "/// "; opacity: 0.5; }
.section__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4.4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(7rem, 16vh, 11rem) 1.4rem 5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  min-height: 92vh;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem 0.5rem 0.8rem;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-bottom: 1.8rem;
}
.badge__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange-bright);
  box-shadow: 0 0 0 4px rgba(255, 103, 25, 0.25);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 103, 25, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(255, 103, 25, 0); }
}
.hero__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 1.6rem;
}
.grad-text {
  background: linear-gradient(115deg, var(--orange-bright), var(--orange) 40%, #ffd2a8 70%, var(--orange-bright));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  color: var(--text-dim);
  max-width: 38ch;
  margin-bottom: 2.4rem;
  line-height: 1.7;
}
.hero__sub strong { color: var(--text); font-weight: 700; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 3rem; }
.hero__stats {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  padding: 1.3rem 1.8rem;
  border-radius: var(--r-lg);
  max-width: 540px;
}
.stat__num {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff, rgba(255,255,255,0.6));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--text-mute);
  letter-spacing: 0.02em;
  margin-top: 0.15rem;
}
.stat__divider { width: 1px; height: 36px; background: var(--glass-border); }

/* ---- device mockup ---- */
.hero__device { display: grid; place-items: center; }
.device {
  width: min(330px, 100%);
  border-radius: 44px;
  padding: 10px;
  transform: rotate(4deg);
  position: relative;
}
.device__notch {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 26px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}
.device__screen {
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(180deg, #11131c, #0a0b12);
  padding: 56px 18px 24px;
  border: 1px solid rgba(255,255,255,0.06);
}
.device__bar { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.device__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--violet));
  flex-shrink: 0;
}
.device__title { font-weight: 700; font-size: 0.92rem; }
.device__meta { font-family: var(--f-mono); font-size: 0.68rem; color: var(--text-mute); }
.device__hero {
  height: 90px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,103,25,0.4), rgba(139,92,246,0.35));
  margin-bottom: 0.9rem;
}
.device__line { height: 9px; border-radius: 4px; background: rgba(255,255,255,0.12); margin-bottom: 0.5rem; }
.device__line--lg { width: 75%; height: 12px; background: rgba(255,255,255,0.22); margin-bottom: 0.7rem; }
.device__line--sm { width: 45%; }
.device__btn {
  margin-top: 1.1rem;
  display: grid; place-items: center;
  padding: 0.7rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orange-bright), var(--orange-deep));
  font-family: var(--f-display); font-weight: 600; font-size: 0.85rem;
}

/* =========================================================
   Why grid
   ========================================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.card {
  padding: 2rem 1.9rem;
  border-radius: var(--r-lg);
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.card:hover { transform: translateY(-4px); border-color: var(--glass-border-strong); }
.card__icon {
  font-size: 1.8rem;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: rgba(255,103,25,0.12);
  border: 1px solid rgba(255,103,25,0.25);
  margin-bottom: 1.2rem;
}
.card h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.015em;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.card p { color: var(--text-dim); font-size: 0.97rem; line-height: 1.7; }

/* =========================================================
   Features
   ========================================================= */
.feat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: center;
}
.feat__col { display: flex; flex-direction: column; gap: 1.2rem; }
.feat__item {
  padding: 1.7rem 1.7rem;
  border-radius: var(--r-md);
  transition: transform 0.4s var(--ease);
}
.feat__item:hover { transform: translateX(4px); }
.feat__tag {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-bright);
  display: inline-block;
  margin-bottom: 0.7rem;
}
.feat__item h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.feat__item p { color: var(--text-dim); font-size: 0.93rem; line-height: 1.65; }
.feat__phone {
  padding: 1.2rem;
  border-radius: var(--r-xl);
  transform: rotate(-2deg);
}
.feat__phone-inner { display: flex; flex-direction: column; gap: 0.8rem; }
.feat__phone-title { font-family: var(--f-mono); font-size: 0.72rem; color: var(--text-mute); letter-spacing: 0.06em; margin-bottom: 0.2rem; }
.feat__phone-card { padding: 0.8rem; border-radius: 14px; }
.feat__phone-thumb { height: 64px; border-radius: 9px; margin-bottom: 0.6rem; background: linear-gradient(135deg, rgba(255,103,25,0.5), rgba(139,92,246,0.4)); }
.feat__phone-thumb--2 { background: linear-gradient(135deg, rgba(91,140,255,0.5), rgba(255,103,25,0.35)); }
.feat__phone-thumb--3 { background: linear-gradient(135deg, rgba(139,92,246,0.5), rgba(91,140,255,0.4)); }
.feat__phone-t { font-size: 0.88rem; font-weight: 600; line-height: 1.4; margin-bottom: 0.25rem; }
.feat__phone-m { font-family: var(--f-mono); font-size: 0.68rem; color: var(--text-mute); }
.feat__phone-paid { font-family: var(--f-mono); font-size: 0.66rem; color: var(--orange-bright); margin-top: 0.35rem; }

/* =========================================================
   Creator spotlight
   ========================================================= */
.creator {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--r-xl);
}
.creator__visual { position: relative; display: grid; place-items: center; padding: 1.5rem; }
.creator__avatar {
  width: 200px; height: 200px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--orange-bright), var(--orange-deep) 50%, var(--violet));
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 4rem;
  color: #fff;
  box-shadow: 0 30px 70px -20px rgba(255,103,25,0.6), inset 0 2px 0 rgba(255,255,255,0.3);
}
.creator__badge {
  position: absolute;
  bottom: 0.5rem; right: 0;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--text);
}
.creator__handle { font-family: var(--f-mono); color: var(--orange-bright); font-size: 0.95rem; margin-bottom: 0.5rem; }
.creator__name { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.02em; margin-bottom: 1rem; }
.creator__desc { color: var(--text-dim); font-size: 1.02rem; line-height: 1.75; margin-bottom: 1.5rem; max-width: 52ch; }
.creator__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.8rem; }
.creator__tags li {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
}

/* =========================================================
   Voices
   ========================================================= */
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.voice {
  padding: 1.9rem 1.7rem;
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
  transition: transform 0.4s var(--ease);
}
.voice:hover { transform: translateY(-4px); }
.voice blockquote {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text);
  position: relative;
  padding-left: 0.3rem;
}
.voice figcaption { font-family: var(--f-mono); font-size: 0.78rem; color: var(--text-mute); }

/* =========================================================
   CTA
   ========================================================= */
.cta-section { padding-block: clamp(4rem, 8vw, 7rem); }
.cta {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  border-radius: var(--r-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 100% at 50% 0%, rgba(255,103,25,0.18), transparent 70%);
  pointer-events: none;
}
.cta__title { font-family: var(--f-display); font-weight: 900; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1.2rem; position: relative; }
.cta__sub { color: var(--text-dim); font-size: 1.08rem; line-height: 1.7; max-width: 50ch; margin: 0 auto 2.2rem; position: relative; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; position: relative; margin-bottom: 1.3rem; }
.cta__note { font-family: var(--f-mono); font-size: 0.76rem; color: var(--text-mute); position: relative; }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 3rem 1.4rem;
  margin-top: 2rem;
}
.footer__inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; }
.footer__brand { display: flex; align-items: center; gap: 0.7rem; }
.footer__title { font-family: var(--f-display); font-weight: 700; font-size: 0.95rem; }
.footer__sub { font-size: 0.78rem; color: var(--text-mute); }
.footer__links { display: flex; gap: 1.4rem; margin-left: auto; flex-wrap: wrap; }
.footer__links a { font-size: 0.85rem; color: var(--text-dim); transition: color 0.25s; }
.footer__links a:hover { color: var(--text); }
.footer__copy { width: 100%; font-family: var(--f-mono); font-size: 0.72rem; color: var(--text-mute); padding-top: 1.5rem; border-top: 1px solid var(--glass-border); margin-top: 1rem; }

/* =========================================================
   Scroll reveal
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
.br-sp { display: inline; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; min-height: auto; padding-top: 8rem; }
  .creator { grid-template-columns: 1fr; text-align: center; }
  .creator__visual { padding: 0; }
  .creator__desc { margin-inline: auto; }
  .creator__tags { justify-content: center; }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .feat { grid-template-columns: 1fr; }
  .feat__phone { display: none; }
  .voices { grid-template-columns: 1fr; }
  .hero__stats { flex-wrap: wrap; gap: 1.2rem; }
  .stat__divider { display: none; }
  .br-sp { display: none; }
  .device { transform: rotate(0deg); }
  .feat__phone { display: none; }
}

@media (max-width: 460px) {
  .nav__cta { padding: 0.5rem 0.9rem; font-size: 0.8rem; }
  .nav__name { display: none; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .orb { animation: none !important; }
}
