/* ===== TOKENS ===== */
:root {
  --indigo: #312e81;
  --violet: #6366f1;
  --violet-light: #818cf8;
  --bg-lavender: #f5f5ff;
  --bg-white: #fafafa;
  --ink: #0f0e2e;
  --ink-soft: #4b4a6b;
  --line: #e3e2f5;
  --radius: 6px;
  --shadow-soft: 0 20px 50px -20px rgba(49, 46, 129, 0.25);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-lavender);
  -webkit-font-smoothing: antialiased;
}

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

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

.text-gradient {
  background: linear-gradient(90deg, var(--indigo), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(49, 46, 129, 0.5);
}
.btn-primary:hover { background: var(--violet); transform: translateY(-2px); }
.btn-secondary {
  background: #fff;
  color: var(--indigo);
  border: 1.5px solid var(--line);
}
.btn-secondary:hover { border-color: var(--violet); transform: translateY(-2px); }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 245, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--indigo);
}
.logo span { color: var(--violet); }
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--indigo); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--indigo);
  border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 32px;
  text-align: center;
}

/* radial violet glow behind content */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 60%, rgba(99,102,241,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-center {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--violet);
  background: #eceaff;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero-center h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 500px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== FLOATING SHAPES ===== */
.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.shape {
  position: absolute;
}

/* Hexagon */
.shape-hex {
  width: 54px; height: 54px;
  background: linear-gradient(135deg, #c7d2fe, #818cf8);
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  top: 12%; left: 8%;
  opacity: 0.7;
  animation: flt1 8s ease-in-out infinite;
}

/* Ring */
.shape-ring {
  width: 60px; height: 60px;
  border: 4px solid #818cf8;
  border-radius: 50%;
  top: 18%; right: 10%;
  opacity: 0.5;
  animation: flt2 9s ease-in-out infinite;
}

/* Dot grid */
.shape-dot-grid {
  width: 80px; height: 80px;
  background-image: radial-gradient(circle, #6366f1 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  bottom: 22%; left: 6%;
  opacity: 0.35;
  animation: flt3 11s ease-in-out infinite;
}

/* Progress bars (techy) */
.shape-bar {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--indigo), var(--violet));
  opacity: 0.25;
}
.bar1 { width: 90px; top: 30%; left: 5%; animation: flt1 7s ease-in-out infinite; }
.bar2 { width: 60px; bottom: 35%; right: 7%; animation: flt2 8.5s ease-in-out infinite; opacity: 0.2; }
.bar3 { width: 45px; top: 65%; left: 12%; animation: flt3 10s ease-in-out infinite; opacity: 0.18; }

/* Code tag */
.shape-code {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--violet);
  opacity: 0.3;
  top: 22%; left: 14%;
  animation: flt2 9s ease-in-out infinite;
}

/* Pill chips */
.shape-pill, .shape-pill2 {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid #c7d2fe;
  color: var(--indigo);
  background: #fff;
  opacity: 0.65;
  white-space: nowrap;
}
.shape-pill {
  bottom: 28%; right: 8%;
  animation: flt1 10s ease-in-out infinite;
}
.shape-pill2 {
  top: 15%; left: 50%;
  transform: translateX(-50%);
  animation: flt3 7s ease-in-out infinite;
}

/* Star spark */
.shape-star {
  font-size: 1.6rem;
  color: var(--violet);
  opacity: 0.25;
  bottom: 30%; right: 14%;
  animation: flt2 6s ease-in-out infinite;
}

/* Circle */
.shape-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  opacity: 0.15;
  top: 55%; right: 5%;
  animation: flt1 12s ease-in-out infinite;
}

@keyframes flt1 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}
@keyframes flt2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(12px); }
}
@keyframes flt3 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(6deg); }
}

