:root {
  --bg: #f2f2f0;
  --surface: #ffffff;
  --text: #18181b;
  --text-muted: rgba(24, 24, 27, 0.52);
  --text-faint: rgba(24, 24, 27, 0.36);
  --line: rgba(0, 0, 0, 0.07);
  --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 28px rgba(0,0,0,0.07);
  --shadow-lg: 0 2px 4px rgba(0,0,0,0.04), 0 24px 64px rgba(0,0,0,0.09);
  --accent: #c4a87c;
  --accent-dim: rgba(196, 168, 124, 0.16);
  --success: #16a34a;
  --warn: #b45309;
  --error: #dc2626;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --container: 1120px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.5;
  letter-spacing: -0.01em;
  font-size: 1rem;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/*
====================================
Layout
====================================
*/

.page-shell {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

/*
====================================
Header
====================================
*/

.site-header {
  padding: 24px 0 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0;
}

.nav-links {
  display: inline-flex;
  gap: 2px;
  align-items: center;
}

.nav-link {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 140ms var(--ease), background 140ms var(--ease);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(0,0,0,0.05);
}

/*
====================================
Hero
====================================
*/

.hero {
  padding: 64px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 40px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.0;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-copy {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 38rem;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-side {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 24px;
  display: grid;
  align-content: space-between;
  gap: 16px;
}

.hero-mark-wrap {
  flex: 1;
  min-height: 280px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--line);
}

.hero-mark {
  width: min(55%, 200px);
  border-radius: 16px;
  opacity: 0.96;
}

.hero-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-faint);
  font-size: 0.85rem;
}

/*
====================================
Section
====================================
*/

.section {
  padding: 16px 0 72px;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 16px;
}

.mini-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 24px 28px;
}

.mini-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.mini-copy {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/*
====================================
Buttons
====================================
*/

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: opacity 140ms var(--ease), transform 100ms var(--ease), box-shadow 140ms var(--ease);
}

.button:disabled { cursor: not-allowed; opacity: 0.45; }

.button-primary {
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  background: var(--text);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.12);
}

.button-primary:hover:not(:disabled) {
  opacity: 0.85;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.14);
}

.button-primary:active:not(:disabled) {
  transform: translateY(0);
  opacity: 0.9;
}

.button-secondary {
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.button-secondary:hover:not(:disabled) {
  background: var(--bg);
  border-color: rgba(0,0,0,0.12);
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/*
====================================
Center page (success / cancel)
====================================
*/

.center-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.center-card {
  width: min(calc(100% - 40px), 520px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 48px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.center-mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.center-title {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 12px;
}

.center-copy {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 28rem;
  margin-bottom: 6px;
}

.center-hint {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 0;
}

/*
====================================
Spinner
====================================
*/

.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--line);
  border-top-color: var(--text-muted);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto 28px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner-row {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

/*
====================================
Status indicator
====================================
*/

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: var(--text-faint);
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}

.status-dot.success { background: var(--success); }
.status-dot.warn    { background: var(--warn); }
.status-dot.error   { background: var(--error); }

/*
====================================
Footer
====================================
*/

.site-footer {
  padding: 0 0 48px;
  border-top: 1px solid var(--line);
}

.site-footer .page-shell {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/*
====================================
Responsive
====================================
*/

@media (max-width: 880px) {
  .hero { padding-top: 40px; }

  .hero-grid,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .hero-card { padding: 28px; }
  .hero-side { display: none; }

  .header-inner {
    gap: 12px;
  }

  .center-card {
    padding: 36px 24px;
  }
}
