* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0a1225;
  color: #c8d6e5;
  font-family: 'Syne', sans-serif;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 210, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(100, 0, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 20% 60%, rgba(0, 128, 255, 0.05) 0%, transparent 50%);
}

/* ===== LANG SWITCH ===== */
.lang-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  gap: 4px;
  background: #0a1628;
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 6px;
  padding: 4px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: #5a7a9a;
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.lang-btn.active {
  background: #00d2ff;
  color: #050b15;
  font-weight: 700;
}

.lang-btn:hover:not(.active) {
  color: #00d2ff;
}

/* ===== PARTICLES ===== */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.service-card.reveal.revealed {
  transform: perspective(600px) rotateX(2deg);
}

.service-card.reveal.revealed:hover {
  transform: perspective(600px) rotateX(0deg) translateY(-8px);
}

.stack-item.reveal.revealed {
  transform: perspective(400px) rotateX(3deg);
}

.stack-item.reveal.revealed:hover {
  transform: perspective(400px) rotateX(0deg) translateY(-4px) scale(1.05);
}

/* Stagger delay for cards */
.service-card:nth-child(1) { transition-delay: 0s; }
.service-card:nth-child(2) { transition-delay: 0.15s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }
.service-card:nth-child(4) { transition-delay: 0.45s; }
.service-card:nth-child(5) { transition-delay: 0.6s; }

.stack-item:nth-child(1) { transition-delay: 0s; }
.stack-item:nth-child(2) { transition-delay: 0.08s; }
.stack-item:nth-child(3) { transition-delay: 0.16s; }
.stack-item:nth-child(4) { transition-delay: 0.24s; }
.stack-item:nth-child(5) { transition-delay: 0.32s; }
.stack-item:nth-child(6) { transition-delay: 0.40s; }
.stack-item:nth-child(7) { transition-delay: 0.48s; }
.stack-item:nth-child(8) { transition-delay: 0.56s; }

.step:nth-child(1) { transition-delay: 0s; }
.step:nth-child(3) { transition-delay: 0.15s; }
.step:nth-child(5) { transition-delay: 0.3s; }
.step:nth-child(7) { transition-delay: 0.45s; }

.offer-item:nth-child(1) { transition-delay: 0s; }
.offer-item:nth-child(2) { transition-delay: 0.12s; }
.offer-item:nth-child(3) { transition-delay: 0.24s; }
.offer-item:nth-child(4) { transition-delay: 0.36s; }

.offer-item.reveal.revealed {
  transform: perspective(600px) rotateX(2deg);
}
.offer-item.reveal.revealed:hover {
  transform: perspective(600px) rotateX(0deg) translateY(-4px);
}

.faq-item:nth-child(1) { transition-delay: 0s; }
.faq-item:nth-child(2) { transition-delay: 0.08s; }
.faq-item:nth-child(3) { transition-delay: 0.16s; }
.faq-item:nth-child(4) { transition-delay: 0.24s; }
.faq-item:nth-child(5) { transition-delay: 0.32s; }

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  border: 1px solid rgba(0, 210, 255, 0.15);
  margin: 12px;
  border-radius: 4px;
}

.services,
.process,
.stack,
.cta,
.footer {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  width: 100%;
  align-items: center;
}

