/* Bibu App Studio — shared styles */
:root {
  --ground: #09080d;
  --surface: #13111a;
  --raised: #1b1824;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f3f8;
  --muted: #a9a4b8;
  --accent: #3ddc97;          /* brand accent — change here */
  --accent-ink: #06130d;
  --s1: #f5e663;
  --s2: #3ddc97;
  --s3: #2bb8ff;
  --s4: #7c5cff;
  --gutter: clamp(24px, 5vw, 80px);
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Schibsted Grotesk", "Nunito Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 32px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { padding-inline: var(--gutter); max-width: 1600px; margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.accent { color: var(--accent); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--text); color: var(--ground); padding: 10px 16px; border-radius: 999px; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 12px var(--gutter) 0; pointer-events: none; }
.bar {
  pointer-events: auto; position: relative; margin-inline: auto; max-width: 1440px;
  height: 56px; display: flex; align-items: center; gap: 12px;
  padding: 0 8px 0 24px; border-radius: 999px;
  background: rgba(16, 14, 22, 0.92); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: max-width 0.6s var(--ease);
}
.site-header.is-compact .bar { max-width: 660px; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.04em; line-height: 1; }
.logo i { font-style: normal; color: var(--accent); }
.bar nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 32px; font-size: 16px; }
.bar nav a { color: var(--text); opacity: 0.9; transition: opacity 0.2s; }
.bar nav a:hover { opacity: 1; color: var(--accent); }
.bar .cta { margin-left: auto; }
.menu-btn { display: none; margin-left: auto; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.menu-btn span { display: block; width: 16px; height: 1.5px; background: currentColor; margin: 4px auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 28px;
  border-radius: 999px; font-size: 16px; font-weight: 600; border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.2s, border-color 0.2s; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: var(--text); color: var(--ground); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.22); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-accent { background: var(--accent); color: var(--accent-ink); height: 40px; padding: 0 18px; font-size: 15px; }

/* Hero */
.hero { min-height: 100svh; display: flex; flex-direction: column; padding-top: calc(var(--header-h) + 96px); }
.hero-copy { text-align: center; padding-inline: var(--gutter); }
.hero h1 { font-size: clamp(48px, 9.2vw, 148px); margin-top: 28px; letter-spacing: -0.045em; line-height: 0.98; }
.hero .lede { max-width: 30em; margin: 36px auto 0; color: var(--muted); font-size: clamp(17px, 1.4vw, 21px); }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }

/* Marquee */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .track { display: flex; gap: 24px; width: max-content; animation: slide 60s linear infinite; }
.marquee.rev .track { animation-direction: reverse; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.hero .marquee { margin-top: auto; padding-top: 88px; height: calc(88px + clamp(210px, 22vw, 340px)); }
.hero .marquee .phone { width: clamp(150px, 15vw, 230px); }
.hero .marquee .phone:nth-child(even) { margin-top: 28px; }

/* Placeholder phone screen */
.phone {
  --a: #7c5cff; --b: #2bb8ff;
  position: relative; flex: none; aspect-ratio: 9 / 19; border-radius: 12% / 6%;
  background: linear-gradient(160deg, var(--a), var(--b));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.phone::before { content: ""; position: absolute; top: 3.5%; left: 50%; width: 30%; height: 3.2%; transform: translateX(-50%); border-radius: 999px; background: rgba(0, 0, 0, 0.55); }
.phone::after {
  content: ""; position: absolute; inset: 14% 9% 8%;
  background:
    linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.9)) 0 0 / 55% 5% no-repeat,
    linear-gradient(rgba(255,255,255,.45), rgba(255,255,255,.45)) 0 9% / 80% 3% no-repeat,
    linear-gradient(rgba(255,255,255,.18), rgba(255,255,255,.18)) 0 22% / 100% 34% no-repeat,
    linear-gradient(rgba(255,255,255,.18), rgba(255,255,255,.18)) 0 66% / 47% 16% no-repeat,
    linear-gradient(rgba(255,255,255,.18), rgba(255,255,255,.18)) 100% 66% / 47% 16% no-repeat,
    linear-gradient(rgba(255,255,255,.92), rgba(255,255,255,.92)) 50% 100% / 100% 8% no-repeat;
  border-radius: 6%;
}

/* App icon placeholder */
.icon {
  --a: #7c5cff; --b: #2bb8ff;
  flex: none; width: 72px; aspect-ratio: 1; border-radius: 23%;
  background: linear-gradient(145deg, var(--a), var(--b));
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 30px; color: rgba(255, 255, 255, 0.95);
}
.icon.sm { width: 62px; font-size: 24px; }
.icon.lg { width: 96px; font-size: 38px; }

