@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

:root,
[data-theme="dark"] {
  --background: #0a0a0f;
  --foreground: #e4e4e7;
  --muted: #a1a1aa;
  --accent: #8b5cf6;
  --accent-hover: #a78bfa;
  --card: #18181b;
  --card-border: #27272a;
  --gradient-start: #6366f1;
  --gradient-end: #ec4899;
}

[data-theme="light"] {
  --background: #fff;
  --foreground: #18181b;
  --muted: #71717a;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --card: #f4f4f5;
  --card-border: #e4e4e7;
  --gradient-start: #4f46e5;
  --gradient-end: #db2777;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: var(--background);
  color: var(--foreground);
}

.glass-strong {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  background: rgb(255 255 255 / 0.72);
}

.nav-pill {
  top: 50%;
  left: 0;
  height: calc(100% - 12px);
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  box-shadow: 0 10px 26px rgb(59 130 246 / 0.2);
  opacity: 0;
  transform: translate3d(0, -50%, 0);
  will-change: transform, width;
}

[data-theme="dark"] .glass-strong {
  background: #18181bcc;
}

[data-theme="dark"] .nav-pill {
  border-color: color-mix(in srgb, var(--accent) 72%, transparent);
  background: color-mix(in srgb, var(--accent) 28%, transparent);
  box-shadow: 0 12px 28px rgb(139 92 246 / 0.22);
}

#mouse-effect-layer {
  --mouse-x: 50%;
  --mouse-y: 0%;
  background-color: rgb(5 5 10);
}

#mouse-layer-gradient-a {
  opacity: 0.35;
  background:
    radial-gradient(circle at 0% 0%, rgb(139 92 246 / 0.15), transparent 50%),
    radial-gradient(circle at 100% 0%, rgb(236 72 153 / 0.15), transparent 50%),
    radial-gradient(circle at 20% 80%, rgb(59 130 246 / 0.15), transparent 50%);
}

#mouse-layer-gradient-b {
  opacity: 1;
  background:
    radial-gradient(circle at 0% 0%, rgb(76 29 149 / 0.2), transparent 60%),
    radial-gradient(circle at 100% 0%, rgb(124 58 237 / 0.15), transparent 50%),
    radial-gradient(circle at 50% 100%, rgb(79 70 229 / 0.15), transparent 60%);
}

#mouse-layer-grid-base {
  background-image: radial-gradient(rgb(255 255 255) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.04;
}

#mouse-layer-spotlight {
  background: radial-gradient(circle, rgb(99 102 241 / 0.22), transparent 50%);
  mask-image: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 0%),
    black,
    transparent
  );
}

#mouse-layer-grid-spotlight {
  background-image: radial-gradient(rgb(255 255 255) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.3;
  mask-image: radial-gradient(
    400px circle at var(--mouse-x, 50%) var(--mouse-y, 0%),
    black,
    transparent
  );
}

#mouse-layer-vignette {
  background: radial-gradient(circle, transparent 40%, rgb(5 5 10) 100%);
  opacity: 0.65;
}

[data-theme="light"] #mouse-effect-layer {
  background-color: rgb(248 250 252);
}

[data-theme="light"] #mouse-layer-gradient-a {
  opacity: 0.55;
  background:
    radial-gradient(circle at 0% 0%, rgb(99 102 241 / 0.14), transparent 52%),
    radial-gradient(circle at 100% 0%, rgb(236 72 153 / 0.12), transparent 50%),
    radial-gradient(circle at 20% 80%, rgb(14 165 233 / 0.1), transparent 50%);
}

[data-theme="light"] #mouse-layer-gradient-b {
  opacity: 0.5;
  background:
    radial-gradient(circle at 0% 0%, rgb(124 58 237 / 0.12), transparent 60%),
    radial-gradient(circle at 100% 0%, rgb(99 102 241 / 0.1), transparent 52%),
    radial-gradient(circle at 50% 100%, rgb(59 130 246 / 0.08), transparent 60%);
}

[data-theme="light"] #mouse-layer-grid-base {
  background-image: radial-gradient(rgb(24 24 27) 1px, transparent 1px);
  opacity: 0.05;
}

[data-theme="light"] #mouse-layer-spotlight {
  background: radial-gradient(circle, rgb(124 58 237 / 0.12), transparent 50%);
}

[data-theme="light"] #mouse-layer-grid-spotlight {
  background-image: radial-gradient(rgb(39 39 42) 1px, transparent 1px);
  opacity: 0.18;
}

[data-theme="light"] #mouse-layer-vignette {
  background: radial-gradient(circle, transparent 40%, rgb(241 245 249) 100%);
  opacity: 0.5;
}

