/* ============================================================
   WinArt — Dark + Neon Gradient theme
   ============================================================ */

:root {
  --bg:        #0a0a0f;
  --bg-soft:   #0f0f17;
  --surface:   rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border:    rgba(255, 255, 255, 0.09);
  --border-hi: rgba(255, 255, 255, 0.18);

  --text:      #f4f4f8;
  --text-mut:  #a4a4b3;
  --text-dim:  #6f6f80;

  --violet:    #7c3aed;
  --cyan:      #06b6d4;
  --pink:      #ec4899;

  --grad: linear-gradient(120deg, #7c3aed 0%, #06b6d4 50%, #ec4899 100%);

  --container: 1160px;
  --radius:    20px;
  --radius-sm: 12px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

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

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

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }

/* ---------- Animated background ---------- */
.bg-aurora {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, #12121d 0%, var(--bg) 55%);
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  will-change: transform;
}
.blob-1 { width: 540px; height: 540px; background: #7c3aed; top: -160px; left: -120px; animation: drift1 22s var(--ease) infinite alternate; }
.blob-2 { width: 480px; height: 480px; background: #06b6d4; top: 10%; right: -160px; animation: drift2 26s var(--ease) infinite alternate; }
.blob-3 { width: 420px; height: 420px; background: #ec4899; bottom: -160px; left: 30%; animation: drift3 24s var(--ease) infinite alternate; }
@keyframes drift1 { to { transform: translate(120px, 80px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-100px, 120px) scale(1.1); } }
@keyframes drift3 { to { transform: translate(80px, -90px) scale(1.2); } }

.grid-overlay {
  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: 56px 56px;
  mask-image: radial-gradient(110% 90% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-primary {
  color: #fff; position: relative;
  background: var(--grad);
  box-shadow: 0 8px 30px -8px rgba(124,58,237,.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(124,58,237,.8); }
.btn-ghost {
  color: var(--text); background: rgba(255, 255, 255, 0.05); border-color: var(--border-hi);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--text-dim); transform: translateY(-2px); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,15,.72);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.brand-mark {
  font-size: 20px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: spin 12s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--text-mut); font-size: 15px; font-weight: 500; transition: color .2s; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--grad); transition: width .25s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: inline-flex; }

.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(--text); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none; flex-direction: column; gap: 4px; padding: 0 24px;
  background: rgba(10,10,15,.96); backdrop-filter: blur(16px);
  max-height: 0; overflow: hidden; transition: max-height .35s var(--ease), padding .35s var(--ease);
  border-bottom: 1px solid var(--border);
}
.nav-mobile.open { max-height: 360px; padding: 12px 24px 24px; }
.nav-mobile a { color: var(--text-mut); padding: 12px 0; font-weight: 500; border-bottom: 1px solid var(--border); }
.nav-mobile a.btn { border: 1px solid transparent; margin-top: 10px; justify-content: center; }

/* ---------- Hero ---------- */
.hero { padding: 180px 0 110px; text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display);
  font-size: 13px; letter-spacing: .04em; color: var(--text-mut);
  padding: 7px 16px; border: 1px solid var(--border-hi); border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); margin-bottom: 28px;
}
.hero-title { font-size: clamp(40px, 8vw, 84px); font-weight: 700; margin-bottom: 26px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 620px; font-size: clamp(16px, 2.4vw, 20px); color: var(--text-mut); margin-bottom: 38px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 64px; }

.hero-stats { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--text); }
.stat-label { font-size: 13px; color: var(--text-dim); margin-top: 2px; }
.stat-divider { width: 1px; height: 34px; background: var(--border); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section-head { max-width: 680px; margin: 0 auto 60px; text-align: center; }
.section-tag {
  display: inline-block; font-family: var(--font-display); font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 16px;
}
.section-title { font-size: clamp(28px, 4.5vw, 46px); margin-bottom: 18px; }
.section-lead { color: var(--text-mut); font-size: 17px; }

/* ---------- Apps grid ---------- */
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.app-card {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  padding: 26px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
  overflow: hidden;
}
.app-card::before {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--g1, #7c3aed), var(--g2, #06b6d4));
  -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 .35s var(--ease);
}
.app-card:hover { transform: translateY(-6px); background: var(--surface-2); }
.app-card:hover::before { opacity: 1; }
a.app-card { color: inherit; text-decoration: none; cursor: pointer; }
.app-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.app-link { font-family: var(--font-display); font-size: 12.5px; font-weight: 500; color: var(--cyan); opacity: 0; transform: translateX(-4px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.app-card:hover .app-link { opacity: 1; transform: none; }
@media (hover: none) { .app-link { opacity: 1; transform: none; } }
.app-icon {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  font-size: 28px; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, var(--g1, #7c3aed), var(--g2, #06b6d4));
  box-shadow: 0 10px 30px -8px var(--g1, #7c3aed);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-card:hover .app-icon { transform: scale(1.06); box-shadow: 0 14px 38px -8px var(--g1, #7c3aed); }
.app-body { flex: 1; }
.app-body h3 { font-size: 20px; margin-bottom: 8px; }
.app-body p { color: var(--text-mut); font-size: 14.5px; line-height: 1.55; }
.app-platforms { font-family: var(--font-display); font-size: 12px; color: var(--text-dim); letter-spacing: .03em; }

.app-card-cta {
  justify-content: center; align-items: flex-start;
  background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(6,182,212,.08));
  border-style: dashed; border-color: var(--border-hi);
}
.app-card-cta:hover { transform: translateY(-6px); border-color: var(--cyan); }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
  padding: 30px 26px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.service-card:hover { transform: translateY(-6px); border-color: var(--border-hi); box-shadow: 0 20px 50px -24px rgba(124,58,237,.5); }
.service-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 26px;
  background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 20px;
}
.service-card h3 { font-size: 19px; margin-bottom: 12px; }
.service-card p { color: var(--text-mut); font-size: 14.5px; margin-bottom: 18px; }
.service-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.service-list li { font-size: 13.5px; color: var(--text-dim); padding-left: 22px; position: relative; }
.service-list li::before { content: "✦"; position: absolute; left: 0; color: var(--cyan); font-size: 11px; }

.services-cta { text-align: center; margin-top: 54px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.services-cta p { color: var(--text-mut); font-family: var(--font-display); font-size: 18px; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.about-text p { color: var(--text-mut); margin-bottom: 16px; max-width: 520px; }
.about-values { display: flex; flex-direction: column; gap: 16px; margin-top: 30px; }
.value { display: flex; align-items: center; gap: 14px; }
.value-icon { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: var(--grad); font-size: 14px; }
.value div { display: flex; flex-direction: column; }
.value strong { font-family: var(--font-display); font-size: 15px; }
.value span { color: var(--text-dim); font-size: 14px; }

.about-visual { display: grid; place-items: center; }
.orbit { position: relative; width: 300px; height: 300px; }
.orbit-core {
  position: absolute; inset: 0; margin: auto; width: 90px; height: 90px; border-radius: 50%;
  display: grid; place-items: center; font-size: 36px; background: var(--grad);
  box-shadow: 0 0 60px -10px rgba(124,58,237,.7);
}
.orbit::before, .orbit::after {
  content: ""; position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px solid var(--border);
}
.orbit::before { width: 200px; height: 200px; }
.orbit::after { width: 300px; height: 300px; }
.orbit-dot {
  position: absolute; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  font-size: 22px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--border-hi);
  top: 50%; left: 50%; margin: -24px;
}
.orbit { animation: orbitSpin 30s linear infinite; }
.orbit-dot, .orbit-core { animation-direction: reverse; }
.d1 { transform: translate(150px, 0); }
.d2 { transform: translate(0, 150px); }
.d3 { transform: translate(-150px, 0); }
.d4 { transform: translate(0, -150px); }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.orbit-dot { animation: orbitSpin 30s linear infinite reverse; }

/* ---------- Contact ---------- */
.section-contact { padding-bottom: 120px; }
.contact-card {
  position: relative; text-align: center; padding: 54px 40px 70px; border-radius: 28px;
  background: linear-gradient(160deg, rgba(124,58,237,.10), rgba(6,182,212,.06));
  border: 1px solid var(--border-hi); overflow: hidden;
}
.contact-glow { position: absolute; top: -40%; left: 50%; transform: translateX(-50%); width: 600px; height: 400px; background: radial-gradient(circle, rgba(124,58,237,.35), transparent 60%); filter: blur(40px); pointer-events: none; }
.contact-card > * { position: relative; }
.contact-card .section-lead { max-width: 520px; margin: 0 auto 28px; }
.contact-email {
  display: inline-block; font-family: var(--font-display); font-size: clamp(20px, 4vw, 30px); font-weight: 600;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 34px;
}
.contact-email:hover { opacity: .85; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 4px 22px; transition: border-color .3s var(--ease), background .3s var(--ease);
}
.faq-item[open] { border-color: var(--border-hi); background: var(--surface-2); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-family: var(--font-display);
  font-size: 17px; font-weight: 500; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 24px; color: var(--cyan); font-weight: 400; line-height: 1;
  transition: transform .3s var(--ease); flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 0 20px; color: var(--text-mut); font-size: 15.5px; line-height: 1.7; }
.faq-a a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.faq-a a:hover { color: var(--text); }

.contact-meta { margin-top: 24px; color: var(--text-dim); font-size: 14px; }
.footer-loc { color: var(--text-dim); font-size: 13.5px; margin-top: 6px !important; }
.footer-muted { display: block; color: var(--text-dim); font-size: 13px; margin-top: 8px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 60px 0 30px; background: var(--bg-soft); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-brand p { color: var(--text-dim); margin-top: 12px; font-size: 14px; }
.footer-cols { display: flex; gap: 70px; flex-wrap: wrap; }
.footer-col h4 { font-size: 14px; color: var(--text); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-mut); font-size: 14px; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { padding-top: 26px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 13.5px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .app-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 50px; }
  .about-visual { order: -1; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: flex; }
  .hero { padding: 140px 0 80px; }
  .hero-stats { gap: 18px; }
  .stat-divider { display: none; }
  .section { padding: 72px 0; }
}
@media (max-width: 540px) {
  .app-grid, .service-grid { grid-template-columns: 1fr; }
}
