:root {
  --bg: #f7fbff;
  --bg-soft: #ffffff;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: #ffffff;
  --ink: #122033;
  --muted: #617182;
  --line: rgba(18, 32, 51, 0.08);
  --line-strong: rgba(18, 32, 51, 0.14);
  --accent: #14a085;
  --accent-strong: #0e7560;
  --accent-soft: #e4f8f2;
  --accent-soft-2: #eff8ff;
  --warning: #a9661d;
  --warning-soft: #fff4e5;
  --shadow: 0 28px 80px rgba(20, 43, 79, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(20, 160, 133, 0.14), transparent 26%),
    radial-gradient(circle at 84% 12%, rgba(115, 196, 255, 0.18), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(205, 235, 255, 0.35), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, #eef5fc 100%);
}

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

img {
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(250, 252, 255, 0.84);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner,
.page-section,
.hero,
.legal-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 124px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
}

.brand img {
  width: 150px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 32px rgba(20, 160, 133, 0.12));
}

.public .brand img,
.auth .brand img {
  width: 260px;
  height: auto;
}

.brand strong,
h1,
h2,
h3,
h4 {
  font-family: "Sora", sans-serif;
  letter-spacing: -0.03em;
}

.top-nav,
.header-actions,
.footer-links,
.button-row,
.metric-grid,
.card-grid,
.split-grid,
.mini-grid,
.plan-grid,
.status-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.language-toggle a {
  color: inherit;
}

.language-toggle a.active {
  color: var(--ink);
}

.top-nav a,
.side-nav a {
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.top-nav a:hover,
.side-nav a:hover,
.top-nav a.active,
.side-nav a.active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(18, 32, 51, 0.04);
}

.button,
button {
  border: 0;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 18px;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #19ab8c, #0e7560);
  box-shadow: 0 16px 30px rgba(20, 160, 133, 0.22);
}

.button-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
}

.button-muted {
  color: var(--muted);
  background: transparent;
  border: 1px dashed var(--line-strong);
}

.button-danger {
  color: #b94444;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(185, 68, 68, 0.22);
}

.file-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.file-input-trigger {
  flex: 0 0 auto;
}

.file-input-name {
  color: var(--muted);
  font-size: 0.95rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
}

.badge-soft {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.badge-accent {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.badge-warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.page-main,
.workspace-main {
  padding: 34px 0 76px;
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: stretch;
  padding: 58px 0 28px;
}

.hero-panel,
.glass-card,
.stat-card,
.feature-card,
.form-card,
.vault-item,
.timeline-item,
.legal-card,
.sidebar-card,
.table-card,
.pricing-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.hero-copy,
.hero-side,
.page-section,
.workspace-panel,
.legal-card,
.form-card {
  padding: 30px;
}

.hero-copy {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.98), rgba(241, 251, 247, 0.96)),
    var(--panel);
}

.hero-side .hero-panel:first-child {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(240, 248, 255, 0.94)),
    var(--panel);
}

.hero-logo {
  width: 260px;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 18px 0 10px;
  filter: drop-shadow(0 18px 34px rgba(20, 160, 133, 0.14));
}

.hero-kicker,
.section-kicker,
.sidebar-kicker,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.77rem;
  color: var(--accent-strong);
  font-weight: 800;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 0.94;
  margin: 14px 0 18px;
}

.hero p,
.page-lead,
.feature-card p,
.workspace-panel p,
.legal-card p,
.form-card p,
.faq-item p,
.timeline-item p,
.vault-item p,
.sidebar-card p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.95));
}

.stat-value {
  font-family: "Sora", sans-serif;
  font-size: 1.9rem;
  margin-top: 8px;
}

.page-section {
  margin-top: 24px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 22px;
}

.section-heading h2,
.workspace-panel h1,
.workspace-panel h2,
.legal-card h1,
.legal-card h2,
.form-card h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 8px 0 0;
}

.card-grid,
.mini-grid,
.plan-grid,
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.pricing-card,
.vault-item,
.timeline-item,
.table-card {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.94));
}

.feature-card h3,
.pricing-card h3,
.vault-item h3,
.timeline-item h3,
.table-card h3,
.sidebar-card h2 {
  margin: 10px 0 8px;
  font-size: 1.25rem;
}