[data-mobile-menu-panel] {
  transform-origin: top center;
  transition:
    height 380ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 280ms ease,
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: height, opacity, transform;
}

[data-mobile-menu-panel] .glass-strong {
  background: rgb(10 10 15 / 0.9);
  border-color: color-mix(in srgb, var(--card-border) 85%, transparent);
  box-shadow:
    0 18px 36px rgb(0 0 0 / 0.35),
    inset 0 1px 0 rgb(255 255 255 / 0.06);
}

[data-theme="light"] [data-mobile-menu-panel] .glass-strong {
  background: rgb(255 255 255 / 0.9);
  border-color: color-mix(in srgb, var(--card-border) 88%, transparent);
  box-shadow:
    0 14px 30px rgb(15 23 42 / 0.14),
    inset 0 1px 0 rgb(255 255 255 / 0.8);
}

[data-mobile-menu-panel] [data-mobile-nav-item] {
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 220ms ease,
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-mobile-menu-panel][data-open="true"] [data-mobile-nav-item] {
  opacity: 1;
  transform: translateY(0);
}

[data-mobile-menu-panel][data-open="true"] [data-mobile-nav-item]:nth-child(1) {
  transition-delay: 55ms;
}

[data-mobile-menu-panel][data-open="true"] [data-mobile-nav-item]:nth-child(2) {
  transition-delay: 95ms;
}

[data-mobile-menu-panel][data-open="true"] [data-mobile-nav-item]:nth-child(3) {
  transition-delay: 135ms;
}

[data-mobile-menu-panel][data-open="true"] [data-mobile-nav-item]:nth-child(4) {
  transition-delay: 175ms;
}

[data-mobile-menu-panel][data-open="true"] [data-mobile-nav-item]:nth-child(5) {
  transition-delay: 215ms;
}

/* Animaciones de entrada para el hero */
@keyframes typewriter {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
  }
}

.hero-tag {
  display: inline-block;
}

.hero-tag-text {
  animation: typewriter 0.8s ease-out forwards;
}

.hero-heading {
  animation: fade-in 0.8s ease-out forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.ease-animation {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(8px);
  transition:
    opacity 650ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 650ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 650ms ease;
}

.ease-animation.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.hero-actions {
  animation: fade-in 0.8s ease-out forwards;
  animation-delay: 0.35s;
  opacity: 0;
}

.hero-actions a:first-child {
  animation: fade-in 0.8s ease-out forwards;
  animation-delay: 0.35s;
  opacity: 0;
}

.hero-actions a:last-child {
  animation: fade-in 0.8s ease-out forwards;
  animation-delay: 0.45s;
  opacity: 0;
}

.hero-actions a {
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.18);
}

[data-theme="light"] .hero-actions a:first-child {
  box-shadow: 0 12px 26px rgb(15 23 42 / 0.12);
}

[data-theme="dark"] .hero-actions a:first-child {
  background: #f8fafc;
  color: #0f172a;
}

.hero-layout {
  perspective: 1200px;
}

.hero-code-card {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--card-border) 75%, transparent);
  border-radius: 20px;
  background:
    linear-gradient(170deg, rgb(255 255 255 / 0.08), rgb(255 255 255 / 0.01)),
    color-mix(in srgb, var(--card) 92%, transparent);
  box-shadow:
    0 18px 50px rgb(0 0 0 / 0.28),
    inset 0 1px 0 rgb(255 255 255 / 0.12);
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateZ(0);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
  will-change: transform;
}

.hero-code-card[data-tilting="true"] {
  transition: none;
}

.hero-code-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at var(--glare-x, 50%) var(--glare-y, 50%),
    rgb(96 165 250 / 0.16),
    transparent 38%
  );
  pointer-events: none;
}

.hero-code-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--card-border) 70%, transparent);
  background: rgb(255 255 255 / 0.03);
}

.hero-code-dots {
  display: flex;
  gap: 0.4rem;
}

.hero-code-dots span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.32);
}

.hero-code-dots span:nth-child(1) {
  background: #fb7185;
}

.hero-code-dots span:nth-child(2) {
  background: #fbbf24;
}

.hero-code-dots span:nth-child(3) {
  background: #34d399;
}

