/* ============ KIARU DIGITAL — PREMIUM STYLE ============ */

:root {
  --bg: #0d0e0f;
  --bg-alt: #131416;
  --bg-card: #1a1b1e;
  --border: #2a2c30;
  --text: #efe9dd;
  --text-muted: #a6a19a;
  --text-faint: #757068;

  --orange: #c47a48;
  --gold: #cfa257;
  --sage: #7f9a72;

  --gradient: linear-gradient(120deg, var(--orange), var(--gold) 55%, var(--sage));

  --radius: 18px;
  --radius-sm: 10px;
  --container: 1180px;

  --shadow-soft: 0 20px 60px -20px rgba(0,0,0,0.55);
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p { color: var(--text-muted); margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}

/* subtle film grain overlay for premium texture */
.grain {
  position: fixed; inset: 0; z-index: 2000; pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #16130d;
  box-shadow: 0 10px 30px -10px rgba(196,122,72,0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(196,122,72,0.6); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-small { padding: 10px 22px; font-size: 0.85rem; }

/* ============ HEADER ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(13,14,15,0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(13,14,15,0.92); }

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

.logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f7f3ea;
  border-radius: 12px;
  padding: 6px 10px;
  height: 44px;
}
.logo-chip img { height: 100%; width: auto; object-fit: contain; }

.main-nav { display: flex; gap: 34px; }
.main-nav a {
  font-size: 0.92rem; font-weight: 500; color: var(--text-muted);
  position: relative; padding: 4px 0;
  transition: color .25s ease;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--gradient); transition: width .3s var(--ease);
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 168px 0 120px;
  overflow: hidden;
}
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(90px);
  opacity: 0.22; pointer-events: none;
}
.hero-glow-1 { width: 420px; height: 420px; background: var(--orange); top: -120px; left: -100px; }
.hero-glow-2 { width: 380px; height: 380px; background: var(--sage); bottom: -140px; right: -80px; }
.hero-glow-3 { width: 300px; height: 300px; background: var(--gold); top: 30%; left: 45%; opacity: 0.12; }

.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center;
}

.hero-text h1 { font-size: clamp(2.3rem, 4.2vw, 3.4rem); }
.hero-lead { max-width: 520px; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 16px; margin: 32px 0 22px; flex-wrap: wrap; }
.hero-trust { font-size: 0.85rem; color: var(--text-faint); }

.hero-visual { position: relative; }

.dash-card {
  background: linear-gradient(180deg, var(--bg-card), #17181a);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.dash-card-head {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 18px; border-bottom: 1px solid var(--border);
}
.dash-dot { width: 9px; height: 9px; border-radius: 50%; }
.dash-dot-o { background: var(--orange); }
.dash-dot-y { background: var(--gold); }
.dash-dot-g { background: var(--sage); }
.dash-title { margin-left: 8px; font-size: 0.8rem; color: var(--text-faint); }

.dash-body { padding: 20px 18px 24px; }
.dash-chart { width: 100%; height: auto; display: block; }
.grid-lines line { stroke: var(--border); stroke-width: 1; }
.chart-line { filter: drop-shadow(0 4px 10px rgba(207,162,87,0.35)); }

.dash-stats { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.dash-stat { display: flex; flex-direction: column; gap: 4px; }
.dash-stat-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); }
.dash-stat-value { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.dash-stat-value.up { color: var(--sage); }

.floating-chip {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.8rem; font-weight: 600;
  box-shadow: var(--shadow-soft);
  animation: float 5s ease-in-out infinite;
}
.floating-chip svg { width: 16px; height: 16px; color: var(--gold); }
.chip-1 { top: -18px; right: 20px; animation-delay: 0s; }
.chip-2 { bottom: -16px; left: -10px; color: var(--sage); animation-delay: 1.4s; }
.chip-2 svg { color: var(--sage); }

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

/* ============ TRUST / REDES ============ */
.trust-bar { padding: 50px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-label { text-align: center; color: var(--text-faint); font-size: 0.85rem; margin-bottom: 26px; letter-spacing: 0.02em; }
.network-row { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; }
.network-badge {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 22px; border: 1px solid var(--border); border-radius: 999px;
  font-family: 'Fraunces', serif; font-size: 1rem; color: var(--text);
  background: var(--bg-card);
  transition: border-color .3s ease, transform .3s ease;
}
.network-badge:hover { border-color: var(--gold); transform: translateY(-2px); }
.net-icon { width: 18px; height: 18px; color: var(--gold); }
.network-badge-more { color: var(--text-faint); font-family: 'Inter', sans-serif; font-size: 0.85rem; }
.network-badge-more .net-icon { color: var(--sage); }

/* ============ SECTIONS ============ */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-lead { font-size: 1.02rem; }

/* ============ SERVICE CARDS ============ */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 26px;
  transition: transform .4s var(--ease), border-color .4s ease, box-shadow .4s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow-soft); }
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { font-size: 0.92rem; margin: 0; }

.service-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 24px; height: 24px; }
.icon-orange { background: rgba(196,122,72,0.14); color: var(--orange); }
.icon-gold { background: rgba(207,162,87,0.14); color: var(--gold); }
.icon-sage { background: rgba(127,154,114,0.14); color: var(--sage); }

/* ============ FEATURES GRID ============ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.feature-item { display: flex; gap: 16px; }
.feature-dot {
  width: 10px; height: 10px; border-radius: 50%; margin-top: 8px; flex-shrink: 0;
  background: var(--gradient);
}
.feature-item h4 { font-size: 1.02rem; margin-bottom: 6px; }
.feature-item p { font-size: 0.9rem; margin: 0; }

/* ============ PROCESS ============ */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step {
  position: relative;
  padding: 30px 24px 24px;
  border-left: 1px solid var(--border);
}
.process-num {
  display: block; font-family: 'Fraunces', serif; font-size: 2.1rem;
  color: transparent; -webkit-text-stroke: 1px var(--gold);
  margin-bottom: 14px;
}
.process-step h4 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { font-size: 0.9rem; margin: 0; }

/* ============ ABOUT ============ */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 70px; align-items: center; }
.about-frame {
  aspect-ratio: 1; border-radius: 24px;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  padding: 30px;
}
.about-svg { width: 100%; height: 100%; }
.about-text p { font-size: 0.98rem; }
.about-list { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.about-list li {
  position: relative; padding-left: 26px; font-size: 0.94rem; color: var(--text);
}
.about-list li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 14px; height: 1.5px; background: var(--gradient);
}