.pricing-btc-line {
  margin: 6px 0 10px;
  color: var(--accent-strong);
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.pricing-rate-note {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.list-clean {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.list-clean li {
  position: relative;
  padding-left: 20px;
  margin-top: 12px;
  color: var(--muted);
}

.list-clean li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 0.62em;
}

.notice {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.notice-accent {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-soft-2));
}

.notice-warning {
  background: var(--warning-soft);
}

.workspace-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  padding-top: 28px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 126px;
  align-self: start;
}

.sidebar-card {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.94));
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-state {
  font-family: "Sora", sans-serif;
  font-size: 1.3rem;
  margin: 10px 0 6px;
}

.state-locked {
  color: var(--warning);
}

.state-unlocked {
  color: var(--accent);
}

.workspace-main {
  padding-top: 0;
}

.workspace-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 251, 255, 0.93));
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
  margin-bottom: 22px;
}

.workspace-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
}

.workspace-panel-subtitle {
  color: var(--muted);
  max-width: 680px;
}

.status-grid {
  margin-top: 20px;
}

.status-chip {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.vault-list,
.timeline-list {
  display: grid;
  gap: 16px;
}

.vault-item header,
.timeline-item header,
.table-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.vault-meta,
.timeline-meta,
.table-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.vault-actions,
.table-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.table-actions form,
.button-row form {
  margin: 0;
}

.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.inline-form select {
  min-width: 120px;
}

.table-card {
  overflow: hidden;
}

.payment-detail-list {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.payment-detail {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.payment-detail-stack {
  flex-direction: column;
}

.address-box {
  display: block;
  width: 100%;
  overflow-wrap: anywhere;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(244, 250, 255, 0.96);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: "Sora", sans-serif;
  font-size: 0.96rem;
}

.qr-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0 18px;
}

.qr-wrap img {
  width: min(260px, 100%);
  height: auto;
  padding: 12px;
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 48px rgba(20, 43, 79, 0.12);
}

.table-row {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.table-row:first-of-type {
  border-top: 0;
}

.legal-wrap {
  padding: 36px 0 72px;
}

.legal-card {
  padding: 34px;
}

.legal-card + .legal-card {
  margin-top: 22px;
}

.legal-card ul {
  margin: 14px 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
}

.faq-item h3 {
  margin: 0 0 8px;
}

.form-shell {
  width: min(980px, calc(100% - 32px));
  margin: 40px auto 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form-card {
  padding: 28px;
}

.field {
  margin-top: 16px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.98);
  font: inherit;
  color: var(--ink);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.helper {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.field-error {
  margin-top: 8px;
  color: #b94444;
  font-size: 0.92rem;
  font-weight: 600;
}

.dev-preview {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(16, 163, 127, 0.1);
  border: 1px solid rgba(16, 163, 127, 0.18);
}

.dev-preview strong {
  display: block;
  margin-bottom: 6px;
}

.dev-code {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
}

.empty-state {
  padding: 22px 0;
  color: var(--muted);
}

.vault-secret-form .helper:last-child {
  min-height: 1.4rem;
}

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

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 24px;
  align-items: start;
}

.footer-links {
  flex-direction: column;
  align-items: start;
}

.footer-links a,
.footer-note,
.footer-bottom {
  color: var(--muted);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 20px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1080px) {
  .hero,
  .split-grid,
  .form-shell,
  .footer-inner,
  .workspace-shell {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .plan-grid,
  .status-grid,
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    padding: 14px 0;
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    justify-content: center;
  }

  .public .brand img,
  .auth .brand img {
    width: 220px;
    height: auto;
  }

  .top-nav,
  .header-actions,
  .button-row,
  .vault-actions,
  .table-actions,
  .section-heading,
  .workspace-panel-header {
    justify-content: flex-start;
  }

  .metric-grid,
  .card-grid,
  .plan-grid,
  .status-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-side,
  .page-section,
  .workspace-panel,
  .legal-card,
  .form-card {
    padding: 22px;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .hero-logo {
    width: 220px;
    height: auto;
  }
}