.hero-code-file {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.hero-code-pre {
  margin: 0;
  padding: 1.5rem 3rem;
  font-family:
    "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  line-height: 1;
  color: var(--foreground);
}

.hero-code-pre .line {
  display: block;
}

.token-keyword {
  color: #f472b6;
}

.token-fn {
  color: #93c5fd;
}

.token-jsx {
  color: #34d399;
}

[data-theme="light"] .hero-code-card {
  background:
    linear-gradient(170deg, rgb(255 255 255 / 0.78), rgb(255 255 255 / 0.6)),
    color-mix(in srgb, var(--card) 96%, transparent);
  box-shadow:
    0 20px 44px rgb(15 23 42 / 0.11),
    inset 0 1px 0 rgb(255 255 255 / 0.65);
}

[data-theme="light"] .hero-code-card::before {
  background: radial-gradient(
    circle at var(--glare-x, 50%) var(--glare-y, 50%),
    rgb(59 130 246 / 0.16),
    transparent 42%
  );
}

@keyframes timeline-pulse {
  0% {
    transform: scale(0.72);
    opacity: 0.65;
  }
  80%,
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.timeline-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-inline: auto;
  max-width: 72rem;
  padding-inline: 0.1rem;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 1.18rem;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgb(59 130 246 / 0.95), rgb(99 102 241 / 0.7), transparent);
  box-shadow: 0 0 24px rgb(59 130 246 / 0.25);
}

.timeline-item {
  --timeline-order: 0;
  position: relative;
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  align-items: start;
  column-gap: 1rem;
  opacity: 0;
  transform: translateY(36px);
  filter: blur(8px);
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 620ms ease;
  transition-delay: calc(var(--timeline-order) * 110ms);
}

.timeline-item.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.timeline-node {
  --timeline-node-x: 0;
  position: relative;
  z-index: 2;
  width: 2.35rem;
  aspect-ratio: 1;
  align-self: start;
  margin-top: 1.1rem;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--accent) 70%, white 8%);
  background:
    radial-gradient(circle at 30% 30%, rgb(255 255 255 / 0.7), transparent 42%),
    linear-gradient(145deg, rgb(59 130 246), rgb(139 92 246));
  box-shadow:
    0 8px 22px rgb(59 130 246 / 0.34),
    inset 0 0 0 4px rgb(10 10 15 / 0.42);
  transform: scale(0.45);
  opacity: 0;
  transition:
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 400ms ease;
  transition-delay: calc(var(--timeline-order) * 110ms + 80ms);
}

.timeline-node::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  border: 1px solid color-mix(in srgb, var(--accent) 65%, transparent);
  opacity: 0;
}

.timeline-item.is-visible .timeline-node {
  transform: translateX(var(--timeline-node-x, 0)) scale(1);
  opacity: 1;
}

.timeline-item.is-visible .timeline-node::before {
  opacity: 1;
  animation: timeline-pulse 2.2s ease-out infinite;
}

.timeline-card {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--card-border) 75%, transparent);
  background:
    linear-gradient(170deg, rgb(255 255 255 / 0.08), rgb(255 255 255 / 0.01)),
    color-mix(in srgb, var(--card) 92%, transparent);
  box-shadow:
    0 18px 42px rgb(0 0 0 / 0.24),
    inset 0 1px 0 rgb(255 255 255 / 0.12);
}

.timeline-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.35rem;
  color: color-mix(in srgb, var(--accent) 60%, var(--foreground));
  opacity: 0.82;
}

.timeline-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  padding: 0.28rem 0.72rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--foreground);
}

.timeline-stack {
  border-radius: 0.5rem;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(255 255 255 / 0.05);
  padding: 0.25rem 0.75rem;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  transition-property: all;
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-stack:hover {
  border-color: rgb(21 93 252 / 0.3);
  background: rgb(21 93 252 / 0.1);
  color: rgb(21 93 252);
}

[data-theme="light"] .timeline-card {
  background:
    linear-gradient(170deg, rgb(255 255 255 / 0.84), rgb(255 255 255 / 0.62)),
    color-mix(in srgb, var(--card) 96%, transparent);
  box-shadow:
    0 18px 36px rgb(15 23 42 / 0.11),
    inset 0 1px 0 rgb(255 255 255 / 0.82);
}

[data-theme="light"] .timeline-node {
  box-shadow:
    0 8px 18px rgb(59 130 246 / 0.28),
    inset 0 0 0 4px rgb(255 255 255 / 0.66);
}

[data-theme="light"] .timeline-stack {
  border-color: rgb(148 163 184 / 0.42);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.9), rgb(248 250 252 / 0.82)),
    color-mix(in srgb, var(--background) 86%, var(--card) 14%);
  color: #334155;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.95),
    0 5px 14px rgb(15 23 42 / 0.08);
}

[data-theme="light"] .timeline-stack:hover {
  border-color: rgb(37 99 235 / 0.45);
  background: rgb(37 99 235 / 0.1);
  color: #1d4ed8;
}

