/* ===========================================
   SpotUltra — main stylesheet
   =========================================== */

/* --- Design tokens (CSS variables) --- */

:root {
  /* Brand colors (from logo) */
  --color-black: #0d0d0d;
  --color-blue: #1e90ff;
  --color-blue-dark: #0d6efd;

  /* Grayscale */
  --color-white: #ffffff;
  --color-gray-50: #fafafa;
  --color-gray-100: #f4f4f5;
  --color-gray-200: #e4e4e7;
  --color-gray-300: #d4d4d8;
  --color-gray-500: #71717a;
  --color-gray-700: #3f3f46;
  --color-gray-900: #18181b;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container-max: 1200px;
  --container-padding: 1.5rem;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* --- Reset --- */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-gray-900);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-blue);
  text-decoration: none;
}

a:hover {
  color: var(--color-blue-dark);
}

ul {
  list-style: none;
}

/* --- Layout primitives --- */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* --- Header / Nav --- */

.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo img {
  height: 36px;
  width: auto;
}

.site-nav ul {
  display: flex;
  gap: 2.5rem;
}

.site-nav a {
  color: var(--color-gray-900);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--color-blue);
}

/* --- Hero --- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.18), transparent 35%),
    radial-gradient(circle at top right, rgba(13, 110, 253, 0.18), transparent 35%),
    radial-gradient(circle at bottom left, rgba(13, 110, 253, 0.18), transparent 35%),
    radial-gradient(circle at bottom right, rgba(13, 110, 253, 0.18), transparent 35%),
    var(--color-white);
  text-align: center;
}

.hero-content {
  width: 100%;
}

.hero-logo {
  width: 320px;
  max-width: 80%;
  height: auto;
  margin: 0 auto 2.5rem;
}

.spotlight-text {
  position: relative;
  display: inline-block;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-gray-900);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.spotlight-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--color-blue);
  clip-path: circle(0px at 0% 50%);
  animation: moveSpotlight 8.75s ease-in-out infinite;
}

@keyframes moveSpotlight {
  0%   { clip-path: circle(0px at 0% 50%); }
  54%  { clip-path: circle(140px at 92% 50%); }
  100% { clip-path: circle(140px at 92% 50%); }
}

@keyframes moveSpotlightMobile {
  0%   { clip-path: circle(0% at 0% 50%); }
  54%  { clip-path: circle(25% at 92% 50%); }
  100% { clip-path: circle(25% at 92% 50%); }
}

.hero-subtitle {
  font-size: 1.4rem;
  color: var(--color-gray-700);
  margin-bottom: 2.5rem;
}

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

.hero-comingsoon {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-blue);
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  background: var(--color-gray-50);
}

/* --- Buttons --- */

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-blue);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-blue-dark);
  color: var(--color-white);
}

.btn-secondary {
  background: var(--color-gray-100);
  color: var(--color-gray-900);
  border-color: var(--color-gray-200);
}

.btn-secondary:hover {
  background: var(--color-gray-200);
  color: var(--color-gray-900);
}

/* --- Features grid --- */

.features {
  padding: 5rem 0 6rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-gray-900);
}

.feature-card .feature-subtitle {
  font-size: 0.95rem;
  color: var(--color-blue);
  font-weight: 600;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--color-gray-700);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* --- Footer --- */

.site-footer {
  background: var(--color-gray-900);
  color: var(--color-gray-300);
  padding: 2.5rem 0;
  margin-top: 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copyright {
  font-size: 0.9rem;
  color: var(--color-gray-300);
}

.footer-nav ul {
  display: flex;
  gap: 1.75rem;
}

.footer-nav a {
  color: var(--color-gray-300);
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--color-white);
}

/* --- Responsive --- */

@media (max-width: 800px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .site-nav ul {
    gap: 1.25rem;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .spotlight-text {
    font-size: clamp(1rem, 7vw, 2.5rem);
    white-space: nowrap;
  }

  .spotlight-text::after {
    animation-name: moveSpotlightMobile;
  }
}

/* --- Inner page hero --- */
.page-hero {
  padding: 2.5rem 0 2rem;
  background: linear-gradient(180deg, var(--color-white) 0%, rgba(30, 144, 255, 0.06) 100%);
  text-align: center;
  border-bottom: 1px solid var(--color-gray-100);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-gray-900);
  margin-bottom: 1rem;
}

.page-lead {
  font-size: 1.2rem;
  color: var(--color-gray-700);
  max-width: 640px;
  margin: 0 auto;
}

/* --- Content sections --- */

.content-section {
  padding: 4rem 0;
}

.content-narrow {
  max-width: 720px;
}

.content-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-gray-900);
}

.content-section h2:first-child {
  margin-top: 0;
}

.content-section p {
  color: var(--color-gray-700);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.content-cta {
  margin-top: 2.5rem;
}

/* --- Service rows (alternating layout) --- */

.service-row {
  padding: 5rem 0;
  border-bottom: 1px solid var(--color-gray-100);
}

.service-row:nth-child(even) {
  background: var(--color-gray-50);
}

.service-row-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.service-row-reverse .service-row-inner {
  direction: rtl;
}

.service-row-reverse .service-row-content {
  direction: ltr;
}

.service-row-reverse .service-row-visual {
  direction: ltr;
}

.service-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.service-row-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-gray-900);
}

.service-lead {
  font-size: 1.15rem;
  color: var(--color-gray-700);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.service-row-content p {
  color: var(--color-gray-700);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.service-bullets {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.service-bullets li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
  color: var(--color-gray-700);
}

.service-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 8px;
  height: 8px;
  background: var(--color-blue);
  border-radius: 50%;
}

.service-row-visual svg {
  width: 100%;
  height: auto;
  max-width: 480px;
  display: block;
  margin: 0 auto;
}

@media (max-width: 800px) {
  .service-row-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .service-row-reverse .service-row-inner {
    direction: ltr;
  }
}

/* --- Section headers (shared) --- */

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-gray-900);
  line-height: 1.2;
}

/* --- Why SpotUltra --- */

.why {
  padding: 5rem 0;
  background: var(--color-gray-50);
  border-top: 1px solid var(--color-gray-100);
  border-bottom: 1px solid var(--color-gray-100);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.why-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-gray-900);
}

.why-card p {
  color: var(--color-gray-700);
  font-size: 1rem;
  line-height: 1.65;
}

/* --- CTA band --- */

.cta-band {
  padding: 5rem 0;
  background: var(--color-gray-900);
  color: var(--color-white);
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.cta-band p {
  font-size: 1.15rem;
  color: var(--color-gray-300);
  margin-bottom: 2rem;
}

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

/* Responsive */

@media (max-width: 800px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}