:root {
  color-scheme: only light;
  --bg: #050816;
  --bg-2: #0c1430;
  --ink: #eaf2ff;
  --muted: #9cb2d4;
  --primary: #2aa1ff;
  --primary-2: #6bd0ff;
  --accent: #ff9f1c;
  --card: rgba(12, 20, 48, 0.72);
  --card-border: rgba(96, 141, 212, 0.2);
  --shadow: 0 28px 60px rgba(5, 8, 22, 0.55);
  --radius: 22px;
}

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

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #14204a 0%, #050816 55%);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.auth-loading {
  visibility: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-orbit {
  position: fixed;
  inset: -20vh -10vw auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(42, 161, 255, 0.25), transparent 70%);
  filter: blur(0);
  z-index: -1;
  animation: orbit 16s ease-in-out infinite;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 6vw, 80px);
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  background: rgba(5, 8, 22, 0.6);
  border-bottom: 1px solid rgba(42, 161, 255, 0.08);
  z-index: 10;
  transition: box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 10px 40px rgba(2, 6, 18, 0.35);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
}

.logo-mark {
  background: linear-gradient(145deg, #2aa1ff, #ff9f1c);
  color: #04112b;
  font-weight: 700;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.logo strong {
  color: var(--primary-2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 600;
  color: var(--muted);
}

.site-nav a.active {
  color: var(--ink);
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.25s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.auth-hidden {
  display: none !important;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(42, 161, 255, 0.15);
  border: 1px solid rgba(107, 208, 255, 0.35);
  color: var(--ink);
  font-weight: 600;
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2fd576;
}

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(42, 161, 255, 0.2), rgba(107, 208, 255, 0.3));
  border: 1px solid rgba(42, 161, 255, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 28px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
}

main {
  padding: 20px clamp(20px, 6vw, 90px) 80px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  padding: 40px 0 20px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  font-size: 0.8rem;
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.1;
}

.lead {
  color: var(--muted);
  margin-top: 18px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, #2aa1ff, #6bd0ff 70%);
  color: #031027;
  box-shadow: 0 12px 30px rgba(42, 161, 255, 0.4);
}

.btn.ghost {
  border: 1px solid rgba(234, 242, 255, 0.2);
  color: var(--ink);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(42, 161, 255, 0.25);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.hero-stats h3 {
  font-size: 1.6rem;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-visual img {
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: floaty 7s ease-in-out infinite;
}

.hero-card {
  position: absolute;
  bottom: -20px;
  right: -10px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 20px;
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  width: min(240px, 80%);
}

.hero-card ul {
  list-style: none;
  margin-top: 12px;
}

.hero-card li {
  margin-bottom: 8px;
  color: var(--muted);
}

.section {
  margin-top: 80px;
}

.section.muted {
  background: linear-gradient(145deg, rgba(12, 20, 48, 0.85), rgba(5, 8, 22, 0.95));
  border-radius: 32px;
  padding: 60px clamp(20px, 5vw, 60px);
  border: 1px solid rgba(42, 161, 255, 0.1);
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.section-head h2,
.page-hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card,
.service-card,
.case,
.quote,
.contact-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.card:hover,
.service-card:hover,
.case:hover,
.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(5, 8, 22, 0.55);
  border-color: rgba(107, 208, 255, 0.45);
}

.card a,
.service-card a,
.case span {
  color: var(--primary-2);
  font-weight: 600;
}

.case {
  position: relative;
  overflow: hidden;
}

.case-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(42, 161, 255, 0.2);
  color: var(--primary-2);
  margin-bottom: 14px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-meta {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.quote {
  font-style: italic;
  color: var(--muted);
}

.quote cite {
  display: block;
  margin-top: 14px;
  color: var(--ink);
  font-style: normal;
  font-weight: 600;
}

.page-hero {
  display: grid;
  gap: 16px;
  padding: 40px 0 20px;
}

.service-card ul {
  list-style: none;
  margin-top: 12px;
  color: var(--muted);
}

.service-card li {
  margin-bottom: 8px;
}

.timeline {
  margin-top: 40px;
  display: grid;
  gap: 20px;
}

.timeline-item {
  border-left: 2px solid rgba(42, 161, 255, 0.4);
  padding-left: 18px;
}

.cta-band {
  margin-top: 80px;
  background: linear-gradient(120deg, rgba(42, 161, 255, 0.2), rgba(255, 159, 28, 0.2));
  border-radius: 30px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-band h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: rgba(5, 8, 22, 0.7);
  border: 1px solid rgba(42, 161, 255, 0.2);
  color: var(--ink);
  padding: 12px 14px;
  border-radius: 14px;
  font-family: inherit;
}

.contact-detail {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.contact-detail strong {
  color: var(--ink);
}

.contact-note {
  margin-top: 20px;
  color: var(--muted);
}

.auth-wrap {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.auth-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}

.auth-card h2 {
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 12px;
}

.auth-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 16px;
}

.google-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-weight: 700;
}

.google-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: conic-gradient(#4285f4 0 90deg, #34a853 90deg 180deg, #fbbc05 180deg 270deg, #ea4335 270deg 360deg);
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding: 40px clamp(20px, 6vw, 90px) 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 8, 22, 0.9);
}

.site-footer h3,
.site-footer h4 {
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.grid .reveal:nth-child(3) { transition-delay: 0.15s; }
.grid .reveal:nth-child(4) { transition-delay: 0.2s; }
.grid .reveal:nth-child(5) { transition-delay: 0.25s; }
.grid .reveal:nth-child(6) { transition-delay: 0.3s; }

@media (max-width: 960px) {
  .site-nav {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(5, 8, 22, 0.95);
    border: 1px solid rgba(42, 161, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    flex-direction: column;
    gap: 12px;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .hero-card {
    position: static;
    margin-top: 16px;
    width: 100%;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

@keyframes orbit {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-40px, 40px) scale(1.1);
  }
}

@keyframes floaty {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-12px) scale(1.01);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
