html { scroll-behavior: smooth; }
:root {
  --page-bg: #f3f4f6;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #111827;
  --muted: #6b7280;
  --border: #d1d5db;
  --ring: #c4b5fd;
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --accent: #ec4899;
  --ok: #16a34a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand span {
  color: var(--primary);
  margin-left: 6px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f9fafb;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
  border-color: #9ca3af;
  background: #ffffff;
  color: var(--text);
}

.nav-link.primary {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.nav-link.primary:hover {
  background: #000000;
  border-color: #000000;
}

.hamburger {
  width: 42px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}

.mobile-menu {
  display: none;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 10px 18px 14px;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 11px 4px;
  font-size: 15px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu .cta {
  margin-top: 10px;
  border-bottom: none;
  border-radius: 999px;
  text-align: center;
  border: 1px solid #111827;
  background: #111827;
  color: #ffffff;
  padding: 12px 16px;
}

.page {
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 18px 56px;
}

.hero {
  display: grid;
  gap: 22px;
  background: linear-gradient(140deg, #ffffff 0%, #f8f5ff 100%);
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 28px;
}

.kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
  max-width: 70ch;
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--border);
}

.btn.primary {
  border-color: var(--primary);
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #ffffff;
}

.btn.primary:hover {
  background: linear-gradient(90deg, var(--primary-dark), #db2777);
}

.btn.ghost {
  background: #ffffff;
  color: var(--text);
}

.section {
  margin-top: 22px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 22px;
}

.section h2 {
  margin: 0 0 12px;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.grid-2,
.grid-3,
.grid-4 {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: 1fr;
}

.card {
  background: var(--surface-soft);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 14px;
}

.card h3,
.card h4 {
  margin: 0 0 6px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.badge {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #ddd6fe;
  color: #6d28d9;
  background: #f5f3ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #374151;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px #ede9fe;
}

.notice {
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1e40af;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
}

.hide {
  display: none;
}

.footer-note {
  margin-top: 16px;
  color: #6b7280;
  font-size: 13px;
}

footer {
  margin-top: 24px;
  background: #111827;
  color: #ffffff;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 32px 18px 28px;
  text-align: center;
}

.footer-inner h4 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.footer-tagline {
  margin: 8px 0 0;
  color: #9ca3af;
  font-size: 15px;
  line-height: 1.5;
}

.footer-links {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #c4b5fd;
  font-size: 14px;
  font-weight: 600;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-copyright {
  margin: 18px 0 0;
  color: #6b7280;
  font-size: 12px;
}

.section-footer {
  max-width: 1140px;
  margin: 0 auto 18px;
}

.mt-12 {
  margin-top: 12px;
}

.mt-14 {
  margin-top: 14px;
}

.mt-16 {
  margin-top: 16px;
}

.card-stack {
  margin-bottom: 12px;
}

.chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.notice-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.notice-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.form-stack {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.terms-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: #4b5563;
}

.terms-row input,
.checkbox-inline input {
  margin-top: 2px;
  min-height: 0;
  width: auto;
}

.auth-link {
  color: #7c3aed;
  font-weight: 600;
}

.auth-submit {
  width: 100%;
  margin-top: 6px;
}

.auth-meta {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: #6b7280;
}

.auth-meta .auth-link {
  font-weight: 700;
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
}

.auth-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1fr;
}

.auth-panel {
  display: none;
}

.auth-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(17, 24, 39, 0.72), rgba(124, 58, 237, 0.5));
}

.auth-copy {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  color: #ffffff;
}

.auth-copy h2 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 0.95;
}

.auth-copy p {
  margin: 0;
  opacity: 0.95;
  line-height: 1.6;
}

.auth-form-wrap {
  padding: 24px 18px 36px;
}

.auth-card {
  max-width: 520px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.auth-head h1 {
  margin: 0;
  font-size: 44px;
  letter-spacing: -0.03em;
}

.auth-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.inline-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.form-help {
  color: #6b7280;
  font-size: 12px;
}

.legal-box {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  background: #fafafa;
}

.legal-box h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.legal-box p,
.legal-box li {
  color: #4b5563;
  line-height: 1.7;
  font-size: 15px;
}

.legal-box ul {
  margin: 0;
  padding-left: 18px;
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inline-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-shell {
    grid-template-columns: minmax(340px, 46vw) minmax(420px, 54vw);
  }

  .auth-panel {
    display: block;
    position: relative;
    min-height: calc(100vh - 72px);
    border-right: 1px solid #e5e7eb;
  }

  .auth-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
  }
}
