/* web/site.css */
:root {
  --pc-bg-0: #05030d;
  --pc-bg-1: #0d0819;
  --pc-bg-2: #150d2a;
  --pc-surface: rgba(18, 12, 33, 0.92);
  --pc-surface-soft: rgba(255, 255, 255, 0.03);
  --pc-border: rgba(171, 141, 255, 0.2);
  --pc-border-strong: rgba(171, 141, 255, 0.34);
  --pc-text: #f5f3ff;
  --pc-text-muted: #d0cae0;
  --pc-text-soft: #a99fbe;
  --pc-accent: #b277ff;
  --pc-accent-light: #dec4ff;
  --pc-radius-xl: 28px;
  --pc-radius-lg: 20px;
  --pc-radius-md: 16px;
  --pc-radius-pill: 999px;
  --pc-shadow: 0 24px 60px rgba(4, 2, 10, 0.5);
  --pc-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--pc-text);
  background:
    radial-gradient(circle at top left, rgba(178, 119, 255, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.13), transparent 28%),
    linear-gradient(180deg, var(--pc-bg-2) 0%, var(--pc-bg-1) 42%, var(--pc-bg-0) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
}

.firebase-emulator-warning {
  display: none !important;
}

#pc-root-entry {
  display: none;
}

#pc-app-loading {
  display: none;
}

html.mode-root-entry #pc-root-entry {
  display: block;
}

html.mode-app #pc-app-loading {
  display: flex;
}

.pc-page {
  width: 100%;
  max-width: var(--pc-width);
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.pc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.pc-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.pc-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #ffffff;
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.pc-brand-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.pc-brand-subtitle {
  font-size: 0.84rem;
  color: var(--pc-text-soft);
}

.pc-header-login {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 16px;
  margin-left: auto;
  white-space: nowrap;
}

.pc-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0 2px;
}

.pc-anchor-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--pc-radius-pill);
  border: 1px solid var(--pc-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--pc-text-muted);
  font-size: 0.9rem;
}

.pc-anchor-nav a:hover,
.pc-anchor-nav a:focus-visible {
  color: var(--pc-text);
  border-color: rgba(222, 196, 255, 0.46);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.pc-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pc-hero,
.pc-section {
  border-radius: var(--pc-radius-xl);
  border: 1px solid var(--pc-border-strong);
  background:
    radial-gradient(circle at top left, rgba(222, 196, 255, 0.11), transparent 32%),
    linear-gradient(145deg, rgba(20, 13, 38, 0.98) 0%, rgba(12, 8, 23, 0.96) 100%);
  box-shadow: var(--pc-shadow);
}

.pc-hero {
  padding: 32px 28px 28px;
}

.pc-section {
  padding: 28px 24px 24px;
}

.pc-anchor-section {
  scroll-margin-top: 88px;
}

.pc-kicker,
.pc-card-label,
.pc-section-label {
  color: var(--pc-text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pc-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: var(--pc-radius-pill);
  border: 1px solid var(--pc-border);
  background: rgba(255, 255, 255, 0.03);
}

.pc-hero-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.pc-hero-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.pc-hero .pc-title {
  margin: 0 0 14px;
  font-size: clamp(2.15rem, 4vw, 3.8rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.pc-section .pc-title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 2.7vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.pc-body,
.pc-section-header p,
.pc-card p,
.pc-footnote {
  margin: 0;
  line-height: 1.68;
}

.pc-body,
.pc-section-header p,
.pc-card p {
  color: var(--pc-text-muted);
}

.pc-body {
  max-width: 52rem;
  font-size: 1.02rem;
}

.pc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.pc-hero-row .pc-actions {
  flex: 0 0 auto;
  margin-top: 0;
  margin-left: auto;
}

.pc-btn-primary,
.pc-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--pc-radius-pill);
  font-size: 0.96rem;
  font-weight: 700;
}

.pc-btn-primary {
  background: linear-gradient(135deg, var(--pc-accent-light), var(--pc-accent));
  color: #170b24;
  box-shadow: 0 16px 34px rgba(178, 119, 255, 0.25);
}

.pc-btn-primary:hover {
  filter: brightness(1.04);
}

.pc-btn-secondary {
  border: 1px solid var(--pc-border-strong);
  background: var(--pc-surface-soft);
  color: var(--pc-text);
}

.pc-btn-secondary:hover {
  border-color: rgba(222, 196, 255, 0.44);
  background: rgba(255, 255, 255, 0.05);
}

.pc-footnote {
  margin-top: 10px;
  color: var(--pc-text-soft);
  font-size: 0.88rem;
}

.pc-card {
  padding: 18px;
  border-radius: var(--pc-radius-lg);
  border: 1px solid var(--pc-border);
  background: var(--pc-surface-soft);
}

.pc-card h2,
.pc-card h3 {
  margin: 8px 0 8px;
}

.pc-card h2 {
  font-size: 1.02rem;
  line-height: 1.35;
}

.pc-card h3 {
  font-size: 1rem;
  line-height: 1.35;
}

.pc-card p {
  color: var(--pc-text-muted);
}

.pc-section-header {
  margin-bottom: 18px;
}

.pc-section-header h2 {
  margin: 8px 0 8px;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  letter-spacing: -0.03em;
}

.pc-grid-2,
.pc-grid-3 {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.pc-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pc-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pc-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pc-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--pc-radius-pill);
  border: 1px solid var(--pc-border);
  background: rgba(178, 119, 255, 0.12);
  color: var(--pc-text);
  font-size: 0.88rem;
}

.pc-chip:hover {
  border-color: rgba(222, 196, 255, 0.44);
}

.pc-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: 18px;
  padding: 0 2px;
  color: var(--pc-text-soft);
  font-size: 0.84rem;
}

.pc-footer a {
  color: var(--pc-text-soft);
}

.pc-footer a:hover {
  color: var(--pc-text);
}

#pc-app-loading {
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top left, rgba(178, 119, 255, 0.16), transparent 28%),
    linear-gradient(180deg, var(--pc-bg-2) 0%, var(--pc-bg-1) 45%, var(--pc-bg-0) 100%);
}

.pc-app-loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pc-app-loading-logo {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: #ffffff;
  object-fit: contain;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.pc-app-loading-text {
  color: var(--pc-text-muted);
  font-size: 0.95rem;
}

.pc-noscript {
  padding: 14px 16px;
  background: #fff0c7;
  color: #6f4b00;
  font-size: 0.92rem;
  line-height: 1.55;
}

.pc-noscript a {
  color: #6f4b00;
  font-weight: 700;
}

@media (max-width: 980px) {
  .pc-grid-2,
  .pc-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .pc-hero-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .pc-hero-row .pc-actions {
    margin-top: 18px;
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .pc-page {
    padding: 18px 14px 36px;
  }

  .pc-header {
    gap: 12px;
  }

  .pc-hero,
  .pc-section {
    padding: 22px 18px 18px;
  }

  .pc-hero .pc-title {
    font-size: clamp(2rem, 10vw, 2.9rem);
  }

  .pc-section .pc-title {
    font-size: clamp(1.6rem, 8vw, 2.15rem);
  }

  .pc-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pc-btn-primary,
  .pc-btn-secondary {
    width: 100%;
  }

  .pc-header-login {
    width: auto;
  }

  .pc-hero-row .pc-actions {
    width: auto;
  }

  .pc-hero-row .pc-actions .pc-btn-primary,
  .pc-hero-row .pc-actions .pc-btn-secondary {
    width: auto;
  }
}