[data-theme="light"] .project-card {
  border-color: rgb(148 163 184 / 0.32);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.82), rgb(255 255 255 / 0.66)),
    color-mix(in srgb, var(--background) 88%, var(--card) 12%);
  color: #0f172a;
  box-shadow:
    0 22px 42px rgb(15 23 42 / 0.14),
    inset 0 1px 0 rgb(255 255 255 / 0.92);
}

[data-theme="light"] .project-card:hover {
  border-color: rgb(59 130 246 / 0.5);
  box-shadow:
    0 24px 48px rgb(59 130 246 / 0.2),
    inset 0 1px 0 rgb(255 255 255 / 0.95);
}

[data-theme="light"] .project-card-glow {
  opacity: 0.65;
}

[data-theme="light"] .project-card-media-overlay {
  background: linear-gradient(to top, rgb(15 23 42 / 0.22), transparent);
  opacity: 1;
}

[data-theme="light"] .project-card-button {
  border-color: rgb(148 163 184 / 0.4);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.82), rgb(241 245 249 / 0.85));
  color: #0f172a;
  box-shadow:
    0 10px 20px rgb(15 23 42 / 0.1),
    inset 0 1px 0 rgb(255 255 255 / 0.95);
}

.project-card-button:hover {
  border-color: rgb(37 99 235 / 0.4);
  background: rgb(37 99 235 / 0.12);
  color: #155dfc;
  box-shadow: 0 12px 24px rgb(37 99 235 / 0.2);
}

.contact-surface {
  border: 1px solid color-mix(in srgb, var(--card-border) 75%, transparent);
  background:
    linear-gradient(170deg, rgb(255 255 255 / 0.08), rgb(255 255 255 / 0.01)),
    color-mix(in srgb, var(--card) 92%, transparent);
  box-shadow:
    0 18px 42px rgb(0 0 0 / 0.24),
    inset 0 1px 0 rgb(255 255 255 / 0.12);
}

.contact-form-grid {
  display: grid;
  gap: 1rem;
}

.contact-label {
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-input {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--card-border) 85%, transparent);
  border-radius: 0.9rem;
  background: rgb(255 255 255 / 0.03);
  color: var(--foreground);
  padding: 0.86rem 0.95rem;
  font: inherit;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease;
}

.contact-input::placeholder {
  color: color-mix(in srgb, var(--muted) 82%, transparent);
}

.contact-input:focus-visible {
  outline: none;
  border-color: rgb(59 130 246 / 0.7);
  box-shadow: 0 0 0 3px rgb(59 130 246 / 0.18);
}

.contact-textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-status[data-state="idle"] {
  color: var(--muted);
}

.contact-status[data-state="sending"] {
  color: rgb(96 165 250);
}

.contact-status[data-state="success"] {
  color: rgb(52 211 153);
}

.contact-status[data-state="error"] {
  color: rgb(248 113 113);
}

.contact-direct-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  border: 1px solid color-mix(in srgb, var(--card-border) 84%, transparent);
  border-radius: 0.9rem;
  background: rgb(255 255 255 / 0.02);
  padding: 0.75rem;
}

.contact-direct-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-direct-value {
  margin: 0.15rem 0 0;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--foreground);
  text-decoration: none;
}

.contact-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(255 255 255 / 0.05);
  padding: 0.5rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--foreground);
  text-decoration: none;
  transition: all 220ms ease;
}

.contact-social-link:hover {
  border-color: rgb(59 130 246 / 0.45);
  background: rgb(59 130 246 / 0.14);
  color: rgb(96 165 250);
}

[data-theme="light"] .contact-surface {
  background:
    linear-gradient(170deg, rgb(255 255 255 / 0.84), rgb(255 255 255 / 0.62)),
    color-mix(in srgb, var(--card) 96%, transparent);
  box-shadow:
    0 18px 36px rgb(15 23 42 / 0.11),
    inset 0 1px 0 rgb(255 255 255 / 0.82);
}

[data-theme="light"] .contact-input {
  border-color: rgb(148 163 184 / 0.4);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.9), rgb(248 250 252 / 0.82));
  color: #0f172a;
}

[data-theme="light"] .contact-input::placeholder {
  color: #64748b;
}

[data-theme="light"] .contact-input:focus-visible {
  border-color: rgb(37 99 235 / 0.6);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.16);
}

[data-theme="light"] .contact-direct-card {
  border-color: rgb(148 163 184 / 0.35);
  background: rgb(255 255 255 / 0.74);
}

[data-theme="light"] .contact-social-link {
  border-color: rgb(148 163 184 / 0.45);
  background: rgb(255 255 255 / 0.86);
  color: #0f172a;
}

