/* ============================================================
   虎虎AI (Fufu AI) — Studio Landing Page
   Design tokens & styles (recreated from the hi-fi handoff)
   ============================================================ */

:root {
  /* Brand */
  --orange: #E86A2A;
  --orange-dark: #c9531f;
  --orange-darker: #b5471a;
  --orange-hover: #ff7d3c;
  --orange-on-dark: #F0763A;
  --orange-muted: #b06a3f;

  /* Ink & dark grounds */
  --ink: #191512;
  --dark-1: #14110E;
  --dark-2: #0d0b09;
  --dark-3: #17130F;
  --dark-4: #0a0806;

  /* Light grounds */
  --light-1: #f1eee9;
  --light-2: #f6f2ec;
  --white: #ffffff;

  /* Text */
  --text-light: #5a5148;
  --text-strong: #3a352e;
  --text-muted-light: #8a7d6c;
  --text-on-dark: #F4EFE8;
  --text-muted-dark: #9a9188;
  --text-muted-dark-2: #a89e92;
  --text-muted-dark-3: #8a8177;
  --desc-on-dark: #cfc7bd;

  /* Secondary accents */
  --blue: #3DA9FF;
  --blue-deep: #2b6fb8;
  --gold: #C9A24B;

  /* Borders */
  --border-nav: #e0d5c5;
  --border-card-light: #eee2d4;
  --border-card-blue: #e6edf4;

  --maxw: 1240px;
  --font-jp: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-serif: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  --font-latin: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-jp);
  -webkit-font-smoothing: antialiased;
  background: var(--dark-1);
  color: var(--text-on-dark);
  width: 100%;
  overflow-x: hidden;
}
a { color: var(--ink); text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--orange); color: #fff; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.02em; }
p { text-wrap: pretty; }

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

.wrap { max-width: var(--maxw); margin: 0 auto; }

.eyebrow {
  font-family: var(--font-latin);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all .15s ease;
  font-family: inherit;
}
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; color: #fff; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-hover); box-shadow: 0 8px 26px rgba(232,106,42,0.4); }
.btn-white { background: rgba(255,255,255,0.95); color: var(--orange-darker); }
.btn-white:hover { background: #fff; }

.lift { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 44px;
  background: rgba(243,240,235,0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-nav);
}
.nav__brand { display: inline-flex; align-items: center; }
.nav__chip {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  padding: 9px 16px;
  border-radius: 9999px;
}
.nav__chip img { height: 26px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.navlink { font-size: 14px; font-weight: 600; color: var(--text-strong); transition: color .15s; }
.navlink:hover { color: #c98a2e; }
.nav__cta {
  padding: 10px 22px;
  border-radius: 9999px;
  background: #1a1a1a;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  transition: background .15s;
}
.nav__cta:hover { background: #000; color: #fff; }
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 76px 44px 64px;
  background: linear-gradient(135deg, #E86A2A 0%, #d15a22 55%, #b5471a 100%);
  overflow: hidden;
}
.hero__watermark {
  position: absolute;
  top: 50%;
  right: -90px;
  transform: translateY(-50%);
  width: 620px;
  height: auto;
  opacity: 0.12;
  pointer-events: none;
}
.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 90% at 15% 20%, rgba(0,0,0,0.18), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.hero h1 {
  margin-top: 22px;
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.12;
  color: #fff;
  max-width: 20ch;
}
.hero h1 .ink { color: var(--ink); }
.hero__lead {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255,255,255,0.92);
  font-weight: 500;
  max-width: 52ch;
}
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ============================================================
   PROJECT SLIDER
   ============================================================ */
.work {
  position: relative;
  height: 640px;
  min-height: 560px;
  background: var(--dark-2);
  overflow: hidden;
}
.hslide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
}
.hslide.active { opacity: 1; }
.hslide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.hslide__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13,11,9,0.97) 0%, rgba(13,11,9,0.9) 34%, rgba(13,11,9,0.6) 66%, rgba(13,11,9,0.4) 100%),
    linear-gradient(0deg, rgba(13,11,9,0.95) 0%, transparent 34%);
}
.work__content {
  position: relative;
  height: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.work__eyebrow {
  font-family: var(--font-latin);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-on-dark);
}
.hcopy { margin-top: 20px; display: none; }
.hcopy.active { display: block; }
.hcopy__kicker {
  font-family: var(--font-latin);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted-dark-2);
  letter-spacing: 0.02em;
}
.hcopy h2 {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.8vw, 56px);
  font-weight: 900;
  line-height: 1.12;
  color: #fff;
  max-width: 16ch;
}
.hcopy p {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--desc-on-dark);
  font-weight: 500;
  max-width: 46ch;
}
.hcopy__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  transition: gap .2s ease;
}
.hcopy__link:hover { gap: 16px; color: #fff; }
.hcopy__link span { color: var(--orange-on-dark); }

.work__tabs { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; }
.work__tabs-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 44px 22px;
}
.work__tablist {
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.16);
}
.htab {
  flex: 1;
  text-align: left;
  background: none;
  border: none;
  border-top: 2px solid transparent;
  margin-top: -1px;
  padding: 16px 0;
  color: var(--text-muted-dark-3);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: color .2s ease, border-color .2s ease;
}
.htab.active { color: #fff; border-top-color: var(--orange-on-dark); }
.htab span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #6f675e;
  margin-top: 2px;
}
.htab.active span { color: var(--text-muted-dark-3); }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--dark-2);
  padding: 16px 0;
  overflow: hidden;
  border-top: 1px solid #2a231b;
  border-bottom: 1px solid #2a231b;
}
@keyframes fufuMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marq { display: flex; width: max-content; animation: fufuMarquee 28s linear infinite; }
.marq__track {
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
  letter-spacing: 0.03em;
  color: var(--text-muted-dark-3);
}
.marq__track .o { color: var(--orange); }
.marq__track .b { color: var(--blue); }
.marq__track .g { color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .marq { animation: none; } }

