/* ═══════════════════════════════════════════════════
   Kawa Code — GitHub-inspired Dark Design
   Matching kawacode.jp design system
   Font: Inter · Mono: JetBrains Mono
   ═══════════════════════════════════════════════════ */

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

:root {
  /* GitHub Dark palette */
  --bg:           #000000;
  --bg-secondary: #161B22;
  --bg-tertiary:  #1C2128;
  --bg-elevated:  #21262D;

  /* Brand — blue primary (from logo #007DC5) */
  --blue:         #007DC5;
  --blue-light:   #2E9BD6;
  --blue-dark:    #006BA8;
  --gold:         #fbb03b;
  --gold-light:   #fcc56a;

  /* Text */
  --text:         #E6EDF3;
  --text-2:       #8B949E;
  --text-3:       #656D76;

  /* Accents */
  --danger:       #F85149;
  --warning:      #D29922;

  /* Borders */
  --border:       #30363D;
  --border-muted: #21262D;

  /* Shadows */
  --shadow-sm:    0 1px 0 rgba(27,31,36,.04);
  --shadow-md:    0 3px 6px rgba(0,0,0,.15);
  --shadow-lg:    0 8px 24px rgba(0,0,0,.2);
  --shadow-xl:    0 16px 48px rgba(0,0,0,.3);

  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica', 'Arial', sans-serif;
  --mono:         'JetBrains Mono', 'Courier New', monospace;

  --transition:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --max-w:        1280px;
  --nav-h:        64px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(0,125,197,.3); color: #fff; }

a { color: var(--blue-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--blue); }
img { display: block; max-width: 100%; height: auto; }
strong { color: var(--text); font-weight: 600; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

@media (max-width: 480px) { .container { padding: 0 16px; } }



/* ═══ ATMOSPHERIC ═══ */

.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
}

.orbs {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(160px);
  animation: orb-drift 35s ease-in-out infinite alternate;
}
.orb-a {
  width: 500px; height: 500px; top: -8%; right: 5%;
  background: radial-gradient(circle, rgba(0,125,197,.05) 0%, transparent 70%);
}
.orb-b {
  width: 400px; height: 400px; bottom: 15%; left: -5%;
  background: radial-gradient(circle, rgba(47,129,247,.04) 0%, transparent 70%);
  animation-delay: -14s;
}
@keyframes orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(30px, -20px) scale(1.05); }
  100% { transform: translate(-20px, 15px) scale(.96); }
}


/* ═══ SECTION DIVIDER (logo motif: ——— ••• ———) ═══ */

.section-divider {
  border: none; height: 6px; margin: 0;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
}

/* Blue line left and right */
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue));
}
.section-divider::after {
  background: linear-gradient(90deg, var(--blue), transparent);
}

/* Three red dots via box-shadow on a single pseudo — use background instead */
.section-divider {
  background:
    radial-gradient(circle 2.5px at calc(50% - 12px) 50%, var(--danger) 2px, transparent 2.5px),
    radial-gradient(circle 2.5px at 50% 50%, var(--danger) 2px, transparent 2.5px),
    radial-gradient(circle 2.5px at calc(50% + 12px) 50%, var(--danger) 2px, transparent 2.5px);
  background-repeat: no-repeat;
  opacity: .4;
}


/* ═══ COMMON SECTION ═══ */

.section { padding: 80px 0; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  letter-spacing: -0.02em;
}
.section-title svg { color: var(--blue); flex-shrink: 0; }

.section-subtitle {
  font-size: 18px; line-height: 1.8;
  color: var(--text-2);
  max-width: 800px; margin: 0 auto;
}
.section-subtitle strong { color: var(--text); }

.highlight { color: var(--blue-light); }
.highlight-gold { color: var(--gold-light); font-weight: 600; }

.section-statement {
  text-align: center;
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 500; line-height: 1.6;
  color: var(--text-2);
  margin-top: 56px; padding-top: 40px;
}
.section-statement strong { color: var(--text); }

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section-title { font-size: 28px; flex-direction: column; }
}


/* ═══ BUTTONS ═══ */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px;
  font-size: 16px; font-weight: 600;
  font-family: var(--font);
  text-decoration: none; cursor: pointer; border: none;
  transition: var(--transition);
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 0 0 0 rgba(0,125,197,.4);
}
.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,125,197,.3);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-tertiary); color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--text-3);
  color: var(--text);
}

