:root {
  color-scheme: light;
  --ink: #101827;
  --muted: #5f6b7a;
  --line: #d9e2ef;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --accent: #f97316;
  --accent-dark: #c2410c;
  --blue: #2563eb;
  --teal: #0f766e;
  --green: #16a34a;
  --danger: #dc2626;
  --shadow: 0 16px 40px rgba(16, 24, 39, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 18px;
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nav-links a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 12px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--soft);
  color: var(--ink);
  outline: none;
}

.admin-link {
  border: 1px solid var(--line);
}

.hero-section {
  align-items: center;
  background: #f7f9fc;
  display: grid;
  gap: clamp(28px, 5vw, 70px);
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1.14fr);
  min-height: calc(100vh - 72px);
  padding: clamp(46px, 7vw, 88px) clamp(18px, 5vw, 72px) clamp(34px, 5vw, 64px);
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(48px, 9vw, 112px);
  line-height: 0.92;
  margin: 0;
  max-width: 760px;
}

h2 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
  margin: 0;
}

h3 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.hero-text {
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 25px);
  margin: 24px 0 0;
  max-width: 650px;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  text-align: center;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--accent-dark);
  outline: none;
}

.button.secondary {
  background: var(--ink);
  color: #fff;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: #263247;
  outline: none;
}

.button.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.button.full {
  width: 100%;
}

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

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.proof-strip span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  padding: 9px 12px;
}

.hero-visual {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section {
  padding: clamp(58px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.section-heading {
  margin: 0 auto 34px;
  max-width: 760px;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  margin: 16px auto 0;
  max-width: 660px;
}

.services-section {
  background: #fff;
}

.service-grid,
.package-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1160px;
}

.service-card,
.package-card,
.metric-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.service-card p,
.package-card p {
  color: var(--muted);
  margin: 0;
}

.service-icon {
  align-items: center;
  background: #eef2ff;
  border-radius: 8px;
  color: var(--blue);
  display: inline-flex;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  margin-bottom: 18px;
  width: 44px;
}

.service-icon.warm {
  background: #fff7ed;
  color: var(--accent-dark);
}

.service-icon.teal {
  background: #ecfdf5;
  color: var(--teal);
}

.packages-section {
  background: var(--soft);
}

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

.package-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.package-price {
  color: var(--ink);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.package-card ul {
  color: var(--muted);
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.package-card li {
  padding-left: 24px;
  position: relative;
}

.package-card li::before {
  color: var(--green);
  content: "✓";
  font-weight: 900;
  left: 0;
  position: absolute;
}

.lead-section {
  align-items: start;
  background: #101827;
  color: #fff;
  display: grid;
  gap: clamp(28px, 5vw, 70px);
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  padding: clamp(58px, 8vw, 100px) clamp(18px, 5vw, 72px);
}

.lead-copy {
  max-width: 620px;
}

.lead-copy p:not(.eyebrow),
.site-footer {
  color: #cbd5e1;
}

.contact-panel {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  margin-top: 26px;
  padding: 18px;
}

.contact-panel p {
  margin: 8px 0;
}

.lead-form,
.modal,
.login-card,
.admin-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  padding: clamp(18px, 3vw, 28px);
}

.form-row {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

input,
select,
textarea {
  background: #fff;
  border: 1px solid #c9d4e3;
  border-radius: 8px;
  color: var(--ink);
  min-height: 46px;
  padding: 11px 12px;
  width: 100%;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
  outline: none;
}

.otp-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 16px;
  padding: 16px;
}

.otp-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  margin-top: 8px;
}

.form-hint,
.form-status {
  color: var(--muted);
  font-size: 14px;
  margin: 10px 0 0;
}

.form-status.success {
  color: var(--green);
  font-weight: 800;
}

.form-status.error {
  color: var(--danger);
  font-weight: 800;
}

.modal-backdrop {
  align-items: center;
  background: rgba(16, 24, 39, 0.72);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 50;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  box-shadow: var(--shadow);
  max-height: min(720px, calc(100vh - 40px));
  max-width: 520px;
  overflow: auto;
  position: relative;
  width: min(520px, 100%);
}

.modal h2 {
  font-size: 32px;
}

.modal-close,
.icon-button {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 22px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
}

.site-footer {
  align-items: center;
  background: #101827;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 22px clamp(18px, 5vw, 72px);
}

.admin-body {
  background: #f4f7fb;
  min-height: 100vh;
}

.admin-shell {
  margin: 0 auto;
  max-width: 1240px;
  padding: 28px clamp(16px, 4vw, 42px) 60px;
}

.admin-topbar {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.admin-topbar h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.login-card {
  margin: 10vh auto 0;
  max-width: 460px;
}

.login-card h1 {
  font-size: 42px;
  margin-bottom: 16px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tab-button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
  min-height: 42px;
  padding: 9px 14px;
}

.tab-button.active {
  background: var(--ink);
  color: #fff;
}

.metrics-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.metric-card span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.metric-card strong {
  font-size: 32px;
}

.admin-panel {
  overflow: auto;
}

.admin-section-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.admin-section-header h2 {
  font-size: 30px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 880px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td {
  font-size: 14px;
}

.table-input {
  min-height: 38px;
  min-width: 150px;
  padding: 8px 10px;
}

.notes-input {
  min-width: 220px;
}

.status-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 9px;
  text-transform: uppercase;
}

.status-new,
.status-pending {
  background: #fff7ed;
  color: var(--accent-dark);
}

.status-paid,
.status-won,
.status-qualified {
  background: #ecfdf5;
  color: #047857;
}

.status-failed,
.status-lost {
  background: #fef2f2;
  color: var(--danger);
}

.status-contacted,
.status-refunded {
  background: #eef2ff;
  color: var(--blue);
}

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

.package-editor {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.package-editor h3 {
  font-size: 20px;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .hero-section,
  .lead-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .service-grid,
  .package-grid,
  .metrics-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header,
  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .nav-links a {
    padding: 8px 10px;
  }

  .hero-section {
    padding-top: 34px;
  }

  .hero-actions,
  .package-top,
  .admin-section-header {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .otp-actions {
    grid-template-columns: 1fr;
  }

  .package-price {
    white-space: normal;
  }
}
