/* ─────────────────────────────────────────────────────────
   ierwinx · portafolio
   ───────────────────────────────────────────────────────── */

:root {
  color-scheme: dark;
  --bg: #07070c;
  --bg-2: #0d0d16;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #f4f4f8;
  --muted: #9a9ab0;
  --dim: #6b6b80;
  --violet: #7c5cff;
  --blue: #3fa9ff;
  --mint: #2ee6a6;
  --glow: #7c5cff;
  --brand-grad: linear-gradient(120deg, #7c5cff 0%, #3fa9ff 50%, #2ee6a6 100%);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mx: 50vw;
  --my: 30vh;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;
}

/* Registered so the ambient glow animates smoothly between product colours */
@property --glow { syntax: '<color>'; inherits: true; initial-value: #7c5cff; }
:root { transition: --glow 1.2s ease; }

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.round { border-radius: 24%; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

::selection { background: rgba(124, 92, 255, 0.45); }

/* ── Ambient layers ───────────────────────────────────── */

.aurora {
  position: fixed;
  inset: -20vmax;
  z-index: -3;
  filter: blur(90px) saturate(140%);
  opacity: 0.55;
  pointer-events: none;
}

.aurora span {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: drift 28s var(--ease) infinite alternate;
}

.aurora span:nth-child(1) { background: radial-gradient(circle, var(--glow) 0%, transparent 62%); top: 0; left: 5%; transition: background 1.2s; }
.aurora span:nth-child(2) { background: radial-gradient(circle, #3fa9ff 0%, transparent 60%); top: 30%; right: 0; animation-duration: 34s; animation-delay: -8s; opacity: 0.6; }
.aurora span:nth-child(3) { background: radial-gradient(circle, #2ee6a6 0%, transparent 60%); bottom: 0; left: 25%; animation-duration: 40s; animation-delay: -16s; opacity: 0.35; }
.aurora span:nth-child(4) { background: radial-gradient(circle, #ec4899 0%, transparent 60%); top: 50%; left: -10%; animation-duration: 46s; animation-delay: -4s; opacity: 0.3; }

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(8vmax, -6vmax) scale(1.15); }
  100% { transform: translate(-6vmax, 8vmax) scale(0.9); }
}

.aurora::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, var(--bg) 75%);
}

.spotlight {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(600px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.06), transparent 60%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 60;
  background: var(--brand-grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ── Nav ──────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 10px 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}

.nav.scrolled {
  background: rgba(13, 13, 22, 0.65);
  border-color: var(--border);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.03em; }
.brand-mark { width: 30px; height: 30px; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }

/* Apps dropdown (desktop; .nav-links is hidden on phones) */

.dd { position: relative; }

.nav-links .dd-trigger { display: inline-flex; align-items: center; gap: 6px; }
.dd-trigger svg { width: 12px; height: 12px; transition: transform 0.3s var(--ease); }
.dd:hover .dd-trigger, .dd:focus-within .dd-trigger { color: var(--text); background: var(--surface-2); }
.dd:hover .dd-trigger svg, .dd:focus-within .dd-trigger svg { transform: rotate(180deg); }

.dd-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 640px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(16, 16, 26, 0.92);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 60px -20px rgba(124, 92, 255, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px) scale(0.97);
  transform-origin: 50% 0;
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease), visibility 0s 0.35s;
}

/* Invisible bridge so the panel stays open while the pointer crosses the gap */
.dd-panel::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 16px; }

.dd:hover .dd-panel, .dd:focus-within .dd-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease), visibility 0s;
}

/* Same specificity as the open rule above, so it must come after it */
.dd.closing .dd-panel { opacity: 0; visibility: hidden; pointer-events: none; }

.dd-title { padding: 4px 10px 10px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--dim); }

.dd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.dd-grid .dd-item:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
.dd-item em {
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  font: 600 9.5px var(--mono);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  vertical-align: 1px;
  color: #07070c;
  background: var(--mint);
}

.nav-links .dd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  color: var(--text);
  transition: background 0.2s;
}
.nav-links .dd-item:hover, .nav-links .dd-item:focus-visible { background: rgba(255, 255, 255, 0.07); }
.dd-item img, .dd-item svg { width: 38px; height: 38px; object-fit: contain; flex: none; transition: transform 0.3s var(--ease); }
.dd-item:hover img, .dd-item:hover svg { transform: scale(1.1) rotate(-4deg); }
.dd-item b { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; }
.dd-item small { display: block; white-space: nowrap; font-size: 12px; color: var(--dim); }

.nav-links .dd-all {
  display: block;
  margin-top: 8px;
  padding: 10px;
  border-top: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
  font-size: 13px;
  text-align: center;
}

/* ── Buttons ──────────────────────────────────────────── */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, background 0.3s, border-color 0.3s;
  will-change: transform;
}

.btn svg { width: 18px; height: 18px; }
.btn--small { padding: 9px 18px; font-size: 14px; }

.btn--primary {
  color: #07070c;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4), 0 10px 40px -10px rgba(124, 92, 255, 0.8);
}
.btn--primary:hover { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08), 0 16px 50px -10px rgba(124, 92, 255, 1); }

.btn--ghost {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, 0.28); }

.btn--accent {
  color: #07070c;
  background: linear-gradient(120deg, var(--c1), var(--c2));
  box-shadow: 0 12px 40px -12px var(--c1);
}
.btn--accent:hover { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c1) 20%, transparent), 0 18px 50px -10px var(--c1); }

