/* NEXTSAVIOURS Landing Page - Modern AI Theme */

:root {
  --bg-primary: #071a28;
  --bg-secondary: #0d2840;
  --accent: #00d4aa;
  --accent-hover: #00f5c4;
  --accent-dim: rgba(0, 212, 170, 0.15);
  --text-primary: #f0f9ff;
  --text-secondary: #94a3b8;
  --border: rgba(148, 163, 184, 0.15);
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* AI-oriented background */
.ai-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Neural-style dot grid */
.ai-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, rgba(0, 212, 170, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
}

/* Floating AI nodes */
.ai-nodes {
  position: absolute;
  inset: 0;
}

.ai-nodes .node {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.5;
  animation: nodePulse 4s ease-in-out infinite;
}

.ai-nodes .node:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.ai-nodes .node:nth-child(2) { top: 25%; right: 20%; animation-delay: 0.8s; }
.ai-nodes .node:nth-child(3) { top: 60%; left: 15%; animation-delay: 1.6s; }
.ai-nodes .node:nth-child(4) { top: 75%; right: 10%; animation-delay: 2.4s; }
.ai-nodes .node:nth-child(5) { top: 40%; right: 25%; animation-delay: 3.2s; }
.ai-nodes .node:nth-child(6) { top: 85%; left: 30%; animation-delay: 0.4s; }

@keyframes nodePulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.5); }
}

/* Gradient orbs */
.ai-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.ai-orb-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.35) 0%, transparent 70%);
  animation: orbFloat 20s ease-in-out infinite;
}

.ai-orb-2 {
  width: 300px;
  height: 300px;
  bottom: 10%;
  left: -80px;
  background: radial-gradient(circle, rgba(0, 150, 255, 0.25) 0%, transparent 70%);
  animation: orbFloat 25s ease-in-out infinite reverse;
  animation-delay: -5s;
}

.ai-orb-3 {
  width: 250px;
  height: 250px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 212, 170, 0.15) 0%, transparent 70%);
  animation: orbFloat 18s ease-in-out infinite;
  animation-delay: -3s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -30px); }
  66% { transform: translate(-20px, 20px); }
}

.ai-orb-3 {
  transform: translate(-50%, -50%);
  animation: orbFloatCenter 18s ease-in-out infinite;
  animation-delay: -3s;
}

@keyframes orbFloatCenter {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.2); }
}

/* Top gradient overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(ellipse 100% 60% at 50% 0%, rgba(0, 212, 170, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 26, 40, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}

.logo:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(0, 212, 170, 0.12);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 212, 170, 0.35);
  backdrop-filter: blur(8px);
  animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0); }
  50% { box-shadow: 0 0 24px 2px rgba(0, 212, 170, 0.2); }
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, rgba(0, 212, 170, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  color: var(--text-primary);
  max-width: 500px;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 420px;
  line-height: 1.7;
}

/* Sections */
.section {
  padding: 5rem 1.5rem;
  position: relative;
  z-index: 2;
}

.section:nth-child(even) {
  background: rgba(13, 40, 64, 0.25);
}

.container {
  max-width: 720px;
  margin: 0 auto;
}

.section h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

.section-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-card {
  padding: 1.75rem;
  background: rgba(13, 40, 64, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: rgba(0, 212, 170, 0.4);
  transform: translateY(-2px);
}

.contact-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-card a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.contact-card a:hover {
  color: var(--accent);
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.social-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0, 212, 170, 0.08);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: start;
}

.footer-brand .logo {
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact a,
.footer-contact p {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-social a:hover {
  color: var(--accent);
}

.copyright {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

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

  .hero {
    padding-top: 5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section {
    padding: 3rem 1rem;
  }
}
