/* ============================================================
   KimunLabs — style.css
   Tema: oscuro · Fuentes: Space Grotesk + Inter
   ============================================================ */

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

:root {
  --bg:        #0a0e1a;
  --bg-2:      #0f1628;
  --bg-card:   #111827;
  --border:    rgba(255,255,255,.07);
  --indigo:    #6366f1;
  --cyan:      #06b6d4;
  --purple:    #8b5cf6;
  --pink:      #ec4899;
  --green:     #10b981;
  --text:      #e2e8f0;
  --text-muted:#94a3b8;
  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 24px;
  --shadow:    0 4px 24px rgba(0,0,0,.4);
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  line-height: 1.15;
  font-weight: 700;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Utility ──────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  color: #fff;
}
.btn--primary:hover { opacity: .88; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(99,102,241,.35); }
.btn--ghost {
  background: rgba(255,255,255,.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--outline:hover { border-color: var(--indigo); color: var(--indigo); }
.btn--full { width: 100%; }

/* ── Section shared ───────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.25);
  color: var(--indigo);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); color: #fff; margin-bottom: 16px; }
.section-subtitle { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ── Animations ───────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ── NAV ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(10,14,26,.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}
.nav__logo-mark {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: #fff;
}
.nav__links { display: flex; gap: 32px; }
.nav__links a {
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav__links a:hover { color: #fff; }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .45;
}
.hero__orb--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--indigo), transparent 70%);
  top: -100px; left: -100px;
  animation: drift1 12s ease-in-out infinite alternate;
}
.hero__orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--cyan), transparent 70%);
  bottom: -80px; right: -80px;
  animation: drift2 14s ease-in-out infinite alternate;
}
.hero__orb--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--purple), transparent 70%);
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  animation: drift3 10s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(40px, 30px); } }
@keyframes drift2 { to { transform: translate(-40px, -30px); } }
@keyframes drift3 { to { transform: translate(-50%, -60%); } }

.hero__content { position: relative; z-index: 1; max-width: 760px; }
.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.hero__title {
  font-size: clamp(2.4rem, 7vw, 5rem);
  color: #fff;
  margin-bottom: 24px;
}
.hero__title--accent {
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 40px; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.hero__stats { display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; }
.hero__stat { text-align: center; }
.hero__stat strong { display: block; font-size: 1.5rem; font-weight: 700; color: #fff; font-family: 'Space Grotesk', sans-serif; }
.hero__stat span { font-size: .8rem; color: var(--text-muted); }
.hero__stat-divider { width: 1px; height: 36px; background: var(--border); }
.hero__scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-muted); font-size: .75rem; }
.hero__scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--text-muted), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { opacity: .4; } 50% { opacity: 1; } }

/* ── ABOUT ────────────────────────────────────────────────── */
.about { padding: 120px 0; background: var(--bg-2); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__text p { color: var(--text-muted); margin-bottom: 16px; }
.about__lead { font-size: 1.1rem; color: var(--text) !important; margin-bottom: 24px !important; }
.about__lead strong { color: var(--indigo); }
.about__values { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.about__value { display: flex; align-items: flex-start; gap: 16px; }
.about__value-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.about__value strong { display: block; color: #fff; font-size: .95rem; margin-bottom: 2px; }
.about__value span { font-size: .85rem; color: var(--text-muted); }

.about__visual { position: relative; height: 420px; }
.about__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: absolute;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.about__card:hover { transform: translateY(-4px); }
.about__card--main { left: 0; top: 50%; transform: translateY(-50%); width: 260px; }
.about__card--main:hover { transform: translateY(calc(-50% - 4px)); }
.about__card-icon { font-size: 2rem; margin-bottom: 12px; }
.about__card--main h3 { color: #fff; font-size: 1.1rem; margin-bottom: 4px; }
.about__card--main > p { font-size: .85rem; color: var(--text-muted); margin-bottom: 16px; }
.about__card-detail { display: flex; flex-direction: column; gap: 6px; }
.about__card-detail span { font-size: .78rem; color: var(--text-muted); background: rgba(255,255,255,.04); padding: 4px 8px; border-radius: var(--radius-sm); }
.about__card--sm { width: 180px; padding: 20px; }
.about__card--sm .about__card-icon { font-size: 1.5rem; margin-bottom: 8px; }
.about__card--sm p { font-size: .85rem; color: var(--text-muted); }
.about__card--top { right: 0; top: 40px; }
.about__card--bottom { right: 40px; bottom: 40px; }

/* ── PRODUCTS ─────────────────────────────────────────────── */
.products { padding: 120px 0; }
.products__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; align-items: start; }
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}
.product-card:hover { border-color: rgba(99,102,241,.3); transform: translateY(-4px); }
.product-card--featured {
  border-color: rgba(99,102,241,.25);
  background: linear-gradient(145deg, #111827, #0f172a);
}
.product-card__badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(99,102,241,.15);
  border: 1px solid rgba(99,102,241,.3);
  color: var(--indigo);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.product-card__icon { width: 48px; margin-bottom: 20px; }
.product-card__icon svg { width: 48px; height: 48px; }
.product-card__name { font-size: 1.4rem; color: #fff; margin-bottom: 6px; }
.product-card__tagline { font-size: .85rem; color: var(--indigo); font-weight: 500; margin-bottom: 16px; }
.product-card__desc { font-size: .88rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.65; }
.product-card__features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.product-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: var(--text-muted);
}
.product-card__features svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── SERVICES ─────────────────────────────────────────────── */
.services { padding: 120px 0; background: var(--bg-2); }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 64px; }
.service-item { position: relative; }
.service-item__num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(99,102,241,.15);
  margin-bottom: 12px;
  line-height: 1;
}
.service-item h3 { color: #fff; font-size: 1.05rem; margin-bottom: 10px; }
.service-item p { font-size: .85rem; color: var(--text-muted); line-height: 1.65; }

.tech-strip {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  background: var(--bg-card);
}
.tech-strip__label { font-size: .78rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.tech-strip__items { display: flex; gap: 12px; flex-wrap: wrap; }
.tech-strip__items span {
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-muted);
}

/* ── CONTACT ──────────────────────────────────────────────── */
.contact { padding: 120px 0; }
.contact__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.contact__info .section-title { text-align: left; }
.contact__info > p { color: var(--text-muted); margin: 16px 0 40px; }
.contact__details { display: flex; flex-direction: column; gap: 20px; }
.contact__detail { display: flex; align-items: flex-start; gap: 16px; }
a.contact__detail { transition: color var(--transition); }
a.contact__detail:hover { color: var(--indigo); }
.contact__detail-icon { font-size: 1.2rem; flex-shrink: 0; }
.contact__detail strong { display: block; font-size: .9rem; color: #fff; margin-bottom: 2px; }
.contact__detail span { font-size: .85rem; color: var(--text-muted); }

/* Form */
.contact__form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact__form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .85rem; color: var(--text-muted); font-weight: 500; }
.form-optional { color: rgba(148,163,184,.5); font-weight: 400; }
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  padding: 10px 14px;
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
}
.form-group select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-group select option {
  background: #1e2535;
  color: #e2e8f0;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--indigo); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(148,163,184,.4); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group--error input,
.form-group--error select,
.form-group--error textarea { border-color: #f43f5e; }
.form-success {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.3);
  color: var(--green);
  font-size: .85rem;
  text-align: center;
}
.form-error {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(244,63,94,.1);
  border: 1px solid rgba(244,63,94,.3);
  color: #f43f5e;
  font-size: .85rem;
  text-align: center;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer__inner { display: grid; grid-template-columns: 1.5fr 2fr; gap: 64px; margin-bottom: 48px; }
.footer__brand .nav__logo { margin-bottom: 16px; }
.footer__brand > p { font-size: .85rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
.footer__legal { font-size: .78rem; color: rgba(148,163,184,.5) !important; }
.footer__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 4px; }
.footer__col a { font-size: .85rem; color: rgba(148,163,184,.6); transition: color var(--transition); }
.footer__col a:hover { color: var(--text); }
.footer__bottom { border-top: 1px solid var(--border); padding-top: 28px; }
.footer__bottom span { font-size: .8rem; color: rgba(148,163,184,.4); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .products__grid { grid-template-columns: 1fr 1fr; }
  .product-card--featured { grid-column: 1 / -1; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__visual { height: 300px; }
  .about__card--main { width: 220px; }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,14,26,.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    z-index: 90;
  }
  .nav__links.open { display: flex; }
  .nav__links a { font-size: 1.3rem; }
  .nav__burger { display: flex; z-index: 101; }

  .hero { padding: 100px 24px 60px; }
  .hero__stats { gap: 20px; }
  .hero__stat-divider { display: none; }

  .about__visual { display: none; }
  .products__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; gap: 24px; }
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__links { grid-template-columns: repeat(2, 1fr); }
  .contact__form-wrap { padding: 24px; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .footer__links { grid-template-columns: 1fr; }
  .tech-strip { flex-direction: column; align-items: flex-start; gap: 16px; }
}