/* ============================================================
   IMPACT
   ============================================================ */
.impact { background: var(--dark-1); padding: 60px 44px; }
.impact__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
}
.stat { border-left: 2px solid var(--orange); padding-left: 20px; }
.stat.blue { border-left-color: var(--blue); }
.stat.gold { border-left-color: var(--gold); }
.stat__num {
  font-family: var(--font-latin);
  font-size: 52px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.stat__num .suffix { font-size: 26px; font-family: var(--font-jp); font-weight: 700; }
.stat__num .yen { font-size: 32px; }
.stat__num .tilde { font-size: 26px; }
.stat__cap { font-size: 14px; color: var(--text-muted-dark); font-weight: 600; margin-top: 8px; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { padding: 84px 44px; background: var(--light-1); }
.services h2, .about h2 { font-family: var(--font-serif); font-weight: 900; }
.services h2 {
  margin-top: 14px;
  font-size: clamp(32px, 4vw, 44px);
  color: var(--ink);
}
.services__intro {
  margin-top: 14px;
  font-size: 16px;
  color: var(--text-light);
  font-weight: 500;
  max-width: 56ch;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 46px rgba(90,50,20,0.16); }
.card__img { height: 190px; background: var(--light-2); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
}
.tag.orange { background: #FBF1E8; color: var(--orange-muted); }
.tag.blue { background: #E9F2FB; color: var(--blue-deep); }
.card__title { font-size: 22px; font-weight: 900; margin-top: 14px; color: var(--ink); }
.card__desc { font-size: 14px; color: var(--text-light); margin-top: 8px; line-height: 1.7; font-weight: 500; }
.checklist { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.check { display: flex; gap: 9px; align-items: flex-start; }
.check .mark { font-weight: 900; }
.check.orange .mark { color: var(--orange); }
.check.blue .mark { color: var(--blue-deep); }
.check span:last-child { font-size: 13px; color: var(--text-strong); font-weight: 600; }
.card__foot {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-card-light);
}
.card__foot.blue-border { border-top-color: var(--border-card-blue); }
.card__price-label { font-size: 11px; color: var(--text-muted-light); font-weight: 600; }
.card__price { font-size: 15px; font-weight: 800; color: var(--ink); }
.card__link { font-size: 13px; font-weight: 800; color: var(--orange); transition: opacity .15s; }
.card__link.blue { color: var(--blue-deep); }
.card__link:hover { opacity: 0.7; }

/* ============================================================
   PROCESS
   ============================================================ */
.process { background: var(--dark-3); padding: 84px 44px; position: relative; overflow: hidden; }
.process__watermark {
  position: absolute;
  bottom: -60px;
  left: -90px;
  width: 480px;
  height: auto;
  opacity: 0.06;
  pointer-events: none;
}
.process__inner { position: relative; }
.process h2 {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 900;
  color: #fff;
}
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.step { border-top: 3px solid var(--orange); padding-top: 20px; }
.step.blue { border-top-color: var(--blue); }
.step.gold { border-top-color: var(--gold); }
.step__num { font-family: var(--font-latin); font-size: 34px; font-weight: 900; color: var(--orange); }
.step.blue .step__num { color: var(--blue); }
.step.gold .step__num { color: var(--gold); }
.step__title { font-size: 19px; font-weight: 900; margin-top: 10px; color: #fff; }
.step p { font-size: 14px; color: var(--text-muted-dark-2); margin-top: 8px; line-height: 1.6; font-weight: 500; }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 88px 44px;
  background: radial-gradient(110% 100% at 30% 0%, #ffffff 0%, #f1eee9 60%, #e7e2da 100%);
}
.about__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.about__panel {
  position: relative;
  text-align: center;
  background: linear-gradient(140deg, #E86A2A, #c9531f);
  border-radius: 22px;
  padding: 44px;
  overflow: hidden;
}
.about__panel-glow {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61,169,255,0.4), transparent 70%);
}
.about__panel img { position: relative; width: 100%; max-width: 360px; height: auto; margin: 0 auto; }
.about h2 { margin-top: 14px; font-size: clamp(30px, 3.6vw, 40px); color: var(--ink); }
.about__lead { margin-top: 20px; font-size: 17px; line-height: 1.85; color: var(--text-light); font-weight: 500; }
.about__points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}
.point { display: flex; gap: 12px; }
.point .mark { font-weight: 900; font-size: 18px; }
.point.orange .mark { color: var(--orange); }
.point.blue .mark { color: var(--blue); }
.point.gold .mark { color: var(--gold); }
.point__title { font-weight: 800; font-size: 15px; color: var(--ink); }
.point p { font-size: 13px; color: var(--text-muted-light); font-weight: 500; margin-top: 2px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--dark-2); padding: 88px 44px; position: relative; overflow: hidden; }
.contact__glow-a, .contact__glow-b {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(30px);
}
.contact__glow-a { top: -80px; right: -60px; background: radial-gradient(circle, rgba(232,106,42,0.18), transparent 70%); }
.contact__glow-b { bottom: -80px; left: -60px; background: radial-gradient(circle, rgba(61,169,255,0.16), transparent 70%); }
.contact__watermark {
  position: absolute;
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
  width: 440px;
  height: auto;
  opacity: 0.08;
  pointer-events: none;
}
.contact__inner { max-width: 1000px; margin: 0 auto; position: relative; }
.contact h2 {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 900;
  color: #fff;
  max-width: 20ch;
}
.contact__sub { margin-top: 16px; font-size: 16px; color: var(--text-muted-dark-2); font-weight: 500; max-width: 50ch; }
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--desc-on-dark); margin-bottom: 8px; }
.field--full { grid-column: 1 / 3; }
.form input, .form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(255,255,255,0.35); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); }
.form textarea { resize: vertical; min-height: 132px; }
.field-error { color: #ff9d7a; font-size: 12px; margin-top: 6px; min-height: 1em; font-weight: 600; }
.form__submit-row { align-self: start; }
.form__submit-row .btn { font-size: 16px; padding: 16px 34px; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.form__status { grid-column: 1 / 3; font-size: 14px; font-weight: 600; margin-top: 4px; min-height: 1.2em; }
.form__status.ok { color: #7ee0a0; }
.form__status.err { color: #ff9d7a; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark-4);
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer img { height: 30px; width: auto; }
.footer__links { display: flex; gap: 24px; font-size: 14px; flex-wrap: wrap; }
.footer__links a { color: var(--text-muted-dark-2); transition: color .15s; }
.footer__links a:hover { color: var(--orange-on-dark); }
.footer__copy { font-size: 13px; color: #6f675e; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav { padding: 12px 20px; flex-wrap: wrap; }
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    padding: 12px 0 6px;
  }
  .nav.open .nav__links { display: flex; }
  .nav__links a { padding: 10px 4px; width: 100%; }
  .nav__cta { margin-top: 6px; }

  .hero { padding: 56px 20px 48px; }
  .hero__watermark { width: 380px; opacity: 0.09; right: -120px; }

  .work { height: auto; min-height: 0; }
  .work__content { padding: 120px 20px 150px; min-height: 78vh; }
  .work__tabs-inner { padding: 0 20px 18px; }

  .impact { padding: 48px 20px; }
  .impact__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }

  .services, .process, .about, .contact { padding: 56px 20px; }
  .services__grid { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }

  .about__grid { grid-template-columns: 1fr; gap: 32px; }

  .footer { padding: 32px 20px; }
}

@media (max-width: 600px) {
  .impact__grid { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: 1fr; }
  .about__points { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .form__status { grid-column: auto; }
  .htab { font-size: 13px; }
  .work__content { padding: 100px 20px 160px; }
  .hero h1 { font-size: clamp(30px, 8vw, 40px); }
}
