/* =========================================================
   Velour Digital Solutions Inc.
   Glossy purple + white theme
   ========================================================= */

/* ---------- Animated border angle (for signature buttons) ---------- */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* ---------- Design tokens ---------- */
:root {
  --bg:        #08040f;
  --bg-2:      #100722;
  --bg-3:      #180b30;
  --surface:   rgba(30, 16, 58, 0.55);
  --surface-2: rgba(43, 22, 82, 0.35);
  --border:    rgba(168, 130, 255, 0.22);
  --border-strong: rgba(190, 150, 255, 0.45);

  --violet:  #8b5cf6;
  --violet-2:#7c3aed;
  --magenta: #d946ef;
  --pink:    #e879f9;
  --blue:    #4f7bff;
  --cyan:    #38bdf8;

  --white:   #f6f3ff;
  --text:    #e7defb;
  --muted:   #b3a3d6;
  --faint:   #8a7bb0;

  --grad-main:  linear-gradient(120deg, #a78bfa 0%, #d946ef 55%, #4f7bff 100%);
  --grad-text:  linear-gradient(100deg, #c4b5fd 0%, #e879f9 50%, #818cf8 100%);
  --grad-btn:   linear-gradient(120deg, #7c3aed 0%, #c026d3 100%);

  --glow-violet: 0 0 40px rgba(139, 92, 246, 0.45);
  --glow-magenta:0 0 40px rgba(217, 70, 239, 0.35);

  --radius:   18px;
  --radius-lg:26px;
  --maxw:     1180px;
  --nav-h:    74px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Ambient glow field behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 55% at 15% 5%, rgba(124, 58, 237, 0.28), transparent 60%),
    radial-gradient(55% 50% at 90% 10%, rgba(217, 70, 239, 0.20), transparent 60%),
    radial-gradient(60% 60% at 80% 95%, rgba(79, 123, 255, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}
/* Subtle grid texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(168, 130, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 130, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  position: relative;
  padding: 110px 0;
}
.section--tight { padding: 80px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface-2);
  backdrop-filter: blur(8px);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 10px var(--magenta);
}

h1, h2, h3 { color: var(--white); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.3rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.32rem; letter-spacing: -0.01em; }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead { font-size: 1.14rem; color: var(--muted); max-width: 62ch; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: 16px; }

/* ---------- Signature buttons (animated border on hover) ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 0.97rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  border-radius: 100px;
  cursor: pointer;
  border: none;
  color: var(--white);
  isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  z-index: 0;
}
.btn:hover { transform: translateY(-3px); }

/* The traveling light around the border */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--angle),
    transparent 0%,
    var(--cyan) 12%,
    var(--pink) 28%,
    var(--violet) 42%,
    transparent 55%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}
.btn:hover::before {
  opacity: 1;
  animation: spin-border 2.4s linear infinite;
}
@keyframes spin-border { to { --angle: 360deg; } }

/* Primary = filled glossy */
.btn--primary {
  background: var(--grad-btn);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.45), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.35), transparent 45%);
  z-index: 1;
  opacity: 0.8;
  pointer-events: none;
}
.btn--primary:hover { box-shadow: 0 16px 44px rgba(192, 38, 211, 0.55), inset 0 1px 0 rgba(255,255,255,0.3); }

/* Ghost = glass */
.btn--ghost {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn--ghost:hover { background: var(--surface-2); }

.btn--sm { padding: 11px 22px; font-size: 0.9rem; }

.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: rgba(10, 5, 20, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 var(--border), 0 8px 30px rgba(0,0,0,0.4);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.brand__mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: block;
  box-shadow: var(--glow-violet);
}
.brand__name { color: var(--white); font-size: 1.06rem; letter-spacing: -0.01em; line-height: 1.1; }
.brand__name small { display:block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.22em; color: var(--faint); text-transform: uppercase; }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  padding: 9px 16px;
  border-radius: 100px;
  font-size: 0.94rem;
  font-weight: 550;
  color: var(--muted);
  transition: color 0.25s, background 0.25s;
}
.nav__links a:hover { color: var(--white); background: var(--surface-2); }
.nav__links a.active { color: var(--white); }
.nav__cta { margin-left: 10px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 90px);
  padding-bottom: 90px;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
}
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 36px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
/* Planet photo core */
.core {
  width: 58%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  position: relative;
  /* zoom past the image's transparent padding + white ring so the planet fills the circle */
  background-image: url("../img/planet.avif");
  background-size: 152%;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow:
    0 30px 70px rgba(91, 33, 182, 0.55);
  animation: float 7s ease-in-out infinite;
}
/* Soft ambient glow behind the core */
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.4), transparent 64%);
  filter: blur(34px);
  z-index: -1;
  animation: pulse 6s ease-in-out infinite;
}
.orbit {
  position: absolute;
  border: 1px dashed rgba(168,130,255,0.22);
  border-radius: 50%;
  animation: spin 26s linear infinite;
}
.orbit--1 { inset: -8%; }
.orbit--2 { inset: 9%; animation-duration: 19s; animation-direction: reverse; border-color: rgba(190,150,255,0.18); }
.orbit--3 { inset: 24%; animation-duration: 13s; border-color: rgba(217,70,239,0.16); }
.orbit .dot {
  position: absolute; top: -6px; left: 50%;
  margin-left: -6px;
  width: 12px; height: 12px; border-radius: 50%;
  /* light -> dark purple over one full lap, synced to each orbit's spin */
  animation: dot-shade 26s ease-in-out infinite;
}
.orbit--1 .dot { animation-duration: 26s; }
.orbit--2 .dot { animation-duration: 19s; animation-delay: -6s; }
.orbit--3 .dot { animation-duration: 13s; animation-delay: -3s; }

