/* ============================================================
   Indus Pole Star Group — stylesheet
   ============================================================ */

:root {
  --bg: #173a7a;
  --bg-2: #1f4a96;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.10);
  --text: #e9ecf5;
  --muted: #9aa3bd;
  --gold: #f5b942;
  --gold-soft: #ffd483;
  --blue: #5b8cff;
  --green: #3ddc97;
  --teal: #38d6cf;
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.65);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

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

h1, h2, h3, h4, .brand__text { font-family: "Space Grotesk", "Inter", sans-serif; line-height: 1.1; letter-spacing: -0.02em; }

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 clamp(20px, 5vw, 48px); }

/* ===== Background FX ===== */
#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 78% -8%, rgba(245, 185, 66, 0.14), transparent 60%),
    radial-gradient(55vw 55vw at 8% 12%, rgba(91, 140, 255, 0.16), transparent 60%),
    radial-gradient(70vw 50vw at 50% 110%, rgba(61, 220, 151, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}

/* ===== Gradient / utility text ===== */
.gradient-text {
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-soft) 40%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Navbar ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(23, 58, 122, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand__star { fill: var(--gold); filter: drop-shadow(0 0 10px rgba(245, 185, 66, 0.5)); flex: none; }
.brand__text { font-weight: 700; font-size: 1.05rem; display: flex; flex-direction: column; line-height: 1.05; }
.brand__text small { font-weight: 500; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-family: "Inter", sans-serif; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 0.93rem; color: var(--muted); font-weight: 500; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__links a.btn { color: var(--text); }

.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: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s; }
.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); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn--sm { padding: 9px 18px; font-size: 0.88rem; }
.btn--block { width: 100%; }
.btn--primary {
  color: #1a1407;
  background: linear-gradient(100deg, var(--gold), var(--gold-soft));
  box-shadow: 0 12px 30px -10px rgba(245, 185, 66, 0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(245, 185, 66, 0.75); }
.btn--ghost { color: var(--text); background: var(--surface); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-2); transform: translateY(-2px); border-color: rgba(255,255,255,0.22); }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; }
.hero__inner { max-width: 880px; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 26px;
}
.hero__title { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 700; margin-bottom: 24px; }
.hero__lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 660px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* ===== Sub-page hero ===== */
.page-hero { padding: 132px 0 24px; }
.page-hero__inner { max-width: 820px; }
.page-hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); margin: 14px 0 18px; }
.page-hero__lead { color: var(--muted); font-size: clamp(1.02rem, 2.2vw, 1.2rem); max-width: 680px; }
.page-hero .badges { margin-top: 28px; }

/* active nav link */
.nav__links a.active { color: var(--gold-soft); }

.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--border); border-radius: 999px; display: grid; place-items: start center; padding-top: 8px; }
.scroll-cue span { width: 4px; height: 8px; border-radius: 4px; background: var(--gold); animation: scrollcue 1.6s var(--ease) infinite; }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

/* ===== Sections ===== */
.section { padding: clamp(70px, 11vw, 130px) 0; position: relative; }
.section--tight { padding-bottom: clamp(30px, 5vw, 50px); }
.section__head { max-width: 720px; }
.kicker { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: var(--teal); margin-bottom: 14px; }
.kicker--gold { color: var(--gold); }
.kicker--green { color: var(--green); }
.kicker--blue { color: var(--blue); }
.section__head h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: 16px; }
.section__sub { color: var(--muted); font-size: 1.08rem; }

/* ===== Service mini-cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px; }
.mini-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
  position: relative; overflow: hidden;
}
.mini-card::after {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(220px 160px at var(--mx,50%) var(--my,0%), rgba(245,185,66,0.14), transparent 70%);
  transition: opacity 0.3s; pointer-events: none;
}
.mini-card:hover { transform: translateY(-6px); border-color: rgba(245, 185, 66, 0.4); background: var(--surface-2); }
.mini-card:hover::after { opacity: 1; }
.mini-card__icon { font-size: 2rem; }
.mini-card h3 { font-size: 1.3rem; }
.mini-card p { color: var(--muted); font-size: 0.98rem; }
.mini-card__link { margin-top: auto; color: var(--gold); font-weight: 600; font-size: 0.92rem; }

/* ===== Vertical sections ===== */
.vertical__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.vertical__grid--rev .vertical__intro { order: 2; }
.vertical__intro h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 18px; }
.vertical__intro p { color: var(--muted); font-size: 1.05rem; }
.vertical__intro strong { color: var(--text); }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.badge { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); }

.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.2); background: var(--surface-2); }
.feature h4 { font-size: 1.08rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.93rem; line-height: 1.55; }

/* ===== About strip ===== */
.about__inner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 70px) clamp(26px, 5vw, 60px);
  border: 1px solid var(--border);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(245,185,66,0.06), rgba(91,140,255,0.05)),
    var(--surface);
  box-shadow: var(--shadow);
}
.about__inner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.about__inner p { color: var(--muted); font-size: 1.08rem; margin-bottom: 30px; }

/* ===== Contact ===== */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 70px); align-items: start; }
.contact__copy h2 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); margin-bottom: 16px; }
.contact__copy > p { color: var(--muted); font-size: 1.05rem; }

.contact__details { list-style: none; margin-top: 32px; display: grid; gap: 22px; }
.contact__details li { color: var(--text); font-size: 0.97rem; line-height: 1.55; }
.contact__details a { color: var(--gold-soft); }
.contact__details a:hover { text-decoration: underline; }
.contact__label { display: block; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

.contact__form {
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 7px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #6b7390; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 185, 66, 0.18);
  background: rgba(0,0,0,0.35);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%239aa3bd' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }
.field select option { background: var(--bg-2); color: var(--text); }
.form__note { font-size: 0.9rem; min-height: 1.2em; }
.form__note.ok { color: var(--green); }
.form__note.err { color: #ff7a7a; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); padding: 56px 0 40px; background: rgba(0,0,0,0.25); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 36px; align-items: start; }
.footer__brand p { color: var(--muted); font-size: 0.92rem; margin-top: 12px; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); transition: color .2s, border-color .2s, background .2s, transform .25s var(--ease); }
.footer__social a:hover { color: var(--gold); border-color: rgba(245, 185, 66, .4); background: var(--surface-2); transform: translateY(-3px); }
.footer__social svg { width: 22px; height: 22px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a { color: var(--muted); font-size: 0.93rem; transition: color 0.2s; }
.footer__links a:hover { color: var(--text); }
.footer__meta { display: grid; gap: 10px; font-size: 0.88rem; color: var(--muted); }
.footer__meta a { color: var(--gold-soft); }
.footer__meta a:hover { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .nav__links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    gap: 6px;
    padding: 18px clamp(20px, 5vw, 48px) 28px;
    background: rgba(23, 58, 122, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    transition: transform 0.4s var(--ease);
    align-items: stretch;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 12px 4px; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav__links a.btn { margin-top: 10px; justify-content: center; border-bottom: 0; }
  .nav__toggle { display: flex; }

  .cards { grid-template-columns: 1fr; }
  .vertical__grid { grid-template-columns: 1fr; }
  .vertical__grid--rev .vertical__intro { order: 0; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .feature-list { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 auto; }
  .footer__inner { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.01ms !important; }
  .scroll-cue span { animation: none; }
}
