:root {
  --bg-dark: #19182c;
  --bg-card: rgba(255, 255, 255, 0.02);
  --accent-1: #18d7d2;
  --accent-2: #2c3176;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --font-inter: 'Inter', sans-serif;
}

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

html,
body {
  max-width: 100vw;
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-inter);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Perspective Grid */
.perspective-grid {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  transform: perspective(1000px) rotateX(60deg) translateY(-100px) translateZ(-200px);
  transform-origin: top center;
  z-index: 0;
  pointer-events: none;
}

/* Video/Canvas Background */
.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
}

#hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, rgba(10, 9, 20, 0.8) 70%, rgba(10, 9, 20, 1) 100%);
  pointer-events: none;
}

/* Rotating gradient border animation */
@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotateGradient {
  0% { --gradient-angle: 0deg; }
  100% { --gradient-angle: 360deg; }
}

/* Button */
.btn-outline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  background:
    linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box,
    conic-gradient(from var(--gradient-angle), var(--accent-1), var(--accent-2), var(--accent-1)) border-box;
  border: 2px solid transparent;
  color: var(--text-main);
  padding: 0.8rem 2rem;
  border-radius: 40px;
  font-size: 0.95rem;
  font-weight: 500;
  animation: rotateGradient 3s linear infinite;
  transition: border-radius 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
}

.btn-outline:hover {
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(24, 215, 210, 0.3);
}

.btn-outline:active {
  transform: scale(0.95);
}

/* Send icon - hides on hover */
.btn-icon {
  position: relative;
  z-index: 2;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.btn-outline:hover .btn-icon {
  opacity: 0;
  transform: translateX(-8px);
}

/* Button text */
.btn-text {
  position: relative;
  z-index: 2;
  transition: transform 0.8s ease;
}

.btn-outline:hover .btn-text {
  transform: translateX(4px);
}

/* Expanding circle */
.btn-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: var(--accent-2);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 1;
}

.btn-outline:hover .btn-circle {
  width: 300px;
  height: 300px;
  opacity: 1;
}

/* Arrow entering from left */
.btn-arrow-left {
  position: absolute;
  left: -25%;
  z-index: 2;
  transition: left 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-outline:hover .btn-arrow-left {
  left: 1rem;
}


/* Hero Section */
.hero {
  height: 100vh;
  min-height: 800px;
  position: relative;
  display: flex;
  align-items: center;
  z-index: 10;
  overflow: hidden;
}

.hero-container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 15rem;
}

.hero-content {
  max-width: 700px;
}

/* Staggered fade-in animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-logo,
.hero-title,
.hero-subtitle,
.hero-actions {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-floating-box {
  opacity: 0;
  animation: fadeInUp 0.8s ease 1.4s forwards, rotateGradient 3s linear infinite;
}

.hero-logo {
  animation-delay: 0.2s;
}

.hero-title {
  animation-delay: 0.5s;
}

.hero-subtitle {
  animation-delay: 0.8s;
}

.hero-actions {
  animation-delay: 1.1s;
}


.hero-logo {
  height: 48px;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
  color: var(--text-muted);
  font-weight: 400;
  max-width: 540px;
  margin-bottom: 3rem;
}

/* Floating Box */
.hero-floating-box {
  position: absolute;
  bottom: 7.125rem;
  right: 2rem;
  background:
    linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box,
    conic-gradient(from var(--gradient-angle), var(--accent-1), var(--accent-2), var(--accent-1)) border-box;
  backdrop-filter: blur(20px);
  border: 2px solid transparent;
  border-radius: 16px;
  width: 380px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.floating-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem;
}

.floating-title {
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.floating-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Footer */
.site-footer {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 10;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-logo {
    height: 32px;
  }

  .hero-floating-box {
    display: none !important;
  }
}