.btn-large { padding: 16px 32px; font-size: 18px; }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 10px 20px; font-size: 14px; }


/* ═══ NAV ═══ */

.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13,17,23,.95);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,.4);
}

.navbar .container {
  display: flex; justify-content: space-between; align-items: center;
}

.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-size: 20px; font-weight: 700; color: var(--text);
}
.nav-brand:hover { opacity: .8; color: var(--text); }
.nav-logo { width: 32px; height: 32px; object-fit: contain; border-radius: 6px; }

.nav-links {
  display: flex; align-items: center; gap: 8px;
}
.nav-links a {
  color: var(--text-2); font-weight: 500; font-size: 14px;
  padding: 8px 12px; border-radius: 6px;
  transition: var(--transition);
}
.nav-links a:hover {
  color: var(--text); background: var(--bg-tertiary);
}

.btn-download-nav {
  background: var(--blue) !important; color: #fff !important;
  padding: 8px 16px !important; border-radius: 6px;
}
.btn-download-nav:hover {
  background: var(--blue-light) !important;
}

/* Hamburger */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative;
}
.hamburger span {
  display: block; position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--text-2); border-radius: 2px; transition: all .3s;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }
.hamburger.open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links {
    position: fixed; top: calc(var(--nav-h) + 2px); left: 0; right: 0;
    background: rgba(13,17,23,.98);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 16px; gap: 4px;
    transform: translateY(-120%); transition: transform .35s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 14px 16px; font-size: 16px; }
}


/* ═══ HERO ═══ */

.hero {
  position: relative; overflow: hidden;
  padding: 160px 0 120px;
  text-align: center;
}

#bg-canvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none; opacity: .35;
}

.hero-content {
  max-width: 900px; margin: 0 auto;
}

.hero-title {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 800; line-height: 1.2;
  margin-bottom: 28px; letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 18px; line-height: 1.8;
  color: var(--text-2);
  margin-bottom: 44px;
}
.hero-subtitle strong { color: var(--text); font-weight: 600; }

.hero-cta {
  display: flex; justify-content: center; gap: 16px;
  margin-bottom: 64px; flex-wrap: wrap;
}

.hero-stats {
  display: flex; justify-content: center; gap: 64px; flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 48px; font-weight: 800; color: var(--blue-light);
  margin-bottom: 8px;
}
.stat-label { font-size: 16px; color: var(--gold); font-weight: bold; }

@media (max-width: 768px) {
  .hero { padding: 120px 0 80px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-stats { gap: 32px; }
  .stat-number { font-size: 36px; }
}


/* ═══ PROBLEM ═══ */

.problem-solution {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px; margin-bottom: 8px;
}
@media (max-width: 768px) { .problem-solution { grid-template-columns: 1fr; } }

.problem-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 32px;
}

.card-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.card-header h3 { font-size: 20px; font-weight: 700; }

.problem-list {
  list-style: none;
}
.problem-list li {
  padding: 12px 0;
  display: flex; align-items: center; gap: 12px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border-muted);
  font-size: 15px;
}
.problem-list li:last-child { border-bottom: none; }

.x-icon {
  color: var(--danger); font-size: 18px; font-weight: 300;
  width: 20px; text-align: center; flex-shrink: 0;
}


/* ═══ MISSING LAYER — INTENT DEFINITION ═══ */

.drift-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-bottom: 48px;
}
.drift-tag {
  padding: 8px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--text-3);
  border: 1px solid var(--border);
  transition: var(--transition);
  color: var(--danger);
  border-color: rgba(248,81,73,.25);
  background: var(--bg-secondary);
}

.intent-intro {
  text-align: center; margin-bottom: 32px;
}
.intent-intro p {
  font-size: 18px; color: var(--text-2);
}

.definition-card {
  max-width: 640px; margin: 0 auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}

