/* =========================================================
   ASTRO-AI — hero, services, about
   ========================================================= */
.hero {
  position: relative;
  min-height: 820px;
  display: flex;
  align-items: center;
  padding: 128px 0 66px;
  overflow: hidden;
  isolation: isolate;
  background: #03050d;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transform: scale(1.03);
  filter: saturate(1.12) brightness(1.05);
  will-change: transform;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(58% 66% at 76% 44%, rgba(3, 6, 16, .72) 0%, rgba(3, 6, 16, .28) 55%, transparent 100%),
    linear-gradient(180deg, rgba(3, 5, 14, .92) 0%, rgba(3, 5, 14, .38) 18%, rgba(3, 5, 14, .04) 48%, rgba(3, 5, 14, .45) 82%, #04060f 100%);
}
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(34% 42% at 17% 46%, rgba(124, 58, 237, .24), transparent 70%),
    radial-gradient(30% 34% at 82% 62%, rgba(34, 211, 238, .12), transparent 70%),
    radial-gradient(55% 18% at 54% 76%, rgba(56, 189, 248, .16), transparent 75%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: .85;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .99fr 1.01fr;
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  direction: ltr;
}

/* ---------- hero logo lockup ---------- */
.hero-brand-block {
  position: relative;
  direction: ltr;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: heroRise 1.1s var(--ease) both;
}
.hero-logo-wrap {
  position: relative;
  width: min(600px, 100%);
  margin-bottom: 2px;
}
.hero-logo-halo {
  position: absolute;
  inset: 14% 4% 10%;
  border-radius: 50%;
  background:
    radial-gradient(50% 50% at 36% 66%, rgba(232, 121, 249, .38), transparent 70%),
    radial-gradient(50% 50% at 66% 38%, rgba(34, 211, 238, .32), transparent 70%),
    radial-gradient(50% 50% at 50% 50%, rgba(99, 102, 241, .3), transparent 72%);
  filter: blur(38px);
  z-index: -1;
  animation: pulse 7s ease-in-out infinite;
}
.hero-mark {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 42px rgba(10, 16, 48, .55));
  animation: float 8s ease-in-out infinite;
}

