/* Home page: a scroll through the idea, the apps on their devices, how we build, and contact. Builds on style.css. */

:root {
  --g-gold: linear-gradient(180deg, #E7D96B 0%, #FFD56B 50%, #FFCB61 100%);
  --g-amber: linear-gradient(180deg, #FFBD51 0%, #FFB347 50%, #FFA844 100%);
  --g-pink: linear-gradient(180deg, #FF76A0 0%, #FF6EC7 50%, #EA76D7 100%);
  --g-lavender: linear-gradient(180deg, #C984EF 0%, #B48CFF 50%, #A483FF 100%);
  --g-indigo: linear-gradient(180deg, #8A74FF 0%, #7A6BFF 50%, #6989FF 100%);
  --g-sky: linear-gradient(180deg, #50B8FF 0%, #3FD6FF 50%, #3AD9F0 100%);
  --h-gold: linear-gradient(90deg, #E7D96B 0%, #FFD56B 50%, #FFCB61 100%);
  --h-orange: linear-gradient(90deg, #FF9540 0%, #FF8A3D 50%, #FF8264 100%);
  --h-lavender: linear-gradient(90deg, #C984EF 0%, #B48CFF 50%, #A483FF 100%);
  --h-indigo: linear-gradient(90deg, #8A74FF 0%, #7A6BFF 50%, #6989FF 100%);
  --h-sky: linear-gradient(90deg, #50B8FF 0%, #3FD6FF 50%, #3AD9F0 100%);
  --h-teal: linear-gradient(90deg, #33DDD7 0%, #2EE0C8 50%, #50E1AE 100%);
  --sunset: linear-gradient(180deg, #FFD56B 0%, #FFB347 32%, #FF8A3D 55%, #FF6EC7 80%, #B45EFF 100%);
  --sunset-x: linear-gradient(90deg, #FFB347 0%, #FF8A3D 30%, #FF6EC7 65%, #B48CFF 100%);
  --body: #07060a;
  --bezel: #2a2636;
  --side: clamp(16px, 4vw, 48px);
}

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

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--paper); color: var(--night); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }
.grad-text { color: transparent; -webkit-background-clip: text; background-clip: text; }

main.site {
  max-width: 1200px;
  padding-inline: var(--side);
  padding-block: 0 48px;
  gap: clamp(40px, 5vw, 64px);
}

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--side);
  background: rgba(17, 15, 23, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; font-family: 'Protest Guerrilla', Figtree, sans-serif; font-size: 1.375rem; line-height: 1; }
.nav-brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: clamp(12px, 3vw, 28px); font-size: 0.9375rem; font-weight: 600; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--paper); }

/* Hero */
.hero-x { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; padding-top: clamp(96px, 14vh, 140px); }
.hero-panel { width: min(100%, 860px); padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; gap: 18px; }
.hero-lockup { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); }
.hero-mark { width: clamp(72px, 14vw, 132px); height: clamp(72px, 14vw, 132px); flex-shrink: 0; }
.word-xl { font-size: clamp(3.25rem, 13vw, 8.5rem); line-height: 0.88; }
.sub-xl { font-size: clamp(0.8rem, 1.6vw, 1.05rem); letter-spacing: 0.5em; margin-top: 12px; }
.hero-tag { margin: 6px 0 0; font-size: clamp(1.375rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.01em; }
.hero-lede { margin: 0; max-width: 58ch; font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 14px; font-weight: 700; font-size: 1rem; text-decoration: none; transition: transform 160ms ease, border-color 160ms ease, filter 160ms ease; }
.btn-sun { background: var(--paper); color: var(--night); }
.btn-sun:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid var(--line-strong); color: var(--paper); align-self: flex-start; }
.btn-ghost:hover { border-color: var(--paper); transform: translateY(-1px); }
.scroll-cue { width: 28px; height: 44px; border: 2px solid var(--line-strong); border-radius: 999px; display: flex; justify-content: center; padding-top: 8px; background: rgba(17, 15, 23, 0.4); }
.scroll-cue span { width: 4px; height: 8px; border-radius: 2px; background: var(--paper); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Section heads */
.eyebrow-h { display: table; margin: 0 auto 16px; padding: 7px 16px; border-radius: 999px; font-size: 0.8125rem; letter-spacing: 0.18em; color: var(--paper); text-align: center; background: var(--panel); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line); }

/* The idea */
.idea-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.idea-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(26px, 4vw, 44px); }
.idea-card p { margin: 0; max-width: 46ch; }
.idea-big { font-size: clamp(2.25rem, 5.5vw, 4rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; }
.idea-big .bit { color: transparent; -webkit-background-clip: text; background-clip: text; background-image: var(--g-sky); }
.idea-big .blitz { font-family: 'Protest Guerrilla', Figtree, sans-serif; font-weight: 400; letter-spacing: 0.01em; color: transparent; -webkit-background-clip: text; background-clip: text; background-image: var(--sunset); }

/* App showcases */
.apps-x { display: flex; flex-direction: column; gap: clamp(32px, 5vw, 64px); }
.show { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.show-flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.show-flip .show-text { order: 2; }
.show-text { display: flex; flex-direction: column; gap: 14px; }
.show-text p { margin: 0; max-width: 46ch; }
.show-eyebrow { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.avail { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.avail span { padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; letter-spacing: 0.12em; }
.avail .live { background: var(--paper); color: var(--night); }
.avail .soon { border: 1px dashed var(--line-strong); color: var(--muted); }
.show-name { margin: 0; display: flex; align-items: center; gap: 14px; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.show-name svg { width: 52px; height: 52px; flex-shrink: 0; }
/* Each app's name in its own type: Situated in Antonio caps, draw a bit in Inter lowercase. */
.name-as { font-family: Antonio, 'Arial Narrow', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; font-size: clamp(1.75rem, 3.4vw, 2.4rem); }
.name-dab { font-family: Inter, system-ui, sans-serif; font-weight: 600; letter-spacing: -0.01em; }
.show-text .show-line { font-size: 1.25rem; font-weight: 600; }

/* Stage: a fixed-size device scene, scaled to fit its column by site.js */
.stage { margin: 0; position: relative; width: 100%; height: calc(var(--sh, 740px) * var(--s, 1)); }
.stage-inner { position: absolute; left: 50%; top: 0; width: var(--sw, 640px); height: var(--sh, 740px); transform-origin: top center; transform: translateX(-50%) scale(var(--s, 1)); }

.shift { position: relative; transform: translateY(var(--shift, 0px)); }
.tilt { transform-style: preserve-3d; transition: transform 400ms ease-out; will-change: transform; transform: perspective(1100px) translateZ(calc(var(--lift, 0) * 24px)) rotateX(calc(var(--ny, 0) * -9deg)) rotateY(calc(var(--nx, 0) * 9deg)); }
.tilt-strong { transform: perspective(1100px) translateZ(calc(var(--lift, 0) * 32px)) rotateX(calc(var(--ny, 0) * -12deg)) rotateY(calc(var(--nx, 0) * 12deg)); }
.float { animation: float-a 7s ease-in-out infinite; }
.float-b { animation: float-b 5.5s ease-in-out -2s infinite; }
@keyframes float-a { 50% { transform: translateY(-7px); } }
@keyframes float-b { 50% { transform: translateY(-9px); } }
.hover-shadow { position: absolute; left: 12%; right: 12%; bottom: -26px; height: 28px; border-radius: 50%; background: rgba(0, 0, 0, 0.5); filter: blur(14px); pointer-events: none; translate: calc(var(--nx, 0) * -16px) calc(var(--ny, 0) * -6px); transition: translate 400ms ease-out; }
.glare { position: absolute; inset: 0; pointer-events: none; opacity: 0.1; background: radial-gradient(circle at center, #fff 0%, rgba(255, 255, 255, 0) 55%) no-repeat; background-size: 160% 160%; background-position: calc(50% - var(--nx, 0) * 25%) calc(50% - var(--ny, 0) * 25%); transition: background-position 400ms ease-out; }

/* Situated phone and watch, drawn the way situated.app draws them */
.as-phone-wrap { position: absolute; right: 30px; top: 20px; transform: rotate(-6deg); }
.as-watch-wrap { position: absolute; left: 0; bottom: 50px; }
.phone { position: relative; width: 300px; height: 649px; padding: 10px; border-radius: 44px; background: var(--body); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 2px var(--bezel); }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: var(--night); padding: 44px 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.as-tiny, .as-micro { font-family: Antonio, sans-serif; font-weight: 500; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
.as-micro { font-size: 10px; font-weight: 400; }
.as-now { display: flex; gap: 12px; align-items: center; }
.as-station { display: block; font-family: Antonio, sans-serif; font-weight: 700; font-size: 34px; line-height: 0.95; letter-spacing: 1px; text-transform: uppercase; }
.as-small { font-size: 11px; color: var(--muted); }
.as-tinytext { font-size: 10px; line-height: 1.4; color: var(--muted); }
.as-day { display: flex; align-items: center; gap: 4px; }
.as-day span { height: 8px; border-radius: 6px; opacity: 0.45; }
.as-day span.now { opacity: 1; }
.as-buttons { display: flex; gap: 8px; }
.as-leave, .as-switch { flex-grow: 1; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: Antonio, sans-serif; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.as-leave { background: var(--g-gold); color: var(--night); font-weight: 700; }
.as-switch { border: 2px solid #3A3350; font-weight: 600; }
.as-row { display: flex; gap: 10px; align-items: stretch; padding: 8px 10px 8px 0; border-radius: 14px 10px 10px 14px; overflow: hidden; background: #1B1824; }
.as-row.dim { opacity: 0.55; }
.as-cap { width: 10px; margin: -8px 0; }
.as-rowtext { display: flex; flex-direction: column; justify-content: center; }
.as-rowname { font-family: Antonio, sans-serif; font-weight: 600; font-size: 14px; line-height: 1.3; letter-spacing: 1px; text-transform: uppercase; }
.ring { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; border-style: solid; border-color: transparent; background: linear-gradient(#1B1824, #1B1824) padding-box, var(--ring) border-box; }
.watch { position: relative; width: 320px; height: 320px; border-radius: 50%; background: var(--body); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 10px #15131c, inset 0 0 0 12px var(--bezel); }
.watch-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.watch-screen { position: absolute; inset: 12px; border-radius: 50%; overflow: hidden; pointer-events: none; }
.watch-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.watch-station { font-family: Antonio, sans-serif; font-weight: 700; font-size: 45px; letter-spacing: 2px; text-transform: uppercase; line-height: 1; }
.watch-left { font-size: 18px; color: var(--muted); }

/* Draw A Bit on a wide monitor (no stand), a tablet and a phone, with real screenshots of the app */
.dab-monitor-wrap { position: absolute; left: 0; top: 60px; }
.dab-tablet-wrap { position: absolute; right: 10px; bottom: 0; transform: rotate(4deg); }
.dab-phone-wrap { position: absolute; left: 60px; bottom: 0; }
.screen { position: relative; overflow: hidden; background: #1a1a19; }
.screen img { display: block; width: 100%; height: auto; }
.monitor { width: 760px; padding: 10px 10px 14px; border-radius: 16px; background: var(--body); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 2px var(--bezel); }
.monitor .screen { border-radius: 6px; }
.tablet { width: 330px; padding: 13px; border-radius: 28px; background: var(--body); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 2px var(--bezel); }
.tablet .screen { border-radius: 16px; }
.dphone { width: 150px; padding: 7px; border-radius: 26px; background: var(--body); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 0 0 2px var(--bezel); }
.dphone .screen { border-radius: 20px; }

/* Bootstrap, the plugin */
.tool { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(26px, 4vw, 44px); }
.tool-text { display: flex; flex-direction: column; gap: 14px; container-type: inline-size; }
.tool-text p { margin: 0; max-width: 46ch; }
.tool-name { margin: 0; font-family: 'Protest Guerrilla', Figtree, sans-serif; font-weight: 400; font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 0.95; letter-spacing: 0.01em; text-transform: none; color: var(--paper); padding-bottom: 4px; white-space: nowrap; }
@supports (font-size: 1cqi) { .tool-name { font-size: clamp(1.75rem, 7.4cqi, 3.5rem); } }
.tool-name img { width: 0.95em; height: 0.95em; border-radius: 22%; vertical-align: -0.12em; margin-right: 0.22em; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); }
.tool-name .grad { color: transparent; -webkit-background-clip: text; background-clip: text; background-image: var(--sunset); padding-right: 0.06em; }
.tool-rules { display: flex; flex-wrap: wrap; gap: 10px; align-content: center; }
.tool-rules span { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 0.9375rem; font-weight: 600; text-decoration: line-through; text-decoration-color: #FF6EC7; text-decoration-thickness: 2px; }
.tool-rules span::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }

/* How we build */
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.how-card { display: flex; flex-direction: column; gap: 10px; }
.how-card h3 { margin: 4px 0 0; font-size: 1.375rem; letter-spacing: -0.01em; }
.how-card p { margin: 0; color: var(--muted); }
.how-chip { width: 34px; height: 34px; border-radius: 10px; }

/* Contact */
.contact { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: clamp(36px, 6vw, 72px) 24px; }
.contact .eyebrow-h { margin: 0; color: var(--muted); background: none; border: 0; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.contact p { margin: 0; max-width: none; }
.contact-big { font-family: 'Protest Guerrilla', Figtree, sans-serif; font-size: clamp(3rem, 9vw, 6rem); line-height: 1; color: transparent; -webkit-background-clip: text; background-clip: text; background-image: var(--sunset); padding-bottom: 6px; }
.contact-mail { font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 700; }
.site-foot { max-width: 760px; width: 100%; margin: 0 auto; }

/* Reveal on scroll. Without JavaScript everything is simply visible. */
html.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 700ms ease var(--d, 0ms), transform 900ms cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
html.js [data-reveal].in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .show, .show-flip, .tool { grid-template-columns: minmax(0, 1fr); }
  .show-flip .show-text { order: 0; }
}
@media (max-width: 520px) {
  .nav-links a[href="#idea"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float, .float-b { animation: none; }
  .tilt, .hover-shadow, .glare, .btn { transition: none; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
