:root {
  --bg: #0b1220;
  --bg-alt: #0f1a2e;
  --surface: #162338;
  --text: #eaf1fb;
  --text-dim: #9fb0cb;
  --accent: #4ade80;
  --accent-2: #22d3ee;
  --accent-3: #60a5fa;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --max-w: 1120px;
  --font-jp: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Poppins", var(--font-jp);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(100% - 40px, var(--max-w));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(10px);
  background: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-jp);
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 15px;
}
.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.nav-cta {
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent) !important;
}
.nav-cta:hover { background: var(--accent); color: #0b1226 !important; }

.site-nav ul {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-en);
  font-weight: 500;
}
.site-nav a { color: var(--text-dim); transition: color .2s; }
.site-nav a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 11vw, 130px) 0 clamp(70px, 11vw, 130px);
  isolation: isolate;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-copy { max-width: 640px; }
.hero-visual { display: grid; place-items: center; }
.hero-icon {
  width: min(100%, 280px);
  aspect-ratio: 1;
  border-radius: 56px;
  object-fit: cover;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
  background: #fff;
  transform: rotate(-4deg);
  transition: transform .4s ease;
}
.hero-icon:hover { transform: rotate(0deg) scale(1.02); }
.eyebrow {
  font-family: var(--font-en);
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: 12px;
  color: var(--accent);
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.1;
  margin: 0 0 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  color: var(--text-dim);
  font-size: clamp(15px, 1.7vw, 18px);
  margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-en);
  font-size: 15px;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  will-change: transform;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #062014;
  box-shadow: 0 10px 30px rgba(74, 222, 128, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 18px 36px; font-size: 16px; }

.hero-decor { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.blob-1 { width: 480px; height: 480px; background: #16a34a; top: -120px; right: -120px; opacity: .35; }
.blob-2 { width: 420px; height: 420px; background: #0891b2; bottom: -160px; left: -80px; opacity: .35; }
.blob-3 { width: 360px; height: 360px; background: #3b82f6; top: 40%; right: 30%; opacity: .18; }

/* Sections */
.section { padding: clamp(80px, 10vw, 120px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 6px 0 12px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.section-desc { color: var(--text-dim); margin: 0 auto; max-width: 620px; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform .25s, border-color .25s;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(74, 222, 128, 0.4); }
.feature-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.18), rgba(34, 211, 238, 0.18));
  border: 1px solid var(--border);
}
.feature h3 { margin: 0 0 8px; font-size: 18px; }
.feature p { color: var(--text-dim); margin: 0; font-size: 14.5px; }

/* Screens */
.screens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  max-width: 960px;
  margin-inline: auto;
}
.screen {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.screen img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transition: transform .3s ease;
}
.screen img:hover { transform: translateY(-6px); }
.screen figcaption {
  color: var(--text-dim);
  font-size: 14px;
  text-align: center;
}

/* Contact form */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.field .req { color: var(--accent); margin-left: 2px; }
.field input,
.field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.6;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder,
.field textarea::placeholder { color: #6b7a96; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
}
.field textarea { resize: vertical; min-height: 140px; }
.form-error {
  color: #fda4af;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  margin: 0 0 16px;
}
.form-success {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  margin: 0 0 16px;
}
#cf-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-note {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.8;
}
.form-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.contact-form .contact-actions { justify-content: center; margin-top: 8px; }

/* CTA */
.cta-section { text-align: center; padding: clamp(70px, 9vw, 110px) 0; }
.cta-inner h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  margin: 0 0 10px;
  font-weight: 900;
}
.cta-inner p { color: var(--text-dim); margin: 0 0 28px; }

/* Contact */
.contact-inner { text-align: center; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-inner nav { display: flex; gap: 20px; }
.footer-inner a { font-family: var(--font-en); }
.footer-inner a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-copy { max-width: none; }
  .hero-actions { justify-content: center; }
  .hero-icon { width: min(100%, 220px); }

  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    inset: 68px 0 auto 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .site-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 20px 20px;
  }
  .site-nav li { border-bottom: 1px solid var(--border); }
  .site-nav li:last-child { border-bottom: 0; }
  .site-nav a { display: block; padding: 14px 4px; }
}

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