.audit-header {
  background: var(--bg-tertiary);
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.audit-badge {
  background: var(--blue); color: #fff;
  padding: 4px 12px; border-radius: 12px;
  font-size: 12px; font-weight: 600;
}

.definition-body { padding: 28px; }

.def-header {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.def-word {
  font-size: 28px; font-weight: 800;
  color: var(--blue-light);
}
.def-phonetic { font-size: 14px; color: var(--text-3); }
.def-pos {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--gold);
  padding: 2px 8px; border-radius: 4px;
  border: 1px solid rgba(251,176,59,.2);
  background: rgba(251,176,59,.08);
}

.def-meaning {
  font-size: 16px; color: var(--text);
  margin-bottom: 10px;
}
.def-note { font-size: 16px; color: var(--gold); font-weight: bold; }


/* ═══ WHAT IT DOES ═══ */

.value-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  max-width: 800px; margin: 0 auto;
}
@media (max-width: 600px) { .value-grid { grid-template-columns: 1fr; } }

.value-card {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 24px; border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.value-card:hover { border-color: var(--blue); transform: translateY(-2px); }

.value-icon {
  width: 48px; height: 56px; flex-shrink: 0;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  color: white;
  clip-path: url(#shield-clip);
}

.value-text h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.value-text p { font-size: 14px; color: var(--text-2); }


/* ═══ SPLIT SECTIONS (image + text, alternating) ═══ */

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: center;
  margin-bottom: 64px;
}
.split-section:last-child { margin-bottom: 0; }

.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }

.split-media {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-lg);
}

.video-container {
  position: relative; width: 100%; padding-bottom: 56.25%;
}
.video-container iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}

.split-img { width: 100%; display: block; cursor: pointer; }

/* Lightbox overlay */
.lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity .3s ease;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.lightbox.visible { opacity: 1; }
.lightbox img {
  max-width: 90vw; max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 16px 64px rgba(0,0,0,.5);
}

.split-text h2 {
  font-size: 22px; font-weight: 700; margin-bottom: 16px; color: var(--gold);
}
.split-text h3 {
  font-size: 22px; font-weight: 700; margin-bottom: 14px;
}
.split-text p {
  color: var(--text-2); font-size: 16px; line-height: 1.7;
  margin-bottom: 12px;
}
.split-text p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .split-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .split-reverse { direction: ltr; }
  .split-section { margin-bottom: 48px; }
}


/* ═══ HOW IT WORKS — TIMELINE ═══ */

.timeline {
  max-width: 720px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 32px;
}

.tl-step {
  display: flex; gap: 24px; align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: #fff;
  box-shadow: 0 8px 16px rgba(0,125,197,.3);
}

.tl-body { flex: 1; }
.tl-body h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.tl-body p { color: var(--text-2); font-size: 16px; line-height: 1.7; margin-bottom: 12px; }

.tl-list {
  list-style: none; margin: 8px 0 0; padding: 0;
}
.tl-list li {
  position: relative; padding-left: 20px;
  color: var(--text-2); font-size: 15px; line-height: 1.8;
}
.tl-list li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); opacity: .6;
}

.tl-quote {
  margin: 16px 0 0; padding: 14px 20px;
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  background: rgba(0,125,197,.06);
  font-size: 15px; color: var(--text-2);
}
.tl-quote em { color: var(--blue-light); font-style: italic; }

.improves-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px;
}
.improve-tag {
  padding: 6px 14px; border-radius: 12px;
  font-size: 13px; font-weight: 600;
  background: rgba(251,176,59,.1); color: var(--gold);
  border: 1px solid rgba(251,176,59,.15);
}


/* ═══ FEATURES ═══ */

.feat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px;
}
@media (max-width: 768px) { .feat-grid { grid-template-columns: 1fr; } }

.feat-card {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 28px; border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.feat-card:hover { border-color: var(--blue); }

.feat-icon {
  width: 48px; height: 56px; flex-shrink: 0;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: white;
  clip-path: url(#shield-clip);
}

.feat-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--gold); }
.feat-card p { color: var(--text-2); font-size: 14px; line-height: 1.6; }


/* ═══ PLANS ═══ */


.stripe-tables {
  display: flex; gap: 24px; flex-wrap: wrap;
}
.stripe-tables stripe-pricing-table {
  flex: 1 1 400px; min-width: 0;
}

.stripe-manage {
  text-align: center; margin-top: 24px;
}


/* ═══ SECURITY ═══ */