@media (prefers-reduced-motion: reduce) {
  .shape { animation: none !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-center h1 { font-size: 2.2rem; }
  .nav-links { 
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px 32px;
    gap: 18px;
    display: none;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-actions { display: none; }
}

/* ===== SHARED SECTION STYLES ===== */
.section-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 100px 32px 0;
  text-align: center;
}
.section-inner-narrow { max-width: 760px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 700;
  margin: 14px 0 12px;
  letter-spacing: -0.01em;
}
.section-sub {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 50px;
}
section .eyebrow { display: inline-block; }
.services, .pricing, .process, .faq { text-align: center; }

/* ===== TESTIMONIAL ===== */
.testimonial {
  margin-top: 70px;
  background: #1e2a45;
  padding: 80px 32px;
  text-align: center;
}
.testimonial-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.stars {
  font-size: 1.6rem;
  color: #fff;
  letter-spacing: 4px;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.4;
}
.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 0.72rem;
  font-style: italic;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testimonial-name {
  color: #a8b4cc;
  font-size: 0.95rem;
  font-weight: 500;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: left;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}
.service-icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.service-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ===== PORTFOLIO CAROUSEL ===== */
.portfolio { padding-bottom: 110px; }
.carousel-wrap {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.carousel-track {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  /* NO scroll-snap — JS handles positioning cleanly */
  padding: 30px 10vw 50px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-card {
  flex: 0 0 280px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 14px 36px -16px rgba(15, 14, 46, 0.18);
  background: #fff;
  border: 1px solid var(--line);
  will-change: transform;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  position: relative;
  transform-origin: center center;
  opacity: 0.75;
}
.carousel-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: top;
  display: block;
  pointer-events: none;
}
.carousel-name {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(15,14,46,0.9), transparent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 30px 16px 14px;
}
.carousel-card.is-center {
  transform: scale(1.12);
  z-index: 2;
  opacity: 1;
  box-shadow: 0 24px 60px -20px rgba(49,46,129,0.4);
}
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 4px;
}
.carousel-controls button {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--indigo);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.carousel-controls button:hover {
  background: var(--indigo);
  color: #fff;
}

/* ===== PRICING ===== */
.pricing { padding-bottom: 110px; background: #fff; }
.pricing-note {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--violet);
  background: #eceaff;
  border: 1px solid #d8d5ff;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 50px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
  align-items: stretch;
}
.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  background: var(--bg-lavender);
  position: relative;
}
.price-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.price-tag {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 10px;
}
.price-desc {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 24px;
}
.price-features {
  list-style: none;
  margin-bottom: 30px;
  flex: 1;
}
.price-features li {
  font-size: 0.92rem;
  padding: 8px 0 8px 26px;
  position: relative;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.price-features li:first-child { border-top: none; }
.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--violet);
  font-weight: 700;
}
.btn-block { width: 100%; }
.price-featured {
  background: var(--indigo);
  color: #fff;
  border-color: var(--indigo);
  transform: scale(1.03);
  box-shadow: var(--shadow-soft);
}
.price-featured .price-tag { color: #fff; }
.price-featured .price-desc { color: #c7c6ed; }
.price-featured .price-features li { border-top-color: rgba(255,255,255,0.15); color: #fff; }
.price-featured .price-features li::before { color: var(--violet-light); }
.price-badge {
  position: absolute;
  top: -13px; left: 30px;
  background: var(--violet);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
}
.price-featured .btn-primary { background: #fff; color: var(--indigo); }
.price-featured .btn-primary:hover { background: var(--bg-lavender); }

/* ===== PROCESS ===== */
.process { padding-bottom: 110px; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: left;
}
.process-step {
  padding: 28px 24px;
  border-left: 2px solid var(--line);
}
.process-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--violet);
  letter-spacing: 0.04em;
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 10px 0 10px;
}
.process-step p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ===== FAQ ===== */
.faq { padding-bottom: 110px; background: #fff; }
.faq-list { text-align: left; margin-top: 10px; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--violet);
  font-weight: 400;
  margin-left: 16px;
  flex-shrink: 0;
  line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0;
}
.faq-item[open] .faq-answer {
  max-height: 200px;
  padding-bottom: 18px;
}
.faq-answer p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  padding-right: 30px;
  margin: 0;
}

/* ===== CTA ===== */
.cta {
  margin: 0 32px 32px;
  padding: 80px 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  text-align: center;
}
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #fff;
  margin-bottom: 14px;
  font-weight: 700;
}
.cta p {
  color: #d8d6ff;
  font-size: 1.05rem;
  margin-bottom: 32px;
}
.btn-light { background: #fff; color: var(--indigo); }
.btn-light:hover { background: var(--bg-lavender); transform: translateY(-2px); }

/* ===== FOOTER ===== */
.footer {
  background: var(--ink);
  padding: 60px 32px 30px;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { color: #fff; }
.footer-brand .logo span { color: var(--violet-light); }
.footer-brand p {
  color: #9b99c2;
  font-size: 0.92rem;
  margin-top: 10px;
  max-width: 280px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: flex-start;
}
.footer-links a {
  color: #c7c6e3;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 24px;
  text-align: center;
}
.footer-bottom span {
  color: #6e6c94;
  font-size: 0.85rem;
}

/* ===== RESPONSIVE (sections) ===== */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-featured { transform: none; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel-card { flex: 0 0 200px; }
  .carousel-card img { height: 260px; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .section-inner { padding: 70px 20px 0; }
}

/* ===== CONTACT PAGE ===== */
.contact-hero { padding: 80px 32px 100px; }
.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 14px 0 18px;
}
.contact-points {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-points li {
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}
.contact-points li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--violet);
}
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow-soft);
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.form-row input,
.form-row select,
.form-row textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg-lavender);
  outline: none;
  transition: border-color 0.2s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--violet);
  background: #fff;
}
.form-row textarea { resize: vertical; }
.form-note {
  margin-top: 14px;
  font-size: 0.88rem;
  text-align: center;
  min-height: 20px;
}

/* ===== LEGAL / PRIVACY PAGE ===== */
.legal-page { padding: 80px 32px 100px; }
.legal-inner {
  max-width: 760px;
  margin: 0 auto;
}
.legal-updated {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin: 8px 0 32px;
}
.legal-inner h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 32px 0 10px;
}
.legal-inner p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* Concept label in carousel */
.carousel-name em {
  font-style: normal;
  opacity: 0.6;
  font-weight: 400;
  font-size: 0.82rem;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s cubic-bezier(.2,.8,.2,1), transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* stagger children inside a grid */
.stagger-children > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(.2,.8,.2,1), transform 0.55s cubic-bezier(.2,.8,.2,1);
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.35s; }
.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Hero shapes extra movement */
.shape {
  will-change: transform;
}

