/* Raipe Software — sitio de la empresa.
   Identidad propia: grafito + verde menta (#2BD9AE). Misma familia tipográfica
   que DeliveryOS (Archivo ancho, IBM Plex), que conserva su naranja. */

:root {
  --night: #0d0f12;
  --night-2: #14171c;
  --night-3: #1c2027;
  --line-d: rgba(255, 255, 255, 0.09);
  --text-d: #f2f5f4;
  --muted-d: #9aa5a2;

  --bg: #f4f6f5;
  --surface: #ffffff;
  --line: #e1e6e4;
  --ink: #101413;
  --muted: #5a6662;

  --mint: #2bd9ae;
  --mint-2: #8ef0d3;
  --mint-strong: #0f9e7b;
  --mint-soft: #ddf8ef;
  --orange: #ff6a2b;

  --r-md: 14px;
  --r-lg: 24px;

  --f-display: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--text-d); font-family: var(--f-body); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-stretch: 112%; line-height: 1.06; letter-spacing: -0.025em; text-wrap: balance; }
svg { display: block; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -999px; top: 8px; padding: 8px 12px; background: #fff; color: var(--ink); border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

.light { background: var(--bg); color: var(--ink); }
.dark { background: var(--night); color: var(--text-d); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-family: var(--f-body); font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn-mint { background: var(--mint); color: #062a20; box-shadow: 0 10px 30px -10px rgba(43, 217, 174, 0.7); }
.btn-mint:hover { box-shadow: 0 16px 40px -12px rgba(43, 217, 174, 0.85); }
.btn-glass { background: rgba(255, 255, 255, 0.06); color: var(--text-d); border-color: var(--line-d); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.12); }
.btn-dark { background: var(--night); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; border-bottom: 1px solid transparent; transition: background-color 0.3s, border-color 0.3s; }
.nav.is-scrolled { background: rgba(13, 15, 18, 0.74); backdrop-filter: saturate(1.5) blur(14px); border-bottom-color: var(--line-d); }
.nav-row { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--f-display); font-stretch: 115%; font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.logo svg { width: 38px; height: 27px; }
.logo em { font-style: normal; font-weight: 500; color: var(--muted-d); margin-left: 4px; font-stretch: 100%; letter-spacing: 0; font-size: 15px; }
.nav-links { display: none; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--muted-d); text-decoration: none; }
.nav-links a:hover { color: #fff; }
.nav .btn { margin-left: auto; }
@media (min-width: 860px) { .nav-links { display: flex; } .nav .btn { margin-left: 0; } }

/* Shared */
.eyebrow { font-family: var(--f-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mint); margin-bottom: 16px; }
.light .eyebrow { color: var(--mint-strong); }
.section { padding: 88px 0; }
@media (min-width: 960px) { .section { padding: 128px 0; } }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; }
.section-lead { margin-top: 18px; font-size: 19px; color: var(--muted); max-width: 60ch; }

.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 136px 0 96px; }
@media (min-width: 960px) { .hero { padding: 172px 0 128px; } }
.hero-glow { position: absolute; width: 1000px; height: 1000px; left: 40%; top: -420px; background: radial-gradient(closest-side, rgba(43, 217, 174, 0.26), rgba(43, 217, 174, 0.05) 55%, transparent 72%); animation: drift 16s ease-in-out infinite alternate; pointer-events: none; }
@keyframes drift { to { transform: translate(-140px, 100px) scale(1.06); } }

.hero-grid { position: relative; display: grid; gap: 64px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }

