/* ─── TOKENS ─── */
:root {
  --bg:         #07080F;
  --surface:    #0D0F1C;
  --surface-2:  #131629;
  --border:     rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);

  --kurelo:     #7B4FFF;
  --kurelo-glow: rgba(123, 79, 255, 0.35);
  --crevaxo:    #F97316;
  --crevaxo-glow: rgba(249, 115, 22, 0.3);
  --rostura:    #0D9B8A;
  --rostura-glow: rgba(13, 155, 138, 0.3);

  --text:       #F0F2FA;
  --text-sub:   #8892A4;
  --text-muted: #4A5568;

  --font-display: 'Inter', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius:     16px;
  --radius-sm:  10px;
  --section-pad: 120px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, canvas { display: block; }
button, input, textarea, select { font: inherit; }

/* ─── TYPOGRAPHY ─── */
h1 { font-family: var(--font-display); font-size: clamp(2.6rem, 5.5vw, 4.5rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; }
h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.75rem); font-weight: 600; line-height: 1.18; letter-spacing: -0.02em; }
h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.6em; }
p { color: var(--text-sub); line-height: 1.75; }

.gradient-text {
  color: var(--kurelo);
}

/* ─── SHARED ─── */
.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--kurelo);
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header h2 { margin-top: 8px; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: var(--kurelo);
  color: #fff;
  box-shadow: 0 0 30px rgba(123, 79, 255, 0.4);
}
.btn-primary:hover {
  background: #9166ff;
  box-shadow: 0 0 50px rgba(123, 79, 255, 0.6);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-sub);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.875rem;
  border-radius: 100px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-sub);
  font-weight: 500;
  transition: all 0.2s;
}
.btn-sm:hover { border-color: var(--border-hover); color: var(--text); }

.btn-full { width: 100%; justify-content: center; }

/* ─── NAV ─── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s, padding 0.3s;
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: rgba(7, 8, 15, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: var(--border);
  padding: 14px 0;
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.hero-logo {
  height: 120px;
  width: auto;
  margin: 0 auto 32px;
  filter: drop-shadow(0 0 40px rgba(123, 79, 255, 0.4));
  animation: heroSpin 20s linear infinite;
}

@keyframes heroSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-sub);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ─── HERO ─── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-glows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 10s ease-in-out infinite;
}

.glow-violet {
  width: 700px;
  height: 700px;
  top: -200px;
  left: -150px;
  background: radial-gradient(circle, rgba(123, 79, 255, 0.4) 0%, transparent 70%);
  animation-duration: 12s;
}

.glow-orange {
  width: 500px;
  height: 500px;
  top: 100px;
  right: -100px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.3) 0%, transparent 70%);
  animation-duration: 9s;
  animation-delay: -3s;
}

.glow-teal {
  width: 600px;
  height: 600px;
  bottom: -200px;
  left: 30%;
  background: radial-gradient(circle, rgba(13, 155, 138, 0.25) 0%, transparent 70%);
  animation-duration: 14s;
  animation-delay: -6s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -40px) scale(1.05); }
  66%       { transform: translate(-20px, 30px) scale(0.97); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 32px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--kurelo);
  box-shadow: 0 0 8px var(--kurelo);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--kurelo); }
  50%       { opacity: 0.5; box-shadow: 0 0 20px var(--kurelo); }
}

.hero-content h1 {
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-sub);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.br-desk { display: block; }

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero reveal animation */
.reveal .eyebrow  { animation: fadeUp 0.8s ease both 0.2s; }
.reveal h1        { animation: fadeUp 0.8s ease both 0.4s; }
.reveal .hero-sub { animation: fadeUp 0.8s ease both 0.55s; }
.reveal .hero-ctas{ animation: fadeUp 0.8s ease both 0.7s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s ease 1.2s both;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50%       { transform: scaleY(0.5); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── ABOUT ─── */
#about {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border);
  position: relative;
}

#about::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--kurelo-glow), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-left { position: sticky; top: 120px; }
.about-left h2 { margin-top: 8px; }

.about-right p { margin-bottom: 20px; }
.about-right p:last-of-type { margin-bottom: 40px; }

.pillars {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}
.pillar:hover { border-color: var(--border-hover); }

.pillar-icon {
  color: var(--kurelo);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.pillar strong {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 2px;
}

.pillar span {
  font-size: 0.85rem;
  color: var(--text-sub);
}

/* ─── PRODUCTS ─── */
#products {
  padding: var(--section-pad) 0;
  position: relative;
}

#products::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(123, 79, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
}

.card-crevaxo:hover {
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 20px 60px rgba(249, 115, 22, 0.12), 0 0 0 1px rgba(249, 115, 22, 0.1);
}

.card-rostura:hover {
  border-color: rgba(13, 155, 138, 0.4);
  box-shadow: 0 20px 60px rgba(13, 155, 138, 0.12), 0 0 0 1px rgba(13, 155, 138, 0.1);
}

.card-soon {
  border-style: dashed;
  cursor: default;
}

.card-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.card-crevaxo .card-glow {
  background: radial-gradient(circle, rgba(249, 115, 22, 0.25) 0%, transparent 70%);
}

.card-rostura .card-glow {
  background: radial-gradient(circle, rgba(13, 155, 138, 0.25) 0%, transparent 70%);
}

.product-card:hover .card-glow { opacity: 1; }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.product-badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--product-color);
  background: color-mix(in srgb, var(--product-color) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--product-color) 25%, transparent);
  border-radius: 100px;
  padding: 4px 12px;
}

.card-arrow {
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: color 0.2s, transform 0.2s;
}
.product-card:hover .card-arrow {
  color: var(--text-sub);
  transform: translate(2px, -2px);
}

.product-card h3 { color: var(--text); }
.product-card p  { font-size: 0.9rem; color: var(--text-sub); flex: 1; }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.card-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 100px;
  padding: 3px 10px;
}

.card-tag-soon {
  color: var(--kurelo);
  background: rgba(123, 79, 255, 0.1);
  border-color: rgba(123, 79, 255, 0.2);
}

.card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
}

/* ─── CONTACT ─── */
#contact {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border);
  position: relative;
}

#contact::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(13, 155, 138, 0.4), transparent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-left h2 { margin-top: 8px; margin-bottom: 16px; }
.contact-left p  { margin-bottom: 32px; }

.contact-links { display: flex; flex-direction: column; gap: 12px; }

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-sub);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.contact-link:hover { color: var(--text); }

.contact-link-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-sub);
  letter-spacing: 0.03em;
}

input, textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}

input::placeholder, textarea::placeholder { color: var(--text-muted); }

input:focus, textarea:focus {
  border-color: rgba(123, 79, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(123, 79, 255, 0.12);
}

.form-success {
  text-align: center;
  padding: 14px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: var(--radius-sm);
  color: #34d399;
  font-size: 0.9rem;
}

/* ─── FOOTER ─── */
footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  font-size: 1rem;
  margin-bottom: 12px;
}

.footer-left p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-sub);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 32px 0;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── SCROLL ANIMATIONS ─── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  :root { --section-pad: 80px; }

  .about-grid    { grid-template-columns: 1fr; gap: 48px; }
  .about-left    { position: static; }
  .products-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .contact-grid  { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner  { flex-direction: column; gap: 40px; }
  .br-desk       { display: none; }

  .nav-links { display: none; }
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; text-align: center; }
  .btn { justify-content: center; }
  .footer-links { gap: 40px; }
}
