/* ============================================================
   STUDIO hand — Generative AI Ad Video Production LP
   Midnight Executive Palette
   ============================================================ */

:root {
  --ink: #0A0A0F;          /* near-black, deep night */
  --ink-2: #12121A;        /* card surface on dark */
  --navy: #1E2761;         /* deep navy */
  --accent: #FF6B35;       /* coral / vermillion */
  --accent-deep: #E63946;  /* hot red */
  --paper: #FAFAFA;        /* light bg */
  --paper-2: #FFFFFF;
  --line: rgba(255,255,255,0.10);
  --line-dark: rgba(10,10,15,0.10);
  --text-dim: #A0A0B0;
  --text-mid: #6A6A78;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans-jp: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Sans", sans-serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --display: "Bebas Neue", "Inter", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans), var(--sans-jp);
  background: var(--ink);
  color: #fff;
  margin: 0;
  font-feature-settings: "palt";
  letter-spacing: 0.01em;
}

/* ===== Eyebrow / section label ===== */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow .num {
  font-family: var(--mono);
  font-size: 11px;
  opacity: 0.7;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

/* ===== Headlines ===== */
.h-display {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.h-jp {
  font-family: var(--sans-jp);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.num-display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.85;
}

/* ===== Container ===== */
.container-x {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}
@media (max-width: 640px) {
  .container-x { padding-left: 20px; padding-right: 20px; }
}

/* ===== Section frame ===== */
.section {
  position: relative;
  padding: 140px 0;
}
@media (max-width: 768px) {
  .section { padding: 80px 0; }
}

.section-dark { background: var(--ink); color: #fff; }
.section-light { background: var(--paper); color: var(--ink); }
.section-paper { background: #fff; color: var(--ink); }

/* Vertical chapter line */
.chapter-rail {
  position: absolute;
  top: 0; bottom: 0;
  left: 32px;
  width: 1px;
  background: var(--line);
  pointer-events: none;
}
.section-light .chapter-rail,
.section-paper .chapter-rail { background: var(--line-dark); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 28px;
  font-family: var(--sans-jp);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(.2,.7,.3,1);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(255,107,53,0);
}
.btn-primary:hover {
  background: #ff7a48;
  box-shadow: 0 10px 40px -10px rgba(255,107,53,0.7), 0 0 0 1px rgba(255,107,53,0.3);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover { border-color: #fff; transform: translateY(-2px); }
.btn-ghost-dark {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(10,10,15,0.25);
}
.btn-ghost-dark:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-arrow {
  width: 18px; height: 1px; background: currentColor; position: relative; transition: width .3s;
}
.btn-arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .btn-arrow { width: 26px; }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(.2,.7,.3,1), transform 1s cubic-bezier(.2,.7,.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal-stagger.visible > * {
  opacity: 1;
  transform: none;
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: .15s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: .25s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: .35s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: .45s; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: 100px;
  padding-top: 140px;
  background: radial-gradient(ellipse at 70% 30%, #1a1a2e 0%, #0A0A0F 60%);
}
.hero-canvas {
  position: absolute; inset: 0; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(10,10,15,0.6) 0%, transparent 60%),
    linear-gradient(180deg, rgba(10,10,15,0) 60%, rgba(10,10,15,1) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; width: 100%; }

.hero-headline {
  font-family: var(--sans-jp);
  font-weight: 800;
  font-size: clamp(38px, 6vw, 88px);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.hero-headline .accent { color: var(--accent); }
.hero-headline .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: charIn .9s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes charIn { to { opacity: 1; transform: none; } }

.hero-sub {
  font-family: var(--sans-jp);
  font-size: clamp(15px, 1.4vw, 19px);
  color: var(--text-dim);
  line-height: 1.9;
  max-width: 560px;
}

/* Hero ticker / metric strip */
.metric-strip {
  display: flex;
  gap: 60px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.metric-strip .m {
  display: flex; flex-direction: column; gap: 6px;
}
.metric-strip .m-num {
  font-family: var(--display);
  font-size: 48px;
  line-height: 1;
  color: #fff;
}
.metric-strip .m-num .small { font-size: 28px; opacity: .7; }
.metric-strip .m-lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ===== Top nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px 32px;
  display: flex; justify-content: space-between; align-items: center;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,15,0.78);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.nav-logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: #fff;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo .mark {
  width: 22px; height: 22px;
  border: 1.5px solid var(--accent);
  position: relative;
}
.nav-logo .mark::after {
  content: ""; position: absolute; inset: 4px;
  background: var(--accent);
}
.nav-links {
  display: flex; gap: 36px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.nav-links a { color: inherit; text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: #fff; }
@media (max-width: 900px) { .nav-links { display: none; } }

/* ===== Problem cards ===== */
.problem-card {
  border: 1px solid var(--line-dark);
  padding: 48px 36px;
  background: #fff;
  position: relative;
  transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}
.problem-card:hover {
  transform: translateY(-6px);
  border-color: var(--ink);
  box-shadow: 0 20px 50px -20px rgba(10,10,15,0.2);
}
.problem-card .idx {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .15em;
  color: var(--accent);
}
.problem-card .num {
  font-family: var(--display);
  font-size: 80px;
  line-height: 1;
  color: var(--ink);
  margin: 24px 0 8px;
}
.problem-card .num .unit { font-size: 28px; opacity: .55; margin-left: 4px; }

/* ===== Strength cards (hover reveal) ===== */
.strength-card {
  position: relative;
  border: 1px solid var(--line);
  padding: 56px 36px 40px;
  min-height: 320px;
  overflow: hidden;
  transition: transform .5s ease, border-color .5s ease, background .5s ease;
  cursor: default;
}
.strength-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(255,107,53,0.06), transparent 60%);
}
.strength-card .idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--accent);
}
.strength-card .num {
  font-family: var(--display);
  font-size: 132px;
  line-height: 0.88;
  margin: 28px 0 16px;
  color: #fff;
}
.strength-card .num .small { font-size: 56px; opacity: .65; }
.strength-card .num .superscript { font-size: 60px; vertical-align: top; }
.strength-card .label {
  font-family: var(--sans-jp);
  font-weight: 700;
  font-size: 18px;
}
.strength-card .reveal-text {
  position: absolute;
  left: 36px; right: 36px; bottom: 36px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}
.strength-card:hover .reveal-text { opacity: 1; transform: none; }

/* ===== Timeline (process) ===== */
.timeline-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  position: relative;
  gap: 0;
}
.timeline-track::before {
  content: ""; position: absolute;
  top: 22px; left: 6%; right: 6%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4) 10%, rgba(255,255,255,.4) 90%, transparent);
}
.tl-step { padding: 0 12px; }
.tl-dot {
  width: 12px; height: 12px;
  background: var(--ink);
  border: 1px solid var(--accent);
  border-radius: 50%;
  margin: 16px auto 32px;
  position: relative;
  z-index: 1;
}
.tl-dot::after {
  content: ""; position: absolute; inset: 3px;
  background: var(--accent);
  border-radius: 50%;
}
.tl-day {
  font-family: var(--display);
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
}
.tl-title {
  font-family: var(--sans-jp);
  font-weight: 700;
  font-size: 18px;
  margin: 12px 0 10px;
}
.tl-desc { font-size: 13px; color: var(--text-dim); line-height: 1.7; }

@media (max-width: 768px) {
  .timeline-track { grid-template-columns: 1fr; gap: 32px; }
  .timeline-track::before { display: none; }
  .tl-dot { margin: 0 0 16px; }
  .tl-step { padding: 0; border-left: 1px solid var(--line); padding-left: 24px; }
}

/* ===== Positioning map ===== */
.map-wrap {
  position: relative;
  aspect-ratio: 1.2 / 1;
  border: 1px solid var(--line-dark);
  background:
    linear-gradient(rgba(10,10,15,0.04) 1px, transparent 1px) 0 0/40px 40px,
    linear-gradient(90deg, rgba(10,10,15,0.04) 1px, transparent 1px) 0 0/40px 40px,
    #fff;
}
.map-axis-x, .map-axis-y {
  position: absolute;
  background: rgba(10,10,15,0.2);
}
.map-axis-x { left: 0; right: 0; top: 50%; height: 1px; }
.map-axis-y { top: 0; bottom: 0; left: 50%; width: 1px; }
.map-label {
  position: absolute;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.plot {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.plot-dot {
  width: 10px; height: 10px;
  background: var(--ink);
  border-radius: 50%;
}
.plot-name {
  font-family: var(--sans-jp);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mid);
  white-space: nowrap;
}
.plot.us .plot-dot {
  background: var(--accent);
  width: 18px; height: 18px;
  box-shadow: 0 0 0 6px rgba(255,107,53,0.18), 0 0 0 14px rgba(255,107,53,0.08);
  animation: pulse 2.4s ease-in-out infinite;
}
.plot.us .plot-name {
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 6px rgba(255,107,53,0.2), 0 0 0 14px rgba(255,107,53,0.08); }
  50% { box-shadow: 0 0 0 10px rgba(255,107,53,0.1), 0 0 0 24px rgba(255,107,53,0.04); }
}

/* ===== Use case cells ===== */
.case-cell {
  padding: 48px 36px;
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
  position: relative;
  transition: background .4s ease;
}
.case-cell:hover { background: #fafafa; }
.case-cell .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--accent);
}
.case-cell h3 {
  font-family: var(--sans-jp);
  font-weight: 700;
  font-size: 24px;
  margin: 16px 0 24px;
}
.case-cell .row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px dashed rgba(10,10,15,0.12);
  font-size: 14px;
  line-height: 1.7;
}
.case-cell .row .lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--text-mid);
  padding-top: 4px;
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  gap: 0;
  align-items: stretch;
}
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; gap: 16px; }
}
.plan {
  border: 1px solid var(--line);
  padding: 56px 36px 44px;
  display: flex; flex-direction: column;
  background: var(--ink-2);
  position: relative;
}
.plan + .plan { border-left: none; }
@media (max-width: 900px) { .plan + .plan { border-left: 1px solid var(--line); } }
.plan.featured {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  margin: -16px 0;
  padding: 72px 36px 60px;
  z-index: 2;
  box-shadow: 0 30px 80px -30px rgba(255,107,53,0.5);
}
.plan.featured .plan-tag { color: var(--accent); }
.plan-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--accent);
}
.plan-name {
  font-family: var(--display);
  font-size: 56px;
  margin: 18px 0 8px;
  line-height: 1;
}
.plan-byline {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 32px;
}
.plan.featured .plan-byline { color: var(--text-mid); }
.plan-price {
  font-family: var(--sans-jp);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--text-dim);
}
.plan.featured .plan-price { color: var(--text-mid); }
.plan-price .yen {
  font-family: var(--display);
  font-size: 48px;
  color: #fff;
  margin-right: 2px;
  letter-spacing: -.01em;
}
.plan.featured .plan-price .yen { color: var(--ink); }
.plan-features {
  list-style: none; padding: 0; margin: 32px 0 36px;
  font-size: 13px; line-height: 1.9; color: var(--text-dim);
}
.plan.featured .plan-features { color: var(--text-mid); }
.plan-features li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  display: flex; gap: 12px;
}
.plan.featured .plan-features li { border-top-color: rgba(10,10,15,0.08); }
.plan-features li::before {
  content: "+";
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 600;
}
.plan-recommend {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  padding: 8px 14px;
}
.plan-cta {
  margin-top: auto;
}

