/* ============================================================
   HiPi Printer – Global Stylesheet
   Theme: Deep Black + Electric Blue
   ============================================================ */

:root {
  --bg-0:        #000005;
  --bg-1:        #07070f;
  --bg-2:        #0e0e1c;
  --bg-3:        #151528;
  --bg-card:     #111122;
  --blue-900:    #001a66;
  --blue-800:    #002db3;
  --blue-600:    #0055e6;
  --blue-500:    #0066ff;
  --blue-400:    #3388ff;
  --blue-300:    #66aaff;
  --blue-100:    #b3d4ff;
  --cyan:        #00ccff;
  --cyan-glow:   rgba(0, 204, 255, 0.25);
  --blue-glow:   rgba(0, 102, 255, 0.3);
  --blue-glow2:  rgba(0, 102, 255, 0.12);
  --text-1:      #ffffff;
  --text-2:      #c8d4f0;
  --text-3:      #8899bb;
  --text-4:      #4a5580;
  --border:      rgba(0, 102, 255, 0.18);
  --border-h:    rgba(0, 204, 255, 0.45);
  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   22px;
  --radius-xl:   32px;
  --shadow:      0 4px 30px rgba(0,0,0,0.5);
  --shadow-blue: 0 0 40px rgba(0,102,255,0.25);
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main:   'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-400); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cyan); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--blue-600); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-400); }

/* ── Selection ── */
::selection { background: rgba(0,102,255,0.4); color: #fff; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section--sm { padding: 60px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.heading-xl {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.heading-lg {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.heading-md {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
}
.heading-sm { font-size: 1.25rem; font-weight: 700; }
.body-lg { font-size: 1.125rem; color: var(--text-2); line-height: 1.7; }
.body-md { font-size: 1rem; color: var(--text-2); line-height: 1.7; }
.body-sm { font-size: 0.875rem; color: var(--text-3); }
.label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-400);
}
.gradient-text {
  background: linear-gradient(135deg, var(--blue-400) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  color: #fff;
  box-shadow: 0 0 30px var(--blue-glow), 0 4px 15px rgba(0,0,0,0.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-500), var(--cyan));
  box-shadow: 0 0 50px var(--blue-glow), 0 8px 25px rgba(0,0,0,0.4);
  transform: translateY(-2px);
  color: #fff;
}
.btn-outline {
  border: 1.5px solid var(--border-h);
  color: var(--text-1);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--cyan);
  background: rgba(0,204,255,0.07);
  color: var(--cyan);
  transform: translateY(-2px);
}
.btn-ghost {
  color: var(--text-2);
  background: transparent;
  padding: 10px 20px;
}
.btn-ghost:hover { color: var(--text-1); background: var(--bg-3); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; border-radius: var(--radius-sm); }
.btn-danger { background: linear-gradient(135deg, #c0392b, #e74c3c); color: #fff; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-500), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: var(--shadow-blue);
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  background: var(--blue-glow2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  background: rgba(5, 5, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.navbar.scrolled {
  background: rgba(5, 5, 15, 0.97);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 20px var(--blue-glow);
}
.nav-logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-1);
}
.nav-logo-text span { color: var(--blue-400); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--text-1);
  background: var(--bg-3);
}
.nav-link.active { color: var(--blue-400); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all var(--transition);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-link {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition);
}
.mobile-link:hover { color: var(--text-1); background: var(--bg-3); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,80,255,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 30%, rgba(0,180,255,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 30% 30% at 20% 70%, rgba(0,60,200,0.08) 0%, transparent 50%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,102,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,102,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 70%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(0,102,255,0.12);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-300);
  margin-bottom: 28px;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-title { margin-bottom: 24px; }
.hero-desc { margin-bottom: 40px; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-400), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.85rem; color: var(--text-3); margin-top: 2px; }

/* ── Hero visual / printer mockup ── */
.hero-visual {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  z-index: 1;
}
.printer-3d {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(145deg, var(--bg-3), var(--bg-2));
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow:
    0 0 60px rgba(0,102,255,0.2),
    0 0 120px rgba(0,102,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .label { margin-bottom: 12px; }
.section-header .heading-lg { margin-bottom: 16px; }
.section-header .body-lg { max-width: 560px; margin: 0 auto; }

/* ============================================================
   FEATURES
   ============================================================ */
.features-section { background: var(--bg-1); }
.feature-card .card-icon { background: linear-gradient(135deg, var(--blue-glow2), rgba(0,204,255,0.08)); }
.feature-card h3 { margin-bottom: 10px; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps { position: relative; }
.step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.step:hover { border-color: var(--border-h); box-shadow: var(--shadow-blue); }
.step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 0 20px var(--blue-glow);
}
.step-body h3 { margin-bottom: 8px; }

/* ============================================================
   TEMPLATES
   ============================================================ */
.templates-section { background: var(--bg-1); }
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.template-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}
.template-card:hover {
  border-color: var(--blue-400);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,102,255,0.2);
}
.template-preview {
  aspect-ratio: 3/4;
  background: linear-gradient(145deg, var(--bg-2), var(--bg-3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.template-preview-landscape { aspect-ratio: 4/3; }
.template-preview-square { aspect-ratio: 1; }
.template-label {
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
}
.template-sublabel {
  padding: 0 16px 12px;
  font-size: 0.75rem;
  color: var(--text-3);
}

/* ============================================================
   PRINT APP (print.html)
   ============================================================ */
.print-app-section { padding-top: 100px; min-height: 100vh; }
.print-workspace {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  margin-top: 32px;
}
.print-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.print-panel h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  background: var(--bg-2);
}
.upload-zone:hover, .upload-zone.dragging {
  border-color: var(--blue-400);
  background: rgba(0,102,255,0.06);
}
.upload-icon { font-size: 3rem; margin-bottom: 12px; }
.upload-zone p { color: var(--text-3); font-size: 0.9rem; }
.upload-zone strong { color: var(--blue-400); }
#file-input { display: none; }
.preview-area {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  overflow: hidden;
  position: relative;
}
.preview-placeholder {
  text-align: center;
  color: var(--text-4);
}
.preview-placeholder .icon { font-size: 4rem; margin-bottom: 16px; }
#preview-img {
  max-width: 100%;
  max-height: 600px;
  object-fit: contain;
  display: none;
  border-radius: var(--radius-sm);
}
.template-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.tmpl-btn {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}
.tmpl-btn:hover, .tmpl-btn.active {
  border-color: var(--blue-400);
  background: rgba(0,102,255,0.1);
  color: var(--blue-300);
}
.print-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.print-setting:last-of-type { border-bottom: none; }
.setting-label { font-size: 0.9rem; color: var(--text-2); }
.setting-ctrl {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qty-btn {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-1);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.qty-btn:hover { border-color: var(--blue-400); color: var(--blue-400); }
.qty-val { font-size: 0.9rem; font-weight: 600; min-width: 20px; text-align: center; }
.toggle-switch {
  position: relative;
  width: 42px; height: 24px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-3);
  border-radius: 100px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}
.toggle-slider::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  background: var(--text-3);
  border-radius: 50%;
  transition: all var(--transition);
}
.toggle-switch input:checked + .toggle-slider { background: var(--blue-600); border-color: var(--blue-400); }
.toggle-switch input:checked + .toggle-slider::after { transform: translateX(18px); background: #fff; }
select.form-select {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-1);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: all var(--transition);
}
select.form-select:focus { border-color: var(--blue-400); }

/* ============================================================
   SUPPORT PAGE
   ============================================================ */
.support-header {
  padding: 140px 0 60px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-0) 100%);
  text-align: center;
}
.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4px 4px 4px 20px;
  max-width: 560px;
  margin: 0 auto;
  transition: all var(--transition);
}
.search-bar:focus-within { border-color: var(--blue-400); box-shadow: 0 0 0 3px var(--blue-glow2); }
.search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-1);
  font-size: 1rem;
  font-family: inherit;
}
.search-bar input::placeholder { color: var(--text-3); }
.support-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}
.cat-card:hover {
  border-color: var(--blue-400);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,102,255,0.2);
}
.cat-icon { font-size: 2.2rem; margin-bottom: 12px; }
.cat-card h4 { font-size: 0.95rem; margin-bottom: 4px; }
.cat-card p { font-size: 0.8rem; color: var(--text-3); }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--blue-400); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--blue-300); }
.faq-arrow {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  transition: all var(--transition);
}
.faq-item.open .faq-arrow { background: var(--blue-600); transform: rotate(180deg); }
.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 24px; }
.faq-answer p { color: var(--text-2); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.form-input,
.form-textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text-1);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition);
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--blue-400);
  background: var(--bg-3);
  box-shadow: 0 0 0 3px var(--blue-glow2);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-4); }