.btn--py {
  margin-top: 28px;
  color: #07070c;
  background: linear-gradient(120deg, #ffd43b, #6fa8dc);
  box-shadow: 0 12px 40px -12px #3776ab;
}

.icon-link {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: var(--surface);
  transition: background 0.3s, transform 0.35s var(--ease);
}
.icon-link:hover { background: var(--surface-2); }
.icon-link svg { width: 20px; height: 20px; }

/* ── Hero ─────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  max-width: var(--max);
  margin: 0 auto;
  padding: 130px var(--gutter) 60px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  font-size: 13px;
  color: var(--muted);
  transition: border-color 0.3s, color 0.3s;
}
.pill:hover { color: var(--text); border-color: rgba(236, 72, 153, 0.5); }
.pill-arrow { transition: transform 0.3s var(--ease); }
.pill:hover .pill-arrow { transform: translateX(4px); }

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(46, 230, 166, 0.7);
  animation: ping 2s infinite;
}

@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(46, 230, 166, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(46, 230, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 230, 166, 0); }
}

.hero-title {
  margin-top: 28px;
  font-size: clamp(46px, 7.4vw, 104px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }

.hero-title .word {
  display: inline-block;
  transform: translateY(110%) rotate(6deg);
  opacity: 0;
  transition: transform 1.1s var(--ease), opacity 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms + 150ms);
}

.loaded .hero-title .word { transform: none; opacity: 1; }

.gradient-text {
  background: linear-gradient(100deg, #7c5cff, #3fa9ff, #2ee6a6, #ec4899, #7c5cff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}

@keyframes shimmer { to { background-position: 300% 0; } }

.hero-sub {
  margin-top: 28px;
  max-width: 540px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
  line-height: 1.55;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-rotator {
  margin-top: 14px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
}

.rotator {
  display: inline-block;
  font-weight: 700;
  color: var(--text);
  transition: opacity 0.35s, transform 0.35s var(--ease), filter 0.35s;
}
.rotator.out { opacity: 0; transform: translateY(-10px); filter: blur(6px); }

.hero-ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 36px;
}
.hero-stats dt { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.hero-stats dd { margin-top: 6px; font-size: 13px; color: var(--dim); }

/* Orbit */

.hero-visual { position: relative; display: grid; place-items: center; perspective: 1200px; }

.orbit {
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease);
}

.orbit-core {
  position: absolute;
  inset: 37%;
  border-radius: 30%;
  filter: drop-shadow(0 0 60px rgba(124, 92, 255, 0.9)) drop-shadow(0 0 120px rgba(63, 169, 255, 0.5));
  animation: breathe 5s ease-in-out infinite;
}
.orbit-core svg { width: 100%; height: 100%; }

@keyframes breathe { 50% { transform: scale(1.07); } }

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: spin var(--dur) linear infinite;
}
.ring::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(124, 92, 255, 0.7), transparent 85%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
}

.ring--1 { inset: 22%; --dur: 22s; }
.ring--2 { inset: 8%; --dur: 38s; animation-direction: reverse; }
.ring--3 { inset: -4%; --dur: 60s; border-style: dashed; border-color: rgba(255, 255, 255, 0.06); }
.ring--3::before { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

.node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--a)) translateX(var(--r, 0));
}

.ring--1 .node { --r: calc(min(520px, 38vw) * 0.28); }
.ring--2 .node { --r: calc(min(520px, 38vw) * 0.42); }
.ring--3 .node { --r: calc(min(520px, 38vw) * 0.54); }

/* `translate` is applied outside `rotate`, so the counter-spin pivots on the
   icon's own centre and the centre stays pinned to the orbit point. */
.node > * {
  position: absolute;
  translate: -50% -50%;
  transform: rotate(calc(-1 * var(--a)));
}

.node img {
  width: 64px;
  height: 64px;
  max-width: none; /* the node itself is 0×0 */
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6));
  animation: counter-spin var(--dur) linear infinite;
}
.ring--2 .node img { animation-direction: reverse; }
.node img.round { border-radius: 24%; }

.node--chip span {
  padding: 6px 12px;
  border-radius: 999px;
  font: 500 12px var(--mono);
  color: var(--muted);
  background: rgba(13, 13, 22, 0.8);
  border: 1px solid var(--border-2);
  white-space: nowrap;
  animation: counter-spin var(--dur) linear infinite;
}

/* Counter-rotation keeps icons upright while the ring spins. Applied on top of
   the static -a rotation via the individual `rotate` property. */
@keyframes counter-spin { from { rotate: 0deg; } to { rotate: -360deg; } }

/* ── Marquee ──────────────────────────────────────────── */

.marquee {
  position: relative;
  overflow: hidden;
  padding: 26px 0;
  border-block: 1px solid var(--border);
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 56px;
  animation: marquee 40s linear infinite;
}
.marquee-track span {
  font-size: 18px;
  font-weight: 600;
  color: var(--dim);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.marquee-track span::before { content: '✦'; margin-right: 56px; color: rgba(124, 92, 255, 0.6); font-size: 12px; vertical-align: middle; }
.marquee-track--slow { animation-duration: 55s; }
.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee { to { transform: translateX(calc(-50% - 28px)); } }

.marquee--logos { border: 0; margin-top: 18px; }
.marquee--logos span { font-size: clamp(22px, 3vw, 34px); font-weight: 800; letter-spacing: -0.04em; color: rgba(255, 255, 255, 0.22); }
.marquee--logos span::before { color: rgba(255, 255, 255, 0.12); }

/* ── Sections ─────────────────────────────────────────── */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(90px, 12vw, 160px) var(--gutter) 0;
}

.section-head { max-width: 760px; margin-bottom: 56px; }

