:root {
  color-scheme: dark;
  --ink: #0d1b2a;
  --navy: #1a2b45;
  --charcoal: #2e2e37;
  --gold: #d4a017;
  --gold-soft: #f2c978;
  --paper: #f5f6f8;
  --surface: rgba(245, 246, 248, 0.08);
  --border: rgba(242, 201, 120, 0.18);
  --text: #f5f6f8;
  --muted: rgba(245, 246, 248, 0.76);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 999px;
  font-family: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(212, 160, 23, 0.18), transparent 24%),
    radial-gradient(circle at 90% 10%, rgba(242, 201, 120, 0.12), transparent 18%),
    linear-gradient(180deg, #16283d 0%, var(--ink) 42%, #09131f 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(245, 246, 248, 0.02) 1px, transparent 1px),
    linear-gradient(rgba(245, 246, 248, 0.02) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.35;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: 0.2s ease;
}

.page-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
  padding: 18px 22px;
  border: 1px solid rgba(242, 201, 120, 0.16);
  border-radius: 26px;
  background: rgba(13, 27, 42, 0.52);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 22px;
  border: 1px solid rgba(13, 27, 42, 0.1);
  background: linear-gradient(135deg, rgba(245, 246, 248, 0.9), rgba(255, 255, 255, 0.82));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.brand-logo {
  display: block;
  max-width: 100%;
}

.brand-logo-full {
  width: min(430px, 48vw);
}

.brand-logo-compact {
  display: none;
  width: 84px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.text-link {
  color: rgba(245, 246, 248, 0.86);
  font-weight: 600;
}

.text-link:hover {
  color: var(--gold-soft);
}

.login-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.login-button {
  border: 1px solid rgba(242, 201, 120, 0.4);
  background: linear-gradient(135deg, rgba(26, 43, 69, 0.98), rgba(13, 27, 42, 0.98));
  color: var(--paper);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
}

.login-button img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.login-button:hover {
  transform: translateY(-1px);
  border-color: var(--gold-soft);
}

.primary-button {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--ink);
  box-shadow: 0 16px 32px rgba(212, 160, 23, 0.26);
}

.primary-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.secondary-button {
  border: 1px solid rgba(245, 246, 248, 0.16);
  background: rgba(245, 246, 248, 0.05);
  color: var(--paper);
}

.secondary-button:hover {
  border-color: rgba(242, 201, 120, 0.36);
  background: rgba(245, 246, 248, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: start;
  padding: 24px 0 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(242, 201, 120, 0.24);
  background: rgba(242, 201, 120, 0.08);
  color: var(--gold-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
}

.hero-text,
.section-heading p,
.feature-card p,
.price-card p,
.footer p {
  color: var(--muted);
  line-height: 1.7;
}

.plan-description {
  white-space: pre-line;
}

.hero-text {
  max-width: 62ch;
  margin: 20px 0 0;
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions-overlay {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
}

.hero-actions-overlay .primary-button,
.hero-actions-overlay .secondary-button {
  backdrop-filter: blur(12px);
}

.hero-actions-overlay .primary-button {
  background: rgba(212, 160, 23, 0.78);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.hero-actions-overlay .secondary-button {
  border-color: rgba(245, 246, 248, 0.18);
  background: rgba(13, 27, 42, 0.32);
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-highlights li,
.feature-card,
.price-card {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-highlights li {
  min-height: 100%;
  padding: 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
}

.hero-visual {
  width: 100%;
}

.hero-media {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.hero-photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 27, 42, 0.08) 0%, rgba(13, 27, 42, 0.82) 100%);
}

.plan-label {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(242, 201, 120, 0.14);
  color: var(--gold-soft);
  font-size: 0.85rem;
  font-weight: 700;
}

.section {
  padding: 84px 0 0;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-heading p {
  margin-top: 16px;
}

.feature-grid,
.pricing-grid {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.price-card {
  padding: 26px;
  border-radius: var(--radius-md);
}

.feature-card h3,
.price-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

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

.list-card .plain-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.list-card .plain-list li + li {
  margin-top: 6px;
}

.pricing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-card.featured {
  background: linear-gradient(180deg, rgba(212, 160, 23, 0.18) 0%, rgba(245, 246, 248, 0.08) 100%);
  border-color: rgba(242, 201, 120, 0.36);
  transform: translateY(-4px);
}

.price {
  margin: 2px 0;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-soft);
}

.price span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 76px;
  padding: 24px 0 8px;
  border-top: 1px solid rgba(245, 246, 248, 0.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-brand img {
  width: 92px;
}

.footer-brand p {
  margin: 0;
}

.footer a {
  color: var(--gold-soft);
  font-weight: 700;
}

.footer a:hover {
  color: var(--paper);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
}

.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(242, 201, 120, 0.22);
  background: rgba(13, 27, 42, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.cookie-banner-text {
  display: grid;
  gap: 6px;
  max-width: 72ch;
  color: rgba(245, 246, 248, 0.92);
}

.cookie-banner-text strong {
  color: var(--paper);
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.cookie-link {
  font-weight: 700;
  color: var(--gold-soft);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(242, 201, 120, 0.18);
  background: rgba(245, 246, 248, 0.03);
}

.cookie-link:hover {
  border-color: rgba(242, 201, 120, 0.36);
  color: var(--paper);
}

@media (max-width: 720px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .cookie-banner-inner {
    padding: 14px 14px;
  }
}

.contact-layout,
.admin-grid {
  display: grid;
  gap: 24px;
  margin-top: 30px;
}

.contact-layout {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.contact-copy {
  display: grid;
  gap: 18px;
}

.contact-card,
.lead-form,
.admin-card {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.contact-card,
.admin-card {
  padding: 26px;
}

.contact-card h3,
.admin-card h2 {
  margin-top: 0;
}

.lead-form {
  padding: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid label,
.textarea-label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.input-field {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(245, 246, 248, 0.14);
  border-radius: 16px;
  background: rgba(245, 246, 248, 0.06);
  color: var(--paper);
}

.textarea-field {
  min-height: 150px;
  padding: 16px;
  resize: vertical;
}

.input-field:focus {
  outline: 2px solid rgba(242, 201, 120, 0.3);
  border-color: rgba(242, 201, 120, 0.32);
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  color: var(--muted);
}

.status-message {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 600;
}

.status-message.success {
  background: rgba(28, 184, 120, 0.14);
  color: #9df0c4;
}

.status-message.error {
  background: rgba(210, 74, 74, 0.16);
  color: #ffbdbd;
}

.admin-shell {
  padding-top: 28px;
}

.admin-header {
  margin-bottom: 18px;
}

.admin-login-card {
  max-width: 520px;
}

.contract-shell {
  padding-top: 28px;
}

.contract-card {
  display: grid;
  gap: 18px;
}

.contract-form .form-grid {
  margin-top: 8px;
}

.grid-span-2 {
  grid-column: 1 / -1;
}

.contract-preview {
  margin-top: 10px;
}

.contract-text {
  max-height: 360px;
  overflow: auto;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(245, 246, 248, 0.12);
  background: rgba(245, 246, 248, 0.04);
  color: rgba(245, 246, 248, 0.92);
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95rem;
  line-height: 1.45;
}

.contract-accept {
  margin-top: 12px;
}

.admin-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.admin-card-header,
.admin-actions,
.stack-item,
.stack-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-form-grid {
  margin-top: 8px;
}

.stack-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.stack-item {
  padding: 18px;
  border-radius: 18px;
  background: rgba(245, 246, 248, 0.05);
  border: 1px solid rgba(245, 246, 248, 0.08);
}

.stack-item p,
.stack-item small,
.empty-state {
  color: var(--muted);
  margin: 6px 0 0;
}

.stack-item.vertical {
  display: grid;
}

.small-button {
  min-height: 40px;
  padding: 0 16px;
}

.danger-button {
  border-color: rgba(210, 74, 74, 0.35);
  color: #ffcece;
}

.danger-button:hover {
  border-color: rgba(255, 120, 120, 0.5);
  background: rgba(210, 74, 74, 0.12);
}

@media (max-width: 1100px) {
  .contact-layout,
  .admin-grid,
  .pricing-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 780px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 20px;
  }

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

  .brand {
    border-color: rgba(242, 201, 120, 0.22);
    background: linear-gradient(135deg, rgba(26, 43, 69, 0.96), rgba(13, 27, 42, 0.96));
  }

  .brand-logo-full {
    display: none;
  }

  .brand-logo-compact {
    display: block;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    gap: 22px;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }
  .hero-actions-overlay,
  .price-card,
  .contact-card,
  .lead-form,
  .admin-card {
    padding: 22px;
  }

  .hero-actions-overlay {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }

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

  .footer-links,
  .form-grid,
  .stack-item,
  .stack-actions,
  .admin-card-header,
  .admin-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
}