/* ============ CTA BANNER ============ */
.cta-banner {
  padding: 90px 0;
  background: linear-gradient(135deg, rgba(196,122,72,0.10), rgba(207,162,87,0.08) 50%, rgba(127,154,114,0.10));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; }
.contact-info h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); }
.contact-item {
  display: flex; align-items: center; gap: 14px; margin-top: 20px;
  color: var(--text-muted); font-size: 0.94rem;
}
.contact-item svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }
.contact-item a:hover { color: var(--gold); }

.contact-form {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px; display: flex; flex-direction: column; gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 0.85rem; color: var(--text-muted); }
.contact-form input, .contact-form textarea {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--text); font-family: inherit; font-size: 0.94rem;
  transition: border-color .25s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.form-submit { margin-top: 8px; align-self: flex-start; }

/* ============ FOOTER ============ */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-top: 70px; }
.footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; padding-bottom: 50px; }
.footer-brand p { margin-top: 16px; font-size: 0.9rem; max-width: 240px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-links h5 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 16px; }
.footer-links a, .footer-links span { display: block; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 10px; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; }
.footer-bottom p { margin: 0; font-size: 0.8rem; color: var(--text-faint); text-align: center; }

/* ============ SCROLL TOP ============ */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, border-color .3s ease;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { border-color: var(--gold); color: var(--gold); }
.scroll-top svg { width: 18px; height: 18px; }

/* ============ REVEAL ANIMATION ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-frame { max-width: 360px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; background: rgba(13,14,15,0.98); flex-direction: column; padding: 24px 28px; gap: 20px; border-bottom: 1px solid var(--border); transform: translateY(-130%); transition: transform .35s var(--ease); }
  .main-nav.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { border-left: none; border-top: 1px solid var(--border); padding-left: 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .hero { padding-top: 140px; }
}
