/* ─────────────────────────────────────────────
   McBurrows Nua — Brand Tokens
───────────────────────────────────────────── */
:root {
  --orange:      #EF7722;
  --orange-lt:   #FAA533;
  --blue:        #0BA6DF;
  --accent-warm: #FFF0E5;
  --kept:        #9AB17A;
  --kept-warm:   #EEF4E6;
  --ink:         #111118;
  --ink-2:       #3D3A52;
  --ink-3:       #72708A;
  --ink-4:       #A8A6BC;
  --border:      rgba(239, 119, 34, 0.12);
  --border-2:    rgba(0, 0, 0, 0.06);
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.08);
  --radius-sm:   10px;
  --radius:      16px;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --font:        "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --max-w:       1120px;
  --nav-h:       64px;
  --bg:          #FAFAFA;
  --bg-2:        #ffffff;
  --bg-3:        #F3F3F6;
  --footer-bg:   #111118;
  --hero-bg:     #F7F7F7;
}

/* ─────────────────────────────────────────────
   Dark Mode
───────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:          #0E0E12;
  --bg-2:        #18181C;
  --bg-3:        #1C1C22;
  --footer-bg:   #0A0A0E;
  --ink:         #F2F2F7;
  --ink-2:       #C7C7CC;
  --ink-3:       #8E8E93;
  --ink-4:       #48484A;
  --border:      rgba(239, 119, 34, 0.2);
  --border-2:    rgba(255, 255, 255, 0.07);
  --accent-warm: rgba(239, 119, 34, 0.14);
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:   0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.4);
  --hero-bg:     linear-gradient(160deg, #191920 0%, #1A1A22 40%, #17171E 100%);
}

/* ─────────────────────────────────────────────
   Reset
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ─────────────────────────────────────────────
   Layout helpers
───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section-heading {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--ink-3);
  max-width: 520px;
  line-height: 1.75;
  margin: 0 auto 40px;
}

.text-orange { color: var(--orange); }
.text-blue   { color: var(--blue); }
.text-green  { color: var(--kept); }

.section-chip {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 24px;
}
[data-theme="dark"] .section-chip { background: #F5F5F7; color: #1A1A1A; }

/* ─────────────────────────────────────────────
   Buttons
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
[data-theme="dark"] .btn--primary { background: #F2F2F7; color: #111118; }

.btn--disabled {
  background: #E8E8EC;
  color: #ABABAB;
  cursor: not-allowed;
  box-shadow: none;
}
.btn--disabled:active { transform: none; }
[data-theme="dark"] .btn--disabled { background: #2C2C2E; color: #636366; }

.release-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-4);
  transition: color 0.15s;
}
.release-link:hover { color: var(--ink); text-decoration: underline; }

.btn--ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1.5px solid var(--border-2);
}
.btn--ghost:hover {
  background: #f5f5f7;
  border-color: rgba(0,0,0,0.1);
}
[data-theme="dark"] .btn--ghost {
  color: var(--ink-2);
  border-color: rgba(255,255,255,0.12);
}
[data-theme="dark"] .btn--ghost:hover { background: rgba(255,255,255,0.06); }

.btn--coffee {
  background: #FFDD00;
  color: #111118;
  font-size: 1rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(255, 221, 0, 0.35);
}
.btn--coffee:hover {
  box-shadow: 0 6px 28px rgba(255, 221, 0, 0.5);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────
   Nav
───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  transition: box-shadow 0.2s, background 0.2s;
}
[data-theme="dark"] .nav {
  background: rgba(14, 14, 18, 0.85);
}
.nav.scrolled { box-shadow: 0 1px 16px rgba(0,0,0,0.06); }

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.03em;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav__logo.visible { opacity: 1; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__links a {
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-3);
  transition: background 0.15s, color 0.15s;
}
.nav__links a:hover {
  background: rgba(0,0,0,0.04);
  color: var(--ink);
}
[data-theme="dark"] .nav__links a:hover { background: rgba(255,255,255,0.07); }
.nav__links a.active {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
[data-theme="dark"] .nav__links a.active {
  background: #F5F5F7;
  color: #1A1A1A;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border-2);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
  padding: 0;
  color: var(--ink-3);
}
.nav__theme-toggle:hover         { background: rgba(0,0,0,0.04); }
[data-theme="dark"] .nav__theme-toggle:hover { background: rgba(255,255,255,0.07); }

/* Show moon in light mode, sun in dark mode */
.theme-icon--night { display: block; }
.theme-icon--day   { display: none;  }
[data-theme="dark"] .theme-icon--night { display: none;  }
[data-theme="dark"] .theme-icon--day   { display: block; }

