/* ===== DESIGN SYSTEM ===== */
:root {
  --color-bg: #07070f;
  --color-bg-2: #0d0d1a;
  --color-bg-3: #12121f;
  --color-accent: #6c63ff;
  --color-accent-hover: #5a52e0;
  --color-accent-light: rgba(108, 99, 255, 0.1);
  --color-text: #f0f0f0;
  --color-text-muted: #888;
  --color-text-dim: #555;
  --color-border: #1e1e30;
  --color-border-light: #252535;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;

  /* ===== GLASS ===== */
  --glass-bg:        rgba(255, 255, 255, 0.03);
  --glass-bg-strong: rgba(255, 255, 255, 0.06);
  --glass-border:    rgba(255, 255, 255, 0.08);
  --glass-blur:      blur(20px);
  --glass-shadow:    0 8px 32px rgba(0, 0, 0, 0.5);
}

/* ===== BACKGROUND TINT ===== */
.bg-tint {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 15% 25%, rgba(108,99,255,0.09) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 85% 75%, rgba(108,99,255,0.06) 0%, transparent 55%);
}

/* ===== GRAIN OVERLAY ===== */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23g)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 250px 250px;
  animation: grain-shift 0.5s steps(1) infinite;
}

@keyframes grain-shift {
  0%   { background-position:   0px   0px; }
  12%  { background-position: -30px -15px; }
  25%  { background-position:  25px  10px; }
  37%  { background-position: -10px  30px; }
  50%  { background-position:  30px -25px; }
  62%  { background-position: -20px  20px; }
  75%  { background-position:  10px -30px; }
  87%  { background-position: -25px  15px; }
  100% { background-position:  15px  25px; }
}

/* ===== CURSOR ===== */
@media (hover: hover) and (pointer: fine) {
  * { cursor: none !important; }

  /* Spotlight фон */
  .cursor-spot {
    position: fixed;
    top: 0; left: 0;
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(108,99,255,0.11) 0%, rgba(108,99,255,0.03) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9990;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s, background 0.4s;
    will-change: transform;
  }
  .cursor-spot.is-hovering {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(108,99,255,0.17) 0%, rgba(108,99,255,0.05) 45%, transparent 70%);
  }

  /* Трикутний курсор — обгортка */
  .cursor-tri {
    position: fixed;
    top: 0; left: 0;
    width: 0; height: 0;
    pointer-events: none;
    z-index: 99999;
    will-change: transform;
  }

  /* Три крапки */
  .cursor-tri span {
    position: absolute;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px rgba(108,99,255,0.9);
    transition: transform 0.15s ease, background 0.15s, box-shadow 0.15s;
  }

  /* Рівносторонній трикутник, кут вказує вліво-вгору (як курсор).
     Всі сторони ≈ 15.5px. Dot2 і Dot3 дзеркальні відносно діагоналі. */
  .cursor-tri span:nth-child(1) { transform: translate(  0px,  0px); } /* кінчик */
  .cursor-tri span:nth-child(2) { transform: translate(  4px, 15px); } /* низ-лівий */
  .cursor-tri span:nth-child(3) { transform: translate( 15px,  4px); } /* правий-верх */

  /* Hover — рівномірно розходяться, стають фіолетовими */
  .cursor-tri.is-hovering span {
    background: #8b5cf6;
    box-shadow: 0 0 8px rgba(108,99,255,1);
  }
  .cursor-tri.is-hovering span:nth-child(1) { transform: translate( -2px, -2px); }
  .cursor-tri.is-hovering span:nth-child(2) { transform: translate(  5px, 19px); }
  .cursor-tri.is-hovering span:nth-child(3) { transform: translate( 19px,  5px); }

  /* Click — стискаються до кінчика */
  .cursor-tri.is-clicking span:nth-child(1) { transform: translate(  0px,  0px); }
  .cursor-tri.is-clicking span:nth-child(2) { transform: translate(  2px,  8px); }
  .cursor-tri.is-clicking span:nth-child(3) { transform: translate(  8px,  2px); }
}

/* cursor-dot більше не використовується */
.cursor-dot { display: none; }

/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* NO overflow: hidden on html */
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden; /* only on body, never on html */
  position: relative;
  width: 100%;
  min-height: 100vh;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul {
  list-style: none;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

/* Mobile-first font sizes */
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  padding: 0 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== SECTIONS ===== */
section {
  width: 100%;
  overflow: hidden;
  padding: 60px 0;
}

.section-label {
  display: block;
  max-width: fit-content;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 600px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 1.25rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 7, 15, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  transition: border-color var(--transition), background var(--transition);
}

.navbar.scrolled {
  border-bottom-color: var(--color-border);
}

.navbar-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  flex-shrink: 0;
}

.navbar-logo span {
  color: var(--color-accent);
}

.navbar-links {
  display: none;
  gap: 1.5rem;
  align-items: center;
}

.navbar-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
  white-space: nowrap;
}

.navbar-links a:hover {
  color: var(--color-text);
}

