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

:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --card: #111827;
  --border-subtle: #1f2937;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent-violet: #8b5cf6;
  --accent-teal: #22c55e;
  --accent-cyan: #22d3ee;
  --shadow-soft: 0 22px 45px rgba(0, 0, 0, 0.55);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
  color: var(--text);
}

/* HEADER / NAV */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 7vw;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to right,
    rgba(5, 8, 22, 0.95),
    rgba(5, 8, 22, 0.7)
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.logo-mark {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 40%;
  background: conic-gradient(
    from 220deg,
    var(--accent-violet),
    var(--accent-cyan),
    var(--accent-teal),
    var(--accent-violet)
  );
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.7);
  font-size: 0.85rem;
}

.logo-text {
  font-size: 1rem;
}

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.9rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.nav-cta {
  border: 1px solid rgba(148, 163, 184, 0.55);
}

/* HERO */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.6fr);
  gap: 3rem;
  padding: 4.5rem 7vw 4rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 3.2vw + 1.5rem, 3.6rem);
  line-height: 1.12;
  margin: 0 0 1.1rem;
}

.gradient-text {
  background: linear-gradient(120deg, var(--accent-violet), var(--accent-cyan));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.7rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    border-color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(
    130deg,
    var(--accent-violet),
    var(--accent-cyan)
  );
  box-shadow: 0 16px 38px rgba(56, 189, 248, 0.35);
  color: #0b1020;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 45px rgba(56, 189, 248, 0.5);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--muted);
}

.btn-ghost:hover {
  border-color: rgba(248, 250, 252, 0.8);
  color: var(--text);
  background: rgba(15, 23, 42, 0.9);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-tags span {
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: var(--muted);
}

/* Hero orbit graphic */

.hero-orbit {
  position: relative;
  min-height: 260px;
}

.orb-main {
  position: absolute;
  inset: 20% 18%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 10%, #ffffff, #4c1d95, #000);
  box-shadow: 0 0 80px rgba(129, 140, 248, 0.7);
  animation: pulse 5.5s ease-in-out infinite;
}

.orb-secondary {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 10%, #f9fafb, #22d3ee);
  right: 8%;
  top: 12%;
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.7);
  animation: float 7s ease-in-out infinite;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(148, 163, 184, 0.5);
}

.ring-1 {
  inset: 6% 5%;
  animation: rotate-slow 30s linear infinite;
}

.ring-2 {
  inset: 0;
  animation: rotate-slow 46s linear infinite reverse;
}

.hero-label {
  position: absolute;
  bottom: 8%;
  left: 6%;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.8rem;
  color: var(--muted);
  box-shadow: var(--shadow-soft);
}

.hero-label span {
  display: block;
  color: var(--accent-cyan);
  font-size: 0.75rem;
}

/* SECTIONS */

.section {
  padding: 4rem 7vw;
}

.section-alt {
  background: radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.12),
      transparent 50%
    ),
    #020617;
}

.section-header {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.section-header h2 {
  margin: 0 0 0.3rem;
  font-size: 1.7rem;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

/* GRID / CARDS */

.grid {
  display: grid;
  gap: 1.6rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: radial-gradient(circle at top, #111827, #020617);
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.5rem 1.5rem;
  border: 1px solid rgba(31, 41, 55, 0.95);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.card p {
  margin-top: 0;
  color: var(--muted);
}

.card ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.card-outline {
  background: transparent;
  border-style: dashed;
}

.card-tagline {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
}

/* AI-THARA */

.ai-thara-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 2rem;
  align-items: stretch;
}

.ai-thara-text p {
  color: var(--muted);
}

.ai-thara-text ul {
  margin-top: 0.8rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.ai-thara-panel {
  position: relative;
  border-radius: 26px;
  background: radial-gradient(
      circle at top left,
      rgba(139, 92, 246, 0.5),
      transparent 55%
    ),
    radial-gradient(circle at bottom right, rgba(45, 212, 191, 0.55), #020617);
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.95);
}

.ai-thara-panel::before {
  content: "";
  position: absolute;
  inset: 12% 10%;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.4);
}

.ai-thara-badge {
  position: absolute;
  top: 1.2rem;
  left: 1.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(248, 250, 252, 0.2);
  font-size: 0.75rem;
}

.ai-thara-caption {
  position: relative;
  margin: 0;
  font-size: 0.9rem;
}

/* ABOUT */

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.9rem;
}

.about-grid p,
.about-grid ul {
  color: var(--muted);
}

.about-grid ul {
  padding-left: 1.1rem;
}

/* CONTACT */

.contact-section {
  border-top: 1px solid rgba(15, 23, 42, 1);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 2rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.4rem;
  color: var(--muted);
}

.contact-list a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-note {
  border-radius: var(--radius-xl);
  border: 1px dashed rgba(148, 163, 184, 0.5);
  padding: 1.6rem 1.4rem;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.9);
}

/* FOOTER */

.site-footer {
  padding: 1.4rem 7vw 1.8rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background: #020617;
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-orbit {
    order: -1;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .ai-thara-layout,
  .about-grid,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-header {
    padding-inline: 5vw;
  }

  .nav {
    display: none; /* keep desktop nav only for now */
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes rotate-slow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ===== Services CTA Button ===== */

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

.btn-primary {
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, #5b8cff, #8fd3f4);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}

.btn-primary:hover {
  opacity: 0.9;
}

/* ===== Active Navigation State ===== */

.nav a.active {
  color: #8fd3f4;
  font-weight: 600;
  position: relative;
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(135deg, #5b8cff, #8fd3f4);
  border-radius: 2px;
}

/* ===== Active Navigation State ===== */

.nav a.active {
  color: #8fd3f4;
  font-weight: 600;
  position: relative;
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(135deg, #5b8cff, #8fd3f4);
  border-radius: 2px;
}

/* ===== Active Logo State ===== */

.logo.active {
  color: #8fd3f4;
  font-weight: 600;
  position: relative;
}

.logo.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(135deg, #5b8cff, #8fd3f4);
  border-radius: 2px;
}