.security-card {
  max-width: 720px; margin: 0 auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 36px;
}

.sec-features {
  display: flex; flex-direction: column; gap: 20px;
}
.sec-item {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 16px; color: var(--text-2); line-height: 1.6;
}
.sec-item svg { flex-shrink: 0; margin-top: 3px; }
.sec-item strong { color: var(--gold-light); }


/* ═══ USE CASES ═══ */

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; max-width: 960px; margin: 0 auto;
}

.usecase-card {
  padding: 28px; border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.usecase-card:hover { border-color: var(--blue); transform: translateY(-2px); }

.usecase-icon {
  width: 48px; height: 56px;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  color: white;
  margin-bottom: 16px;
  clip-path: url(#shield-clip);
}

.usecase-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.usecase-card p { color: var(--text-2); font-size: 14px; line-height: 1.6; }


/* ═══ VISION ═══ */

.section-vision {
  text-align: center;
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 100%);
}

.vision-content {
  max-width: 640px; margin: 0 auto;
}

.vision-pre {
  font-size: 18px; color: var(--text-2); line-height: 1.8;
  margin-bottom: 24px;
}
.vision-pre em { color: var(--blue-light); font-style: normal; }

.vision-highlight {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800; line-height: 1.3;
  margin-bottom: 16px; letter-spacing: -0.02em;
}

.vision-body {
  font-size: 17px; color: var(--text-2); line-height: 1.7;
}

.vision-divider {
  border: none; height: 1px; width: 48px; margin: 48px auto;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.vision-closing {
  font-size: 20px; font-weight: 600; color: var(--text);
  line-height: 1.6;
}


/* ═══ FOOTER CTA ═══ */

.section-footer-cta {
  text-align: center;
  padding: 100px 0;
}

.dl-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

@media (max-width: 600px) {
  .dl-row { flex-direction: column; align-items: center; }
}


/* ═══ FOOTER ═══ */

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0; text-align: center;
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px;
}
.footer-brand img { border-radius: 4px; }
.footer-tagline { color: var(--text-3); font-size: 13px; }
.footer-copy { color: var(--text-3); font-size: 12px; margin-top: 4px; }


/* ═══ ANIMATIONS ═══ */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══ LANGUAGE TOGGLE ═══ */

.lang-toggle {
  display: flex; gap: 2px;
  background: var(--bg-tertiary);
  border-radius: 6px; padding: 2px;
  border: 1px solid var(--border);
}
.lang-toggle-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-3); font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 4px;
  font-family: var(--font);
  transition: var(--transition);
}
.lang-toggle-btn:hover { color: var(--text); }
.lang-toggle-btn.active {
  background: var(--blue); color: #fff;
}


/* ═══ FOOTER LINKS ═══ */

.footer-links {
  display: flex; gap: 24px; margin: 8px 0;
}
.footer-links a {
  color: var(--text-3); font-size: 13px;
}
.footer-links a:hover { color: var(--blue-light); }


/* ═══ AUTH PAGES ═══ */

.auth-card {
  max-width: 480px; margin: 0 auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 40px;
}

.auth-form h2 {
  font-size: 28px; font-weight: 700;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block; font-size: 14px; font-weight: 500;
  color: var(--text-2); margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text); font-size: 16px;
  font-family: var(--font);
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,125,197,.15);
}
.form-group textarea { resize: vertical; }

.form-link-right {
  text-align: right; margin: -8px 0 16px;
}
.form-link-right a { font-size: 14px; color: var(--blue-light); }

.form-footer {
  text-align: center; margin-top: 20px;
  font-size: 14px; color: var(--text-2);
}
.form-footer a { color: var(--blue-light); }

.form-desc {
  font-size: 15px; color: var(--text-2);
  line-height: 1.7; margin-bottom: 24px;
}


/* ═══ TOAST NOTIFICATIONS ═══ */

