/* ============================================
   Savio Eliseo — Design System
   Apple-inspired: clean, glassy, minimal motion
   ============================================ */

:root {
  --bg: #FBFBFD;
  --bg-alt: #F5F5F7;
  --bg-dark: #0A0A0C;
  --text: #1D1D1F;
  --text-secondary: #86868B;
  --text-on-dark: #F5F5F7;
  --text-on-dark-secondary: #A1A1A6;
  --accent: #0071E3;
  --accent-hover: #0077ED;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-dark: rgba(20, 20, 22, 0.55);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-border-dark: rgba(255, 255, 255, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1000px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 16px;
}

.section-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.5;
}

/* ---------- Glass Dock Navigation ---------- */
.dock-container {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.dock {
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 10px;
  border-radius: 100px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transition: all 0.5s var(--ease);
}

.dock.condensed {
  padding: 8px 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.dock-logo {
  font-weight: 700;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 100px;
  letter-spacing: -0.01em;
}

.dock-link {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
  color: var(--text);
  transition: background 0.3s var(--ease);
}

.dock-link:hover { background: rgba(0, 0, 0, 0.05); }

.dock-link.active {
  background: var(--text);
  color: var(--bg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text);
}
.btn-glass:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.aurora {
  position: absolute;
  inset: -20% -20% auto -20%;
  height: 140%;
  z-index: 0;
  filter: blur(70px);
  opacity: 0.55;
  background:
    radial-gradient(circle at 25% 30%, #7CD4FF 0%, transparent 45%),
    radial-gradient(circle at 75% 20%, #B39DFF 0%, transparent 40%),
    radial-gradient(circle at 50% 70%, #FFB2D9 0%, transparent 45%);
  animation: aurora-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes aurora-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(3%, 4%) scale(1.08); }
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(40px, 8vw, 88px);
  margin-bottom: 20px;
}

.hero p.lead {
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: bob 2.4s ease-in-out infinite;
}

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

/* ---------- Sections ---------- */
section { position: relative; }

.section-pad {
  padding: 120px 24px;
}

.bg-alt { background: var(--bg-alt); }

.bg-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.bg-dark .section-sub { color: var(--text-on-dark-secondary); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.55s; }

/* ---------- Glass Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.1);
}

.dark-card {
  background: var(--glass-bg-dark);
  border: 1px solid var(--glass-border-dark);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  margin-bottom: 20px;
}

.glass-card h3 { font-size: 20px; margin-bottom: 10px; }
.glass-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.55; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 100px;
  background: rgba(0, 113, 227, 0.1);
  color: var(--accent);
}

.dark-card .tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark);
}

/* ---------- Footer ---------- */
footer {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

footer a { color: var(--text); font-weight: 500; }
footer a:hover { color: var(--accent); }

/* ---------- Contact form ---------- */
.form-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 560px;
  margin: 56px auto 0;
}

.field { margin-bottom: 20px; text-align: left; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.7);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

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

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  transition: transform 0.3s var(--ease);
}

.contact-link-item:hover { transform: translateX(4px); }

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .dock-link span.full { display: none; }

  .dock-container { top: 12px; padding: 0 12px; }
  .dock {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .dock::-webkit-scrollbar { display: none; }
  .dock-logo { font-size: 14px; padding: 8px 12px; white-space: nowrap; }
  .dock-link { font-size: 13px; padding: 8px 13px; white-space: nowrap; }

  .hero { padding: 100px 20px 60px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions .btn { width: 100%; }

  .form-glass { padding: 32px 24px; }
  .section-pad { padding: 64px 20px; }

  .card-grid { gap: 16px; margin-top: 40px; }
  .glass-card { padding: 26px; }

  .contact-links { gap: 12px; }
  .contact-link-item { padding: 14px 16px; }

  .field input, .field textarea { font-size: 16px; }

  footer { padding: 36px 20px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 34px; }
  .section-title { font-size: 26px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora, .scroll-hint { animation: none; }
  .reveal, .reveal-stagger > *, .glass-card, .dock, .btn, .contact-link-item {
    transition: none !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}