/* Corner decorations */
.corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: #00d2ff;
  border-style: solid;
}
.corner-tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.corner-tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.corner-bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.corner-br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* Code Block */
.code-block {
  background: linear-gradient(145deg, #0c1a30, #081222);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.4),
    0 15px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(0, 210, 255, 0.1);
  transform: perspective(800px) rotateY(-2deg) rotateX(1deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.code-block:hover {
  transform: perspective(800px) rotateY(0deg) rotateX(0deg) translateY(-4px);
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.5),
    0 20px 50px rgba(0, 210, 255, 0.1),
    inset 0 1px 0 rgba(0, 210, 255, 0.15);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(0, 210, 255, 0.05);
  border-bottom: 1px solid rgba(0, 210, 255, 0.1);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }

.code-filename {
  margin-left: 10px;
  color: #5a6a7a;
  font-size: 12px;
}

.code-content {
  padding: 16px;
  line-height: 1.7;
  overflow-x: auto;
}

.code-content code {
  color: #8892a0;
}

.line-num { color: #3a4a5a; user-select: none; }
.tag { color: #e06c75; }
.selector { color: #61dafb; }
.prop { color: #c678dd; }
.val { color: #98c379; }
.val.highlight {
  background: rgba(0, 210, 255, 0.15);
  padding: 1px 4px;
  border-radius: 2px;
  color: #00d2ff;
}
.comment { color: #5a6a5a; font-style: italic; }

.cursor {
  color: #00d2ff;
  animation: blink 0.8s step-end infinite;
  font-weight: 100;
}

@keyframes blink {
  50% { opacity: 0; }
}

.code-footer {
  display: flex;
  gap: 8px;
  padding: 8px 14px;
  border-top: 1px solid rgba(0, 210, 255, 0.1);
  font-size: 11px;
  color: #5a6a7a;
}

/* Branding */
.branding {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.bolt-icon {
  position: relative;
  width: 80px;
  height: 80px;
  border: 2px solid #00d2ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d2ff;
  animation: pulse 2s ease-in-out infinite;
}

.bolt-icon svg {
  width: 32px;
  height: 32px;
}

.bolt-label {
  position: absolute;
  bottom: -8px;
  right: -8px;
  background: #00d2ff;
  color: #050b15;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.3), 0 0 15px rgba(0, 210, 255, 0.1); }
  50% { box-shadow: 0 0 25px 8px rgba(0, 210, 255, 0.2), 0 0 40px rgba(0, 210, 255, 0.1); }
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.tag-pill {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-pill.html { background: #e44d26; color: #fff; }
.tag-pill.css { background: #264de4; color: #fff; }
.tag-pill.js { background: #f7df1e; color: #000; }
.tag-pill.nocms { background: transparent; border: 1px solid #00d2ff; color: #00d2ff; }
.tag-pill.deploy { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; }

.logo {
  font-size: 56px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.subtitle {
  font-size: 16px;
  letter-spacing: 12px;
  color: #5a7a9a;
  text-transform: uppercase;
}

.tagline {
  font-size: 13px;
  color: #3a5a7a;
  letter-spacing: 2px;
}

/* Stats */
.stats {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-comment {
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  color: #3a5a5a;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-size: 14px;
  color: #5a7a9a;
}

/* ===== SERVICES ===== */
.section-title {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin-bottom: 50px;
}

.services {
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.service-card {
  background: linear-gradient(145deg, #0c1a30, #081222);
  border: 1px solid rgba(0, 210, 255, 0.1);
  border-radius: 8px;
  padding: 40px 30px;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.3),
    0 10px 30px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transform: perspective(600px) rotateX(2deg);
}

.service-card:hover {
  border-color: rgba(0, 210, 255, 0.4);
  transform: perspective(600px) rotateX(0deg) translateY(-8px);
  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(0, 210, 255, 0.08),
    inset 0 1px 0 rgba(0, 210, 255, 0.1);
}

.service-icon {
  width: 48px;
  height: 48px;
  color: #00d2ff;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 22px;
  color: #fff;
  font-weight: 700;
}

.service-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #7a8a9a;
}

.service-price {
  margin-top: auto;
  font-size: 18px;
  font-weight: 700;
  color: #00d2ff;
}

/* ===== PROCESS ===== */
.process {
  padding: 100px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  text-align: center;
  flex: 1;
  padding: 0 20px;
}

.step-num {
  font-family: 'Fira Code', monospace;
  font-size: 36px;
  font-weight: 700;
  color: #00d2ff;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
}

.step p {
  font-size: 13px;
  color: #5a7a9a;
  line-height: 1.5;
}

.step-line {
  width: 60px;
  height: 1px;
  background: rgba(0, 210, 255, 0.3);
  margin-top: 22px;
  flex-shrink: 0;
}

/* ===== STACK ===== */
.stack {
  padding: 100px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stack-item {
  background: linear-gradient(145deg, #0c1a30, #081222);
  border: 1px solid rgba(0, 210, 255, 0.1);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #c8d6e5;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transform: perspective(400px) rotateX(3deg);
}

.stack-item:hover {
  border-color: rgba(0, 210, 255, 0.4);
  transform: perspective(400px) rotateX(0deg) translateY(-4px) scale(1.05);
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 210, 255, 0.08);
}

.stack-icon {
  font-size: 22px;
  color: #00d2ff;
  font-family: 'Fira Code', monospace;
}

/* ===== OFFER ===== */
.offer {
  padding: 100px 20px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.offer-text {
  text-align: center;
  font-size: 17px;
  line-height: 1.7;
  color: #8a9ab0;
  max-width: 700px;
  margin: 0 auto 50px;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.offer-item {
  background: linear-gradient(145deg, #0c1a30, #081222);
  border: 1px solid rgba(0, 210, 255, 0.1);
  border-radius: 8px;
  padding: 32px 28px;
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transform: perspective(600px) rotateX(2deg);
  transition: all 0.4s ease;
}

.offer-item:hover {
  border-color: rgba(0, 210, 255, 0.3);
  transform: perspective(600px) rotateX(0deg) translateY(-4px);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 210, 255, 0.06);
}

.offer-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 12px;
}

.offer-item h3 {
  font-size: 18px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 8px;
}

.offer-item p {
  font-size: 14px;
  color: #7a8a9a;
  line-height: 1.5;
}

/* ===== FAQ ===== */
.faq {
  padding: 100px 20px;
  max-width: 750px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: linear-gradient(145deg, #0c1a30, #081222);
  border: 1px solid rgba(0, 210, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item[open] {
  border-color: rgba(0, 210, 255, 0.3);
}

.faq-item summary {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.3s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-family: 'Fira Code', monospace;
  font-size: 20px;
  color: #00d2ff;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: #00d2ff;
}

.faq-item p {
  padding: 0 24px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: #7a8a9a;
}

/* ===== ORDER BUTTON ===== */
.order-btn {
  margin-top: auto;
  padding: 10px 24px;
  background: transparent;
  border: 1px solid #00d2ff;
  color: #00d2ff;
  border-radius: 6px;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  align-self: flex-start;
}

.order-btn:hover {
  background: #00d2ff;
  color: #050b15;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}

/* ===== PORTFOLIO ===== */
.portfolio {
  padding: 100px 20px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.portfolio-counter {
  text-align: center;
  margin-bottom: 40px;
}

.counter-num {
  font-size: 56px;
  font-weight: 800;
  color: #00d2ff;
  display: block;
}

.counter-label {
  font-size: 14px;
  color: #5a7a9a;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.portfolio-card {
  background: linear-gradient(145deg, #0c1a30, #081222);
  border: 1px solid rgba(0, 210, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s;
  transform: perspective(600px) rotateX(2deg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.portfolio-card:hover {
  border-color: rgba(0, 210, 255, 0.3);
  transform: perspective(600px) rotateX(0deg) translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 210, 255, 0.06);
}

.portfolio-thumb {
  height: 180px;
  background: #081222;
  overflow: hidden;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 800;
  color: rgba(0, 210, 255, 0.2);
}

.portfolio-info {
  padding: 16px 20px;
}

.portfolio-info h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 8px;
}

.portfolio-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.portfolio-tags span {
  font-size: 11px;
  padding: 2px 8px;
  background: rgba(0, 210, 255, 0.1);
  color: #00d2ff;
  border-radius: 4px;
  font-family: 'Fira Code', monospace;
}

/* ===== REVIEWS ===== */
.reviews {
  padding: 100px 20px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.review-card {
  background: linear-gradient(145deg, #0c1a30, #081222);
  border: 1px solid rgba(0, 210, 255, 0.1);
  border-radius: 8px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transform: perspective(600px) rotateX(2deg);
  transition: all 0.4s;
}

.review-card:hover {
  border-color: rgba(0, 210, 255, 0.3);
  transform: perspective(600px) rotateX(0deg) translateY(-4px);
}

.review-stars {
  color: #ffbd2e;
  font-size: 18px;
  letter-spacing: 2px;
}

.review-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #8a9ab0;
  font-style: italic;
}

.review-author {
  font-size: 13px;
  color: #5a7a9a;
  font-weight: 600;
}

/* ===== POPUP ===== */
.popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5, 11, 21, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.popup {
  background: linear-gradient(145deg, #0c1a30, #081222);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 12px;
  padding: 36px;
  width: 420px;
  max-width: 90vw;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s;
}

.popup-overlay.active .popup {
  transform: translateY(0) scale(1);
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #5a7a9a;
  font-size: 28px;
  cursor: pointer;
  transition: color 0.3s;
}

.popup-close:hover { color: #ff5f57; }

.popup h3 {
  font-size: 22px;
  color: #fff;
  margin-bottom: 4px;
}

.popup-service {
  font-size: 14px;
  color: #00d2ff;
  margin-bottom: 20px;
  font-family: 'Fira Code', monospace;
}

.popup input,
.popup textarea {
  width: 100%;
  padding: 12px 14px;
  background: #081222;
  border: 1px solid rgba(0, 210, 255, 0.15);
  border-radius: 6px;
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.3s;
  resize: vertical;
}

.popup input:focus,
.popup textarea:focus {
  border-color: #00d2ff;
}

.popup-submit {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #00d2ff, #0080ff);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow 0.3s;
}

.popup-submit:hover {
  box-shadow: 0 4px 20px rgba(0, 210, 255, 0.3);
}

.popup-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.popup-success {
  text-align: center;
  color: #28c840;
  font-size: 16px;
  padding: 20px 0;
}

.hidden { display: none !important; }

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #00d2ff, #0080ff);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
}

.scroll-top:hover {
  box-shadow: 0 6px 25px rgba(0, 210, 255, 0.4);
  transform: translateY(-2px);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0c1a30;
  border-top: 1px solid rgba(0, 210, 255, 0.15);
  padding: 16px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 98;
  font-size: 14px;
}

.cookie-banner.hidden { display: none; }

.cookie-banner p { color: #8a9ab0; }

.cookie-banner button {
  padding: 8px 20px;
  background: #00d2ff;
  color: #050b15;
  border: none;
  border-radius: 4px;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

/* ===== PRELOADER ===== */
.preloader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #050b15;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}

.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner { text-align: center; }

.preloader-text {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 4px;
  display: block;
  margin-bottom: 20px;
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: #1a2a3a;
  border-radius: 2px;
  overflow: hidden;
}

.preloader-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #00d2ff, #0080ff);
  border-radius: 2px;
  animation: preload 0.6s ease-out forwards;
}

@keyframes preload {
  to { width: 100%; }
}

/* ===== CHAT WIDGET ===== */
.chat-toggle {
  position: fixed;
  bottom: 30px;
  right: 90px;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #00d2ff, #0080ff);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 210, 255, 0.35);
  transition: all 0.3s;
}

.chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(0, 210, 255, 0.5);
}

.chat-toggle.active {
  background: #ff5f57;
  box-shadow: 0 4px 15px rgba(255, 95, 87, 0.3);
}

.chat-toggle svg {
  width: 24px;
  height: 24px;
}

.chat-toggle.active svg {
  display: none;
}

.chat-toggle.active::after {
  content: '\00d7';
  font-size: 28px;
}

.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff5f57;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fira Code', monospace;
}

.chat-popup {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 380px;
  max-width: calc(100vw - 20px);
  height: 480px;
  max-height: calc(100vh - 140px);
  background: #0a1225;
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 16px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: all 0.3s;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.chat-popup.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chat-header {
  background: linear-gradient(135deg, #00d2ff, #0080ff);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header-title {
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}

.chat-status {
  font-size: 12px;
  color: #28c840;
  margin-left: auto;
  font-family: 'Fira Code', monospace;
}

.chat-header-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 24px;
  cursor: pointer;
  margin-left: 8px;
  line-height: 1;
}

.chat-header-close:hover { color: #fff; }

/* Chat intro */
.chat-intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  gap: 16px;
  text-align: center;
}

.chat-intro p {
  font-size: 15px;
  color: #8a9ab0;
}

.chat-intro input {
  width: 100%;
  padding: 12px 14px;
  background: #081222;
  border: 1px solid rgba(0, 210, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  outline: none;
  text-align: center;
}

.chat-intro input:focus { border-color: #00d2ff; }

.chat-start-btn {
  padding: 10px 30px;
  background: linear-gradient(135deg, #00d2ff, #0080ff);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow 0.3s;
}

.chat-start-btn:hover { box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3); }

/* Chat messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-msg {
  display: flex;
  max-width: 85%;
}

.chat-msg-client {
  align-self: flex-end;
}

.chat-msg-admin {
  align-self: flex-start;
}

.chat-msg-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}

.chat-msg-client .chat-msg-bubble {
  background: linear-gradient(135deg, #00d2ff, #0080ff);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-msg-admin .chat-msg-bubble {
  background: #0c1a30;
  border: 1px solid rgba(0, 210, 255, 0.15);
  color: #c8d6e5;
  border-bottom-left-radius: 4px;
}

.chat-msg-text {
  word-break: break-word;
}

.chat-msg-time {
  font-size: 10px;
  opacity: 0.6;
  flex-shrink: 0;
  font-family: 'Fira Code', monospace;
}

/* Chat input */
.chat-input-area {
  display: flex;
  padding: 12px;
  gap: 8px;
  border-top: 1px solid rgba(0, 210, 255, 0.1);
  background: #081222;
}

.chat-input-area input {
  flex: 1;
  padding: 10px 14px;
  background: #0a1225;
  border: 1px solid rgba(0, 210, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  outline: none;
}

.chat-input-area input:focus { border-color: #00d2ff; }

.chat-send-btn {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #00d2ff, #0080ff);
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: box-shadow 0.3s;
}

.chat-send-btn:hover { box-shadow: 0 2px 10px rgba(0, 210, 255, 0.3); }

.chat-send-btn svg {
  width: 18px;
  height: 18px;
}

/* Mobile chat */
@media (max-width: 480px) {
  .chat-popup {
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .chat-toggle {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }

  .scroll-top {
    right: 76px;
  }
}

/* ===== CTA ===== */
.cta {
  padding: 100px 20px;
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta h2 {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
}

.cta p {
  font-size: 16px;
  color: #5a7a9a;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: linear-gradient(135deg, #00d2ff, #0080ff);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button {
  box-shadow: 0 4px 20px rgba(0, 210, 255, 0.25);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0, 210, 255, 0.4), 0 0 20px rgba(0, 128, 255, 0.2);
}

.cta-button svg {
  width: 20px;
  height: 20px;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid rgba(0, 210, 255, 0.1);
  padding: 30px 20px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
}

.footer-copy {
  font-size: 13px;
  color: #3a5a7a;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 900px) {
  .hero {
    margin: 8px;
    padding: 30px 16px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .code-block {
    order: 2;
    font-size: 12px;
  }

  .branding {
    order: 1;
  }

  .stats {
    order: 3;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    gap: 20px;
  }

  .stat-item {
    align-items: center;
    min-width: 120px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 30px 24px;
  }

  .process-steps {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .step-line {
    width: 1px;
    height: 20px;
    margin: 0;
  }

  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo {
    font-size: 36px;
    letter-spacing: 2px;
  }

  .subtitle {
    letter-spacing: 8px;
    font-size: 14px;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 36px;
  }

  .cta h2 {
    font-size: 28px;
  }

  .offer-grid {
    grid-template-columns: 1fr;
  }

  .services,
  .process,
  .stack,
  .cta,
  .offer,
  .faq {
    padding: 60px 16px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .hero {
    margin: 4px;
    padding: 24px 12px;
    min-height: auto;
    padding-top: 60px;
  }

  .hero-grid {
    gap: 30px;
  }

  .lang-switch {
    top: 12px;
    right: 12px;
  }

  .lang-btn {
    padding: 5px 10px;
    font-size: 11px;
  }

  .logo {
    font-size: 28px;
    letter-spacing: 2px;
  }

  .subtitle {
    font-size: 11px;
    letter-spacing: 6px;
  }

  .tagline {
    font-size: 11px;
  }

  .bolt-icon {
    width: 60px;
    height: 60px;
  }

  .bolt-icon svg {
    width: 24px;
    height: 24px;
  }

  .tags {
    gap: 6px;
  }

  .tag-pill {
    padding: 4px 12px;
    font-size: 10px;
  }

  .code-block {
    font-size: 11px;
  }

  .code-content {
    padding: 12px;
    line-height: 1.5;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .stat-value {
    font-size: 20px;
  }

  .stat-comment {
    font-size: 10px;
  }

  .stat-label {
    font-size: 12px;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 28px;
  }

  .service-card {
    padding: 24px 20px;
  }

  .service-card h3 {
    font-size: 18px;
  }

  .service-card p {
    font-size: 13px;
  }

  .step-num {
    font-size: 28px;
  }

  .step h3 {
    font-size: 16px;
  }

  .step p {
    font-size: 12px;
  }

  .stack-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stack-item {
    padding: 14px;
    font-size: 12px;
  }

  .stack-icon {
    font-size: 18px;
  }

  .cta h2 {
    font-size: 24px;
  }

  .cta p {
    font-size: 14px;
  }

  .cta-button {
    padding: 12px 28px;
    font-size: 14px;
  }

  .offer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .offer-item {
    padding: 24px 20px;
  }

  .offer-text {
    font-size: 14px;
  }

  .faq-item summary {
    padding: 16px 18px;
    font-size: 14px;
  }

  .faq-item p {
    padding: 0 18px 16px;
    font-size: 13px;
  }

  .portfolio-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .counter-num {
    font-size: 40px;
  }

  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
  }

  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    text-align: center;
  }

  .services,
  .process,
  .stack,
  .cta,
  .offer,
  .faq,
  .portfolio,
  .reviews {
    padding: 48px 12px;
  }

  .footer-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer {
    padding: 20px 12px;
  }
}

/* Small phones */
@media (max-width: 360px) {
  .logo {
    font-size: 24px;
  }

  .code-block {
    font-size: 10px;
  }

  .tag-pill {
    padding: 3px 8px;
    font-size: 9px;
  }

  .stats {
    gap: 14px;
  }

  .stat-value {
    font-size: 16px;
  }
}
