:root {
  --bg: #0A0D14;
  --blue: #0052FF;
  --green: #00C48C;
  --fg: #FFFFFF;
  --muted: #94A3B8;
  --muted-dim: #A0A0A0;
  --cta-fg: #E2E8F0;

  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --sol-bg: rgba(255, 255, 255, 0.02);
  --sol-border: rgba(255, 255, 255, 0.05);

  --header-h: 92px;
  --font-jp: "Noto Sans JP", sans-serif;
  --font-en: "Inter", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-jp);
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure { margin: 0; }

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

svg { display: block; }

.container {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 82, 255, 0.35);
}

.btn-sm { height: 44px; padding-inline: 28px; font-size: 14px; }
.btn-lg { height: 64px; padding-inline: 40px; font-size: 18px; }

.btn-invert { background: #fff; color: var(--bg); }
.btn-invert:hover { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 13, 20, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.logo {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 2px;
}

.nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
  font-size: 16px;
}

.nav a {
  color: var(--muted-dim);
  transition: color 0.2s ease;
}

.nav a:hover { color: #fff; }

/* ---------- Hero ---------- */

.hero {
  padding-block: 140px 120px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 450px;
  gap: 60px;
  align-items: start;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -1px;
}

.hero-lead {
  max-width: 700px;
  margin-top: 40px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  text-wrap: pretty;
}

.hero .btn-lg { margin-top: 48px; }

/* Abstract tech graphic — reproduces the wireframe's 450x400 glass card. */
.hero-visual {
  position: relative;
  width: 450px;
  height: 400px;
  border-radius: 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.glow-blue {
  left: 25px;
  top: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 82, 255, 0.4), rgba(0, 82, 255, 0) 60%);
}

.glow-green {
  left: 140px;
  top: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 196, 140, 0.3), rgba(0, 196, 140, 0) 60%);
}

.bar {
  position: absolute;
  left: 40px;
  height: 12px;
  border-radius: 6px;
}

.bar-1 { top: 60px; width: 120px; background: #333; }
.bar-2 { top: 90px; width: 280px; background: #222; }

.panel {
  position: absolute;
  left: 40px;
  top: 140px;
  width: 370px;
  height: 180px;
  padding: 30px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.row {
  display: block;
  width: 310px;
  height: 40px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.row-accent {
  margin-bottom: 20px;
  background: var(--blue);
  opacity: 0.8;
}

/* ---------- Shared section pieces ---------- */

section[id] { scroll-margin-top: var(--header-h); }

.eyebrow {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 2px;
  line-height: 1;
}

.eyebrow-green { color: var(--green); }
.eyebrow-blue { color: var(--blue); }

section h2 {
  margin-top: 28px;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.4;
}

/* ---------- Stance ---------- */

.stance { padding-block: 100px; }

.stance .lead {
  max-width: 1000px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 18px;
}

/* ---------- Approach (bento) ---------- */

.approach { padding-block: 40px 100px; }

.bento {
  display: grid;
  grid-template-columns: 680fr 480fr;
  gap: 30px 40px;
}

.card {
  border-radius: 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
}

.card p { color: var(--muted); }

.card-feature {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-b { grid-column: 2; grid-row: 1; padding: 36px; }
.card-c { grid-column: 2; grid-row: 2; padding: 36px; }
.card-wide { grid-column: 1 / -1; grid-row: 3; padding: 40px 48px; }

.card .icon { width: 36px; height: 36px; margin-bottom: 16px; }
.card-feature .icon { width: 40px; margin-bottom: 24px; }

.card p.card-label {
  color: var(--blue);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
}

.card-feature h3 {
  margin-top: 24px;
  font-size: clamp(1.375rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.5;
}

.card-feature p { margin-top: 24px; font-size: 16px; line-height: 1.75; }

.card-b h3, .card-c h3, .card-wide h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}

.card-b p, .card-c p { margin-top: 12px; font-size: 15px; line-height: 1.6; }
.card-wide p { margin-top: 12px; font-size: 16px; line-height: 1.6; }

/* ---------- Solutions ---------- */

.solutions { padding-block: 100px; }

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 5vw, 60px);
  margin-top: 60px;
}

.sol-card {
  padding: 32px;
  min-height: 280px;
  border-radius: 16px;
  background: var(--sol-bg);
  border: 1px solid var(--sol-border);
  color: var(--muted-dim);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.sol-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.sol-card .icon {
  width: 48px;
  height: 48px;
  margin-bottom: 48px;
  color: currentColor;
}

.sol-card h3 {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}

.sol-card p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- CTA ---------- */

.cta-section { padding-block: 100px 120px; }

.cta-card {
  padding: 100px 40px;
  border-radius: 40px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  text-align: center;
}

.cta-card h2 {
  margin-top: 0;
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.4;
}

.cta-card p {
  max-width: 880px;
  margin: 24px auto 0;
  color: var(--cta-fg);
  font-size: 18px;
  text-wrap: balance;
}

.cta-card .btn-lg { margin-top: 48px; }

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 40px 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted-dim);
  font-family: var(--font-en);
  font-size: 14px;
}

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero { padding-block: 100px 80px; }
  .hero-inner { gap: 40px; }
  .nav { gap: 24px; font-size: 15px; }
  .card-feature { padding: 40px; }
  .card-wide { padding: 32px 40px; }
}

/* The hero graphic is a fixed 450x400 composition, so it stops fitting
   alongside the copy well before the layout breakpoint at 768px. */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

@media (max-width: 768px) {
  .container { width: min(1200px, 100% - 40px); }

  .nav { display: none; }
  .header-inner { gap: 16px; justify-content: space-between; }

  .hero { padding-block: 72px 64px; }
  .hero-lead { margin-top: 28px; }
  .hero .btn-lg { margin-top: 36px; }

  .stance, .solutions { padding-block: 64px; }
  .approach { padding-block: 24px 64px; }
  .cta-section { padding-block: 64px 80px; }

  .stance .lead { font-size: 16px; }

  .bento { grid-template-columns: 1fr; gap: 20px; }
  .card-feature, .card-b, .card-c, .card-wide {
    grid-column: 1;
    grid-row: auto;
    padding: 32px 28px;
  }

  .solutions-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
  .sol-card { min-height: 0; }
  .sol-card .icon { margin-bottom: 28px; }

  .cta-card { padding: 56px 28px; border-radius: 28px; }
  .cta-card p { font-size: 16px; }

  .btn-lg { height: 58px; padding-inline: 28px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}