.hero-tagline {
  width: min(480px, 96%);
  height: auto;
  margin-top: 16px;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .5));
}
.hero-slogan {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 20px);
  width: min(440px, 100%);
  margin-top: clamp(12px, 1.6vw, 22px);
}
.slogan-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192, 132, 252, .8), rgba(34, 211, 238, .8));
  box-shadow: 0 0 8px rgba(139, 92, 246, .45);
}
.slogan-line:last-child { transform: scaleX(-1); }
.slogan-text {
  font-size: clamp(19px, 1.9vw, 27px);
  font-weight: 800;
  white-space: nowrap;
  background: linear-gradient(100deg, #e879f9 0%, #c084fc 38%, #818cf8 66%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(139, 92, 246, .5));
}

/* ---------- hero copy ---------- */
.hero-copy {
  direction: rtl;
  text-align: right;
  max-width: 604px;
  padding-top: 14px;
  justify-self: end;
  animation: heroRise 1.1s .15s var(--ease) both;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(142, 170, 255, .28);
  background: rgba(7, 11, 26, .52);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 500;
  color: #d5ddf5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 0 28px -8px rgba(124, 58, 237, .5);
  margin-bottom: 22px;
}
.hero-badge i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #67e8f9;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .12), 0 0 12px #22d3ee;
}
.hero-title {
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: -.012em;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 8px 40px rgba(0, 0, 0, .35);
}
.hero-title-line { display: block; }
.hero-title .gradient-text {
  display: inline;
  line-height: 1.5;
  filter: drop-shadow(0 0 26px rgba(56, 189, 248, .3));
}
.hero-desc {
  font-size: clamp(13.5px, 1.15vw, 16px);
  line-height: 2.15;
  color: #aebbd9;
  max-width: 450px;
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-orbit {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(125, 211, 252, .12);
  border-radius: 50%;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, .18));
}
.orbit-one {
  width: 1000px; height: 320px;
  top: 7%; left: -30%;
  transform: rotate(-16deg);
}
.orbit-two {
  width: 1200px; height: 400px;
  bottom: -18%; right: -34%;
  transform: rotate(-12deg);
  border-color: rgba(192, 132, 252, .12);
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

/* =========================================================
   SERVICES
   ========================================================= */
.section {
  position: relative;
  padding: clamp(64px, 7vw, 100px) 0;
  isolation: isolate;
  overflow: hidden;
}
.section-aura {
  position: absolute;
  width: 620px; height: 620px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .35;
  pointer-events: none;
  z-index: -1;
}
.aura-left {
  left: -340px; top: 8%;
  background: radial-gradient(circle, rgba(124, 58, 237, .55), transparent 65%);
}
.aura-right {
  right: -340px; top: 20%;
  background: radial-gradient(circle, rgba(37, 99, 235, .5), transparent 65%);
}

.services {
  background:
    radial-gradient(110% 62% at 50% 0%, rgba(37, 34, 96, .45), transparent 68%),
    linear-gradient(180deg, #04060f, #05070f);
}
.section-head {
  text-align: center;
  max-width: 730px;
  margin: 0 auto clamp(34px, 4vw, 52px);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 17px 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, .35);
  background: rgba(10, 14, 30, .66);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 500;
  color: #ddd6fe;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 0 32px -10px rgba(124, 58, 237, .65);
}
.kicker::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e879f9, #22d3ee);
  box-shadow: 0 0 8px rgba(139, 92, 246, .9);
}
.section-title {
  font-size: clamp(26px, 2.85vw, 40px);
  line-height: 1.55;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #f5f8ff;
  margin: 16px 0 12px;
}
.section-desc {
  font-size: clamp(13px, 1.05vw, 14.5px);
  line-height: 2.1;
  color: #93a1bf;
  max-width: 620px;
  margin-inline: auto;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  direction: ltr;
}
.service-card {
  position: relative;
  direction: rtl;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 258px;
  padding: 30px 20px 28px;
  border-radius: 20px;
  border: 1px solid rgba(126, 156, 255, .2);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(88, 80, 200, .28), transparent 58%),
    linear-gradient(165deg, rgba(21, 30, 60, .92), rgba(7, 11, 24, .94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    0 22px 50px -35px rgba(0, 0, 0, .9);
  overflow: hidden;
  transition: transform .45s var(--ease), border-color .4s, box-shadow .45s;
}
.service-card::before {
  content: '';
  position: absolute;
  top: -55%; left: 50%;
  width: 220px; height: 160px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(124, 58, 237, .35), transparent);
  opacity: .5;
  transition: opacity .4s, transform .5s;
  pointer-events: none;
}
.card-edge {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(192, 132, 252, .6), rgba(99, 102, 241, .1) 32%, rgba(34, 211, 238, .05) 68%, rgba(34, 211, 238, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: .55;
  transition: opacity .4s;
  pointer-events: none;
}
.service-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  margin-bottom: 18px;
  border-radius: 18px;
  border: 1px solid rgba(142, 170, 255, .28);
  background:
    radial-gradient(circle at 30% 18%, rgba(129, 140, 248, .36), transparent 62%),
    linear-gradient(160deg, rgba(22, 31, 62, .95), rgba(8, 12, 28, .95));
  color: #a5b4fc;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    inset 0 -10px 24px -12px rgba(34, 211, 238, .35),
    0 12px 30px -18px rgba(79, 70, 229, .9);
  transition: transform .45s var(--ease), color .4s, box-shadow .4s;
}
.service-icon .icon {
  width: 30px; height: 30px;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 8px rgba(129, 140, 248, .65));
}
.service-card:nth-child(2) .service-icon { color: #c4b5fd; }
.service-card:nth-child(3) .service-icon { color: #7dd3fc; }
.service-card:nth-child(4) .service-icon { color: #f0abfc; }
.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #f2f6ff;
  margin-bottom: 8px;
  line-height: 1.7;
}
.service-card p {
  font-size: 13px;
  line-height: 2;
  color: #a3b1ce;
  max-width: 230px;
  margin-bottom: 26px;
}
.round-arrow {
  position: absolute;
  bottom: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(142, 170, 255, .24);
  background: rgba(7, 11, 24, .65);
  color: #c7d2fe;
  transition: .35s var(--ease);
}
.round-arrow .icon { width: 16px; height: 16px; transition: transform .35s; }
.round-arrow:hover {
  border-color: transparent;
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(79, 70, 229, 1);
}
.round-arrow:hover .icon { transform: translateX(-2px); }

.service-card:hover {
  transform: translateY(-7px);
  border-color: rgba(139, 92, 246, .5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 30px 60px -32px rgba(79, 70, 229, .65),
    0 0 0 1px rgba(139, 92, 246, .12);
}
.service-card:hover::before { opacity: .95; transform: translateX(-50%) translateY(10px) scale(1.15); }
.service-card:hover .card-edge { opacity: .9; }
.service-card:hover .service-icon { transform: translateY(-3px) rotate(-3deg); color: #e0e7ff; }

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  padding: clamp(64px, 8vw, 112px) 0;
  background:
    radial-gradient(70% 80% at 8% 50%, rgba(88, 28, 135, .2), transparent 62%),
    radial-gradient(50% 60% at 96% 40%, rgba(30, 58, 138, .2), transparent 65%),
    #04060f;
  overflow: hidden;
}
.about-inner {
  --about-bleed: max(calc(50vw - 680px), var(--gutter));
  width: min(1360px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}
.about-copy { padding-block: 10px; }
.about-copy .section-title { max-width: 560px; }
.about-copy .section-desc {
  margin: 14px 0 28px;
  max-width: 520px;
  font-size: clamp(13.5px, 1.12vw, 15px);
  line-height: 2.2;
}
.about-media {
  position: relative;
  width: calc(100% + var(--about-bleed));
  margin-left: calc(var(--about-bleed) * -1);
  border-radius: 0 26px 26px 0;
  overflow: hidden;
  border: 1px solid rgba(126, 156, 255, .22);
  border-left: 0;
  background: #060a16;
  box-shadow:
    0 40px 90px -45px rgba(29, 78, 216, .75),
    0 0 0 1px rgba(255, 255, 255, .03),
    inset 0 0 60px rgba(0, 0, 0, .4);
  isolation: isolate;
}
.about-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9.8;
  max-height: 520px;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.about-media:hover img { transform: scale(1.035); }
.media-glow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 52%, rgba(3, 5, 14, .62) 100%),
    radial-gradient(100% 60% at 50% 120%, rgba(56, 189, 248, .18), transparent 70%);
  pointer-events: none;
}
.media-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .16);
}
.media-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(142, 170, 255, .22);
  background: rgba(6, 10, 22, .66);
  backdrop-filter: blur(14px);
  font-size: 10.5px;
  letter-spacing: .02em;
  color: #c7d2e9;
  z-index: 2;
}
.media-badge i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 8px #22d3ee;
}
.about-orbit {
  position: absolute;
  right: -260px;
  top: 50%;
  width: 740px;
  height: 740px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, .12);
  pointer-events: none;
}
.about-orbit::before, .about-orbit::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, .1);
}
.about-orbit::before { inset: 50px; }
.about-orbit::after { inset: 120px; }
.about-orbit span {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 18px 3px rgba(34, 211, 238, .55);
  top: 12%; left: 22%;
}