.eyebrow {
  display: inline-block;
  font: 500 13px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow--py { background: linear-gradient(90deg, #ffd43b, #6fa8dc); -webkit-background-clip: text; background-clip: text; }

.section-title {
  margin-top: 14px;
  font-size: clamp(36px, 5.2vw, 68px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.muted { color: var(--dim); }

/* ── Bento ────────────────────────────────────────────── */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(250px, auto);
  gap: 16px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c1) 22%, transparent), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, color-mix(in srgb, var(--c2) 14%, transparent), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--border);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s;
  isolation: isolate;
}

.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--c1), transparent 40%, transparent 60%, var(--c2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}

.tile:hover { box-shadow: 0 30px 80px -30px var(--c1); }
.tile:hover::before { opacity: 1; }

.tile-glare {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.12), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.tile:hover .tile-glare { opacity: 1; }

.tile-icon {
  width: 68px;
  height: 68px;
  object-fit: contain;
  transform: translateZ(40px);
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.5));
  transition: transform 0.5s var(--ease);
}
.tile:hover .tile-icon { transform: translateZ(60px) scale(1.08) rotate(-4deg); }
.tile-icon--py svg { width: 100%; height: 100%; }

.tile-body { transform: translateZ(25px); }
.tile h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.035em; }
.tile p { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 36ch; }

.tile-chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.tile-chips span {
  padding: 4px 10px;
  border-radius: 999px;
  font: 500 12px var(--mono);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.tile-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  font: 500 12px var(--mono);
  color: var(--dim);
  transform: translateZ(15px);
}
.tile-meta .free { color: var(--mint); }

.tile-new {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
  padding: 5px 11px;
  border-radius: 999px;
  font: 700 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #07070c;
  background: linear-gradient(120deg, var(--c1), var(--c2));
  box-shadow: 0 0 24px -4px var(--c1);
  animation: breathe 3s ease-in-out infinite;
}

.tile--quad { grid-column: span 3; }
.tile--irar { grid-column: span 4; grid-row: span 1; }
.tile--igit { grid-column: span 2; }
.tile--itunes { grid-column: span 2; }
.tile--ispecter { grid-column: span 3; }
.tile--iconverter { grid-column: span 3; }
.tile--pets { grid-column: span 2; grid-row: span 2; }
.tile--python { grid-column: span 6; }

.tile--irar .tile-icon, .tile--pets .tile-icon { width: 96px; height: 96px; }
.tile--irar h3, .tile--pets h3 { font-size: 34px; }

/* ── Product spotlights ───────────────────────────────── */

