/* ===========================================================================
   Eshtha Digital — styles
   =========================================================================== */
:root {
  --bg:        #06131a;
  --bg-soft:   #0a1a22;
  --surface:   #ffffff;
  --surface-2: #f5f7fc;
  --ink:       #0b1020;
  --ink-soft:  #4a5468;
  --line:      #e6eaf3;

  --c-cyan:   #06b6d4;
  --c-indigo: #14b8a6;
  --c-violet: #34d399;
  --accent:   #14b8a6;

  --grad: linear-gradient(100deg, #34d399 0%, #14b8a6 50%, #06b6d4 100%);
  --grad-soft: linear-gradient(100deg, rgba(52,211,153,.16), rgba(6,182,212,.16));

  /* Theme glows / shadows (swap these + --grad for a new theme) */
  --glow-1: rgba(16,185,129,.52);
  --glow-2: rgba(6,182,212,.44);
  --accent-glow: rgba(16,185,129,.60);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 40px -12px rgba(16, 24, 55, .18);
  --shadow-lg: 0 30px 70px -24px rgba(16, 24, 55, .28);
  --maxw: 1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 800; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(99,102,241,.85); }
.btn-ghost { background: rgba(255,255,255,.04); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,14,26,.65);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand-logo { color: #cbd5f5; display: inline-flex; }
.brand-text { font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: #fff; }
.brand-accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: #c3cbe0; font-size: 15px; font-weight: 500; transition: color .15s ease; }
.nav a:hover { color: #fff; }
.nav .nav-cta {
  padding: 9px 18px; border-radius: 999px; color: #fff;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.04);
}
.nav .nav-cta:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.09); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .25s ease; }
.mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 8px 24px 20px; background: rgba(10,14,26,.96); border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-nav a { color: #d5dcef; padding: 12px 4px; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.06); }
.mobile-nav .nav-cta { border: 0; color: var(--c-cyan); }
.mobile-nav.open { display: flex; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg); color: #fff; padding: clamp(90px, 15vw, 160px) 0 clamp(80px, 12vw, 140px); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 80%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.hero-glow-1 { width: 520px; height: 520px; background: radial-gradient(circle, var(--glow-1), transparent 70%); top: -160px; left: -120px; }
.hero-glow-2 { width: 460px; height: 460px; background: radial-gradient(circle, var(--glow-2), transparent 70%); bottom: -180px; right: -100px; animation: float 12s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-28px); } }

.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 860px; margin: 0 auto; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #a5b0d0; padding: 7px 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  background: rgba(255,255,255,.03); margin-bottom: 26px;
}
.hero-title { font-size: clamp(38px, 6.6vw, 72px); font-weight: 900; letter-spacing: -.03em; }
.hero-sub { margin: 26px auto 0; max-width: 620px; font-size: clamp(16px, 2vw, 19px); color: #b9c1da; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; background: var(--surface); }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 640px; margin: 0 auto clamp(44px, 6vw, 64px); text-align: center; }
.tag {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(28px, 4.4vw, 44px); }
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 17px; }

/* ---------- Solution cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; position: relative; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); opacity: 0; transition: opacity .22s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { opacity: 1; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 20px;
  color: var(--accent); background: var(--grad-soft);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Ecosystem (dark flow band) ---------- */
