/* ============ Nexlo Studio ============ */
:root {
  --bg: #07070e;
  --bg-alt: #0c0c16;
  --surface: #12121f;
  --surface-2: #181828;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f2f2f7;
  --text-muted: #9a9ab0;
  --accent: #7c5cff;
  --accent-2: #00d4ff;
  --gradient: linear-gradient(120deg, #7c5cff, #00d4ff);
  --radius: 18px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 820px; }

/* ============ Preloader ============ */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-logo {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.preloader-logo span { color: var(--accent); }
.preloader-bar {
  width: 180px;
  height: 3px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
}
.preloader-progress {
  height: 100%;
  width: 0;
  background: var(--gradient);
  animation: load 1s ease forwards;
}
@keyframes load { to { width: 100%; } }

/* ============ Custom cursor ============ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 7px; height: 7px;
  background: var(--accent-2);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(124, 92, 255, 0.5);
  transition: width 0.25s, height 0.25s, border-color 0.25s;
}
.cursor-ring.hovered {
  width: 60px; height: 60px;
  border-color: rgba(0, 212, 255, 0.8);
}
@media (hover: none), (max-width: 768px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============ Navbar ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s ease;
}
.navbar.scrolled {
  padding: 12px 0;
  background: rgba(7, 7, 14, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}
.logo-accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--text); }
.nav-cta {
  padding: 10px 22px;
  background: var(--gradient);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 92, 255, 0.4);
}
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}
.burger span {
  width: 26px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.35s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 140px 0 80px;
}
#particles {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  animation: float 10s ease-in-out infinite;
}
.hero-glow-1 {
  width: 500px; height: 500px;
  background: rgba(124, 92, 255, 0.22);
  top: -10%; left: -10%;
}
.hero-glow-2 {
  width: 450px; height: 450px;
  background: rgba(0, 212, 255, 0.14);
  bottom: -10%; right: -8%;
  animation-delay: -5s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -40px) scale(1.1); }
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 30%, transparent 75%);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.badge-dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}
.hero-title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 28px;
}
.hero-title span { display: block; }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle {
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 70px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s;
  will-change: transform;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 24px rgba(124, 92, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(124, 92, 255, 0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(124, 92, 255, 0.08);
  transform: translateY(-3px);
}
.btn-lg { padding: 18px 44px; font-size: 1.1rem; }
.btn-block { width: 100%; justify-content: center; }

/* Hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-icon {
  font-size: 1.7rem;
  filter: drop-shadow(0 4px 14px rgba(124, 92, 255, 0.35));
}
.stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 6px;
}
.stat-divider {
  width: 1px; height: 44px;
  background: var(--border);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.mouse {
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.wheel {
  width: 4px; height: 8px;
  background: var(--accent-2);
  border-radius: 4px;
  animation: wheel 1.6s infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ============ Marquee ============ */
.marquee-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 22px 0;
  overflow: hidden;
}
.marquee { overflow: hidden; }
.marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.marquee-track i {
  color: var(--accent);
  font-style: normal;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ Sections ============ */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}
.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.25);
  color: var(--accent-2);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; }

/* ============ Services ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s, box-shadow 0.35s;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 92, 255, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  border-color: rgba(124, 92, 255, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--accent-2);
  transition: transform 0.35s ease;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card:hover .service-icon { transform: scale(1.1) rotate(-5deg); }
.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.service-card p { color: var(--text-muted); font-size: 0.95rem; }
.service-num {
  position: absolute;
  top: 22px; right: 26px;
  font-size: 2.4rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  letter-spacing: -0.04em;
}

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.about-visual { position: relative; }
.about-card-stack {
  position: relative;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-core {
  width: 130px; height: 130px;
  border-radius: 36px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.4rem;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 20px 60px rgba(124, 92, 255, 0.45);
  animation: coreFloat 5s ease-in-out infinite;
}
@keyframes coreFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-16px) rotate(3deg); }
}
.about-ring {
  position: absolute;
  width: 300px; height: 300px;
  border: 1.5px dashed rgba(124, 92, 255, 0.3);
  border-radius: 50%;
  animation: spin 24s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  animation: cardFloat 6s ease-in-out infinite;
  z-index: 2;
}
.floating-card strong { display: block; font-size: 0.92rem; }
.floating-card small { color: var(--text-muted); font-size: 0.78rem; }
.fc-icon { font-size: 1.5rem; }
.fc-1 { top: 30px; left: 0; animation-delay: 0s; }
.fc-2 { top: 45%; right: -10px; animation-delay: -2s; }
.fc-3 { bottom: 30px; left: 30px; animation-delay: -4s; }
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.about-text .section-title { margin-bottom: 20px; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; }
.check-list {
  list-style: none;
  margin: 26px 0 34px;
  display: grid;
  gap: 12px;
}
.check-list li {
  position: relative;
  padding-left: 34px;
  font-weight: 500;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  border-radius: 7px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ Process ============ */