.footer-surface {
  border: 1px solid color-mix(in srgb, var(--card-border) 74%, transparent);
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  background:
    linear-gradient(170deg, rgb(255 255 255 / 0.04), rgb(255 255 255 / 0.01)),
    color-mix(in srgb, var(--background) 90%, black 10%);
  box-shadow:
    0 20px 40px rgb(0 0 0 / 0.28),
    inset 0 1px 0 rgb(255 255 255 / 0.06);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.footer-brand-col,
.footer-nav-col,
.footer-connect-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-logo-link {
  display: inline-flex;
  width: fit-content;
  color: var(--foreground);
}

.footer-logo-svg {
  display: block;
  width: clamp(64px, 8vw, 96px);
  height: auto;
  object-fit: contain;
}

.footer-subtitle {
  margin: 0;
  max-width: 34ch;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--muted);
}

.footer-section-title {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted) 85%, white 15%);
}

.footer-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-nav-links a {
  width: fit-content;
  color: var(--foreground);
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 180ms ease;
}

.footer-nav-links a:hover {
  color: #60a5fa;
}

.footer-connect-link {
  margin: 0;
  width: fit-content;
  color: var(--foreground);
  text-decoration: none;
  font-size: 1.02rem;
}

.footer-social-row {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.65rem;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(255 255 255 / 0.04);
  color: var(--foreground);
  transition:
    border-color 220ms ease,
    background-color 220ms ease,
    color 220ms ease,
    transform 220ms ease;
}

.footer-social-link:hover {
  border-color: rgb(59 130 246 / 0.55);
  background: rgb(59 130 246 / 0.14);
  color: #93c5fd;
  transform: translateY(-1px);
}

.footer-divider {
  height: 1px;
  margin: 1.7rem 0 1.2rem;
  background: color-mix(in srgb, var(--card-border) 84%, transparent);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-copy,
.footer-rights {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

[data-theme="light"] .footer-surface {
  background:
    linear-gradient(170deg, rgb(255 255 255 / 0.92), rgb(255 255 255 / 0.74)),
    color-mix(in srgb, var(--card) 96%, transparent);
  box-shadow:
    0 16px 32px rgb(15 23 42 / 0.1),
    inset 0 1px 0 rgb(255 255 255 / 0.85);
}

[data-theme="light"] .footer-section-title {
  color: #475569;
}

[data-theme="light"] .footer-logo-link {
  color: #0f172a;
}

[data-theme="light"] .footer-social-link {
  border-color: rgb(148 163 184 / 0.5);
  background: rgb(255 255 255 / 0.9);
  color: #0f172a;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1.1fr;
    column-gap: 2.4rem;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (hover: hover) and (pointer: fine) {
  .hero-code-card:hover {
    box-shadow:
      0 26px 56px rgb(0 0 0 / 0.32),
      inset 0 1px 0 rgb(255 255 255 / 0.2);
  }

  [data-theme="light"] .hero-code-card:hover {
    box-shadow:
      0 22px 48px rgb(15 23 42 / 0.15),
      inset 0 1px 0 rgb(255 255 255 / 0.7);
  }
}

@media (max-width: 1023px) {
  .hero-code-card {
    max-width: 640px;
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .timeline-list {
    gap: 2.2rem;
  }

  .timeline-list::before {
    left: 50%;
    top: 0.5rem;
    bottom: 0.5rem;
    transform: translateX(-50%);
  }

  .timeline-item {
    position: relative;
    grid-template-columns: minmax(0, 1fr) 6.4rem minmax(0, 1fr);
    column-gap: 0;
  }

  .timeline-item .timeline-node {
    --timeline-node-x: -50%;
    position: absolute;
    left: 50%;
    top: 2.7rem;
    margin-top: 0;
    transform: translateX(var(--timeline-node-x, 0)) scale(0.45);
  }

  .timeline-item .timeline-card {
    grid-column: 1;
    margin-right: 2rem;
  }

  .timeline-item:nth-child(even) .timeline-card {
    grid-column: 3;
    margin-right: 0;
    margin-left: 2rem;
  }
}

@media (hover: none), (pointer: coarse) {
  .hero-layout {
    perspective: 900px;
  }

  .hero-code-card {
    transition:
      transform 180ms ease,
      box-shadow 180ms ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ease-animation,
  .ease-animation.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .timeline-item,
  .timeline-node {
    transition: none;
  }

  .timeline-item {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .timeline-node {
    opacity: 1;
    transform: translateX(var(--timeline-node-x, 0)) scale(1);
  }

  .timeline-node::before {
    animation: none;
  }
}