.toast {
  position: fixed; top: 80px; right: 20px; z-index: 10001;
  padding: 14px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  font-family: var(--font);
  color: #fff;
  background: var(--blue);
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateX(40px);
  transition: all 0.3s ease;
  max-width: 400px;
}
.toast.visible { opacity: 1; transform: translateX(0); }
.toast-success { background: #238636; }
.toast-error { background: var(--danger); }
.toast-info { background: var(--blue); }


/* ═══ CONTACT PAGE ═══ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px; max-width: 960px; margin: 0 auto;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info {
  display: flex; flex-direction: column; gap: 32px;
}

.contact-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 16px;
}
.contact-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 16px;
}
.contact-list a { color: var(--blue-light); }

.japan-agent {
  padding: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.japan-agent h4 {
  color: var(--blue-light); font-size: 16px;
  margin-bottom: 12px;
}
.japan-agent p { color: var(--text-2); font-size: 14px; margin-bottom: 6px; }
.japan-agent .small { font-size: 13px; color: var(--text-3); }
.japan-agent a { color: var(--blue-light); font-size: 14px; }

.contact-form {
  display: flex; flex-direction: column; gap: 4px;
}

.thankyou-card {
  max-width: 600px; margin: 0 auto; text-align: center;
  padding: 48px; background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: 12px;
}
.thankyou-card h3 { font-size: 24px; margin-bottom: 16px; color: var(--blue-light); }
.thankyou-card p { color: var(--text-2); font-size: 16px; }


/* ═══ TEAM PAGE ═══ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px; max-width: 800px; margin: 0 auto;
}

.team-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 36px;
  text-align: center;
  transition: var(--transition);
}
.team-card:hover { border-color: var(--blue); }

.team-avatar {
  margin: 0 auto 20px;
  width: 80px; height: 80px;
}
.avatar-placeholder {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: #fff;
}

.team-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.team-role { color: var(--blue-light); font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.team-bio { color: var(--text-2); font-size: 14px; line-height: 1.7; text-align: left; }


/* ═══ PROSE PAGE (privacy) ═══ */

.prose {
  max-width: 800px; margin: 0 auto;
  font-size: 16px; line-height: 1.8;
  color: var(--text-2);
}
.prose h2 {
  font-size: 24px; font-weight: 700; color: var(--text);
  margin: 40px 0 16px; padding-top: 24px;
  border-top: 1px solid var(--border-muted);
}
.prose h2:first-of-type { border-top: none; margin-top: 24px; }
.prose h3 {
  font-size: 20px; font-weight: 600; color: var(--text);
  margin: 32px 0 12px;
}
.prose h4 {
  font-size: 17px; font-weight: 600; color: var(--text);
  margin: 24px 0 8px;
}
.prose p { margin-bottom: 16px; }
.prose em { color: var(--blue-light); font-style: normal; }
.prose ul {
  list-style: disc; padding-left: 24px; margin-bottom: 16px;
}
.prose li { margin-bottom: 8px; }
.prose code {
  background: var(--bg-tertiary); padding: 2px 6px;
  border-radius: 4px; font-family: var(--mono); font-size: 14px;
}
.prose a { color: var(--blue-light); }


/* ═══ DOCS PAGE ═══ */

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px; max-width: 960px; margin: 0 auto;
}

.doc-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 28px;
  transition: var(--transition);
}
.doc-card:hover { border-color: var(--blue); }

.doc-icon {
  width: 48px; height: 56px;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  color: white; margin-bottom: 16px;
  clip-path: url(#shield-clip);
}

.doc-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.doc-card p { color: var(--text-2); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }

.doc-features {
  list-style: none; max-width: 720px; margin: 0 auto;
}
.doc-features li {
  position: relative; padding: 12px 0 12px 24px;
  color: var(--text-2); font-size: 15px;
  border-bottom: 1px solid var(--border-muted);
}
.doc-features li:last-child { border-bottom: none; }
.doc-features li::before {
  content: ''; position: absolute; left: 0; top: 20px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue); opacity: .6;
}


/* ═══ FAQ ACCORDION ═══ */

.faq-list {
  max-width: 720px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 8px;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
}

.faq-question {
  width: 100%; background: none; border: none;
  padding: 18px 24px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; cursor: pointer;
  font-size: 16px; font-weight: 600; color: var(--text);
  font-family: var(--font); text-align: left;
}
.faq-question svg {
  flex-shrink: 0; color: var(--text-3);
  transition: transform .2s ease;
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p {
  padding: 0 24px 18px;
  color: var(--text-2); font-size: 15px; line-height: 1.7;
}
