:root {
  --bg: #0a0a0b;
  --surface: #141416;
  --accent: #e8ff5a;
  --muted: #6b6b70;
  --text: #f4f4f5;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Syne', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  z-index: 10;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  position: relative;
}

/* Logo block */
.logo-wrap {
  text-align: center;
  margin-bottom: 4rem;
}

.logo-heading {
  margin: 0;
  font-size: 0;
  line-height: 0;
}

.logo-img {
  display: block;
  width: auto;
  height: clamp(180px, 42vw, 340px);
  max-width: 380px;
  margin: 0 auto;
  animation: logoReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
  transform: translateY(24px);
}

.tagline {
  font-size: clamp(0.75rem, 2.5vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1rem;
  animation: fadeUp 0.8s 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

.intro {
  font-size: clamp(0.875rem, 2.2vw, 1rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
  max-width: 36ch;
  margin: 1.5rem auto 0;
  text-align: center;
  animation: fadeUp 0.8s 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

/* Services ticker */
.services-wrap {
  width: 100%;
  max-width: 90vw;
  margin: 2.5rem 0;
  overflow: hidden;
  animation: fadeUp 0.8s 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

.services-track {
  display: flex;
  gap: 2rem;
  animation: ticker 28s linear infinite;
  width: max-content;
}

.services-track:hover {
  animation-play-state: paused;
}

.service-pill {
  flex-shrink: 0;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: clamp(1.05rem, 3.2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
  white-space: nowrap;
}

.service-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(232, 255, 90, 0.06);
}

.service-pill strong {
  color: var(--text);
  font-weight: 700;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Contacts */
.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  justify-content: center;
  animation: fadeUp 0.8s 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s, background 0.3s, transform 0.3s, color 0.3s;
}

.contact-link:hover {
  border-color: var(--accent);
  background: rgba(232, 255, 90, 0.06);
  color: var(--accent);
  transform: translateY(-2px);
}

.contact-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Decorative line */
.line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--muted), transparent);
  margin: 3rem 0;
  animation: lineGrow 1s 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transform-origin: top;
  transform: scaleY(0);
}

/* Floating orbs (subtle) */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 12s ease-in-out infinite;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 200px;
  height: 200px;
  background: #6366f1;
  bottom: 20%;
  right: 15%;
  animation-delay: -4s;
}

@keyframes logoReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lineGrow {
  to { transform: scaleY(1); }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(20px, -20px); }
  66% { transform: translate(-15px, 10px); }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .logo,
  .tagline,
  .services-wrap,
  .contacts,
  .line {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .services-track {
    animation: none;
  }

  .orb {
    animation: none;
  }
}
