@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Sora:wght@500;600;700&display=swap");

:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --ink: #0f172a;
  --muted: #5f6b7b;
  --accent: #14b8a6;
  --accent-dark: #0f766e;
  --accent-2: #f97316;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --stroke: rgba(148, 163, 184, 0.35);
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background: radial-gradient(circle at 15% 10%, #e0f2fe, transparent 55%),
    radial-gradient(circle at 80% 0%, #fff7ed, transparent 50%),
    var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(20, 184, 166, 0.12), transparent 40%),
    radial-gradient(circle at 80% 40%, rgba(249, 115, 22, 0.12), transparent 45%);
  pointer-events: none;
  z-index: -1;
}

.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: 0.2;
  pointer-events: none;
  z-index: -1;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 8vw;
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(245, 247, 251, 0.75);
  border-bottom: 1px solid var(--stroke);
  z-index: 5;
}

.logo {
  font-family: "Sora", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-nav a,
.site-nav button {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.nav-link {
  padding: 6px 10px;
  border-radius: 999px;
}

.nav-link.active {
  background: rgba(20, 184, 166, 0.14);
  color: var(--accent-dark);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  padding: 48px 8vw 24px;
  align-items: center;
}

.hero h1 {
  font-family: "Sora", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  margin: 12px 0;
}

.hero .lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 520px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--accent-dark);
  font-weight: 600;
}

.hero-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.8));
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--stroke);
  padding-bottom: 12px;
}

.stat:last-child {
  border-bottom: none;
}

.stat span {
  font-size: 1.6rem;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 18px 35px rgba(20, 184, 166, 0.25);
}

.btn.primary:hover {
  transform: translateY(-2px);
}

.btn.ghost {
  border: 1px solid var(--stroke);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
}

.btn.soft {
  background: rgba(20, 184, 166, 0.12);
  color: var(--accent-dark);
}

.btn.sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.features,
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  padding: 32px 8vw 24px;
}

.feature,
.pricing-card {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--stroke);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.pricing-card.highlight {
  background: var(--ink);
  color: white;
}

.auth {
  display: flex;
  justify-content: center;
  padding: 32px 8vw 60px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  width: min(520px, 100%);
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tab {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.tab.active {
  background: var(--ink);
  color: white;
}

.tab-panel {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.tab-panel.active {
  display: flex;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
}

label.inline {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

input,
select,
textarea {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  font-family: inherit;
  background: var(--surface);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.input {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  font-family: inherit;
  background: var(--surface);
  min-width: 180px;
}

.form-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.form-note.error {
  color: #b91c1c;
}

.api-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: var(--surface-2);
  cursor: pointer;
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
}

.icon[data-icon="eye"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%230f172a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 10s3.5-6 8.5-6 8.5 6 8.5 6-3.5 6-8.5 6-8.5-6-8.5-6Z'/%3E%3Ccircle cx='10' cy='10' r='3'/%3E%3C/svg%3E");
}

.icon[data-icon="eye-off"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%230f172a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5 17 15.5'/%3E%3Cpath d='M2 10s3.5-6 8.5-6c1.5 0 2.9.4 4.2 1.1'/%3E%3Cpath d='M18 10s-3.5 6-8.5 6c-1.5 0-3-.4-4.2-1.1'/%3E%3Cpath d='M8.4 8.4a3 3 0 0 1 4.2 4.2'/%3E%3C/svg%3E");
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 8vw 40px;
  border-top: 1px solid var(--stroke);
}

.panel-shell {
  padding: 28px 8vw 60px;
  display: grid;
  gap: 20px;
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.page-head h1 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.order-spotlight {
  border: 1px solid rgba(20, 184, 166, 0.35);
  background: linear-gradient(140deg, rgba(20, 184, 166, 0.1), rgba(255, 255, 255, 0.95));
}

.spotlight-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.spotlight-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.card {
  background: var(--surface);
  border-radius: 22px;
  border: 1px solid var(--stroke);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.dashboard-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.kpi {
  background: var(--surface-2);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--stroke);
}

.kpi-label {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 8px;
}

.kpi-value {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
}

.kpi-meta {
  color: var(--muted);
  font-size: 0.75rem;
}

.table {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
}

.table-header,
.table-row {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
}

.table-header {
  background: var(--surface-2);
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}

.table-row {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.9);
}

.orders-grid {
  grid-template-columns: 90px 1.4fr 0.9fr 0.8fr 1.6fr;
}

.services-grid {
  grid-template-columns: 80px 1.6fr 0.9fr 0.9fr 0.9fr;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.toolbar-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pill.success {
  background: rgba(20, 184, 166, 0.18);
  color: var(--accent-dark);
}

.pill.pending {
  background: rgba(249, 115, 22, 0.18);
  color: #c2410c;
}

.pill.failed {
  background: rgba(239, 68, 68, 0.18);
  color: #b91c1c;
}

.stack {
  display: grid;
  gap: 12px;
}

.code-block {
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 14px;
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
}

.fade-up {
  animation: fadeUp 0.6s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .orders-grid,
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    gap: 12px;
  }
  .site-footer {
    flex-direction: column;
    gap: 12px;
  }
}
