/* ==========================================================================
   SARATECH.IN — SECTION STYLES
   Hero / Navbar / Footer (Phase 1)
   ========================================================================== */

/* -----------------------------------------------------------------------
   NAVBAR
   ----------------------------------------------------------------------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  transition: background var(--duration-normal) ease,
              box-shadow var(--duration-normal) ease;
}

.navbar.is-scrolled {
  background: rgba(var(--color-void-rgb), 0.80);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--color-surface-border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.navbar__logo {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  letter-spacing: var(--tracking-tight);
  color: var(--color-alabaster);
  display: flex;
  align-items: center;
  gap: 2px;
}

.navbar__logo-dot {
  color: var(--color-volt);
  font-size: 1.5em;
  line-height: 1;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.navbar__link {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-alabaster-muted);
  transition: color var(--duration-fast) ease;
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-volt);
  transition: width var(--duration-normal) var(--ease-out-expo);
}

.navbar__link:hover {
  color: var(--color-alabaster);
}

.navbar__link:hover::after {
  width: 100%;
}

/* Mobile hamburger */
.navbar__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
  z-index: calc(var(--z-overlay) + 1);
}

.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-alabaster);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              opacity var(--duration-fast) ease;
}

.navbar__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.navbar__mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(var(--color-void-rgb), 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) ease;
}

.navbar__mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.navbar__mobile-menu .navbar__link {
  font-size: var(--text-sm);
  color: var(--color-alabaster);
}

@media (min-width: 768px) {
  .navbar__hamburger {
    display: none;
  }
  .navbar__mobile-menu {
    display: none;
  }
}

@media (max-width: 767px) {
  .navbar__links {
    display: none;
  }
}

/* -----------------------------------------------------------------------
   HERO
   ----------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* Animated grid background */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: var(--z-background);
  background-image:
    linear-gradient(rgba(var(--color-slate-rgb), 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--color-slate-rgb), 0.12) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 80%);
}

/* Cursor-tracking radial glow */
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: var(--z-background);
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(var(--color-volt-rgb), 0.06),
    transparent 60%
  );
  transition: background 0.15s ease;
}

/* Gradient orb accent */
.hero__orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--color-volt-rgb), 0.08), transparent 70%);
  top: 20%;
  right: -10%;
  z-index: var(--z-background);
  filter: blur(80px);
  animation: orb-drift 15s ease-in-out infinite alternate;
}

@keyframes orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, 40px) scale(1.15); }
}

.hero__content {
  position: relative;
  z-index: var(--z-base);
  text-align: center;
  max-width: 860px;
  padding: var(--space-8) var(--container-pad);
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-volt);
  margin-bottom: var(--space-6);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  opacity: 0;
  animation: fade-in-up 0.8s var(--ease-out-expo) 0.2s forwards;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-volt);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 6vw, var(--text-4xl));
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-alabaster);
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: fade-in-up 0.8s var(--ease-out-expo) 0.4s forwards;
}

.hero__title-accent {
  color: var(--color-volt);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(var(--text-base), 2.2vw, var(--text-lg));
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--color-alabaster-muted);
  max-width: 640px;
  margin: 0 auto var(--space-10);
  opacity: 0;
  animation: fade-in-up 0.8s var(--ease-out-expo) 0.6s forwards;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  opacity: 0;
  animation: fade-in-up 0.8s var(--ease-out-expo) 0.8s forwards;
}

/* Scroll indicator */
.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0;
  animation: fade-in 1s ease 1.5s forwards;
}

.hero__scroll-hint span {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-slate-light);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-volt), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50%      { opacity: 1;   transform: scaleY(1); }
}

/* -----------------------------------------------------------------------
   BUTTONS
   ----------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  transition:
    transform var(--duration-normal) var(--ease-out-expo),
    box-shadow var(--duration-normal) var(--ease-out-expo),
    background var(--duration-fast) ease,
    color var(--duration-fast) ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

/* Primary — Kinetic Volt fill */
.btn--primary {
  background: var(--color-volt);
  color: var(--color-void);
  border: 2px solid var(--color-volt);
}

