/* ============================================
   Let's Vibe — Design System Foundation
   Premium Minimal + WISE-inspired tokens
   ============================================ */

/* Pretendard Variable */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

/* ── Design Tokens ── */
:root {
  /* Colors */
  --bg: #FAFAFA;
  --bg-alt: #F5F5F5;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --accent: #6C5CE7;
  --accent-hover: #5A4BD6;
  --accent-light: rgba(108, 92, 231, 0.08);
  --accent-border: rgba(108, 92, 231, 0.2);
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --black: #1A1A1A;
  --white: #FFFFFF;

  /* Typography */
  --font: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --h1: clamp(2.5rem, 5vw, 4rem);
  --h2: clamp(1.75rem, 3.5vw, 2.75rem);
  --h3: clamp(1.125rem, 1.5vw, 1.375rem);
  --body: 1rem;
  --small: 0.875rem;
  --caption: 0.8125rem;

  /* Spacing */
  --section-gap: clamp(80px, 10vw, 120px);
  --container-max: 1280px;
  --container-pad: clamp(16px, 3vw, 24px);

  /* Radius */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 20px 48px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 200ms;

  /* Header */
  --header-height: 72px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[data-locale="en"],
body[data-locale="de"],
body[data-locale="es"] {
  --font: 'Pretendard Variable', 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

body[data-locale="zh"] {
  --font: 'Pretendard Variable', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body[data-locale="ja"] {
  --font: 'Pretendard Variable', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--h1);
  font-weight: 800;
}

h2 {
  font-size: var(--h2);
}

h3 {
  font-size: var(--h3);
}

p {
  font-weight: 400;
  color: var(--text-secondary);
}

ul, ol, dl {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

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

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  padding-inline: var(--container-pad);
  margin-inline: auto;
}

.container-wide {
  width: 100%;
  max-width: 1440px;
  padding-inline: var(--container-pad);
  margin-inline: auto;
}

.site-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.page-shell {
  display: grid;
  gap: 0;
  padding: 0;
}

/* ── Utility classes ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: var(--caption);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.help-text {
  min-height: 1.2em;
  font-size: var(--small);
  color: var(--text-muted);
}

/* Remove old card/panel border overrides */
.simple-panel,
.content-card,
.faq-item,
.contact-form,
.auth-card,
.flow-panel,
.value-card,
.metrics-strip article,
.subpage-head {
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

/* ── Focus styles ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Selection ── */
::selection {
  background: var(--accent-light);
  color: var(--text);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  :root {
    --container-pad: 16px;
    --section-gap: 64px;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