.spot {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(100px, 13vw, 170px) var(--gutter) 0;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.spot--flip .spot-copy { order: 2; }

.spot-index { font: 500 13px var(--mono); color: var(--dim); letter-spacing: 0.1em; }

.spot-title { margin-top: 18px; display: flex; align-items: center; gap: 18px; }
.spot-title img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 10px 30px color-mix(in srgb, var(--c1) 60%, transparent)); }
.spot-title h2 { font-size: clamp(34px, 4vw, 48px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.spot-title p { margin-top: 6px; font: 500 13px var(--mono); color: var(--muted); }

.spot-lead {
  margin-top: 30px;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.accent-text {
  background: linear-gradient(100deg, var(--c1), var(--c2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.spot-desc { margin-top: 18px; font-size: 17px; color: var(--muted); max-width: 540px; }

.features { margin-top: 26px; list-style: none; display: grid; gap: 12px; }
.features li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  color: var(--muted);
}
.features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.7 6.2-4.2 4.3a.8.8 0 0 1-1.1 0L4.3 8.4a.8.8 0 0 1 1.1-1.1L7 8.8l3.6-3.7a.8.8 0 0 1 1.1 1.1z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.7 6.2-4.2 4.3a.8.8 0 0 1-1.1 0L4.3 8.4a.8.8 0 0 1 1.1-1.1L7 8.8l3.6-3.7a.8.8 0 0 1 1.1 1.1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.features b { color: var(--text); font-weight: 600; }

kbd {
  padding: 1px 7px;
  border-radius: 6px;
  font: 500 12px var(--mono);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-bottom-width: 2px;
}

.stats {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
}
.stats > div { padding: 18px 20px; background: var(--bg-2); }
.stats b {
  display: block;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, #fff 30%, var(--c1, #fff));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats span { font-size: 12.5px; color: var(--dim); }

.spot-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.spot-copy, .spot-visual { min-width: 0; } /* let grid columns shrink below their content */
.spot-visual { position: relative; }
.spot-visual::before {
  content: '';
  position: absolute;
  inset: 10% 5%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c1) 45%, transparent), color-mix(in srgb, var(--c2) 20%, transparent) 45%, transparent 70%);
  filter: blur(50px);
  animation: breathe 7s ease-in-out infinite;
}

/* Window chrome */

.window {
  border-radius: 18px;
  background: rgba(13, 13, 22, 0.88);
  border: 1px solid var(--border-2);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}
.window-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-left: 10px; font: 500 12px var(--mono); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* iRar visual */

.irar-visual {
  position: relative;
  aspect-ratio: 1 / 0.9;
  display: grid;
  place-items: center;
}

.irar-icon {
  position: absolute;
  width: 46%;
  filter: drop-shadow(0 30px 60px rgba(255, 180, 0, 0.35));
  animation: float 6s ease-in-out infinite;
}

@keyframes float { 50% { transform: translateY(-14px) rotate(-2deg); } }

.formats { position: absolute; inset: 0; }
.formats span {
  position: absolute;
  left: calc(50% + var(--x));
  top: calc(50% + var(--y));
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  padding: 8px 14px;
  border-radius: 12px;
  font: 700 13px var(--mono);
  color: #1b1200;
  background: linear-gradient(135deg, #ffe066, #ffc93c);
  box-shadow: 0 10px 30px -10px rgba(255, 201, 60, 0.8);
  transition: transform 0.7s var(--ease), opacity 0.7s var(--ease);
  transition-delay: var(--d);
}
.formats span:nth-child(even) { color: var(--text); background: rgba(255, 201, 60, 0.12); border: 1px solid rgba(255, 201, 60, 0.35); box-shadow: none; }
.in .formats span { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.formats span.pulse { animation: pop 0.9s var(--ease); }

@keyframes pop { 40% { transform: translate(-50%, -50%) scale(1.25); } }

/* iGit terminal */

.term, .code {
  padding: 22px 22px 26px;
  min-height: 380px;
  font: 400 13.5px/1.75 var(--mono);
  color: #c9c9d6;
  white-space: pre-wrap;
  overflow: hidden;
}
.term .p { color: var(--mint); }
.term .h { color: #fff; font-weight: 700; }
.term .a { color: #9fd2ff; }
.term .v { color: #b39dff; }
.term .g { color: #8ff0c9; }
.term .r { color: #ff8a8a; }
.term .d { color: var(--dim); }
.term .sel { background: rgba(63, 169, 255, 0.18); border-radius: 4px; }
/* iTunes: recreación de la pantalla real (igual que /itunes/) */
.window--itunes { background: #14161C; }
.it-tui { --cw: 6px; display: block; width: max-content; margin: 0 auto; padding: 8px 0 10px; font-family: var(--mono); font-weight: 500; font-size: calc(var(--cw) / .6); line-height: 1.2; white-space: pre; color: #C6CAD3; user-select: none; font-variant-ligatures: none; }
.it-tui .r { display: block; height: 1.2em; }
.it-tui .r span { display: inline-block; height: 1.2em; vertical-align: top; overflow: hidden; }
.it-tui b { font-weight: 800; }
/* iGit: recreación de la pantalla real (igual que /igit/) */
.window--term { position: relative; background: #0b0b13; }
.tui { --fs: 12px; --tl: rgba(255, 255, 255, 0.09); --tl2: rgba(255, 255, 255, 0.16); position: relative; font-family: var(--mono); font-size: var(--fs); line-height: 1.55; color: #d6d4e6; white-space: pre; user-select: none; overflow: hidden; }
.tui .tb { display: grid; grid-template-columns: 30ch 26ch 1fr; border-bottom: 1px solid var(--tl); }
.tui .seg { padding: .35em 1ch; border-right: 1px solid var(--tl); transition: background .3s; overflow: hidden; }
.tui .seg:last-child { border-right: 0; }
.tui .seg small { display: block; font-size: .8em; color: var(--dim); }
.tui .seg.busy { background: rgba(63, 169, 255, .08); }
.tui .spin { display: inline-block; color: var(--blue); }
.tui .tabs { display: flex; gap: 2ch; padding: .25em 1ch; border-bottom: 1px solid var(--tl); color: var(--dim); }
.tui .tabs .on { color: var(--text); box-shadow: inset 0 -2px 0 var(--blue); }
.tui .main { display: grid; grid-template-columns: 30ch 1fr; height: 25.5em; }
.tui .left { border-right: 1px solid var(--tl); display: flex; flex-direction: column; }
.tui .row { padding: 0 1ch; overflow: hidden; text-overflow: ellipsis; height: 1.55em; transition: background .25s; }
.tui .row.sel { background: rgba(63, 169, 255, .18); }
.tui .row.sel.focus { background: rgba(63, 169, 255, .3); }
.tui .hdr { color: var(--dim); border-bottom: 1px solid var(--tl); }
.tui .files { flex: 1; }
.tui .file { display: flex; justify-content: space-between; }
.tui .file .k { margin-left: 1ch; }
.tui .commit { border-top: 1px solid var(--tl); padding: .4em 1ch .5em; }
.tui .summary { border: 1px solid var(--tl2); border-radius: 4px; padding: 0 .8ch; height: 1.7em; display: flex; align-items: center; color: var(--dim); transition: border-color .3s; }
.tui .summary.typing { border-color: var(--blue); color: var(--text); }
.tui .tcaret { animation: blink 1s steps(1) infinite; color: var(--blue); }
.tui .desc { border: 1px solid var(--tl); border-radius: 4px; padding: 0 .8ch; margin-top: .35em; height: 3.2em; color: var(--dim); }
.tui .commit-btn { margin-top: .45em; text-align: center; padding: .15em 0; border-radius: 4px; background: rgba(63, 169, 255, .2); color: #9fd2ff; transition: background .3s, transform .2s; }
.tui .commit-btn.ready { background: var(--blue); color: #04121f; font-weight: 700; }
.tui .commit-btn.press { transform: scale(.96); }
.tui .right { display: flex; flex-direction: column; min-width: 0; }
.tui .diffhead { display: flex; justify-content: space-between; padding: 0 1ch; border-bottom: 1px solid var(--tl); height: 1.6em; }
.tui .diffhead .st { color: var(--dim); }
.tui .diff { padding-top: .2em; }
.tui .dl { padding: 0 1ch; height: 1.55em; overflow: hidden; transition: background .3s, opacity .3s; }
.tui .dl .n { color: var(--dim); display: inline-block; width: 6ch; }
.tui .dl.add { background: rgba(46, 230, 166, .09); }
.tui .dl.del { background: rgba(255, 93, 108, .1); }
.tui .dl.add .t { color: #8ff0c9; }
.tui .dl.del .t { color: #ff9aa4; }
.tui .dl.hunk { color: #b39dff; }
.tui .dl.off { opacity: .45; background: transparent; }
.tui .dl.cursor { box-shadow: inset 2px 0 0 #ffb547; }
.tui .kw { color: #ff7ab6; }
.tui .str { color: #ffd479; }
.tui .fn { color: #7cc4ff; }
.tui .c-add, .tui .c-new { color: var(--mint); }
.tui .c-mod { color: #ffb547; }
.tui .c-del { color: #ff5d6c; }
.tui .hints { display: flex; justify-content: space-between; gap: 2ch; padding: .2em 1ch; border-top: 1px solid var(--tl); background: rgba(255, 255, 255, .02); color: var(--dim); }
.tui .hints b { color: #9fd2ff; font-weight: 500; }
.tui .hints > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tui .hints > span:last-child { flex: none; }
.tui .ttoast { position: absolute; left: 50%; bottom: 3.3em; transform: translate(-50%, 1em); opacity: 0; padding: .35em 1.4ch; border-radius: 8px; background: #123826; color: #8ff0c9; border: 1px solid rgba(46, 230, 166, .35); transition: opacity .35s, transform .35s var(--ease); }
.tui .ttoast.on { opacity: 1; transform: translate(-50%, 0); }
.keycast { position: absolute; right: 14px; bottom: 44px; display: flex; gap: 6px; pointer-events: none; }
.keycast span { font: 400 13px var(--mono); padding: 6px 11px; border-radius: 9px; background: rgba(20, 20, 32, .85); border: 1px solid rgba(255, 255, 255, .16); border-bottom-width: 3px; color: var(--text); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); backdrop-filter: blur(8px); animation: keypop 1.4s var(--ease) forwards; }
.keycast span em { font-style: normal; color: var(--dim); font-family: var(--sans, inherit); font-size: 11px; margin-left: 5px; }
@keyframes keypop { 0% { opacity: 0; transform: translateY(10px) scale(.8); } 12% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 680px) { .keycast span em { display: none; } }

.caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -2px; background: var(--mint); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* iSpecter */

.spec-wrap { position: relative; padding: 16px 16px 16px 52px; }
#spectrogram { width: 100%; height: auto; display: block; border-radius: 8px; background: #000004; }
.spec-axis {
  position: absolute;
  left: 12px;
  top: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font: 500 10px var(--mono);
  color: var(--dim);
}
.spec-cutoff {
  position: absolute;
  left: 52px;
  right: 16px;
  top: var(--cut, 30%);
  border-top: 2px dashed #7fe7ff;
  transition: top 1.2s var(--ease), opacity 0.6s;
}
.spec-cutoff span {
  position: absolute;
  right: 8px;
  top: -24px;
  font: 600 11px var(--mono);
  color: #7fe7ff;
}
.spec-cutoff.hide { opacity: 0; }

.spec-verdict {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font: 600 13px var(--mono);
  transition: color 0.5s, border-color 0.5s;
}
.spec-verdict i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.spec-verdict.ok { color: var(--mint); border-color: rgba(46, 230, 166, 0.35); }
.spec-verdict.bad { color: #ff8a5c; border-color: rgba(255, 138, 92, 0.4); }

/* iConverter: same window as the app's own page (/iconverter/) */

.ic-mac {
  width: min(560px, 100%);
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(28, 22, 60, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow: 0 60px 120px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 120px -30px rgba(217, 70, 239, 0.5);
}
.ic-bar { display: flex; gap: 8px; padding: 14px 16px; }
.ic-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.ic-bar i:nth-child(2) { background: #febc2e; }
.ic-bar i:nth-child(3) { background: #28c840; }
.ic-body { padding: 6px 20px 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.ic-head { display: flex; gap: 14px; align-items: center; margin-bottom: 4px; }
.ic-logo { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, #ec4899, #fb923c); box-shadow: 0 6px 16px -4px rgba(236, 72, 153, 0.6); }
.ic-logo svg { width: 24px; height: 24px; }
.ic-head b { display: block; font-size: 20px; letter-spacing: -0.02em; }
.ic-head small { color: #b9b2d9; font-size: 13px; }
.ic-card { display: flex; align-items: center; gap: 12px; padding: 13px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); }
.ic-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(236, 72, 153, 0.15); color: #ec4899; }
.ic-ico svg { width: 16px; height: 16px; }
.ic-txt { flex: 1; min-width: 0; }
.ic-txt b { font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ic-txt small { display: block; color: #7d76a3; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-badge { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(236, 72, 153, 0.16); color: #f472b6; }
.ic-badge--b { background: rgba(79, 140, 255, 0.16); color: #7aa7ff; }
.ic-btn { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.1); white-space: nowrap; }
.ic-seg { display: flex; padding: 2px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); font-size: 12px; font-weight: 600; }
.ic-seg span { padding: 4px 10px; border-radius: 6px; color: #b9b2d9; transition: 0.3s; }
.ic-seg span.on { background: rgba(255, 255, 255, 0.18); color: #fff; }
.ic-prog { padding: 13px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); }
.ic-prog-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 10px; }
.ic-prog-top span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-prog-top span:last-child { color: #b9b2d9; font-variant-numeric: tabular-nums; flex: none; }
.ic-track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.ic-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ec4899, #f472b6); border-radius: inherit; transition: width 0.35s ease; box-shadow: 0 0 12px #ec4899; }
.ic-go { height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14px; background: linear-gradient(180deg, #f0529f, #db2777); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); transition: transform 0.14s; }
.ic-log {
  height: 140px;
  overflow: hidden;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  font: 11.5px/1.7 var(--mono);
  color: #b9b2d9;
  -webkit-mask-image: linear-gradient(transparent, #000 30%);
          mask-image: linear-gradient(transparent, #000 30%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.ic-log div { animation: ic-log-in 0.4s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes ic-log-in { from { opacity: 0; transform: translateX(-10px); } }
.ic-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 0.8s linear infinite; }

/* Super Pets */

.pets-visual { position: relative; display: grid; place-items: center; padding: 30px 0; }

.phone {
  position: relative;
  width: min(290px, 70%);
  aspect-ratio: 1206 / 2622;
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(145deg, #2a2a35, #0b0b10);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.12) inset, 0 60px 120px -40px rgba(106, 76, 255, 0.8), 0 30px 60px -30px #000;
  transform: rotate(-4deg);
  animation: float 7s ease-in-out infinite;
}
.phone-screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: #5b48a6; }
.phone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.9s, transform 1.6s var(--ease);
}
.phone-screen img.on { opacity: 1; transform: none; }
.phone-island { position: absolute; top: 20px; left: 50%; width: 30%; height: 24px; transform: translateX(-50%); border-radius: 20px; background: #000; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(20, 18, 34, 0.75);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px -20px #000;
  font-size: 13px;
  animation: float 6s ease-in-out infinite;
}
.float-card > span { font-size: 22px; }
.float-card b { display: block; font-weight: 600; }
.float-card small { color: var(--dim); font-size: 12px; }
.fc-1 { top: 12%; left: 0; animation-delay: -1s; }
.fc-2 { top: 46%; right: 0; animation-delay: -3s; }
.fc-3 { bottom: 10%; left: 6%; animation-delay: -5s; }

/* ── Nuevas: iPlist · iJson · iCSV · iXML ─────────────── */

.tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(14px);
}

.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  font: 600 15px var(--font);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: color 0.3s, background 0.3s;
}
.tab img { width: 32px; height: 32px; object-fit: contain; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); background: rgba(255, 255, 255, 0.08); }

.tab-progress {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.tab.active .tab-progress { animation: tab-progress var(--tab-time, 9s) linear forwards; }
.tabs.paused .tab-progress { animation: none; transform: scaleX(1); opacity: 0.5; }

@keyframes tab-progress { to { transform: scaleX(1); } }

.spot--panel { padding: 56px 0 0; max-width: none; }
.spot--panel[hidden] { display: none; }
.spot--panel.active .spot-copy > *, .spot--panel.active .spot-visual {
  animation: panel-in 0.8s var(--ease) both;
}
.spot--panel.active .spot-copy > :nth-child(2) { animation-delay: 60ms; }
.spot--panel.active .spot-copy > :nth-child(3) { animation-delay: 120ms; }
.spot--panel.active .spot-copy > :nth-child(4) { animation-delay: 180ms; }
.spot--panel.active .spot-copy > :nth-child(5) { animation-delay: 240ms; }
.spot--panel.active .spot-copy > :nth-child(6) { animation-delay: 300ms; }
.spot--panel.active .spot-visual { animation-delay: 120ms; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(24px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

.spot-desc code, .features code {
  padding: 1px 6px;
  border-radius: 6px;
  font: 500 13px var(--mono);
  color: var(--text);
  background: var(--surface-2);
}

/* Shared editor chrome */

.window-bar em { font-style: normal; color: var(--c2); }

.data-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font: 500 12px var(--mono);
  color: var(--dim);
}
.data-toolbar .search { flex: 1; padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); white-space: nowrap; overflow: hidden; }
.data-toolbar .tag { padding: 4px 9px; border-radius: 8px; border: 1px solid var(--border); white-space: nowrap; }
.data-toolbar .speed { color: var(--c2); font-weight: 700; white-space: nowrap; }
.data-toolbar .valid { margin-left: auto; color: var(--mint); white-space: nowrap; }

.seg { display: inline-flex; padding: 2px; border-radius: 9px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); }
.seg b { padding: 4px 10px; border-radius: 7px; font-weight: 500; white-space: nowrap; transition: background 0.35s, color 0.35s; }
.seg b.on { color: #07070c; background: linear-gradient(120deg, var(--c1), var(--c2)); font-weight: 700; }

.data-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-top: 1px solid var(--border);
  font: 500 11.5px var(--mono);
  color: var(--dim);
}
.data-foot .ok { color: var(--mint); white-space: nowrap; }

/* iPlist */

.plist-head, .plist-rows li {
  display: grid;
  grid-template-columns: 1.35fr 0.7fr 1.2fr;
  gap: 10px;
  align-items: center;
}
.plist-head { padding: 9px 16px; font: 600 11px var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 1px solid var(--border); }
.plist-rows { list-style: none; padding: 6px 8px; min-height: 318px; }
.plist-rows li {
  padding: 6px 8px;
  border-radius: 8px;
  font: 400 12.5px var(--mono);
  color: #d6d6e2;
  transition: background 0.3s;
}
.plist-rows li > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plist-rows li.sel { background: color-mix(in srgb, var(--c2) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c2) 45%, transparent); }
.plist-rows .k { padding-left: calc(var(--lvl, 0) * 16px); }
.plist-rows .k::before { content: var(--tw, ''); display: inline-block; width: 14px; color: var(--dim); }
.plist-rows .t { color: #ff8fa3; }
.plist-rows .v { color: #9ff5dd; }
.plist-rows .v.n { color: var(--dim); }
.plist-rows .bool { display: inline-flex; align-items: center; gap: 8px; }
.plist-rows .bool i { width: 26px; height: 15px; border-radius: 9px; background: var(--c2); position: relative; transition: background 0.3s; }
.plist-rows .bool i::after { content: ''; position: absolute; top: 2px; left: 13px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: left 0.3s var(--ease); }
.plist-rows .bool.off i { background: rgba(255, 255, 255, 0.15); }
.plist-rows .bool.off i::after { left: 2px; }

/* iJson */

.json-views { position: relative; min-height: 360px; }
.json-tree, .json-text {
  position: absolute;
  inset: 0;
  padding: 14px 16px;
  font: 400 12.5px/1.75 var(--mono);
  transition: opacity 0.45s, transform 0.6s var(--ease);
}
.json-tree { list-style: none; }
.json-views:not(.text) .json-text, .json-views.text .json-tree { opacity: 0; transform: translateY(10px); pointer-events: none; }
.json-tree li { display: flex; gap: 8px; padding: 1px 8px; padding-left: calc(8px + var(--lvl, 0) * 18px); border-radius: 6px; white-space: nowrap; transition: background 0.3s; }
.json-tree li.sel { background: color-mix(in srgb, var(--c1) 22%, transparent); }
.json-tree .tw { width: 12px; color: var(--dim); }
.json-tree .key { color: #e2d9ff; }
.json-tree .cnt { color: var(--dim); }
.jv-s { color: #8ff0c9; }
.jv-n { color: #ffb86c; }
.jv-b { color: #7fb4ff; }
.jv-z { color: #ff8fa3; }
.jv-k { color: #d6c6ff; }
.jv-p { color: var(--dim); }
.json-text { color: #c9c9d6; white-space: pre; overflow: hidden; }

/* iCSV */

.csv-grid {
  --cols: 84px 1.15fr 1fr 1.05fr 0.85fr;
  font: 400 12.5px var(--mono);
  min-height: 330px;
  overflow: hidden;
}
.csv-row { display: grid; grid-template-columns: var(--cols); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.csv-row > span { padding: 7px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-right: 1px solid rgba(255, 255, 255, 0.05); }
.csv-row > span:first-child { color: var(--dim); text-align: right; font-size: 11px; background: rgba(255, 255, 255, 0.02); }
.csv-row--head > span { color: #fff; font-weight: 700; background: color-mix(in srgb, var(--c1) 40%, transparent); }
.csv-row--head > span:first-child { background: color-mix(in srgb, var(--c1) 30%, transparent); }
.csv-row .num { text-align: right; color: #ffd59a; }
.csv-row .zip { color: #9ff5dd; }
.csv-row .cell-sel { outline: 2px solid var(--c2); outline-offset: -2px; background: color-mix(in srgb, var(--c2) 18%, transparent); color: #fff; }
.csv-grid.scrolling .csv-row:not(.csv-row--head) { filter: blur(0.6px); }

/* iXML */

.xml-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); min-height: 330px; }
.xml-tree { list-style: none; padding: 10px 8px; border-right: 1px solid var(--border); font: 400 12.5px var(--mono); }
.xml-tree li { display: flex; align-items: center; gap: 7px; padding: 4px 8px; padding-left: calc(8px + var(--lvl, 0) * 14px); border-radius: 7px; white-space: nowrap; overflow: hidden; color: #d6d6e2; transition: background 0.3s; }
.xml-tree li.sel { background: color-mix(in srgb, var(--c1) 22%, transparent); }
.xml-tree li.new { animation: panel-in 0.6s var(--ease) both; }
.xml-tree .ic { flex: none; width: 15px; height: 15px; display: grid; place-items: center; border-radius: 4px; font: 800 9px var(--font); color: #07070c; }
.xml-tree .at { padding: 0 5px; border-radius: 5px; font-size: 10.5px; color: #9ff5dd; background: rgba(159, 245, 221, 0.1); overflow: hidden; text-overflow: ellipsis; }
.xml-code { padding: 12px 0; font: 400 12.5px/1.75 var(--mono); color: #c9c9d6; white-space: pre; overflow: hidden; }
.xml-code > span { display: block; padding: 0 14px 0 0; transition: background 0.3s; }
.xml-code > span.sel { background: color-mix(in srgb, var(--c1) 14%, transparent); }
.xml-code .ln { display: inline-block; width: 34px; padding-right: 10px; text-align: right; color: var(--dim); opacity: 0.6; user-select: none; }
.xv-t { color: #ff8fc0; }
.xv-a { color: #8fd8ff; }
.xv-v { color: #8ff0a8; }
.xv-c { color: var(--dim); font-style: italic; }
.xv-p { color: var(--dim); }
.xv-g { color: var(--dim); opacity: 0.8; }
.xml-code .kc { margin-left: 8px; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text); font-size: 11px; }

/* ── Academia ─────────────────────────────────────────── */

.academy {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  padding: clamp(28px, 5vw, 60px);
  border-radius: 32px;
  border: 1px solid var(--border);
  background:
    radial-gradient(80% 80% at 0% 0%, rgba(55, 118, 171, 0.28), transparent 60%),
    radial-gradient(70% 70% at 100% 100%, rgba(255, 212, 59, 0.12), transparent 60%),
    var(--bg-2);
  overflow: hidden;
  --c1: #ffd43b;
}

.modules { margin-top: 26px; list-style: none; display: grid; gap: 4px; counter-reset: m; }
.modules li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-weight: 500;
  color: var(--muted);
  transition: color 0.3s, padding 0.3s var(--ease);
}
.modules li:hover { color: var(--text); padding-left: 6px; }
.modules span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font: 700 12px var(--mono);
  color: #07070c;
  background: linear-gradient(135deg, #ffd43b, #6fa8dc);
}

.code { min-height: 360px; }
.code .k { color: #ff79c6; }
.code .s { color: #f1fa8c; }
.code .f { color: #8be9fd; }
.code .c { color: var(--dim); font-style: italic; }
.code .o { color: var(--mint); }

/* ── Experience strip ─────────────────────────────────── */

.trusted {
  text-align: center;
  font: 500 13px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--dim);
}

/* ── Final CTA ────────────────────────────────────────── */

.final {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(110px, 14vw, 190px) var(--gutter) clamp(80px, 10vw, 120px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.final-title {
  font-size: clamp(48px, 9vw, 128px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.95;
}
.final .spot-desc { margin-top: 22px; }

.dock {
  margin-top: 56px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 14px 18px;
  height: 104px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px -30px rgba(124, 92, 255, 0.6);
}
.dock a {
  position: relative;
  width: 64px;
  height: 64px;
  --s: 1;
  transform: translateY(calc((var(--s) - 1) * -22px)) scale(var(--s));
  transform-origin: 50% 100%;
  transition: transform 0.18s ease-out;
}
.dock a img, .dock a svg { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5)); }
.dock-py { display: grid; place-items: center; padding: 6px; border-radius: 24%; background: #12121c; }
.dock a::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  transform: translateX(-50%) scale(calc(1 / var(--s)));
  transform-origin: 50% 100%;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(30, 30, 44, 0.95);
  border: 1px solid var(--border-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.dock a:hover::after, .dock a:focus-visible::after { opacity: 1; }

/* ── Footer ───────────────────────────────────────────── */

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px var(--gutter) 48px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  color: var(--dim);
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; color: var(--text); }
.footer-brand .brand-mark { width: 24px; height: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a:hover { color: var(--text); }
.footer > p { flex-basis: 100%; text-align: center; }
.footer-creator { color: var(--dim); text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 3px; transition: color 0.2s; }
.footer-creator:hover { color: var(--text); }

/* ── Reveal ───────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; width: 100%; }
  .ring--1 .node { --r: calc(min(420px, 86vw) * 0.28); }
  .ring--2 .node { --r: calc(min(420px, 86vw) * 0.42); }
  .ring--3 .node { --r: calc(min(420px, 86vw) * 0.54); }
  .node img { width: 50px; height: 50px; }

  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; }
  .tile--quad { grid-column: span 1; }
  .tile--irar, .tile--python { grid-column: span 2; }
  .tile--igit, .tile--itunes, .tile--ispecter, .tile--iconverter { grid-column: span 1; }
  .tile--pets { grid-column: span 2; grid-row: span 1; }

  .spot, .academy { grid-template-columns: 1fr; }
  .spot--flip .spot-copy { order: 0; }
}

@media (max-width: 680px) {
  /* Phones: only the Apps dropdown stays, as a tap-to-open pill */
  .nav { gap: 12px; }
  .nav-links > a { display: none; }
  .nav-links .dd { position: static; }
  .nav-links .dd-trigger { border: 1px solid var(--border-2); color: var(--text); }
  .dd-panel {
    left: 0;
    right: 0;
    width: auto;
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    transform: translateY(-8px) scale(0.97);
  }
  .dd:hover .dd-panel, .dd:focus-within .dd-panel { opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.97); }
  .dd.open .dd-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s var(--ease), transform 0.35s var(--ease), visibility 0s;
  }
  .dd.open .dd-trigger svg { transform: rotate(180deg); }
  .dd-grid { grid-template-columns: repeat(2, 1fr); }
  .dd-grid .dd-item:last-child:nth-child(3n + 1) { grid-column: auto; }
  .dd-grid .dd-item:last-child:nth-child(2n + 1) { grid-column: 1 / -1; }
  .nav-links .dd-item { gap: 10px; padding: 8px; }
  .dd-item img, .dd-item svg { width: 32px; height: 32px; }
  .dd-item small { white-space: normal; }
  .hero-stats { grid-template-columns: repeat(2, auto); gap: 22px 36px; }
  .bento { grid-template-columns: 1fr; }
  .tile--irar, .tile--python, .tile--pets, .tile--igit, .tile--itunes, .tile--ispecter, .tile--iconverter, .tile--quad { grid-column: span 1; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .xml-split { grid-template-columns: minmax(0, 1fr); }
  .xml-tree { display: none; }
  .stats > div { padding: 14px 12px; }
  .term, .code { font-size: 11.5px; min-height: 320px; padding: 16px; }
  .dock { gap: 6px; padding: 10px; height: 60px; max-width: 100%; }
  .dock a { width: 32px; height: 32px; }
  .float-card { font-size: 11px; padding: 9px 12px; }
  .float-card > span { font-size: 18px; }
  .ring--3 { display: none; }
  .ic-body { padding: 6px 14px 16px; }
  .ic-card { gap: 10px; padding: 11px; }
  .ic-seg span { padding: 4px 6px; }
  .ic-btn { padding: 6px 10px; }
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1; justify-content: center; padding: 8px 10px; font-size: 14px; }
  .tab img { width: 26px; height: 26px; }
  .data-toolbar .search { display: none; }
  .plist-rows li, .json-tree, .json-text, .csv-grid { font-size: 11px; }
  .csv-grid { --cols: 84px 1.2fr 1fr; }
  .csv-row > span:nth-child(3), .csv-row > span:nth-child(5) { display: none; }

  .hero { padding-top: 104px; gap: 8px; }
  .hero-visual { order: 0; max-width: 320px; }
  .ring--1 .node { --r: calc(min(320px, 80vw) * 0.28); }
  .ring--2 .node { --r: calc(min(320px, 80vw) * 0.42); }
  .node img { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .hero-title .word { opacity: 1; transform: none; }
}
