/* =============================================
   CONVOV.IO — Design System & Landing Page
   ============================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand palette — orange/amber gradient family */
  --c-orange-deep: #EA580C;
  --c-orange: #F97316;
  --c-orange-light: #FB923C;
  --c-amber: #FBBF24;
  --c-amber-light: #FDE68A;
  --c-amber-pale: #FEF3C7;

  /* Neutrals — slate tones */
  --c-bg: #0A0E1A;
  --c-bg-surface: #0F1629;
  --c-bg-elevated: #151D33;
  --c-text-primary: #F1F5F9;
  --c-text-secondary: #94A3B8;
  --c-text-muted: #64748B;
  --c-border: rgba(148, 163, 184, 0.08);

  /* Gradients */
  --grad-brand: linear-gradient(135deg, var(--c-orange-light), var(--c-amber), var(--c-amber-light));
  --grad-brand-subtle: linear-gradient(135deg, rgba(251, 146, 60, 0.15), rgba(251, 191, 36, 0.08));

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--c-bg);
  color: var(--c-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: hidden;
}

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

/* ---------- Background Effects ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.8s var(--ease-out);
}

.bg-glow--1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.06) 0%, transparent 70%);
}

.bg-glow--2 {
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: -100px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.04) 0%, transparent 70%);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-5) var(--space-8);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(10, 14, 26, 0.7);
  border-bottom: 1px solid var(--c-border);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition: opacity var(--duration-normal) var(--ease-out);
}

.nav__logo:hover {
  opacity: 0.8;
}

.nav__icon {
  width: 32px;
  height: 32px;
}

.nav__wordmark {
  font-size: var(--font-size-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__contact {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--c-text-secondary);
  padding: var(--space-2) var(--space-5);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out);
}

.nav__contact:hover {
  color: var(--c-text-primary);
  border-color: rgba(251, 146, 60, 0.3);
  background: rgba(251, 146, 60, 0.05);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

.hero__content {
  text-align: center;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
}

/* Icon */
.hero__icon-wrapper {
  width: 140px;
  height: 140px;
  transition: transform 0.6s var(--ease-out);
}

.hero__icon {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 40px rgba(251, 146, 60, 0.2));
}

.hero__ring--outer {
  animation: spin-slow 40s linear infinite;
  transform-origin: center;
}

.hero__ring--inner {
  animation: spin-slow 30s linear infinite reverse;
  transform-origin: center;
}

.hero__nodes {
  animation: pulse-nodes 4s ease-in-out infinite;
}

.hero__arc {
  animation: arc-pulse 3s ease-in-out infinite;
}

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

@keyframes pulse-nodes {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

@keyframes arc-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

/* Title */
.hero__title {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s var(--ease-out);
}

.hero__title.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__title-line {
  display: block;
  font-size: var(--font-size-5xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--c-text-primary);
}

.hero__title-line--accent {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle */
.hero__subtitle {
  font-size: var(--font-size-lg);
  color: var(--c-text-secondary);
  max-width: 480px;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.8s 0.15s var(--ease-out);
}

.hero__subtitle.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* CTA */
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--c-bg);
  background: var(--grad-brand);
  border-radius: var(--radius-full);
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.8s 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.hero__cta.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.hero__cta:hover::before {
  opacity: 1;
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(251, 146, 60, 0.3);
}

.hero__cta:hover .hero__cta-arrow {
  transform: translateX(3px);
}

.hero__cta-arrow {
  width: 18px;
  height: 18px;
  transition: transform var(--duration-normal) var(--ease-spring);
}

/* Particles */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--c-orange-light);
  opacity: 0;
  animation: float-particle 8s infinite;
}

.particle--1 {
  left: 15%;
  top: 30%;
  animation-delay: 0s;
  animation-duration: 10s;
}

.particle--2 {
  left: 80%;
  top: 20%;
  animation-delay: 1.5s;
  animation-duration: 12s;
  background: var(--c-amber);
}

.particle--3 {
  left: 60%;
  top: 70%;
  animation-delay: 3s;
  animation-duration: 9s;
}

.particle--4 {
  left: 25%;
  top: 75%;
  animation-delay: 4.5s;
  animation-duration: 11s;
  background: var(--c-amber-light);
}

.particle--5 {
  left: 90%;
  top: 50%;
  animation-delay: 2s;
  animation-duration: 13s;
  background: var(--c-amber);
}

.particle--6 {
  left: 5%;
  top: 55%;
  animation-delay: 5.5s;
  animation-duration: 10s;
  background: var(--c-amber-light);
}

@keyframes float-particle {
  0% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }
  15% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.3;
    transform: translateY(-80px) scale(1.5);
  }
  85% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: translateY(-160px) scale(0.5);
  }
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  padding: var(--space-8) var(--space-8);
  border-top: 1px solid var(--c-border);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.footer__link {
  font-size: var(--font-size-sm);
  color: var(--c-text-muted);
  transition: color var(--duration-normal) var(--ease-out);
}

.footer__link:hover {
  color: var(--c-text-secondary);
}

.footer__divider {
  color: var(--c-text-muted);
  opacity: 0.4;
}

.footer__copy {
  font-size: var(--font-size-xs);
  color: var(--c-text-muted);
  opacity: 0.6;
}

/* ---------- Legal Pages (Terms & Privacy) ---------- */
.legal {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: calc(80px + var(--space-16)) var(--space-8) var(--space-16);
  flex: 1;
}

.legal h1 {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal .legal__updated {
  font-size: var(--font-size-sm);
  color: var(--c-text-muted);
  margin-bottom: var(--space-10);
}

.legal h2 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  color: var(--c-text-primary);
}

.legal p, .legal li {
  font-size: var(--font-size-base);
  color: var(--c-text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-4);
}

.legal ul {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.legal li {
  margin-bottom: var(--space-2);
}

.legal a {
  color: var(--c-orange-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--duration-fast);
}

.legal a:hover {
  color: var(--c-amber);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero__title-line {
    font-size: var(--font-size-3xl);
  }

  .hero__icon-wrapper {
    width: 110px;
    height: 110px;
  }

  .hero__subtitle {
    font-size: var(--font-size-base);
  }

  .nav {
    padding: var(--space-4) var(--space-5);
  }

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

@media (max-width: 480px) {
  .hero__title-line {
    font-size: var(--font-size-2xl);
  }

  .hero__content {
    gap: var(--space-6);
  }

  .hero__icon-wrapper {
    width: 90px;
    height: 90px;
  }

  .footer__links {
    flex-direction: column;
    gap: var(--space-2);
  }

  .footer__divider {
    display: none;
  }
}
