/* =====================================================================
   Eclipta Solutions Ltd — brand stylesheet
   Palette derived from the company logo:
     slate-950 #020617 / slate-900 #0f172a (grounds)
     gradient  #818cf8 -> #a78bfa -> #c084fc (eclipse ring)
     accents   #6366f1 indigo / #e9d5ff halo
     text      #f8fafc / muted #94a3b8
   No external fonts or scripts — self-contained, privacy-friendly, fast.
   ===================================================================== */

:root {
  --bg:            #0b1020;
  --bg-2:          #0f172a;
  --surface:       #111a30;
  --surface-2:     #16213d;
  --border:        #233149;
  --border-soft:   #1b2740;
  --text:          #f8fafc;
  --text-muted:    #9fb0c9;
  --text-dim:      #6b7c99;
  --brand-1:       #818cf8;
  --brand-2:       #a78bfa;
  --brand-3:       #c084fc;
  --brand-indigo:  #6366f1;
  --halo:          #e9d5ff;
  --gradient:      linear-gradient(120deg, #818cf8 0%, #a78bfa 50%, #c084fc 100%);
  --gradient-soft: linear-gradient(120deg, rgba(129,140,248,.16), rgba(192,132,252,.16));
  --shadow:        0 18px 50px -20px rgba(2, 6, 23, .9);
  --shadow-glow:   0 0 60px -10px rgba(167, 139, 250, .35);
  --radius:        16px;
  --radius-sm:     10px;
  --maxw:          1120px;
  --font: "Segoe UI", "SF Pro Display", -apple-system, BlinkMacSystemFont,
          "Inter", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Cosmic background glow echoing the logo's corona */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 78% -8%,  rgba(99,102,241,.20), transparent 60%),
    radial-gradient(800px 600px at 8% 4%,    rgba(192,132,252,.12), transparent 55%),
    radial-gradient(1000px 700px at 50% 110%, rgba(129,140,248,.10), transparent 60%);
  pointer-events: none;
}

a { color: var(--brand-2); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-3); }

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; font-weight: 650; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--gradient);
}

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #0b1020;
  box-shadow: 0 10px 30px -10px rgba(167,139,250,.6);
}
.btn-primary:hover { transform: translateY(-2px); color: #0b1020; box-shadow: 0 16px 40px -12px rgba(167,139,250,.75); }
.btn-ghost {
  background: rgba(255,255,255,.02);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--brand-2); color: var(--text); transform: translateY(-2px); }

/* ----------------------------- Header ------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11,16,32,.72);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand:hover { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: .75rem; }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--border);
  border-radius: 8px; padding: .45rem .55rem; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }

/* ------------------------------ Hero ------------------------------- */
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem); }
.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.9rem);
  font-weight: 700;
  margin-bottom: 1.1rem;
}
.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 40ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3rem;
  align-items: center;
}
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.hero-visual .orb {
  width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(192,132,252,.5), rgba(99,102,241,.05) 60%, transparent 70%);
  filter: blur(2px);
  position: absolute;
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(-8px); } 50% { transform: translateY(8px); } }

/* --------------------------- Stat strip ---------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1rem;
}
.stat { background: var(--bg); padding: 1.4rem 1.25rem; }
.stat b { display: block; font-size: 1.5rem; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: .85rem; color: var(--text-dim); }

/* ---------------------------- Sections ----------------------------- */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 56ch; margin-bottom: 2.75rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* ------------------------------ Cards ------------------------------ */
.card-grid { display: grid; gap: 1.25rem; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border); box-shadow: var(--shadow); }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  color: var(--brand-2);
}
.card h3 { font-size: 1.18rem; }
.card p { color: var(--text-muted); margin-bottom: 0; font-size: .97rem; }

/* --------------------------- Product cards ------------------------- */
.product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  background: linear-gradient(180deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem;
  position: relative;
  overflow: hidden;
}
.product::after {
  content: "";
  position: absolute; inset: 0 0 auto auto;
  width: 220px; height: 220px;
  background: radial-gradient(circle at 70% 0%, rgba(167,139,250,.18), transparent 65%);
  pointer-events: none;
}
.product .tag {
  display: inline-flex; align-items: center; gap: .4rem;
  align-self: flex-start;
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-2);
  background: rgba(129,140,248,.1);
  border: 1px solid var(--border);
  padding: .3rem .7rem; border-radius: 999px;
}
.product h3 { font-size: 1.4rem; margin-bottom: .25rem; }
.product .meta { color: var(--text-dim); font-size: .85rem; margin-bottom: .4rem; }
.product p { color: var(--text-muted); margin-bottom: .5rem; }
.product ul { margin: .2rem 0 0; padding-left: 1.1rem; color: var(--text-muted); font-size: .94rem; }
.product ul li { margin-bottom: .3rem; }

/* ----------------------------- CTA band ---------------------------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 80% 0%, rgba(99,102,241,.25), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.cta-band p { color: var(--text-muted); max-width: 50ch; margin-inline: auto; }

/* ------------------------------ Forms ------------------------------ */
.form-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.4rem);
}
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .4rem; color: var(--text); }
.field .req { color: var(--brand-3); }
.field input,
.field textarea {
  width: 100%;
  padding: .8rem .9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: .98rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(167,139,250,.18);
}
.field textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: .82rem; color: var(--text-dim); margin-top: .25rem; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status { margin-top: 1rem; font-size: .95rem; min-height: 1.2em; }
.form-status.ok { color: #6ee7b7; }
.form-status.err { color: #fca5a5; }

/* ------------------------- Contact details ------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: start; }
.detail-list { list-style: none; margin: 0; padding: 0; }
.detail-list li { display: flex; gap: .85rem; padding: 1rem 0; border-bottom: 1px solid var(--border-soft); }
.detail-list li:last-child { border-bottom: none; }
.detail-list .ic { color: var(--brand-2); margin-top: .15rem; flex: 0 0 auto; }
.detail-list b { display: block; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }
.detail-list span, .detail-list a { color: var(--text); font-size: .98rem; }

/* ------------------------------ Legal ------------------------------ */
.legal { max-width: 78ch; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal .updated { color: var(--text-dim); font-size: .9rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; color: var(--text); }
.legal h3 { font-size: 1.05rem; margin-top: 1.4rem; color: var(--brand-2); }
.legal p, .legal li { color: var(--text-muted); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .45rem; }
.legal .callout {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--brand-2);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  margin: 1.4rem 0;
}
.legal .callout p:last-child { margin-bottom: 0; }

/* ----------------------------- Footer ------------------------------ */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-top p { color: var(--text-muted); font-size: .95rem; max-width: 34ch; }
.footer-col h4 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: var(--text-muted); font-size: .95rem; }
.footer-col a:hover { color: var(--text); }
.legal-strip {
  border-top: 1px solid var(--border-soft);
  padding-top: 1.5rem;
  font-size: .82rem;
  color: var(--text-dim);
  line-height: 1.7;
}
.legal-strip a { color: var(--text-muted); }

/* --------------------------- Responsive ---------------------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border); padding: .5rem 24px 1rem;
  }
  .nav.open .nav-links li { width: 100%; }
  .nav.open .nav-links a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--border-soft); width: 100%; }
  .cols-3, .cols-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