.btn--primary:hover {
  box-shadow: var(--glow-volt-intense);
  transform: scale(1.03);
}

/* Secondary — ghost outline */
.btn--secondary {
  background: transparent;
  color: var(--color-alabaster);
  border: 1px solid var(--color-slate);
}

.btn--secondary:hover {
  border-color: var(--color-volt);
  color: var(--color-volt);
  box-shadow: var(--glow-volt);
  transform: scale(1.03);
}

/* -----------------------------------------------------------------------
   FOOTER
   ----------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--color-surface-border);
  padding: var(--space-10) 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__copyright {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-slate-light);
  letter-spacing: var(--tracking-wide);
}

.footer__social {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer__social-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-slate);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-alabaster-muted);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  transition: color var(--duration-fast) ease;
}

.footer__social-link:hover {
  color: var(--color-volt);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer__domain {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-slate);
  letter-spacing: var(--tracking-wide);
}

/* -----------------------------------------------------------------------
   SECTION: THE PROBLEM — "THE AGENCY TRAP"
   ----------------------------------------------------------------------- */

.problem {
  position: relative;
  background: var(--color-void);
}

.problem__accent-line {
  width: 48px;
  height: 2px;
  background: var(--color-volt);
  margin-bottom: var(--space-6);
}

.problem__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-volt);
  margin-bottom: var(--space-3);
}

.problem__title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  margin-bottom: var(--space-8);
}

.problem__body {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-alabaster-muted);
  margin-bottom: var(--space-8);
}

.problem__callout {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-alabaster);
  padding: var(--space-6);
  background: var(--color-surface);
  border-left: 3px solid var(--color-volt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  letter-spacing: var(--tracking-wide);
}

/* -----------------------------------------------------------------------
   SECTION: THE SOLUTION — "YOUR COMPLETE TECH ECOSYSTEM"
   ----------------------------------------------------------------------- */

.solution {
  position: relative;
  background: var(--color-surface);
}

/* Subtle top/bottom gradient bleed into void */
.solution::before,
.solution::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none;
}

.solution::before {
  top: 0;
  background: linear-gradient(to bottom, var(--color-void), transparent);
}

.solution::after {
  bottom: 0;
  background: linear-gradient(to top, var(--color-void), transparent);
}

.solution__inner {
  position: relative;
  z-index: 1;
}

.solution__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-volt);
  margin-bottom: var(--space-3);
}

.solution__title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  margin-bottom: var(--space-8);
}

.solution__body {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-alabaster-muted);
}

.solution__highlight {
  color: var(--color-volt);
  font-weight: var(--weight-semibold);
}

.solution__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Ecosystem orbit ring visual */
.solution__orbit {
  width: 280px;
  height: 280px;
  border: 1px solid var(--color-surface-border);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: orbit-spin 30s linear infinite;
}

.solution__orbit::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px dashed rgba(var(--color-slate-rgb), 0.25);
  border-radius: 50%;
}

.solution__orbit-core {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-volt), rgba(var(--color-volt-rgb), 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-void);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  box-shadow: var(--glow-volt-intense);
  animation: orbit-spin 30s linear infinite reverse;
}

.solution__orbit-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-volt);
  box-shadow: 0 0 12px var(--color-volt-glow);
}

.solution__orbit-node:nth-child(2) { top: -5px; left: 50%; transform: translateX(-50%); }
.solution__orbit-node:nth-child(3) { bottom: -5px; left: 50%; transform: translateX(-50%); }
.solution__orbit-node:nth-child(4) { right: -5px; top: 50%; transform: translateY(-50%); }
.solution__orbit-node:nth-child(5) { left: -5px; top: 50%; transform: translateY(-50%); }

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (max-width: 767px) {
  .solution__visual {
    margin-top: var(--space-12);
  }
  .solution__orbit {
    width: 220px;
    height: 220px;
  }
}

