/* ═══════════════════════════════════════════════════════════
   GALAXY WEB — stylesheet
   ═══════════════════════════════════════════════════════════ */

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #f8fafc;
  --bg-card:   #ffffff;
  --bg-dark:   #f1f5f9;
  --purple:    #1a8de8;
  --purple-lt: #1478cc;
  --blue:      #0f5faa;
  --text:      #0f172a;
  --text-muted:#475569;
  --border:    rgba(26,141,232,.2);
  --radius:    14px;
  --radius-lg: 22px;
  --transition:300ms cubic-bezier(.4,0,.2,1);
  --font: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ── SCROLLBAR ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
h1,h2,h3,h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--text-muted); }

.gradient-text {
  background: linear-gradient(135deg, var(--purple-lt), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── LAYOUT ───────────────────────────────────────────────── */
.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding: 6rem 0; }
.section-dark { background: var(--bg-dark); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}
.section-eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--purple-lt);
  margin-bottom: .75rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-desc { font-size: 1.05rem; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), #4f46e5);
  color: #fff;
  box-shadow: 0 4px 24px rgba(26,141,232,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(26,141,232,.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--purple-lt);
  color: var(--purple-lt);
  background: rgba(26,141,232,.08);
}

.btn-full { width: 100%; justify-content: center; }

/* ── NAVIGATION ───────────────────────────────────────────── */
.nav-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background var(--transition), padding var(--transition), backdrop-filter var(--transition);
}
.nav-wrapper.scrolled {
  background: rgba(248,250,252,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.logo-mark {
  color: var(--purple-lt);
  font-size: 1.4rem;
  line-height: 1;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
  filter: none;
}

.footer-logo-img {
  height: 32px;
  margin-bottom: .75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
  background: linear-gradient(135deg, var(--purple), #4f46e5);
  color: #fff;
  padding: .45rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
}
.nav-links .nav-cta:hover { opacity: .85; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 6rem 1.25rem 4rem;
}

#starsCanvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* radial glow */
.hero::before {
  content: '';
  position: absolute;
  top: 15%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(26,141,232,.22) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--purple-lt);
  margin-bottom: 1.25rem;
}

.hero-title {
  margin-bottom: 1.25rem;
  letter-spacing: -.03em;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-hint span {
  display: block;
  width: 22px; height: 36px;
  border: 2px solid var(--border);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-hint span::after {
  content: '';
  position: absolute;
  top: 5px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 7px;
  background: var(--purple-lt);
  border-radius: 2px;
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { opacity: 1; top: 5px; }
  80%  { opacity: 0; top: 18px; }
  100% { opacity: 0; top: 18px; }
}

/* ── SERVICE CARDS ────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(26,141,232,.55);
  box-shadow: 0 12px 40px rgba(26,141,232,.15);
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(26,141,232,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--purple-lt);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .6rem; }
.card p { font-size: .93rem; }

/* ── FEATURE LIST ─────────────────────────────────────────── */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.feature-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: rgba(0,0,0,.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition);
}
.feature-item:hover { border-color: rgba(26,141,232,.45); }

.feature-num {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}
.feature-item h3 { margin-bottom: .4rem; }
.feature-item p  { font-size: .93rem; }

/* ── PILLS GRID ───────────────────────────────────────────── */
.pills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform var(--transition), border-color var(--transition);
}
.pill:hover {
  transform: translateY(-4px);
  border-color: rgba(26,141,232,.5);
}

.pill-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(26,141,232,.12);
  border-radius: 12px;
  color: var(--purple-lt);
  margin-bottom: 1rem;
}
.pill-icon svg { width: 20px; height: 20px; }
.pill h4 { margin-bottom: .4rem; }
.pill p  { font-size: .88rem; }

/* ── CTA BANNER ───────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, rgba(26,141,232,.18), rgba(26,141,232,.12));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 0;
  text-align: center;
}
.cta-banner h2 { margin-bottom: 1rem; }
.cta-banner p  { font-size: 1.05rem; margin-bottom: 2rem; }

/* ── STEPS ────────────────────────────────────────────────── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.step-num {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple), #4f46e5);
  color: #fff;
  box-shadow: 0 0 30px rgba(26,141,232,.4);
  flex-shrink: 0;
}

.step-body h3 { margin-bottom: .5rem; }
.step-body p  { font-size: .93rem; }

.step-connector {
  flex-shrink: 0;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), #4f46e5);
  margin-top: 30px;
  opacity: .45;
}

/* ── CONTACT ──────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 1.75rem; }

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(26,141,232,.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--purple-lt);
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; }

.contact-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--purple-lt);
  margin-bottom: .2rem;
}
.contact-value {
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
  transition: color var(--transition);
}
.contact-value:hover { color: var(--purple-lt); }

/* ── FORM ─────────────────────────────────────────────────── */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.form-group label {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
}
.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  color: var(--text);
  font-family: var(--font);
  font-size: .95rem;
  transition: border-color var(--transition), background var(--transition);
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple-lt);
  background: rgba(26,141,232,.08);
}
.form-group input.error,
.form-group textarea.error { border-color: #f87171; }

.form-feedback {
  font-size: .88rem;
  text-align: center;
  min-height: 1.2rem;
}
.form-feedback.success { color: #4ade80; }
.form-feedback.fail    { color: #f87171; }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding-top: 4rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand p { font-size: .9rem; max-width: 300px; }

.footer-links h4,
.footer-contact h4 {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--purple-lt);
  margin-bottom: 1rem;
}
.footer-links li,
.footer-contact li { margin-bottom: .5rem; }
.footer-links a,
.footer-contact a {
  font-size: .9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--purple-lt); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  text-align: center;
}
.footer-bottom p { font-size: .82rem; color: var(--text-muted); }

/* ── REVEAL ANIMATION ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .step-connector {
    width: 2px; height: 48px;
    margin: 0;
    background: linear-gradient(180deg, var(--purple), #4f46e5);
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(7,7,15,.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem 1.25rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: flex; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .cta-banner { padding: 3.5rem 0; }
  .section { padding: 4rem 0; }
}