.navbar-links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: #07070f;
  border-top: 1px solid var(--color-border);
  padding: 2rem 1.25rem;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  font-size: 1.1rem;
}

.btn-nav {
  padding: 0.45rem 1rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background var(--transition);
  white-space: nowrap;
}

.btn-nav:hover {
  background: var(--color-accent-hover);
}

.navbar-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  flex-shrink: 0;
}

.navbar-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.navbar-burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar-burger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar-burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  width: 100%;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 80px 0 60px;
  text-align: center;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(108, 99, 255, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(108, 99, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  max-width: fit-content;
  margin: 0 auto 1.5rem;
  background: var(--color-accent-light);
  border: 1px solid rgba(108, 99, 255, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--color-accent);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.hero-title .accent {
  color: var(--color-accent);
}

.hero-desc {
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

/* Mobile: full-width buttons */
.btn-primary {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 0.85rem 2rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--color-border-light);
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.hero-tag {
  padding: 0.3rem 0.7rem;
  background: var(--color-bg-3);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ===== ABOUT ===== */
.about-section {
  background: var(--color-bg-2);
  width: 100%;
  overflow: hidden;
}

/* Mobile: stacks vertically */
.about-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

/* Stats: 3 columns always, small padding on mobile */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.stat {
  text-align: center;
  padding: 0.75rem 0.4rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  min-width: 0;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-accent);
}

.stat-label {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  margin-top: 0.2rem;
  word-break: break-word;
}

.about-stack {
  padding: 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

.about-stack .section-label {
  margin-bottom: 1rem;
}

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tag {
  padding: 0.35rem 0.7rem;
  background: var(--color-bg-3);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  transition: border-color var(--transition), color var(--transition);
}

.skill-tag:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
}

/* ===== CARDS GRID ===== */
/* 1 column mobile, expands at breakpoints */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
  min-width: 0;
}

.card:hover {
  background: var(--glass-bg-strong);
}

.card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.card-img-wrap {
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--color-bg-3);
  display: block;
}

.card-img-placeholder {
  width: 100%;
  height: 180px;
  background: var(--color-bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dim);
  font-size: 2rem;
}

.card-body {
  padding: 1.25rem;
}

.card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  word-break: break-word;
}

.card-text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--color-border);
}

.card-date {
  font-size: 0.8rem;
  color: var(--color-text-dim);
}

.card-link {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 600;
  transition: opacity var(--transition);
}

.card-link:hover {
  opacity: 0.8;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.6rem;
}

.tag {
  padding: 0.2rem 0.55rem;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: 4px;
  font-size: 0.72rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--color-bg-2);
  text-align: center;
  width: 100%;
  overflow: hidden;
}

.cta-box {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.12), rgba(108, 99, 255, 0.04));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
}

.cta-box h2 {
  margin-bottom: 0.75rem;
}

.cta-box p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* ===== SECTION FOOTER ===== */
.section-footer {
  text-align: center;
  margin-top: 2rem;
}

/* ===== SITE FOOTER ===== */
.site-footer {
  background: var(--color-bg-2);
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0 1.5rem;
  width: 100%;
  overflow: hidden;
}

/* 1 column mobile */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-top: 0.6rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--color-text);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text-dim);
  text-align: center;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  justify-content: center;
}

.footer-socials a {
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.footer-socials a:hover {
  color: var(--color-accent);
}

/* ===== FADE IN ANIMATION ===== */
/* Only translateY — NEVER translateX */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== LOADING SPINNER ===== */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 2rem auto;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== ORDER POPUP ===== */
/* Mobile: bottom sheet */
#order-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

#order-popup.active {
  opacity: 1;
  visibility: visible;
}

.order-popup-box {
  background: rgba(10, 10, 20, 0.75);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid #222;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 1.5rem 1.25rem;
}

.order-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.order-popup-header h2 {
  font-size: 1.2rem;
  font-family: var(--font-heading);
}

.order-popup-close {
  width: 36px;
  height: 36px;
  background: #1a1a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #888;
  cursor: pointer;
  flex-shrink: 0;
  border: none;
}

.order-popup-close:hover {
  color: #fff;
}

.step-indicator {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2a2a2a;
  transition: background 0.3s;
}

.step-dot.active {
  background: #6c63ff;
}

.site-type-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.site-type-card {
  padding: 1rem;
  border: 1px solid #222;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.site-type-card:hover,
.site-type-card.selected {
  border-color: #6c63ff;
  background: rgba(108, 99, 255, 0.06);
}

.site-type-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.site-type-card p {
  font-size: 0.82rem;
  color: #888;
}

.order-step {
  display: none;
}

.order-field {
  margin-bottom: 0.875rem;
}

.order-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #888;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.order-input {
  width: 100%;
  padding: 0.65rem 0.875rem;
  background: #0a0a0a;
  border: 1px solid #222;
  border-radius: 8px;
  color: #f0f0f0;
  font-size: 0.875rem;
  font-family: var(--font-body);
}

.order-input:focus {
  outline: none;
  border-color: #6c63ff;
}

.order-input.error {
  border-color: #ef4444;
}