@media (max-width: 560px) {
  .nav__links a { padding: 5px 10px; font-size: 0.82rem; }
}

/* ─────────────────────────────────────────────
   Hero
───────────────────────────────────────────── */
.hero {
  padding: calc(var(--nav-h) + 24px) 20px 0;
}

.hero__banner {
  background: var(--hero-bg);
  border-radius: var(--radius-xl);
  padding: 72px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
  border: 1px solid rgba(0,0,0,0.04);
}
[data-theme="dark"] .hero__banner {
  border-color: rgba(255,255,255,0.05);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  text-align: center;
}

.hero__studio {
  opacity: 0;
  animation: fadeUp 0.5s ease 0.05s forwards;
}

.hero__studio-name {
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 16px;
}

.hero__studio-sub {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--ink-3);
  line-height: 1.7;
}

/* ─────────────────────────────────────────────
   Apps Grid
───────────────────────────────────────────── */
.apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
}
@media (min-width: 700px) {
  .apps-grid { grid-template-columns: 1fr 1fr; }
}

.app-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.app-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
[data-theme="dark"] .app-card {
  background: var(--bg-2);
  border-color: rgba(255,255,255,0.06);
}

/* Horizontal header: icon + name/version side by side */
.app-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.app-card__titles {
  text-align: left;
}

.app-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.app-card__name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1.1;
}

.app-card__version {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-4);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.app-card__tagline {
  font-size: 0.92rem;
  color: var(--ink-3);
  line-height: 1.6;
  margin-bottom: 24px;
}

.app-card__pills {
  margin-bottom: 0;
  max-width: 100%;
}

.app-card__actions {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  align-self: center;
}

.app-card .btn {
  width: auto;
  padding: 14px 40px;
}

/* ─────────────────────────────────────────────
   App Showcase (screenshots per app)
───────────────────────────────────────────── */
.app-showcase {
  position: relative;
  padding: 80px 0 0;
  overflow: hidden;
  text-align: center;
}

.app-showcase::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.app-showcase__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  padding: 10px 20px;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 48px;
}
[data-theme="dark"] .app-showcase__label {
  background: var(--bg-2);
  border-color: rgba(255,255,255,0.08);
}

.app-showcase__label img {
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.app-showcase__label span {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.app-showcase__label--kept { color: var(--ink); }

.screenshots__phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 8px;
  padding-bottom: 48px;
}

.phone {
  flex: 0 0 auto;
  width: min(230px, 44vw);
  border-radius: 48px;
  overflow: hidden;
  border: 1.5px solid rgba(0, 0, 0, 0.07);
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.10),
    0 8px 24px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.03);
  position: relative;
}

.phone img {
  width: 100%;
  height: auto;
  display: block;
}

.phone--left  { z-index: 2; margin-right: -28px; animation: jiggle-l 2.4s ease-in-out infinite; }
.phone--mid   { z-index: 3; margin-top: 52px;    animation: jiggle-m 2.8s ease-in-out infinite 0.3s; }
.phone--right { z-index: 2; margin-left: -28px;  animation: jiggle-r 2.6s ease-in-out infinite 0.15s; }

@keyframes jiggle-l {
  0%, 100% { transform: rotate(-2deg); }
  50%       { transform: rotate(-0.5deg); }
}
@keyframes jiggle-m {
  0%, 100% { transform: rotate(0.5deg) translateY(0); }
  50%       { transform: rotate(-0.5deg) translateY(-4px); }
}
@keyframes jiggle-r {
  0%, 100% { transform: rotate(2deg); }
  50%       { transform: rotate(0.5deg); }
}

