/* HI Digital — Custom Styles */
:root {
  --bg: #07090f;
  --surface: #0f1420;
  --surface2: #161d2e;
  --border: #1e2940;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --cyan: #06b6d4;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --subtle: #475569;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 9, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30, 41, 64, 0.6);
  transition: background 0.3s;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.nav-logo span { color: var(--blue); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 0.875rem;
  transition: background 0.2s, transform 0.15s !important;
}

.nav-cta:hover { background: #2563eb !important; transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  z-index: 99;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--muted); text-decoration: none; font-size: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: none; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ── HERO ── */
.hero {
  padding: 140px 1.5rem 100px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--blue-light);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-panel {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(145deg, rgba(15, 20, 32, 0.96), rgba(10, 15, 26, 0.96)),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.18), transparent 42%);
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.hero-panel::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(59,130,246,0.18), rgba(6,182,212,0.08), transparent);
  opacity: 0.8;
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 1rem;
}

.panel-topline strong {
  color: var(--blue-light);
  font-weight: 700;
}

.browser-card {
  background: rgba(22, 29, 46, 0.9);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.browser-dots {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.browser-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--subtle);
}

.browser-dots span:nth-child(1) { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #f59e0b; }
.browser-dots span:nth-child(3) { background: #22c55e; }

.mock-line {
  height: 10px;
  width: 72%;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  margin-bottom: 0.65rem;
}

.mock-line.strong {
  width: 54%;
  height: 16px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.mock-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  color: var(--blue-light);
  font-size: 0.72rem;
  font-weight: 700;
}

.solution-list {
  display: grid;
  gap: 0.75rem;
}

.solution-list div {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.75rem;
  padding: 0.9rem;
  background: rgba(7, 9, 15, 0.45);
  border: 1px solid rgba(30, 41, 64, 0.9);
  border-radius: 12px;
}

.solution-list span {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue-light);
  font-size: 0.72rem;
  font-weight: 800;
}

.solution-list strong {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.35;
}

.solution-list small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue);
  color: #fff;
  padding: 0.875rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--muted);
  padding: 0.875rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--subtle);
  transform: translateY(-2px);
}

.floating-whatsapp {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 120;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  color: #052e16;
  text-decoration: none;
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 46px rgba(37, 211, 102, 0.42);
}

.floating-whatsapp:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.nav a:focus-visible,
.mobile-menu a:focus-visible {
  outline: 3px solid rgba(96, 165, 250, 0.7);
  outline-offset: 3px;
}

/* ── SECTION ── */
.section {
  padding: 96px 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

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

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 3rem;
}

/* ── CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--blue);
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-light);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: gap 0.15s;
}

.card-link:hover { gap: 0.6rem; }

/* ── HIGHLIGHT ROW ── */
.highlight {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.highlight-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.highlight-text p { color: var(--muted); max-width: 480px; }

/* ── TECH PILLS ── */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.tech-pill {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0 1.5rem;
}

/* ── FOOTER ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 340px;
  margin-top: 0.75rem;
  line-height: 1.8;
}

.footer-nav h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 1rem;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--subtle);
  font-size: 0.8rem;
}

.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }

/* ── STATS ROW ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 4rem;
}

.stat { text-align: center; }

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 140px 1.5rem 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* ── PROCESS LIST ── */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.process-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.process-num {
  width: 32px; height: 32px;
  min-width: 32px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
}

.process-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.process-content p { font-size: 0.875rem; color: var(--muted); }

/* ── CTA BLOCK ── */
.cta-block {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(6, 182, 212, 0.05) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 20px;
  padding: 4rem 2rem;
  text-align: center;
}

.cta-block h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.cta-block p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

/* ── PROFILE CARD ── */
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.profile-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  letter-spacing: -0.05em;
}

.profile-photo {
  width: clamp(96px, 10vw, 120px);
  height: clamp(96px, 10vw, 120px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(59, 130, 246, 0.45);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  flex-shrink: 0;
}

.alias-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.alias-list strong {
  color: var(--text);
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.profile-info h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.profile-info .role {
  font-size: 0.95rem;
  color: var(--blue-light);
  font-weight: 500;
  margin-bottom: 1rem;
}

.profile-info p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; max-width: 560px; }

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.2s;
}

.social-link:hover { color: var(--text); border-color: var(--subtle); }
.social-link.linkedin { border-color: rgba(10,102,194,0.4); color: #60a5fa; }
.social-link.whatsapp { border-color: rgba(37,211,102,0.4); color: #4ade80; }

/* ── TWO COLUMN ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .highlight { flex-direction: column; }
  .profile-card { flex-direction: column; }
  .hero {
    padding-top: 112px;
    padding-bottom: 72px;
  }
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .hero-panel {
    padding: 1rem;
  }
  .mock-grid {
    grid-template-columns: 1fr;
  }
}

/* ── CONTACT FORM ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
}

.form-group textarea { resize: vertical; min-height: 120px; }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .floating-whatsapp {
    right: 1rem;
    bottom: 1rem;
    width: 50px;
    height: 50px;
  }
}

/* ── PORTFOLIO CARDS ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.portfolio-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-4px);
}

.portfolio-thumb {
  height: 200px;
  background: linear-gradient(135deg, var(--surface2) 0%, rgba(59,130,246,0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  font-size: 3rem;
}

.portfolio-body { padding: 1.5rem; }
.portfolio-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.portfolio-body .tag {
  display: inline-flex;
  background: rgba(59,130,246,0.12);
  color: var(--blue-light);
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.portfolio-body p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }

/* ── GLOW BG ── */
.glow-bg {
  position: relative;
  overflow: hidden;
}

.glow-bg::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ── ANIMATIONS ── */
/* By default elements are visible — JS adds .js-ready to body to enable scroll animations */
body.js-ready [data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.js-ready [data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

body.js-ready [data-aos-delay="100"] { transition-delay: 0.1s; }
body.js-ready [data-aos-delay="200"] { transition-delay: 0.2s; }
body.js-ready [data-aos-delay="300"] { transition-delay: 0.3s; }
body.js-ready [data-aos-delay="400"] { transition-delay: 0.4s; }
