/* ===== XCEL Digital — tech blue theme ===== */

:root {
  --blue-900: #0a2a5e;
  --blue-800: #0d3480;
  --blue-700: #113f9e;
  --blue-600: #155eef;
  --blue-500: #3b7cff;
  --blue-400: #6f9dff;
  --blue-100: #e6efff;
  --blue-50: #f2f6ff;

  --gray-900: #101828;
  --gray-700: #344054;
  --gray-600: #475467;
  --gray-400: #98a2b3;
  --gray-200: #e4e7ec;
  --gray-100: #f2f4f7;
  --gray-50: #f8fafc;
  --white: #ffffff;

  --success: #067647;
  --success-bg: #ecfdf3;
  --danger: #b42318;
  --danger-bg: #fef3f2;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 4px 16px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 12px 32px rgba(10, 42, 94, 0.16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 { color: var(--gray-900); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--gray-700); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand-mark { color: var(--blue-600); }
.brand-suffix { color: var(--gray-900); font-weight: 600; }
.brand:hover { text-decoration: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a.active,
.site-nav a:hover { color: var(--blue-600); text-decoration: none; }

.nav-cta { margin-left: 4px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--gray-900);
  border-radius: 2px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--blue-700); }
.btn-outline {
  background: var(--white);
  color: var(--blue-600);
  border-color: var(--blue-600);
}
.btn-outline:hover { background: var(--blue-50); }
.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border-color: var(--gray-200);
}
.btn-ghost:hover { background: var(--gray-100); }
.btn-danger {
  background: var(--white);
  color: var(--danger);
  border-color: #f4b8b1;
}
.btn-danger:hover { background: var(--danger-bg); }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--blue-600) 100%);
  color: var(--white);
  padding: 96px 0 110px;
}
.hero .container { text-align: center; max-width: 760px; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 { color: var(--white); font-size: 3rem; margin-bottom: 18px; }
.hero p.lead { color: rgba(255,255,255,0.88); font-size: 1.15rem; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .btn-primary { background: var(--white); color: var(--blue-700); }
.hero .btn-primary:hover { background: var(--blue-50); }
.hero .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.5); background: transparent; }
.hero .btn-outline:hover { background: rgba(255,255,255,0.1); }

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--white); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-header .eyebrow {
  display: block;
  color: var(--blue-600);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ===== Feature / stat grid ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue-100);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; color: var(--blue-700); }
.stat-card .stat-label { color: var(--gray-600); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* ===== CTA band ===== */
.cta-band {
  background: var(--blue-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  margin: 0 24px;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.85); }

/* ===== Product grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.product-card-media {
  height: 150px;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  font-weight: 800;
  font-size: 1.4rem;
}
.product-card-media img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-vendor {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-600);
}
.product-price { font-size: 1.4rem; font-weight: 800; color: var(--gray-900); margin: 6px 0; }
.product-card-footer { padding: 0 22px 22px; margin-top: auto; }
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-600);
  background: var(--white);
  border: 1px dashed var(--gray-200);
  border-radius: var(--radius-lg);
}

/* ===== Forms ===== */
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form-narrow { max-width: 440px; margin: 0 auto; }
label { display: block; font-weight: 600; font-size: 0.88rem; color: var(--gray-700); margin-bottom: 6px; }
.form-group { margin-bottom: 18px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], textarea, select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--gray-900);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--blue-100);
}
textarea { resize: vertical; min-height: 110px; }
.form-hint { font-size: 0.82rem; color: var(--gray-600); margin-top: 4px; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { width: auto; }
.checkbox-row label { margin: 0; font-weight: 500; }
fieldset { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
legend { padding: 0 6px; font-weight: 700; color: var(--gray-900); }

.field-error { color: var(--danger); font-size: 0.82rem; margin-top: 4px; }

/* ===== Alerts ===== */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin: 20px 0;
  font-size: 0.9rem;
  border: 1px solid transparent;
}
.alert-success { background: var(--success-bg); color: var(--success); border-color: #abefc6; }
.alert-error, .alert-danger { background: var(--danger-bg); color: var(--danger); border-color: #f4b8b1; }
.alert-info { background: var(--blue-50); color: var(--blue-700); border-color: var(--blue-100); }

/* ===== Badges ===== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-blue { background: var(--blue-100); color: var(--blue-700); }

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--gray-100); white-space: nowrap; }
th { background: var(--gray-50); color: var(--gray-600); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
tr:last-child td { border-bottom: none; }
td.wrap, th.wrap { white-space: normal; }
.table-actions { display: flex; gap: 8px; }

/* ===== Dashboard / account shell ===== */
.dash-header { padding: 40px 0 8px; }
.dash-header h1 { margin-bottom: 4px; }
.dash-header .sub { color: var(--gray-600); }
.dash-tabs { display: flex; gap: 8px; margin: 24px 0 32px; border-bottom: 1px solid var(--gray-200); }
.dash-tabs a {
  padding: 10px 4px;
  margin-right: 24px;
  font-weight: 600;
  color: var(--gray-600);
  border-bottom: 2px solid transparent;
}
.dash-tabs a.active { color: var(--blue-600); border-color: var(--blue-600); text-decoration: none; }
.dash-tabs a:hover { text-decoration: none; color: var(--blue-600); }

.panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
}
.panel-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-title h2, .panel-title h3 { margin: 0; }

/* ===== FAQ accordion ===== */
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-item:first-child { border-top: 1px solid var(--gray-200); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 4px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-question .icon { color: var(--blue-600); font-size: 1.3rem; flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer-inner { padding: 0 4px 20px; color: var(--gray-600); }

/* ===== Login / auth pages ===== */
.auth-shell {
  min-height: calc(100vh - 72px - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

/* ===== Footer ===== */
.site-footer { background: var(--blue-900); color: rgba(255,255,255,0.75); padding: 48px 0 28px; margin-top: 64px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer-brand .brand-mark { color: var(--blue-400); }
.footer-brand .brand-suffix { color: var(--white); }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.85rem; margin-top: 6px; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--white); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin: 0; }

/* ===== Prose (privacy policy etc) ===== */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.prose ul { color: var(--gray-700); padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--gray-600); }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid-3, .grid-2, .product-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; padding: 12px 0; }
  .nav-cta { margin: 10px 0 0; }
  .hero h1 { font-size: 2.1rem; }
  .hero { padding: 64px 0 80px; }
  .grid-3, .grid-2, .grid-4, .product-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; gap: 0; }
  .cta-band { margin: 0; border-radius: 0; }
}