/* =========================================================
   responsive
   ========================================================= */
@media (max-width: 1180px) {
  .hero { min-height: 760px; }
  .about-inner { grid-template-columns: 1.05fr .95fr; }
}
@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding-top: 118px;
    padding-bottom: 60px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-copy {
    order: 1;
    justify-self: stretch;
    max-width: 640px;
    text-align: center;
    margin-inline: auto;
  }
  .hero-brand-block { order: 2; }
  .hero-desc { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-title .gradient-text { display: inline; }
  .hero-logo-wrap { width: min(430px, 82vw); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-inner { grid-template-columns: 1fr; }
  .about-copy { order: 2; text-align: center; }
  .about-copy .section-desc { margin-inline: auto; }
  .about-copy .section-title { margin-inline: auto; }
  .about-media { order: 1; max-width: 760px; margin-inline: auto; width: 100%; border-radius: 18px; border-left: 1px solid rgba(126, 156, 255, .22); }
  .about-orbit { display: none; }
}
@media (max-width: 620px) {
  .hero { padding-top: 108px; }
  .hero-badge { margin-bottom: 16px; }
  .hero-title { line-height: 1.6; }
  .hero-actions .btn { --btn-h: 46px; padding: 0 20px; font-size: 13px; }
  .hero-slogan { width: min(380px, 94%); }
  .hero-logo-wrap { width: min(360px, 90vw); }
  .service-grid { gap: 12px; }
  .service-card { min-height: 250px; padding: 26px 14px 24px; }
  .service-card h3 { font-size: 15px; }
  .service-card p { font-size: 11.5px; }
  .service-icon { width: 54px; height: 54px; }
  .service-icon .icon { width: 26px; height: 26px; }
  .round-arrow { width: 32px; height: 32px; bottom: 14px; left: 14px; }
  .about-media { border-radius: 18px; }
  .media-badge { display: none; }
}
@media (max-width: 380px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 224px; }
}