@keyframes dot-shade {
  0%, 100% { background: #ede0ff; box-shadow: 0 0 16px rgba(237, 224, 255, 0.9); }   /* lightest */
  35%      { background: #a78bfa; box-shadow: 0 0 16px rgba(167, 139, 250, 0.9); }
  65%      { background: #7c3aed; box-shadow: 0 0 15px rgba(124, 58, 237, 0.85); }
  85%      { background: #4c1d95; box-shadow: 0 0 14px rgba(76, 29, 149, 0.8); }      /* darkest */
}

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes pulse { 0%,100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes spin  { to { transform: rotate(360deg); } }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  text-align: center;
}
.stat__num {
  font-size: 2.5rem; font-weight: 850; line-height: 1;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { color: var(--muted); font-size: 0.92rem; margin-top: 10px; }

/* ---------- Trusted strip ---------- */
.trusted { text-align: center; }
.trusted__label { color: var(--faint); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 26px; }
.trusted__logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 46px; }
.trusted__logos span {
  font-size: 1.25rem; font-weight: 750; color: var(--white); opacity: 0.55;
  transition: opacity 0.3s, transform 0.3s;
  letter-spacing: -0.01em;
}
.trusted__logos span:hover { opacity: 1; transform: translateY(-2px); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  padding: 34px 30px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217,70,239,0.7), transparent);
  opacity: 0.5;
}
.card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 60px rgba(124, 58, 237, 0.28);
}
.card__icon {
  width: 56px; height: 56px;
  border-radius: 15px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(139,92,246,0.25), rgba(217,70,239,0.15));
  border: 1px solid var(--border-strong);
  margin-bottom: 22px;
  font-size: 1.5rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card__list { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.card__list li { color: var(--text); font-size: 0.92rem; display: flex; gap: 10px; align-items: flex-start; }
.card__list li::before { content: "\2192"; color: var(--pink); font-weight: 700; }

/* Numbered process cards */
.step { position: relative; }
.step__num {
  font-size: 3.2rem; font-weight: 850; line-height: 1;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0.9; margin-bottom: 14px;
}

/* ---------- Tech marquee ---------- */
.marquee { overflow: hidden; max-width: 720px; margin-inline: auto; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 16px; width: max-content; animation: slide 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.chip {
  padding: 12px 22px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-weight: 600; font-size: 0.94rem; white-space: nowrap;
  backdrop-filter: blur(6px);
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(217,70,239,0.28), transparent 60%),
    linear-gradient(135deg, rgba(124,58,237,0.35), rgba(79,123,255,0.22));
  border: 1px solid var(--border-strong);
}
.cta-band::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent 40%);
  pointer-events:none;
}
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { color: var(--text); max-width: 54ch; margin: 0 auto 32px; }
.cta-band .hero__actions { justify-content: center; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.contact__info { display: grid; gap: 18px; margin-top: 30px; }
.contact__item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.contact__item .ic { font-size: 1.3rem; }
.contact__item strong { color: var(--white); display: block; font-size: 0.95rem; }
.contact__item span { color: var(--muted); font-size: 0.92rem; }

.form { display: grid; gap: 18px; padding: 34px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(12px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.field input, .field textarea, .field select {
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(12, 6, 24, 0.6);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(217,70,239,0.18);
}
.field textarea { resize: vertical; min-height: 130px; }
.form__note { font-size: 0.82rem; color: var(--faint); }
.form__success { display: none; padding: 14px 18px; border-radius: 12px; background: rgba(80,220,150,0.12); border: 1px solid rgba(80,220,150,0.4); color: #b6f5d0; font-size: 0.92rem; }
.form__success.show { display: block; }

/* ---------- Page header (inner pages) ---------- */
.page-head {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 30px;
  text-align: center;
}
.page-head .lead { margin: 20px auto 0; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 40px;
  padding: 60px 0 34px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(16, 7, 34, 0.6));
}
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.footer__brand { max-width: 320px; }
.footer__brand p { color: var(--muted); font-size: 0.94rem; margin-top: 16px; }
.footer__cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer__col h4 { color: var(--white); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.footer__col a { display: block; color: var(--muted); font-size: 0.94rem; padding: 5px 0; transition: color 0.25s; }
.footer__col a:hover { color: var(--pink); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--border); color: var(--faint); font-size: 0.86rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 420px; margin: 0 auto; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav__links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px 24px 26px;
    background: rgba(10, 5, 20, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease);
  }
  .nav__links.open { transform: none; }
  .nav__links a { padding: 12px 14px; }
  .nav__cta { margin: 8px 0 0; }
  .nav__toggle { display: flex; }
  .section { padding: 80px 0; }
  .grid--3, .grid--2, .stats, .form__row, .footer__top { grid-template-columns: 1fr; }
  .footer__top { flex-direction: column; }
  .cta-band { padding: 44px 26px; }
}

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

/* ---------- Technology categories ---------- */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tech-cat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px;
}
.tech-cat h4 { font-size: 0.98rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; color: var(--white); }
.tech-cat h4 .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grad-btn); box-shadow: var(--glow-violet); flex: none; }
.tech-cat__chips { display: flex; flex-wrap: wrap; gap: 9px; }
.tech-cat__chips span {
  font-size: 0.85rem; padding: 6px 13px; border-radius: 100px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text); white-space: nowrap;
}
@media (max-width: 900px) { .tech-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .tech-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq__item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0 24px; transition: border-color 0.3s var(--ease);
}
.faq__item[open] { border-color: var(--border-strong); }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 22px 0; font-weight: 600;
  color: var(--white); display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.5rem; color: var(--pink); line-height: 1; transition: transform 0.3s var(--ease); flex: none; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--muted); font-size: 0.98rem; padding: 0 0 24px; margin: 0; }
