/* ============================================
   Kodea Studio — Design tokens
   ============================================ */
:root {
  --bg: #08080d;
  --bg-alt: #0e0e16;
  --surface: #14141f;
  --surface-hover: #191926;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f5f5f7;
  --text-muted: #9a9aad;
  --text-dim: #6b6b7c;

  --accent: #6d5efc;
  --accent-2: #22d3ee;
  --accent-soft: rgba(109, 94, 252, 0.12);
  --gradient: linear-gradient(120deg, var(--accent), var(--accent-2));

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-glow: 0 0 60px rgba(109, 94, 252, 0.25);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

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

ul, ol { list-style: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* subtle grain so dark sections don't look flat */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================
   Typography helpers
   ============================================ */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 700px;
}

.section-subtitle {
  margin-top: 16px;
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================
   Reveal-on-scroll
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--gradient);
  color: #06060a;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(109, 94, 252, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.btn-outline {
  width: 100%;
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-outline:hover {
  background: var(--surface-hover);
  border-color: var(--accent-2);
}

.btn-full { width: 100%; }

/* ============================================
   Header
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), padding 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(8, 8, 13, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.logo-accent { color: var(--accent-2); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
.nav-link:hover { color: var(--text); }

.nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text) !important;
}
.nav-cta:hover {
  background: var(--surface-hover);
  border-color: var(--accent-2);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding: 170px 0 100px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(109, 94, 252, 0.25), rgba(34, 211, 238, 0.08) 45%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 900px;
}

.hero-subtitle {
  margin-top: 24px;
  font-size: 19px;
  color: var(--text-muted);
  max-width: 620px;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-badges {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.hero-badges li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}
.hero-badges svg { color: var(--accent-2); flex-shrink: 0; }

/* hero mockup illustration */
.hero-visual {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 72px auto 0;
  padding: 0 24px;
}

.mockup-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6), var(--shadow-glow);
}

.mockup-bar {
  display: flex;
  gap: 7px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.mockup-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-strong);
}
.mockup-bar span:nth-child(1) { background: #ff5f57; opacity: 0.6; }
.mockup-bar span:nth-child(2) { background: #febc2e; opacity: 0.6; }
.mockup-bar span:nth-child(3) { background: #28c840; opacity: 0.6; }

.mockup-body {
  padding: 32px;
}

.mockup-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--border-strong), var(--border));
  margin-bottom: 12px;
}
.mockup-line.w60 { width: 60%; }
.mockup-line.w40 { width: 40%; margin-bottom: 28px; }

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.mockup-card {
  height: 120px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--accent-soft), transparent);
  animation: floaty 5s ease-in-out infinite;
}
.mockup-card.float-2 { animation-delay: 0.4s; background: linear-gradient(160deg, rgba(34,211,238,0.14), transparent); }
.mockup-card.float-3 { animation-delay: 0.8s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============================================
   Value strip
   ============================================ */
.value-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
  background: var(--bg-alt);
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.value-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.value-num {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.value-item p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   Sections generic
   ============================================ */
.section {
  padding: 120px 0;
}
.section-alt {
  background: var(--bg-alt);
}

/* ============================================
   Services
   ============================================ */
.services-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-2);
  margin-bottom: 22px;
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 14.5px;
  color: var(--text-muted);
}

/* ============================================
   Process
   ============================================ */
.process-list {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
}
.process-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.process-item:last-child { border-bottom: 1px solid var(--border); }

.process-num {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.6;
}

.process-item h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}
.process-item p {
  color: var(--text-muted);
  max-width: 520px;
}

/* ============================================
   Work / capabilities grid
   ============================================ */
.work-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}

.work-thumb {
  height: 190px;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-alt);
  background-size: cover;
  background-position: center;
  transition: transform 0.5s var(--ease);
}
.work-card:hover .work-thumb {
  transform: scale(1.04);
}
.work-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 13, 0) 45%, var(--surface) 100%);
}
.thumb-1 { background-image: url("../assets/illustrations/reservas.svg"); }
.thumb-2 { background-image: url("../assets/illustrations/marketplace.svg"); }
.thumb-3 { background-image: url("../assets/illustrations/dashboard.svg"); }
.thumb-4 { background-image: url("../assets/illustrations/tienda.svg"); }
.thumb-5 { background-image: url("../assets/illustrations/social.svg"); }
.thumb-6 { background-image: url("../assets/illustrations/landing.svg"); }

.work-icon {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(8, 8, 13, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--accent-2);
}

.work-card h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  margin: 20px 24px 8px;
}
.work-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 24px 24px;
}

/* ============================================
   Pricing
   ============================================ */
.pricing-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.pricing-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(109, 94, 252, 0.08), var(--surface) 40%);
  box-shadow: 0 30px 70px -30px rgba(109, 94, 252, 0.4);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 32px;
  background: var(--gradient);
  color: #06060a;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}

.pricing-card h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}
.pricing-desc {
  color: var(--text-muted);
  font-size: 14.5px;
  min-height: 44px;
}
.pricing-tag {
  margin-top: 18px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-2);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.pricing-features {
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.pricing-features li {
  font-size: 14.5px;
  color: var(--text-muted);
  padding-left: 24px;
  position: relative;
}
.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gradient);
}

/* ============================================
   FAQ
   ============================================ */
.faq-container { max-width: 800px; }
.faq-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  background: var(--surface);
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--accent-2);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ============================================
   Contact
   ============================================ */
.section-contact {
  background: var(--bg-alt);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-details {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-details li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.contact-label {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.contact-details a {
  font-size: 17px;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.contact-details a:hover { color: var(--accent-2); }
.contact-details span:not(.contact-label) {
  font-size: 16px;
  color: var(--text-muted);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-row label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
}
.form-row input,
.form-row select,
.form-row textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 15px;
  transition: border-color 0.2s var(--ease);
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--accent);
}
.form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239a9aad' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.form-note {
  font-size: 12.5px;
  color: var(--text-dim);
  text-align: center;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.footer-tagline {
  color: var(--text-muted);
  font-size: 14.5px;
  max-width: 380px;
}
.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
.footer-nav a:hover { color: var(--text); }
.footer-copy {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-dim);
}

/* ============================================
   Back to top
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.2s var(--ease);
  z-index: 900;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--surface-hover); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 960px) {
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .mockup-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 66px;
    left: 16px;
    right: 16px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-link {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
  }
  .nav-link:hover { background: var(--surface-hover); }
  .nav-cta { text-align: center; margin-top: 6px; }
  .nav-toggle { display: flex; }

  .hero { padding: 130px 0 70px; }
  .value-grid { grid-template-columns: 1fr; gap: 28px; }
  .services-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .process-item { grid-template-columns: 1fr; gap: 8px; }
  .section { padding: 80px 0; }
  .mockup-grid { grid-template-columns: 1fr; }
  .mockup-body { padding: 22px; }
}