.pill { display: inline-flex; padding: 7px 14px; border: 1px solid var(--line-d); border-radius: 999px; background: rgba(255, 255, 255, 0.04); font-size: 14px; color: var(--muted-d); margin-bottom: 26px; }
.hero h1 { font-size: clamp(42px, 7.6vw, 86px); font-weight: 850; letter-spacing: -0.035em; }
.grad { background: linear-gradient(100deg, var(--mint-2), var(--mint) 50%, #3bb4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 26px; max-width: 54ch; font-size: clamp(17px, 2vw, 21px); color: var(--muted-d); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Rings */
.rings { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin: 0 auto; }
.ring { position: absolute; top: 18%; width: 64%; aspect-ratio: 1; border-radius: 50%; border: 14px solid; }
.ring-a { left: 4%; border-color: var(--mint); box-shadow: 0 0 80px -10px rgba(43, 217, 174, 0.6), inset 0 0 40px -10px rgba(43, 217, 174, 0.5); animation: sway-a 6s ease-in-out infinite; }
.ring-b { right: 4%; border-color: #fff; mix-blend-mode: screen; opacity: 0.92; animation: sway-b 6s ease-in-out infinite; }
@keyframes sway-a { 50% { transform: translateX(14px); } }
@keyframes sway-b { 50% { transform: translateX(-14px); } }
.rings-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: 54px; color: var(--night); background: var(--mint); width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 8px var(--night); }
.orbit-chip { position: absolute; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-d); background: rgba(28, 32, 39, 0.85); backdrop-filter: blur(8px); font-size: 14px; color: #dbe3e0; animation: bob 5s ease-in-out infinite; }
.c1 { left: 0; top: 6%; } .c2 { right: 2%; top: 10%; animation-delay: -1.2s; } .c3 { left: 4%; bottom: 8%; animation-delay: -2.4s; } .c4 { right: 0; bottom: 4%; animation-delay: -3.6s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* Pillars */
.pillars { display: grid; gap: 18px; }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.pillar:hover { transform: translateY(-4px); box-shadow: 0 28px 56px -28px rgba(16, 20, 19, 0.3); }
.pillar-ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px; border-radius: 16px; background: var(--mint-soft); color: var(--mint-strong); font-size: 24px; }
.pillar h3 { font-size: 23px; font-weight: 800; margin-bottom: 10px; }
.pillar p { color: var(--muted); font-size: 16px; }

/* Product */
.product { position: relative; display: grid; gap: 32px; padding: 36px 28px; border: 1px solid var(--line-d); border-radius: var(--r-lg); background: radial-gradient(circle at 85% 20%, rgba(255, 106, 43, 0.22), transparent 55%), var(--night-2); text-decoration: none; overflow: hidden; transition: transform 0.3s var(--ease), border-color 0.3s; }
.product:hover { transform: translateY(-4px); border-color: rgba(255, 106, 43, 0.45); }
@media (min-width: 960px) { .product { grid-template-columns: 1.1fr 0.9fr; padding: 48px; align-items: center; } }
.product-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 20px; color: #fff; }
.product-logo svg { width: 34px; height: 34px; }
.product h3 { margin-top: 20px; font-size: clamp(28px, 4vw, 44px); font-weight: 850; color: #fff; }
.product p { margin-top: 14px; color: var(--muted-d); max-width: 54ch; }
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.product-tags li { padding: 5px 12px; border-radius: 999px; background: rgba(255, 106, 43, 0.12); color: #ffc4a3; font-size: 14px; }
.product-link { display: inline-flex; gap: 8px; margin-top: 28px; font-weight: 600; color: var(--orange); }
.product:hover .product-link span { transform: translateX(4px); }
.product-link span { transition: transform 0.2s; }

.mini-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px; border: 1px solid var(--line-d); border-radius: 18px; background: var(--night-3); }
.mb-col { display: grid; align-content: start; gap: 8px; min-height: 180px; }
.mb-col b { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-d); font-weight: 600; }
.mb-card { height: 54px; border-radius: 10px; background: #262b33; border-left: 3px solid var(--orange); }
.mb-card.a { animation: slideCard 4s var(--ease) infinite; }
.mb-card.b { border-left-color: #ffb547; }
.mb-card.c { border-left-color: var(--mint); }
@keyframes slideCard { 0%, 20% { transform: none; opacity: 1; } 45% { transform: translateX(110%); opacity: 0; } 46% { transform: translateY(-20px); opacity: 0; } 70%, 100% { transform: none; opacity: 1; } }

.product-next { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 20px 24px; border: 1.5px dashed var(--line-d); border-radius: var(--r-md); color: var(--muted-d); }
.product-next b { color: #fff; }
.next-dot { flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 6px rgba(43, 217, 174, 0.15); }

/* Torkly (in construction) */
.product + .product { margin-top: 18px; }
.product-torkly { background: radial-gradient(circle at 85% 20%, rgba(255, 194, 51, 0.18), transparent 55%), var(--night-2); }
.product-torkly:hover { border-color: rgba(255, 194, 51, 0.45); }
.product-torkly .product-tags li { background: rgba(255, 194, 51, 0.12); color: #ffe3a1; }
.product-torkly .product-link { color: #ffc233; text-decoration: none; }
.product-torkly .product-link:hover span { transform: translateX(4px); }
.product-torkly .product-logo { flex-wrap: wrap; }
.badge-soon { margin-left: 4px; padding: 4px 10px; border-radius: 999px; border: 1px dashed rgba(255, 194, 51, 0.6); font-family: var(--f-mono); font-stretch: 100%; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #ffc233; }

.mini-order { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line-d); border-radius: 18px; background: var(--night-3); }
.mo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mo-head b { font-family: var(--f-mono); font-size: 13px; color: #fff; font-weight: 600; }
.mo-plate { padding: 3px 10px; border-radius: 6px; background: #ffc233; color: #14171c; font-family: var(--f-mono); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; }
.mo-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.mo-steps span { padding: 4px 9px; border-radius: 999px; background: #262b33; color: var(--muted-d); font-size: 12px; }
.mo-steps .done { background: rgba(43, 217, 174, 0.14); color: var(--mint); }
.mo-steps .now { background: rgba(255, 194, 51, 0.16); color: #ffc233; animation: pulseStep 2.4s ease-in-out infinite; }
@keyframes pulseStep { 50% { box-shadow: 0 0 0 5px rgba(255, 194, 51, 0.12); } }
.mo-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #262b33; color: #dbe3e0; font-size: 14px; }
.mo-line i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--muted-d); }
.mo-line:first-of-type i { border-color: var(--mint); background: var(--mint); box-shadow: inset 0 0 0 3px #262b33; }

/* Websites */
.sites { display: grid; gap: 18px; }
@media (min-width: 860px) { .sites { grid-template-columns: repeat(2, 1fr); } }
.site { display: grid; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; text-decoration: none; color: inherit; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.site:hover { transform: translateY(-4px); box-shadow: 0 28px 56px -28px rgba(16, 20, 19, 0.3); }
.site-shot { position: relative; display: grid; align-content: end; gap: 6px; min-height: 190px; padding: 52px 26px 26px; color: #fff; }
.site-shot b { font-family: var(--f-display); font-stretch: 112%; font-weight: 850; font-size: clamp(24px, 3vw, 32px); line-height: 1.05; }
.site-shot em { font-style: normal; opacity: 0.8; font-size: 15px; }
.site-bar { position: absolute; top: 16px; left: 18px; display: flex; gap: 6px; }
.site-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
.s-delivery { background: radial-gradient(circle at 85% 15%, rgba(255, 106, 43, 0.55), transparent 60%), var(--night); }
.s-mcmotos { background: radial-gradient(circle at 85% 15%, rgba(255, 42, 0, 0.5), transparent 60%), linear-gradient(135deg, #0a0a0a, #18191c); }
.site-copy { padding: 24px 26px 28px; }
.site-kind { font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mint-strong); }
.site-copy h3 { margin-top: 8px; font-size: 24px; font-weight: 800; }
.site-copy p:not(.site-kind) { margin-top: 8px; color: var(--muted); font-size: 16px; }
.site-link { display: inline-flex; gap: 8px; margin-top: 18px; font-weight: 600; color: var(--night); }
.site-link span { transition: transform 0.2s; }
.site:hover .site-link span { transform: translateX(4px); }
.sites-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding: 20px 24px; border: 1.5px dashed var(--line); border-radius: var(--r-md); }
.sites-cta p { font-weight: 600; }

/* Values */
.value-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 720px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .value-grid { grid-template-columns: repeat(4, 1fr); } }
.value { padding: 30px 26px; background: var(--surface); }
.value h3 { font-size: 26px; font-weight: 850; margin-bottom: 10px; }
.value h3::before { content: ''; display: block; width: 28px; height: 4px; margin-bottom: 18px; border-radius: 4px; background: var(--mint); }
.value p { color: var(--muted); font-size: 16px; }

/* About */
.about-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1.1fr 0.9fr; gap: 72px; } }
.about h2 { font-size: clamp(40px, 6vw, 72px); font-weight: 900; }
.about-lead { margin-top: 22px; font-size: 19px; color: var(--muted-d); max-width: 56ch; }
.founders { display: grid; gap: 14px; }
.founder { display: flex; align-items: center; gap: 18px; padding: 20px; border: 1px solid var(--line-d); border-radius: var(--r-lg); background: var(--night-2); }
.founder h3 { font-size: 22px; font-weight: 800; color: #fff; }
.founder p { color: var(--muted-d); font-size: 15px; }
.avatar { display: grid; place-items: center; flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; font-family: var(--f-display); font-weight: 800; font-size: 20px; }
.avatar.a { background: var(--mint); color: #062a20; }
.avatar.b { background: #fff; color: var(--night); }
.avatar.c { background: var(--orange); color: #2a0e02; }

/* Contact */
.contact { position: relative; overflow: hidden; padding: 112px 0; background: linear-gradient(135deg, var(--mint-2) 0%, var(--mint) 50%, #22b8a8 100%); color: #062a20; text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.contact h2 { font-size: clamp(34px, 5.6vw, 62px); font-weight: 850; max-width: 18ch; }
.contact p { font-size: 19px; max-width: 52ch; color: #0d4a3a; }
.contact .btn { margin-top: 10px; }
.contact :focus-visible { outline-color: var(--night); }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--line-d); color: var(--muted-d); font-size: 15px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.footer-links a { color: #dbe3e0; text-decoration: none; }
.footer-links a:hover { color: var(--mint); }
.footer-copy { margin-left: auto; }
@media (max-width: 640px) { .footer-copy { margin-left: 0; width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