@media (max-width: 560px) {
  .phone { width: min(120px, 30vw); border-radius: 28px; }
  .phone--left  { margin-right: -18px; }
  .phone--mid   { margin-top: 36px; }
  .phone--right { margin-left: -18px; }
}

/* ─────────────────────────────────────────────
   Feature Pills
───────────────────────────────────────────── */
.text-center {
  text-align: center;
  margin: 0 auto 36px;
}

.features-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-width: 680px;
  margin-inline: auto;
}

.fpill {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--bg-2);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 100px;
  padding: 7px 14px;
  letter-spacing: -0.01em;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 560px) {
  .features-pills { grid-template-columns: 1fr; }
  .fpill { justify-self: center; }
}

[data-theme="dark"] .fpill:not(.fpill--accent):not(.fpill--kept-accent) {
  background: var(--bg-3);
  border-color: rgba(255,255,255,0.06);
}

.fpill--accent {
  background: var(--orange);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 12px rgba(239, 119, 34, 0.3);
}

.fpill--kept-accent {
  background: var(--kept);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 12px rgba(154, 177, 122, 0.3);
}

/* ─────────────────────────────────────────────
   About
───────────────────────────────────────────── */
.about {
  padding: 120px 0;
}

.about__banner {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
}
[data-theme="dark"] .about__banner {
  background: var(--bg-2);
  border-color: rgba(255,255,255,0.06);
}

@media (min-width: 760px) {
  .about__banner { grid-template-columns: 1fr 260px; gap: 64px; padding: 64px 56px; }
}

@media (max-width: 760px) {
  .about__banner { padding: 40px 28px; }
}

.about__content .section-heading { margin-bottom: 24px; }

.about__content p {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.8;
  margin-bottom: 18px;
}

.about__quote {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-3);
  border-left: 3px solid var(--ink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin-top: 12px;
  font-style: normal;
}
[data-theme="dark"] .about__quote {
  background: var(--bg-3);
}

.about__aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about__icons {
  display: flex;
  gap: 16px;
  align-items: center;
}
.about__icons img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.about__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  padding: 6px 14px;
}
[data-theme="dark"] .pill {
  background: var(--bg-3);
  border-color: rgba(255,255,255,0.06);
}

/* ─────────────────────────────────────────────
   Support
───────────────────────────────────────────── */
.support {
  padding: 0 0 120px;
  text-align: center;
}
.support__card {
  max-width: 580px;
  margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  box-shadow: var(--shadow-md);
}
[data-theme="dark"] .support__card {
  background: var(--bg-2);
  border-color: rgba(255,255,255,0.06);
}

.support__coffee {
  font-size: 3rem;
  margin-bottom: 24px;
  line-height: 1;
}
.support .section-heading { text-align: center; }
.support .section-sub {
  text-align: center;
  margin: 0 auto 36px;
}
.support__note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--ink-4);
}

/* ─────────────────────────────────────────────
   Footer
───────────────────────────────────────────── */
.footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.85);
  padding: 48px 0 36px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.footer__icons {
  display: flex;
  gap: 8px;
  align-items: center;
}
.footer__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.footer__links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.footer__links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

.footer__legal {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

/* ─────────────────────────────────────────────
   Animations
───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────────
   Cookie Banner
───────────────────────────────────────────── */
.cookie-banner[hidden] { display: none; }
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  background: var(--ink);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  box-sizing: border-box;
  animation: fadeUp 0.3s ease forwards;
}

/* Only use centred float on true desktop — above iPad landscape width */
@media (min-width: 1100px) {
  .cookie-banner {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: auto;
    max-width: 700px;
    min-width: 500px;
    bottom: 24px;
  }
}

[data-theme="dark"] .cookie-banner { background: #2C2C2E; }

.cookie-banner__text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  white-space: normal;
  flex: 1;
  min-width: 0;
}

.cookie-banner__actions { display: flex; gap: 8px; flex-shrink: 0; }

.cookie-btn {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.cookie-btn:hover { opacity: 0.85; }
.cookie-btn--yes { background: var(--orange); color: #fff; }
.cookie-btn--no  { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.7); }

/* ─────────────────────────────────────────────
   Reduced motion
───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