/* -----------------------------------------------------------------------
   SECTION: SERVICES — "EVERYTHING YOUR BUSINESS NEEDS TO SCALE"
   ----------------------------------------------------------------------- */

.services {
  position: relative;
  background: var(--color-void);
}

.services__header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.services__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-volt);
  margin-bottom: var(--space-3);
}

.services__title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
}

/* Service cards */
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition:
    transform var(--duration-normal) var(--ease-out-expo),
    box-shadow var(--duration-normal) var(--ease-out-expo),
    border-color var(--duration-normal) ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-volt), transparent);
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-volt);
  border-color: rgba(var(--color-volt-rgb), 0.25);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(var(--color-volt-rgb), 0.08);
  border: 1px solid rgba(var(--color-volt-rgb), 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-volt);
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
}

.service-card__desc {
  font-size: var(--text-base);
  color: var(--color-alabaster-muted);
  line-height: var(--leading-normal);
}

.service-card__tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-slate-light);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  width: fit-content;
  position: relative;
  overflow: hidden;
}

/* Shimmer effect on tag */
.service-card__tag::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--color-volt-rgb), 0.08),
    transparent
  );
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { left: -100%; }
  50%      { left: 100%; }
}

/* -----------------------------------------------------------------------
   SECTION: PHILOSOPHY — "BUILT FOR FOUNDERS, BY TECHNOLOGISTS"
   ----------------------------------------------------------------------- */

.philosophy {
  position: relative;
  background: linear-gradient(
    180deg,
    var(--color-void) 0%,
    var(--color-surface) 40%,
    var(--color-surface) 60%,
    var(--color-void) 100%
  );
}

.philosophy__inner {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.philosophy__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-volt);
  margin-bottom: var(--space-8);
}

.philosophy__quote {
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 3.5vw, var(--text-2xl));
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  color: var(--color-alabaster);
  margin-bottom: var(--space-10);
  position: relative;
}

.philosophy__quote::before {
  content: '"';
  position: absolute;
  top: -0.4em;
  left: -0.05em;
  font-size: 4em;
  line-height: 1;
  color: rgba(var(--color-volt-rgb), 0.12);
  font-family: var(--font-display);
  pointer-events: none;
}

.philosophy__body {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-alabaster-muted);
  max-width: 680px;
  margin: 0 auto var(--space-10);
}

.philosophy__signature {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-slate-light);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.philosophy__signature::before,
.philosophy__signature::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-slate);
}

/* -----------------------------------------------------------------------
   SECTION: FINAL CTA
   ----------------------------------------------------------------------- */

.final-cta {
  position: relative;
  text-align: center;
  overflow: hidden;
}

/* Background glow pulse */
.final-cta__bg {
  position: absolute;
  inset: 0;
  z-index: var(--z-background);
  pointer-events: none;
  background: radial-gradient(
    ellipse 50% 60% at 50% 50%,
    rgba(var(--color-volt-rgb), 0.04),
    transparent 70%
  );
  animation: cta-pulse 5s ease-in-out infinite alternate;
}

@keyframes cta-pulse {
  0%   { opacity: 0.5; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.1); }
}

.final-cta__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.final-cta__title {
  font-size: clamp(var(--text-2xl), 4.5vw, var(--text-3xl));
  margin-bottom: var(--space-6);
}

.final-cta__body {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-alabaster-muted);
  margin-bottom: var(--space-10);
}

/* Large CTA button — the loudest element on the page */
.btn--large {
  padding: var(--space-4) var(--space-12);
  font-size: var(--text-sm);
  position: relative;
}

.btn--large::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(var(--color-volt-rgb), 0.20);
  animation: ring-pulse 2.5s ease-in-out infinite;
}

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

/* -----------------------------------------------------------------------
   KEYFRAME ANIMATIONS
   ----------------------------------------------------------------------- */

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