.process-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: start;
}
.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  transition: transform 0.35s ease, border-color 0.35s;
}
.process-step:hover {
  transform: translateY(-8px);
  border-color: rgba(124, 92, 255, 0.4);
}
.process-num {
  width: 54px; height: 54px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 8px 26px rgba(124, 92, 255, 0.4);
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.process-step p { color: var(--text-muted); font-size: 0.9rem; }
.process-connector {
  width: 40px;
  height: 2px;
  margin-top: 60px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  opacity: 0.5;
}

/* ============ Portfolio ============ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.35s ease, border-color 0.35s, box-shadow 0.35s;
  display: block;
}
.portfolio-card:hover {
  border-color: rgba(124, 92, 255, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.portfolio-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease;
}
.concept-badge {
  position: absolute;
  top: 14px; right: 14px;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  background: rgba(7, 7, 14, 0.6);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 50px;
  padding: 5px 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.portfolio-img span {
  transition: transform 0.5s ease;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4));
}
.portfolio-card:hover .portfolio-img span { transform: scale(1.2) rotate(-6deg); }
.pi-1 { background: linear-gradient(135deg, #2b1e4e, #14319c33); }
.pi-2 { background: linear-gradient(135deg, #0e3448, #7c5cff26); }
.pi-3 { background: linear-gradient(135deg, #3d1e4e, #00d4ff1f); }
.pi-4 { background: linear-gradient(135deg, #1e2c4e, #7c5cff33); }
.pi-5 { background: linear-gradient(135deg, #12404c, #7c5cff29); }
.pi-6 { background: linear-gradient(135deg, #33204e, #00d4ff21); }
.portfolio-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
}
.portfolio-info h3 { font-size: 1.1rem; margin-bottom: 3px; }
.portfolio-info p { color: var(--text-muted); font-size: 0.87rem; }
.portfolio-arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.35s ease;
}
.portfolio-card:hover .portfolio-arrow {
  background: var(--gradient);
  border-color: transparent;
  transform: rotate(90deg);
}
.portfolio-card[role="button"] { cursor: pointer; }

/* ============ Concept modal ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 10, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  position: relative;
  transform: translateY(34px) scale(0.96);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}
.modal-overlay.open .modal { transform: none; }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(7, 7, 14, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
}
.modal-close:hover {
  background: var(--gradient);
  border-color: transparent;
  transform: rotate(90deg);
}
.modal-hero {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  position: relative;
  border-radius: 24px 24px 0 0;
}
.modal-hero span { filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4)); }
.modal-body { padding: 30px 32px 36px; }
.modal-body h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.modal-body > p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 24px;
}
.modal-features-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.modal-features {
  list-style: none;
  display: grid;
  gap: 11px;
  margin: 0 0 28px;
}
.modal-features li {
  position: relative;
  padding-left: 32px;
  font-size: 0.93rem;
  color: var(--text);
}
.modal-actions {
  display: grid;
  gap: 12px;
}
.modal-features li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 1px;
  width: 21px; height: 21px;
  border-radius: 7px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 480px) {
  .modal-body { padding: 24px 20px 28px; }
  .modal-hero { height: 150px; font-size: 3.6rem; }
}

/* ============ FAQ ============ */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item.open { border-color: rgba(124, 92, 255, 0.4); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.faq-icon {
  width: 30px; height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.3);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 500;
  transition: transform 0.35s ease, background 0.3s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
}
.faq-answer p {
  padding: 0 26px 24px;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* ============ CTA ============ */
.cta-section { padding-top: 30px; }
.cta-box {
  position: relative;
  text-align: center;
  padding: 80px 40px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(124, 92, 255, 0.25), transparent 65%);
  pointer-events: none;
}
.cta-box h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  position: relative;
}
.cta-box p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 34px;
  position: relative;
}
.cta-box .btn { position: relative; }

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}
.contact-info .section-title { margin-bottom: 18px; }
.contact-info > p { color: var(--text-muted); margin-bottom: 36px; }
.contact-items { display: grid; gap: 16px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s ease, border-color 0.3s;
}
.contact-item:hover {
  transform: translateX(8px);
  border-color: rgba(124, 92, 255, 0.4);
}
.contact-icon {
  width: 48px; height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.25);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-item strong { display: block; font-size: 0.95rem; }
.contact-item small { color: var(--text-muted); font-size: 0.85rem; }

/* Form */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 40px 34px;
}
.contact-form h3 {
  font-size: 1.3rem;
  margin-bottom: 26px;
  letter-spacing: -0.01em;
}
.form-group {
  position: relative;
  margin-bottom: 20px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 16px 18px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.96rem;
  outline: none;
  transition: border-color 0.3s;
  resize: vertical;
}
.form-group select { appearance: none; cursor: pointer; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}
.form-group label {
  position: absolute;
  left: 18px; top: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
  transition: all 0.25s ease;
  background: transparent;
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -9px;
  left: 14px;
  font-size: 0.75rem;
  color: var(--accent-2);
  background: var(--surface);
  padding: 0 6px;
  border-radius: 4px;
}
.form-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 14px;
}

/* ============ Footer ============ */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 16px;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 12px;
  transition: color 0.3s, transform 0.3s;
}
.footer-col a:hover { color: var(--accent-2); transform: translateX(4px); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
}
.back-to-top {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}
.back-to-top:hover {
  background: var(--gradient);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.4);
}

/* ============ Reveal animations ============ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }
.reveal.d5 { transition-delay: 0.5s; }
.reveal.d6 { transition-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .services-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-connector { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .burger { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(7, 7, 14, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-link { font-size: 1.3rem; }
  .nav-cta { font-size: 1.05rem; padding: 14px 32px; }
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }
  .stat { min-width: 40%; }
  .services-grid, .portfolio-grid, .process-grid { grid-template-columns: 1fr; }
  .about-card-stack { height: 380px; transform: scale(0.85); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 18px; }
  .cta-box { padding: 60px 24px; }
  .contact-form { padding: 30px 22px; }
}