.form-textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
}
.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; padding-bottom: 0; }
.contact-item-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--blue-glow2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-item-text h4 { font-size: 0.85rem; font-weight: 700; color: var(--text-3); margin-bottom: 4px; }
.contact-item-text p, .contact-item-text a { font-size: 0.95rem; color: var(--text-2); }
.contact-item-text a:hover { color: var(--cyan); }

/* ============================================================
   POLICY PAGES (Privacy, Terms)
   ============================================================ */
.policy-header {
  padding: 140px 0 60px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-0) 100%);
  text-align: center;
}
.policy-body {
  padding: 60px 0 100px;
}
.policy-content {
  max-width: 780px;
  margin: 0 auto;
}
.policy-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 48px;
}
.policy-toc h3 { font-size: 0.9rem; font-weight: 700; color: var(--text-3); margin-bottom: 14px; }
.policy-toc ol {
  list-style: decimal;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.policy-toc li a { font-size: 0.9rem; color: var(--blue-400); }
.policy-toc li a:hover { color: var(--cyan); }
.policy-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.policy-section:last-child { border-bottom: none; }
.policy-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-1);
}
.policy-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--blue-300);
}
.policy-section p { color: var(--text-2); line-height: 1.8; margin-bottom: 14px; }
.policy-section ul, .policy-section ol {
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.policy-section ul { list-style: disc; }
.policy-section ol { list-style: decimal; }
.policy-section li { color: var(--text-2); line-height: 1.7; }
.policy-section a { color: var(--blue-400); }
.policy-section a:hover { color: var(--cyan); }
.policy-highlight {
  background: rgba(0,102,255,0.08);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
}
.policy-highlight p { margin: 0; color: var(--text-2); }
.policy-meta {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-bottom: 8px;
}
.policy-contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  color: var(--text-2);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--blue-900), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 80px 48px;
  text-align: center;
  margin: 0 24px;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(0,102,255,0.15) 0%, transparent 60%);
}
.cta-section > * { position: relative; z-index: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { color: var(--text-3); font-size: 0.9rem; margin-top: 16px; max-width: 280px; line-height: 1.7; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: 0.9rem; color: var(--text-3); transition: color var(--transition); }
.footer-link:hover { color: var(--text-1); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p { font-size: 0.85rem; color: var(--text-4); }
.footer-badges { display: flex; gap: 12px; }
.badge-uk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(0,102,255,0.1);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--blue-300);
  font-weight: 600;
}

