/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
img { max-width: 100%; display: block; }

:root {
  --bg: oklch(0.14 0.02 280);
  --fg: oklch(0.98 0 0);
  --muted: oklch(0.7 0.02 280);
  --border: oklch(0.3 0.02 280 / .6);
  --accent: oklch(0.7 0.22 305);
  --accent-2: oklch(0.78 0.18 320);
  --accent-foreground: oklch(0.14 0.02 280);
  --shadow-glow: 0 0 40px -10px oklch(0.7 0.22 305 / .5);
  --gradient-accent: linear-gradient(135deg, oklch(0.7 0.22 305), oklch(0.78 0.18 320));
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== Hero layout ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  animation: kenburns 20s ease-in-out infinite alternate;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 24px 64px;
}

.content {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ===== Logo ===== */
.logo {
  height: 192px;
  width: auto;
  object-fit: contain;
  animation: logo-in .9s cubic-bezier(.2,.8,.2,1) both, float 6s ease-in-out infinite;
  animation-delay: 0s, .9s;
}
@media (min-width: 768px) {
  .logo { height: 240px; }
}

/* ===== Badge ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: oklch(0.14 0.02 280 / .6);
  backdrop-filter: blur(8px);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--muted);
  width: fit-content;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  animation: pulse-glow 2s ease-in-out infinite;
}

/* ===== Headline ===== */
.headline {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.02em;
}
.gradient-text {
  background: linear-gradient(135deg, oklch(0.7 0.22 305), oklch(0.78 0.18 320), oklch(0.7 0.22 305));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 6s ease-in-out infinite;
}

.description {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--muted);
  max-width: 560px;
}

/* ===== CTA ===== */
.cta-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}
@media (min-width: 640px) {
  .cta-row { flex-direction: row; align-items: center; }
}

.btn-primary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--gradient-accent);
  color: var(--accent-foreground);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-glow);
  transition: transform .3s, box-shadow .3s;
}
.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 0 60px -5px oklch(0.7 0.22 305 / .6);
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  transition: left .6s;
}
.btn-primary:hover::before { left: 100%; }
.btn-icon, .btn-arrow {
  width: 16px; height: 16px;
  transition: transform .3s;
}
.btn-primary:hover .btn-icon { transform: rotate(6deg); }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.cta-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #fff;
}
.lock-icon {
  width: 16px; height: 16px;
  color: var(--accent);
  animation: pulse-glow 2s ease-in-out infinite;
}

/* ===== Tool logos ===== */
.logos-row { padding-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.logos-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: var(--muted);
}
.logos-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.tool-logo {
  height: 20px;
  width: auto;
  object-fit: contain;
  opacity: .8;
  filter: brightness(0) invert(1);
  transition: opacity .3s, transform .3s;
  animation: fade-up .8s ease-out both;
}
@media (min-width: 768px) { .tool-logo { height: 24px; } }
.tool-logo:hover { opacity: 1; transform: scale(1.1); }

/* ===== Floating cards ===== */
.floating-cards {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  display: none;
}
@media (min-width: 768px) { .floating-cards { display: block; } }

.float-card {
  position: absolute;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 16px;
  border: 1px solid oklch(0.7 0.22 305 / .4);
  background: oklch(0.14 0.02 280 / .2);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-glow);
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transition: background .3s, border-color .3s, transform .3s;
}
.float-card:hover {
  background: oklch(0.14 0.02 280 / .4);
  border-color: oklch(0.7 0.22 305 / .7);
  transform: scale(1.05);
}

.float-icon {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: oklch(0.7 0.22 305 / .2);
  border: 1px solid oklch(0.7 0.22 305 / .4);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  transition: transform .3s;
}
.float-icon svg { width: 16px; height: 16px; }
.float-card:hover .float-icon { transform: rotate(6deg) scale(1.1); }

.card-a { top: 12%; right: 6%;  animation: card-in .8s ease-out 1.2s both, float-a 7s ease-in-out 2s infinite; }
.card-b { top: 34%; right: 28%; animation: card-in .8s ease-out 1.4s both, float-b 8s ease-in-out 2.2s infinite; }
.card-c { top: 58%; right: 4%;  animation: card-in .8s ease-out 1.6s both, float-c 9s ease-in-out 2.4s infinite; }
.card-d { top: 78%; right: 22%; animation: card-in .8s ease-out 1.8s both, float-d 7.5s ease-in-out 2.6s infinite; }

/* ===== Neon line ===== */
.neon-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, oklch(0.7 0.22 305 / .8), transparent);
  box-shadow: 0 0 20px oklch(0.7 0.22 305 / .6);
}

/* ===== Animations ===== */
@keyframes logo-in {
  from { opacity: 0; transform: translateY(-20px) scale(.9); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-12px); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fade-up .8s ease-out both; }

@keyframes scale-in {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1); }
}
.animate-scale-in { animation: scale-in .6s ease-out both; }

@keyframes pulse-glow {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 oklch(0.7 0.22 305 / .6); }
  50%     { opacity: .7; box-shadow: 0 0 12px 4px oklch(0.7 0.22 305 / .3); }
}
@keyframes kenburns {
  from { transform: scale(1) translate(0,0); }
  to   { transform: scale(1.1) translate(-2%, -2%); }
}
@keyframes gradient-shift {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}
@keyframes card-in {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes float-a {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(-10px, -16px); }
}
@keyframes float-b {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(12px, -12px); }
}
@keyframes float-c {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(-14px, 10px); }
}
@keyframes float-d {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(10px, -18px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