/* Parallax counter-scroll feel on hero shapes */
[data-parallax] {
  transition: transform 0.05s linear;
}

/* Extra hero shapes */
.shape-bracket {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--indigo);
  opacity: 0.18;
  bottom: 40%; left: 18%;
  animation: flt3 11s ease-in-out infinite;
}
.shape-ring2 {
  width: 36px; height: 36px;
  border: 3px solid var(--indigo);
  border-radius: 50%;
  top: 55%; left: 22%;
  opacity: 0.2;
  animation: flt1 8s ease-in-out infinite;
}
.shape-hex2 {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  bottom: 15%; right: 18%;
  opacity: 0.35;
  animation: flt2 9s ease-in-out infinite;
}
.shape-pill3 {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid #c7d2fe;
  color: var(--indigo);
  background: #fff;
  opacity: 0.55;
  white-space: nowrap;
  top: 72%; left: 7%;
  animation: flt2 12s ease-in-out infinite;
}
.shape-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
  opacity: 0.2;
  border-radius: 2px;
}
.line1 { width: 120px; top: 42%; right: 15%; animation: flt1 10s ease-in-out infinite; }
.line2 { width: 70px; bottom: 45%; left: 30%; animation: flt3 8s ease-in-out infinite; }
.shape-star2 {
  font-size: 1rem;
  color: var(--indigo);
  opacity: 0.18;
  top: 38%; left: 5%;
  animation: flt1 7s ease-in-out infinite;
}
.shape-dot-grid2 {
  width: 60px; height: 60px;
  background-image: radial-gradient(circle, var(--indigo) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  top: 20%; right: 22%;
  opacity: 0.15;
  animation: flt2 13s ease-in-out infinite;
}

/* ===== MOBILE RESPONSIVE — COMPREHENSIVE ===== */
@media (max-width: 768px) {

  /* Hero */
  .hero {
    min-height: 100svh;
    padding: 60px 20px 60px;
  }
  .hero-center h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
    letter-spacing: -0.02em;
  }
  .hero-sub {
    font-size: 1rem;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  /* Hide most floating shapes on mobile — too cluttered */
  .shape-dot-grid,
  .shape-dot-grid2,
  .shape-bracket,
  .shape-line,
  .shape-pill2,
  .shape-pill3,
  .shape-ring2,
  .line1, .line2 {
    display: none;
  }
  .shape-hex { top: 6%; left: 4%; width: 36px; height: 36px; }
  .shape-ring { top: 8%; right: 4%; width: 40px; height: 40px; }
  .shape-pill { bottom: 12%; right: 4%; }
  .shape-star { bottom: 18%; right: 12%; font-size: 1.1rem; }
  .shape-code { top: 14%; left: 6%; font-size: 0.9rem; }

  /* Navbar */
  .nav-inner { padding: 14px 20px; }
  .logo { font-size: 1.1rem; }

  /* Section padding */
  .section-inner {
    padding: 60px 20px 0;
  }
  .section-title {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }
  .section-sub {
    font-size: 0.95rem;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .service-card { padding: 24px 20px; }

  /* Portfolio carousel */
  .carousel-wrap { padding: 0 16px; }
  .carousel-track { padding: 20px 30vw 30px; gap: 16px; }
  .carousel-card { flex: 0 0 220px; }
  .carousel-card img { height: 280px; }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .price-card { padding: 28px 22px; }
  .price-featured { transform: none; }
  .price-tag { font-size: 1.7rem; }

  /* Process */
  .process-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .process-step {
    border-left: none;
    border-top: 2px solid var(--line);
    padding: 20px 0;
  }
  .process-step:first-child { border-top: none; }

  /* FAQ */
  .faq-item summary { font-size: 0.97rem; }

  /* CTA */
  .cta {
    margin: 20px 16px;
    padding: 52px 24px;
  }
  .cta h2 { font-size: 1.6rem; }
  .btn-light { width: 100%; max-width: 280px; }

  /* Testimonial */
  .testimonial { padding: 52px 20px; }
  .testimonial-quote { font-size: 1.2rem; }

  /* Footer */
  .footer { padding: 40px 20px 24px; }
  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }
  .footer-links {
    gap: 16px;
    flex-wrap: wrap;
  }
  .footer-brand p { max-width: 100%; }

  /* Contact page */
  .contact-hero { padding: 60px 20px 60px; }
  .contact-form { padding: 28px 22px; }

  /* Legal page */
  .legal-page { padding: 60px 20px 60px; }

  /* Pricing note */
  .pricing-note { font-size: 0.8rem; padding: 6px 14px; }
}

@media (max-width: 380px) {
  .hero-center h1 { font-size: 1.85rem; }
  .carousel-card { flex: 0 0 180px; }
  .carousel-card img { height: 240px; }
  .price-tag { font-size: 1.5rem; }
}