/* ============================================================
   MISC COMPONENTS
   ============================================================ */
.divider { height: 1px; background: var(--border); margin: 40px 0; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(0,102,255,0.12);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-300);
}
.tag-green { background: rgba(0,180,80,0.1); border-color: rgba(0,180,80,0.2); color: #4ddf8a; }
.tag-orange { background: rgba(255,140,0,0.1); border-color: rgba(255,140,0,0.2); color: #ffaa44; }
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.alert-info { background: rgba(0,102,255,0.1); border: 1px solid var(--border); color: var(--blue-300); }
.alert-success { background: rgba(0,180,80,0.1); border: 1px solid rgba(0,180,80,0.2); color: #4ddf8a; }

/* ============================================================
   GLOW EFFECTS
   ============================================================ */
.glow-blue { box-shadow: 0 0 30px var(--blue-glow); }
.glow-cyan { box-shadow: 0 0 30px var(--cyan-glow); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding: 130px 0 70px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-0) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0,80,255,0.1) 0%, transparent 70%);
}
.page-hero > * { position: relative; z-index: 1; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-3);
}
.breadcrumb a { color: var(--blue-400); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb span { color: var(--text-4); }

/* ============================================================
   PRINT STYLES (for the print app)
   ============================================================ */
@media print {
  body > *:not(#print-frame) { display: none !important; }
  #print-frame {
    display: block !important;
    width: 100%;
    height: 100%;
    border: none;
  }
  .navbar, .footer, .print-panel { display: none !important; }
  #preview-img { display: block !important; max-width: 100%; max-height: 100vh; margin: 0 auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .print-workspace { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .cta-section { padding: 48px 24px; margin: 0 16px; }
  .template-select { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero { padding-top: 90px; }
}