/* ===== Comparison table ===== */
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.compare th, .compare td {
  padding: 22px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line-dark);
  vertical-align: middle;
}
.compare th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-mid);
  font-weight: 500;
  border-bottom: 1px solid rgba(10,10,15,0.3);
}
.compare .row-label {
  font-family: var(--sans-jp);
  font-weight: 700;
  font-size: 16px;
}
.compare .market { color: var(--text-mid); text-decoration: line-through; }
.compare .ours {
  font-family: var(--display);
  font-size: 24px;
  color: var(--ink);
}
.compare .save {
  font-family: var(--display);
  font-size: 28px;
  color: var(--accent-deep);
}
@media (max-width: 768px) {
  .compare, .compare thead, .compare tbody, .compare tr, .compare td { display: block; }
  .compare thead { display: none; }
  .compare tr { padding: 20px 0; border-bottom: 1px solid var(--line-dark); }
  .compare td { padding: 6px 0; border: none; }
  .compare td::before {
    content: attr(data-lbl);
    display: block;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .2em;
    color: var(--text-mid);
    margin-bottom: 4px;
    text-transform: uppercase;
  }
}

/* ===== Why-cheap pillars ===== */
.pillar {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 80px 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar .p-num {
  font-family: var(--display);
  font-size: 40px;
  color: var(--accent);
  line-height: 1;
}
.pillar h3 {
  font-family: var(--sans-jp);
  font-weight: 700;
  font-size: 22px;
  margin: 0;
  line-height: 1.4;
}
.pillar p { color: var(--text-dim); line-height: 1.9; font-size: 14px; margin: 0; }
@media (max-width: 768px) {
  .pillar { grid-template-columns: 1fr; gap: 12px; }
}

/* ===== Steps (vertical) ===== */
.flow {
  position: relative;
}
.flow-step {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 36px 0;
  border-top: 1px solid var(--line-dark);
  align-items: start;
}
.flow-step:last-child { border-bottom: 1px solid var(--line-dark); }
.flow-step .step-meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--accent);
}
.flow-step .step-meta .big {
  display: block;
  font-family: var(--display);
  font-size: 56px;
  color: var(--ink);
  margin-top: 6px;
  letter-spacing: -.02em;
}
.flow-step h3 {
  font-family: var(--sans-jp);
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 12px;
}
.flow-step p { color: var(--text-mid); line-height: 1.9; margin: 0; font-size: 14px; max-width: 600px; }
@media (max-width: 768px) {
  .flow-step { grid-template-columns: 1fr; gap: 16px; }
}

/* ===== Form ===== */
.form-row { display: grid; gap: 24px; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 12px 0;
  font-family: var(--sans-jp);
  font-size: 16px;
  outline: none;
  transition: border-color .3s;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.field textarea { resize: vertical; min-height: 100px; }

/* ===== Footer ===== */
.footer {
  background: #050507;
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
@media (max-width: 768px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
.footer-cols h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--text-dim);
  margin: 0 0 18px;
  text-transform: uppercase;
}
.footer-cols ul { list-style: none; padding: 0; margin: 0; font-size: 13px; line-height: 2.2; color: rgba(255,255,255,0.7); }
.footer-cols a { color: inherit; text-decoration: none; transition: color .2s; }
.footer-cols a:hover { color: var(--accent); }
.footer-meta {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--text-dim);
}

/* ===== Mega type util ===== */
.mega-line {
  font-family: var(--display);
  font-size: clamp(96px, 22vw, 280px);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.mega-line.outline {
  -webkit-text-stroke: 1px var(--ink);
  color: transparent;
}

/* Small helpers */
.divider-h { height: 1px; background: var(--line); }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