.ecosystem { position: relative; overflow: hidden; background: var(--bg); color: #fff; }
.eco-bg { position: absolute; inset: 0; z-index: 0; opacity: .6; }
.eco-bg .hero-grid { mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 30%, transparent 78%); -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 30%, transparent 78%); }
.ecosystem .container { position: relative; z-index: 1; }
.ecosystem .section-head h2 { color: #fff; }
.ecosystem .section-head p { color: #b9c1da; }
.ecosystem .tag { color: var(--c-cyan); }

.flow { display: flex; align-items: flex-start; justify-content: center; gap: 4px; flex-wrap: nowrap; }
.flow-node { flex: 1 1 0; max-width: 220px; text-align: center; padding: 0 4px; }
.flow-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 76px; height: 76px; border-radius: 22px; margin-bottom: 18px; color: #fff;
  background: var(--grad-soft); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 0 34px -8px var(--glow-1);
  animation: ecoPulse 3.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .45s);
}
.flow-icon svg { width: 34px; height: 34px; }
@keyframes ecoPulse { 0%,100% { box-shadow: 0 0 30px -10px var(--glow-2); } 50% { box-shadow: 0 0 42px -6px var(--glow-1); } }
.flow-node h3 { font-size: 16.5px; color: #fff; margin-bottom: 7px; }
.flow-node p { font-size: 14px; color: #97a3bd; }
.flow-sep { flex: 0 0 auto; align-self: flex-start; margin-top: 24px; color: rgba(255,255,255,.28); }
.flow-sep svg { width: 24px; height: 24px; }

/* ---------- Industries ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.industry {
  display: flex; gap: 16px; align-items: flex-start; padding: 24px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.industry:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.industry-icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px; color: var(--accent); background: var(--grad-soft);
}
.industry-icon svg { width: 25px; height: 25px; }
.industry h3 { font-size: 16.5px; margin-bottom: 5px; }
.industry p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px 40px; }
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature-icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 13px; color: #fff; background: var(--grad);
  box-shadow: 0 10px 26px -10px var(--accent-glow);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.about-copy h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 20px; }
.about-copy p { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 16px; }
.about-visual { display: flex; justify-content: center; }
.orbit { position: relative; width: 280px; height: 280px; }
.orbit-core {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 60px var(--glow-1); animation: pulse 3.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); box-shadow: 0 0 50px var(--glow-1); } 50% { transform: scale(1.08); box-shadow: 0 0 80px var(--glow-2); } }
.orbit-ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px dashed rgba(99,102,241,.32); }
.orbit-ring-1 { width: 150px; height: 150px; animation: spin 14s linear infinite; }
.orbit-ring-2 { width: 220px; height: 220px; animation: spin 22s linear infinite reverse; }
.orbit-ring-3 { width: 280px; height: 280px; animation: spin 30s linear infinite; }
.orbit-ring i { position: absolute; top: -5px; left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%; background: var(--c-cyan); box-shadow: 0 0 14px var(--c-cyan); }
.orbit-ring-2 i { background: var(--c-violet); box-shadow: 0 0 14px var(--c-violet); }
.orbit-ring-3 i { background: var(--c-indigo); box-shadow: 0 0 14px var(--c-indigo); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Contact ---------- */
.contact { background: var(--surface-2); }
.contact-card {
  position: relative; overflow: hidden; text-align: center;
  background: var(--bg); color: #fff; border-radius: 26px;
  padding: clamp(48px, 7vw, 80px) 28px; box-shadow: var(--shadow-lg);
}
.contact-glow { position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, var(--glow-1), transparent 65%); top: -220px; left: 50%; transform: translateX(-50%); filter: blur(50px); }
.contact-card .tag { color: var(--c-cyan); position: relative; }
.contact-card h2 { position: relative; font-size: clamp(26px, 4vw, 42px); }
.contact-sub { position: relative; margin: 16px auto 0; max-width: 480px; color: #b9c1da; font-size: 17px; }
.contact-form { position: relative; max-width: 540px; margin: 32px auto 0; text-align: left; display: flex; flex-direction: column; gap: 14px; }
.contact-form .field-row { display: flex; gap: 14px; }
.contact-form .field-row input { flex: 1; min-width: 0; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; font: inherit; font-size: 15px; color: #fff;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  transition: border-color .15s ease, background .15s ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #7c88a6; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--c-cyan); background: rgba(255,255,255,.08); }
.contact-form textarea { resize: vertical; min-height: 112px; }
.contact-form .btn { align-self: flex-start; margin-top: 2px; border: 0; }
.form-success { position: relative; margin: 24px auto 0; color: #5eead4; font-weight: 600; font-size: 16px; }

.contact-meta { position: relative; margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; color: #93a0c2; font-size: 15px; }
.contact-meta a:hover { color: #fff; }
@media (max-width: 560px) { .contact-form .field-row { flex-direction: column; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); color: #fff; padding: 56px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.09); }
.footer-brand .brand-text { font-size: 20px; }
.footer-brand p { color: #8e99b8; margin-top: 8px; font-size: 15px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { color: #b9c1da; font-size: 15px; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { margin-top: 22px; color: #7b87a6; font-size: 14px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-glow-2, .orbit-core, .orbit-ring, .flow-icon { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { order: -1; }
  .footer-inner { flex-direction: column; gap: 20px; }
}