.field-error {
  display: block;
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.25rem;
}

textarea.order-input {
  resize: vertical;
  min-height: 80px;
}

.order-btn-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.order-btn-primary {
  flex: 1;
  padding: 0.8rem;
  background: #6c63ff;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.order-btn-primary:hover {
  background: #5a52e0;
}

.order-btn-secondary {
  padding: 0.8rem 1.25rem;
  background: transparent;
  border: 1px solid #222;
  border-radius: 8px;
  color: #888;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.order-btn-secondary:hover {
  border-color: #444;
  color: #f0f0f0;
}

.order-summary {
  background: #0a0a0a;
  border-radius: 10px;
  padding: 1.1rem;
  margin-bottom: 1.25rem;
}

.order-summary-type {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.order-summary-row {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.35rem;
}

.order-summary-row b {
  color: #f0f0f0;
}

.order-success {
  text-align: center;
  padding: 1rem 0;
}

.order-success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.order-success h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.order-success p {
  color: #888;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ===== HERO INNER LAYOUT ===== */
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}

.hero-text {
  width: 100%;
  text-align: center;
}

/* ===== HERO BADGE DOT ===== */
.hero-badge-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
  margin-right: 0.5rem;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ===== CODE CARD ===== */
.hero-code-card {
  width: 100%;
  max-width: 380px;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.code-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: #161b22;
  border-bottom: 1px solid #30363d;
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.code-dot.red    { background: #ff5f56; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green  { background: #27c93f; }

.code-card-title {
  font-size: 0.78rem;
  color: #8b949e;
  margin-left: 0.5rem;
  font-family: monospace;
}

.code-block {
  margin: 0;
  padding: 1.25rem;
  font-size: 0.8rem;
  line-height: 1.7;
  font-family: 'Fira Code', 'Consolas', monospace;
  overflow-x: auto;
  color: #e6edf3;
}

.code-keyword { color: #ff7b72; }
.code-var     { color: #79c0ff; }
.code-prop    { color: #79c0ff; }
.code-string  { color: #a5d6ff; }
.code-bool    { color: #79c0ff; }
.code-fn      { color: #d2a8ff; }

/* ===== PROCESS SECTION ===== */
.process-section {
  background: var(--color-bg);
  width: 100%;
  overflow: hidden;
  padding: 60px 0;
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.process-step {
  padding: 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  position: relative;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}

.process-step:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.process-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.process-step p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== TABLET (min-width: 600px) ===== */
@media (min-width: 600px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== TABLET/DESKTOP (min-width: 768px) ===== */
@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.4rem; }

  .container {
    padding: 0 2rem;
  }

  section {
    padding: 80px 0;
  }

  .navbar {
    padding: 0 2rem;
  }

  .navbar-links {
    display: flex;
  }

  .navbar-burger {
    display: none;
  }

  .hero {
    padding: 100px 0 80px;
  }

  .hero-desc {
    margin: 0 0 2rem;
  }

  .about-stats {
    gap: 1rem;
  }

  .stat {
    padding: 1.25rem 0.75rem;
  }

  .stat-num { font-size: 1.8rem; }

  .stat-label {
    font-size: 0.78rem;
  }

  /* About: text left (wider) + stack right (narrower) on desktop */
  .about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: start;
  }

  /* Footer: 3 columns on desktop */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-socials {
    justify-content: flex-end;
  }

  /* Order popup: centered on desktop */
  #order-popup {
    align-items: center;
    padding: 1.5rem;
  }

  .order-popup-box {
    border-radius: 16px;
    padding: 2rem;
    max-height: 90vh;
  }
}

/* ===== TABLET+ (min-width: 900px) ===== */
@media (min-width: 900px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    text-align: left;
  }

  .hero-text {
    max-width: 520px;
    text-align: left;
  }

  .hero-actions {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .btn-primary,
  .btn-secondary {
    width: auto;
    max-width: none;
    margin: 0;
    display: inline-block;
  }

  .hero-tags {
    justify-content: flex-start;
  }

  .hero-badge {
    margin: 0 0 1.5rem;
  }

  .process-steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
  backdrop-filter: var(--glass-blur);
}

.service-card:hover {
  border-color: rgba(108,99,255,0.4);
  transform: translateY(-4px);
}

.service-card--featured {
  border-color: rgba(108,99,255,0.5);
  background: var(--glass-bg-strong);
}

.service-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.service-icon {
  font-size: 2rem;
  line-height: 1;
}

.service-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent);
}

.service-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-text);
}

.service-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-features li {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  padding-left: 1.25rem;
  position: relative;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 600;
}

/* ===== FAQ ===== */
.faq-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--glass-bg);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color var(--transition);
  font-family: var(--font-body);
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--color-accent);
  transition: transform var(--transition);
  flex-shrink: 0;
  font-weight: 300;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 1.25rem 1.1rem;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== DESKTOP (min-width: 1024px) ===== */
@media (min-width: 1024px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }

  section {
    padding: 100px 0;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .cta-box {
    padding: 4rem 3rem;
  }
}
