@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --c-void: 8, 11, 22;
  --c-bg: 246, 248, 252;
  --c-surface: 255, 255, 255;
  --c-surface2: 235, 240, 249;
  --c-ink: 13, 18, 32;
  --c-muted: 90, 99, 122;
  --c-border: 216, 224, 240;
  --c-accent: 36, 174, 243;
  --c-accent-dark: 29, 78, 216;
  color-scheme: light;
}
html.dark {
  --c-bg: 5, 8, 18;
  --c-surface: 11, 15, 29;
  --c-surface2: 15, 21, 40;
  --c-ink: 236, 241, 252;
  --c-muted: 143, 153, 181;
  --c-border: 28, 36, 62;
  color-scheme: dark;
}

* { box-sizing: border-box; border-color: rgb(var(--c-border)); }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: rgb(var(--c-bg));
  color: rgb(var(--c-ink));
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container-main { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: rgb(var(--c-accent));
}
.section-label::before { content: ''; width: 16px; height: 1px; background: rgb(var(--c-accent)); }
.heading-xl { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
.heading-lg { font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
.heading-md { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1.25; margin: 0; }
.italic-accent { font-style: italic; color: rgb(var(--c-accent)); }
.muted { color: rgb(var(--c-muted)); }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgb(var(--c-accent)); color: #fff; border: none; cursor: pointer;
  padding: 14px 28px; font-family: var(--font-body); font-weight: 600; font-size: .9rem;
  letter-spacing: .02em; border-radius: 999px; transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -6px rgba(36,174,243,.55); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px; background: transparent; cursor: pointer;
  border: 1px solid rgb(var(--c-border)); color: rgb(var(--c-ink));
  padding: 14px 28px; font-weight: 600; font-size: .9rem; border-radius: 999px; transition: all .2s ease;
}
.btn-outline:hover { border-color: rgb(var(--c-accent)); color: rgb(var(--c-accent)); transform: translateY(-2px); }

/* ---------- Cards ---------- */
.card { background: rgb(var(--c-surface)); border: 1px solid rgb(var(--c-border)); border-radius: 20px; padding: 28px; transition: all .25s ease; }
.card:hover { border-color: rgba(36,174,243,.4); }

/* ---------- Header/Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px);
  background: rgba(var(--c-bg), .82); border-bottom: 1px solid rgb(var(--c-border));
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: 1180px; margin: 0 auto; }
.nav-logo { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: .9rem; font-weight: 500; color: rgb(var(--c-muted)); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: rgb(var(--c-accent)); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: rgb(var(--c-ink)); }
.theme-toggle-btn { background: none; border: 1px solid rgb(var(--c-border)); border-radius: 999px; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: rgb(var(--c-ink)); }
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 64px 0 0 0; background: rgb(var(--c-bg)); flex-direction: column; padding: 32px 24px; gap: 20px; transform: translateY(-110%); transition: transform .3s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero / page-hero ---------- */
.page-hero { padding: 130px 24px 70px; background: rgb(var(--c-surface2)); border-bottom: 1px solid rgb(var(--c-border)); }

/* ---------- Footer ---------- */
.site-footer { background: rgb(var(--c-surface2)); border-top: 1px solid rgb(var(--c-border)); padding: 60px 24px 30px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; max-width: 1180px; margin: 0 auto; }
.footer-grid h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgb(var(--c-accent)); margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { font-size: .88rem; color: rgb(var(--c-muted)); }
.footer-grid a:hover { color: rgb(var(--c-ink)); }
.footer-bottom { max-width: 1180px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid rgb(var(--c-border)); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .78rem; color: rgb(var(--c-muted)); }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Forms ---------- */
.form-label { display: block; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: rgba(var(--c-ink),.8); margin-bottom: 8px; }
.form-input, .form-textarea, .form-select {
  width: 100%; border: 1px solid rgb(var(--c-border)); background: rgb(var(--c-surface));
  border-radius: 12px; padding: 12px 16px; font-family: var(--font-body); font-size: .9rem;
  color: rgb(var(--c-ink)); transition: border-color .2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { outline: none; border-color: rgb(var(--c-accent)); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-error { color: #ef4444; font-size: 12px; margin-top: 4px; }
.form-success { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 70px 24px; border: 1px solid rgb(var(--c-border)); background: rgb(var(--c-surface2)); border-radius: 20px; }

/* ---------- Reveal-on-scroll (simplified) ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Marquee ---------- */
.marquee-wrap { overflow: hidden; border-top: 1px solid rgb(var(--c-border)); border-bottom: 1px solid rgb(var(--c-border)); background: rgb(var(--c-void)); padding: 18px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track span { font-family: var(--font-mono); font-size: .85rem; color: rgba(255,255,255,.6); white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Misc utility ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.pill { display: inline-block; font-size: 12px; border: 1px solid rgb(var(--c-border)); background: rgb(var(--c-surface)); padding: 4px 12px; border-radius: 999px; color: rgba(var(--c-ink),.8); }
.section { padding: 80px 0; }
.section-alt { background: rgb(var(--c-surface2)); border-top: 1px solid rgb(var(--c-border)); border-bottom: 1px solid rgb(var(--c-border)); }
.section-dark { background: rgb(var(--c-void)); color: #fff; }

/* ---------- Modal (checkout) ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-panel { position: relative; width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto; background: rgb(var(--c-bg)); border: 1px solid rgb(var(--c-border)); border-radius: 20px; box-shadow: 0 30px 60px rgba(0,0,0,.3); padding: 32px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 999px; border: 1px solid rgb(var(--c-border)); background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: rgb(var(--c-muted)); }
.spinner { width: 40px; height: 40px; border: 3px solid rgb(var(--c-border)); border-top-color: rgb(var(--c-accent)); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 20px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Quick service card ---------- */
.qs-card { display: flex; flex-direction: column; height: 100%; }
.qs-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin: 0 0 16px; min-height: 3rem; }
.qs-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qs-price { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; color: rgb(var(--c-accent)); }

/* ---------- Admin panel ---------- */
.admin-body { background: #f4f5f7; font-family: var(--font-body); color: #111; min-height: 100vh; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 230px; background: #111827; color: #cbd5e1; flex-shrink: 0; padding: 24px 0; }
.admin-sidebar .brand { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.2rem; padding: 0 24px 24px; }
.admin-sidebar a { display: block; padding: 11px 24px; font-size: .88rem; color: #cbd5e1; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: #1f2937; color: #fff; }
.admin-main { flex: 1; padding: 32px; max-width: 1200px; }
.admin-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 24px; margin-bottom: 20px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.admin-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; border-bottom: 1px solid #e5e7eb; padding: 10px 12px; }
.admin-table td { padding: 12px; border-bottom: 1px solid #f3f4f6; vertical-align: top; }
.admin-stat { display: flex; flex-direction: column; gap: 4px; }
.admin-stat .num { font-family: var(--font-display); font-size: 2rem; font-weight: 600; }
.admin-stat .label { font-size: .8rem; color: #6b7280; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-approved, .badge-paid { background: #d1fae5; color: #065f46; }
.badge-rejected, .badge-failed { background: #fee2e2; color: #991b1b; }
.badge-created { background: #e0e7ff; color: #3730a3; }
.admin-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #111827; }
.admin-login-box { background: #fff; border-radius: 16px; padding: 40px; width: 100%; max-width: 380px; }
.admin-btn { background: #111827; color: #fff; border: none; padding: 11px 20px; border-radius: 8px; font-weight: 600; font-size: .85rem; cursor: pointer; }
.admin-btn:hover { background: #1f2937; }
.admin-btn-danger { background: #dc2626; }
.admin-btn-outline { background: #fff; border: 1px solid #d1d5db; color: #111; }
.admin-input { width: 100%; border: 1px solid #d1d5db; border-radius: 8px; padding: 9px 12px; font-size: .88rem; }
.admin-flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .86rem; }
.admin-flash-ok { background: #d1fae5; color: #065f46; }
.admin-flash-err { background: #fee2e2; color: #991b1b; }