/* colour pairs for placeholders */
.c1 { --a: #7c5cff; --b: #2bb8ff; } .c2 { --a: #ff7a45; --b: #ef4a8b; }
.c3 { --a: #3ddc97; --b: #2bb8ff; } .c4 { --a: #f5e663; --b: #ff7a45; }
.c5 { --a: #ef4a8b; --b: #7c5cff; } .c6 { --a: #2bb8ff; --b: #1d3fd8; }

/* Sections */
.sec { padding-block: clamp(72px, 10vw, 160px) clamp(40px, 5vw, 64px); }
.sec-head h2 { font-size: clamp(40px, 5.4vw, 80px); margin-top: 24px; }
.sec-head p.sub { max-width: 28em; margin-top: 24px; color: var(--muted); font-size: clamp(17px, 1.3vw, 20px); }

/* Featured cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.2vw, 32px); margin-top: clamp(40px, 5vw, 72px); }
.card {
  position: relative; display: flex; flex-direction: column; border-radius: 40px;
  background: linear-gradient(180deg, var(--surface), #0f0d15); border: 1px solid var(--line);
  padding: clamp(28px, 3.4vw, 48px) clamp(28px, 3.4vw, 48px) 0; overflow: hidden; isolation: isolate;
  transition: transform 0.6s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.22); }
.card::after { content: ""; position: absolute; z-index: -1; left: 10%; right: 10%; bottom: -40px; height: 160px; background: var(--b, #2bb8ff); filter: blur(70px); opacity: 0.35; }
.card h3 { font-size: clamp(30px, 3vw, 44px); margin-top: 28px; }
.card .tag { color: var(--muted); margin-top: 14px; max-width: 22em; }
.chips { display: flex; gap: 8px; margin-top: 22px; }
.chips li { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-weight: 600; }
.more::after { content: "→"; transition: transform 0.3s var(--ease); }
.card:hover .more::after, .more:hover::after { transform: translateX(4px); }
.card .more::before { content: ""; position: absolute; inset: 0; }
.shots { display: flex; justify-content: center; gap: 4%; margin-top: clamp(32px, 4vw, 56px); padding-inline: 6%; }
.shots .phone { width: 44%; margin-bottom: -22%; }
.shots .phone:first-child { transform: rotate(-4deg) translateY(6%); }
.shots .phone:last-child { transform: rotate(3deg); }

/* Shelves */
.shelves { margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.shelf { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 32px; padding-block: 40px; border-bottom: 1px solid var(--line); }
.shelf h3 { font-size: clamp(28px, 2.8vw, 42px); transition: color 0.2s; }
.shelf:hover h3 { color: var(--accent); }
.shelf p { color: var(--muted); max-width: 26em; margin-top: 12px; }
.shelf .icons { display: flex; gap: 10px; }
.shelf .count { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.shelf .count::after { content: "→"; margin-left: 20px; color: var(--text); font-size: 18px; letter-spacing: 0; }

/* Catalogue link */
.browse { text-align: center; padding-block: clamp(72px, 9vw, 140px) 56px; }
.browse a { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -0.03em; }
.browse a::after { content: " →"; display: inline-block; margin-left: 12px; transition: transform 0.3s var(--ease); }
.browse a:hover::after { transform: translateX(8px); }
.icon-rows { display: grid; gap: 24px; padding-bottom: 40px; }
.icon-rows .icon { width: 96px; font-size: 36px; }

/* Studio */
.studio { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr); gap: clamp(40px, 8vw, 160px); align-items: start; margin-top: 40px; }
.studio h2 { font-size: clamp(38px, 4.8vw, 72px); }
.studio .about { color: var(--muted); font-size: clamp(17px, 1.3vw, 19px); }
.links { margin-top: 32px; border-top: 1px solid var(--line); }
.links a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.links a::after { content: "→"; transition: transform 0.3s var(--ease); }
.links a:hover::after { transform: translateX(6px); }
.rule { height: 2px; border: 0; margin: clamp(72px, 9vw, 120px) 0 0; background: linear-gradient(90deg, var(--s1), var(--s2), var(--s3), var(--s4)); }

/* Footer */
.site-footer { padding-block: clamp(56px, 7vw, 96px) 48px; }
.site-footer .sign { font-family: var(--font-display); font-size: clamp(40px, 5.4vw, 76px); letter-spacing: -0.03em; line-height: 1.05; color: #c9c5d6; }
.cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; margin-top: clamp(48px, 6vw, 88px); }
.cols h2 { font-family: var(--font-sans); font-size: 12px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.cols li + li { margin-top: 12px; }
.cols a { color: #d8d4e3; }
.cols a:hover { color: var(--accent); }
.cols address { font-style: normal; color: var(--muted); font-size: 15px; margin-top: 16px; }
.cols address b { display: block; color: #d8d4e3; font-weight: 400; }
.legal-name { color: var(--muted); font-size: 14px; margin-top: 12px; }
.base { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: clamp(48px, 6vw, 88px); padding-top: 32px; border-top: 1px solid var(--line); }
.base small { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* Inner pages */
.page { padding-top: calc(var(--header-h) + clamp(72px, 9vw, 140px)); }
.page h1 { font-size: clamp(44px, 6.4vw, 96px); margin-top: 24px; }
.page .lede { color: var(--muted); max-width: 32em; margin-top: 28px; font-size: clamp(17px, 1.3vw, 20px); }
.prose { max-width: 46em; margin-top: clamp(48px, 6vw, 80px); }
.prose h2 { font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -0.02em; margin: 56px 0 16px; }
.prose p, .prose li { color: #cfcadb; }
.prose p + p { margin-top: 16px; }
.prose ul { list-style: disc; padding-left: 22px; margin-top: 12px; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(48px, 6vw, 80px); }
.app-tile { border: 1px solid var(--line); border-radius: 32px; background: var(--surface); padding: 32px; scroll-margin-top: calc(var(--header-h) + 32px); transition: border-color 0.3s, transform 0.6s var(--ease); }
.app-tile:hover { border-color: rgba(255, 255, 255, 0.22); transform: translateY(-4px); }
.app-tile h2 { font-size: 28px; margin-top: 24px; }
.app-tile p { color: var(--muted); margin-top: 10px; }
.app-tile .soon { display: inline-block; margin-top: 24px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* Reveal */
.rev-up { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.rev-up.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .cards, .studio { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shelf { grid-template-columns: 1fr; gap: 20px; }
  .shelf .count { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .bar { padding-left: 20px; }
  .bar nav, .bar .cta { display: none; }
  .menu-btn { display: block; }
  .bar.open { border-radius: 28px; height: auto; flex-wrap: wrap; padding-block: 8px 16px; }
  .bar.open nav { display: flex; position: static; transform: none; flex-direction: column; gap: 4px; width: 100%; order: 3; padding-top: 8px; }
  .bar.open nav a { padding: 10px 0; font-size: 18px; }
  .site-header.is-compact .bar { max-width: 1440px; }
  .hero { padding-top: calc(var(--header-h) + 56px); }
  .card { border-radius: 28px; }
  .app-grid { grid-template-columns: 1fr; }
  .icon-rows .icon { width: 72px; font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee .track { animation: none; }
  .rev-up { opacity: 1; transform: none; transition: none; }
  .btn, .card, .app-tile { transition: none; }
}

/* Coming-soon block (shown until real apps are listed) */
.soon-box {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: clamp(24px, 4vw, 72px);
  border: 1px solid var(--line); border-radius: 40px;
  background: linear-gradient(180deg, var(--surface), #0f0d15);
  padding: clamp(36px, 5.5vw, 88px);
}
.soon-box::before { /* dotted grid, fading out to the left */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1.5px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 78% 60%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 80% at 78% 60%, #000, transparent 75%);
}
.soon-box::after { /* top hairline in the brand spectrum */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--s2), var(--s3), var(--s4), transparent); opacity: 0.8;
}
.pill { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 12px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, 0.03); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.55); } 100% { box-shadow: 0 0 0 12px rgba(61, 220, 151, 0); } }
.soon-box h2 { font-size: clamp(36px, 4.6vw, 72px); margin-top: 28px; }
.soon-box .sub { color: var(--muted); max-width: 27em; margin-top: 24px; font-size: clamp(17px, 1.3vw, 20px); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.stores li { border: 1px solid var(--line); border-radius: 16px; padding: 10px 20px 12px; font-family: var(--font-display); font-size: 19px; line-height: 1.2; background: rgba(255, 255, 255, 0.03); }
.stores small { display: block; font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.soon-box .more { margin-top: 36px; }
.fan { position: relative; align-self: stretch; min-height: clamp(300px, 34vw, 500px); margin-bottom: calc(-1 * clamp(36px, 5.5vw, 88px)); }
.fan::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 60%; background: linear-gradient(90deg, var(--s2), var(--s3), var(--s4)); filter: blur(90px); opacity: 0.35; }
.fan .phone { position: absolute; left: 50%; bottom: -12%; width: 40%; transform-origin: 50% 100%; }
.fan .phone:nth-child(1) { transform: translateX(-50%) translateX(-58%) rotate(-11deg); opacity: 0.85; }
.fan .phone:nth-child(2) { transform: translateX(-50%) translateX(58%) rotate(11deg); opacity: 0.85; }
.fan .phone:nth-child(3) { width: 44%; bottom: -4%; z-index: 1; animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-14px); } }
@media (max-width: 900px) {
  .soon-box { grid-template-columns: 1fr; }
  .fan { min-height: 320px; }
  .soon-box::before { -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 80%, #000, transparent 75%); mask-image: radial-gradient(ellipse 80% 50% at 50% 80%, #000, transparent 75%); }
}
@media (max-width: 720px) { .soon-box { border-radius: 28px; } }
@media (prefers-reduced-motion: reduce) { .pill i, .fan .phone:nth-child(3) { animation: none; } .fan .phone:nth-child(3) { transform: translateX(-50%); } }
