/* BTWZZ — site styles */

:root {
  --cream: #fff8ec;
  --rain-paper: #f3e8d2;
  --card-white: #ffffff;
  --ink-navy: #1e2a36;
  --soft-charcoal: #3c4652;
  --muted-slate: #6e7a86;
  --rain-blue: #4a90e2;
  --soft-rain-blue: #dcebff;
  --umbrella-yellow: #f6b84b;
  --soft-yellow: #fff0c9;
  --rose-red: #d86c7a;
  --sage-green: #6eae7a;
  --soft-sage: #e4f3e6;
  --stamp-purple: #8b6edb;
  --line-beige: #ddd0be;
  --card-radius: 22px;
  --button-radius: 18px;
  --shadow: 0 8px 32px rgba(30, 42, 54, 0.08);
  --shadow-deep: 0 16px 48px rgba(30, 42, 54, 0.12);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--soft-charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--rain-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #3578c9;
}

h1, h2, h3, h4 {
  color: var(--ink-navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.5vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1em; }

ul {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.container {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

/* Background rain texture */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(74, 144, 226, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(246, 184, 75, 0.08), transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, var(--rain-paper) 100%);
  pointer-events: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 236, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(221, 208, 190, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-navy);
  font-weight: 800;
  font-size: 1.05rem;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.brand span {
  display: none;
}

@media (min-width: 520px) {
  .brand span { display: inline; }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  color: var(--soft-charcoal);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--rain-blue);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink-navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 0 16px;
  list-style: none;
  margin: 0;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  display: block;
  padding: 12px 4px;
  color: var(--ink-navy);
  font-weight: 600;
  border-bottom: 1px solid var(--line-beige);
}

@media (min-width: 860px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--button-radius);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--rain-blue), #5ba3f5);
  color: #fff;
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.35);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 8px 28px rgba(74, 144, 226, 0.45);
}

.btn-secondary {
  background: var(--card-white);
  color: var(--ink-navy);
  border: 1.5px solid var(--line-beige);
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  color: var(--rain-blue);
}

/* Cards */
.card {
  background: linear-gradient(145deg, var(--card-white), rgba(243, 232, 210, 0.35));
  border: 1px solid rgba(221, 208, 190, 0.7);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.card-desk {
  background: linear-gradient(160deg, #fff 0%, rgba(243, 232, 210, 0.5) 100%);
}

/* Hero */
.hero {
  padding: 56px 0 72px;
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--soft-rain-blue);
  color: var(--rain-blue);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--muted-slate);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(300px, 85vw);
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(160deg, #2a3540, #1e2a36);
  box-shadow: var(--shadow-deep);
}

.phone-frame img {
  border-radius: 28px;
  width: 100%;
}

.phone-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(74, 144, 226, 0.2), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 36px;
}

@media (min-width: 640px) {
  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-pill {
  text-align: center;
  padding: 16px 10px;
  background: var(--card-white);
  border: 1px solid var(--line-beige);
  border-radius: 16px;
}

.stat-pill strong {
  display: block;
  font-size: 1.5rem;
  color: var(--ink-navy);
  font-weight: 800;
}

.stat-pill span {
  font-size: 0.82rem;
  color: var(--muted-slate);
  font-weight: 600;
}

/* Sections */
section {
  padding: 72px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rain-blue);
  margin-bottom: 10px;
}

.section-intro {
  max-width: 640px;
  color: var(--muted-slate);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.section-alt {
  background: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(221, 208, 190, 0.5);
  border-bottom: 1px solid rgba(221, 208, 190, 0.5);
}

/* Feature grid */
.feature-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  padding: 28px;
  transition: transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feature-icon.blue { background: var(--soft-rain-blue); }
.feature-icon.yellow { background: var(--soft-yellow); }
.feature-icon.green { background: var(--soft-sage); }
.feature-icon.purple { background: rgba(139, 110, 219, 0.15); }

.feature-card p {
  color: var(--muted-slate);
  font-size: 0.95rem;
  margin: 0;
}

/* How it works */
.steps {
  display: grid;
  gap: 24px;
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step {
  position: relative;
  padding: 28px 24px 24px;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--rain-blue);
  color: #fff;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  color: var(--muted-slate);
  font-size: 0.95rem;
  margin: 0;
}

/* Worlds */
.world-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .world-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .world-grid { grid-template-columns: repeat(3, 1fr); }
}

.world-card {
  padding: 22px;
  border-left: 4px solid var(--rain-blue);
}

.world-card.bakery { border-left-color: var(--umbrella-yellow); }
.world-card.library { border-left-color: var(--stamp-purple); }
.world-card.garden { border-left-color: var(--sage-green); }
.world-card.harbor { border-left-color: var(--soft-charcoal); }

.world-card .cases {
  font-size: 0.85rem;
  color: var(--muted-slate);
  font-weight: 600;
}

.world-card p {
  font-size: 0.92rem;
  color: var(--muted-slate);
  margin: 8px 0 0;
}

/* Screenshot gallery */
.gallery {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.gallery-item {
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line-beige);
  background: var(--card-white);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 9/19;
}

.gallery-caption {
  padding: 14px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-navy);
  border-top: 1px solid var(--line-beige);
}

/* Split content */
.split {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split.reverse .split-text {
    order: 2;
  }

  .split.reverse .split-visual {
    order: 1;
  }
}

.split-visual img {
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-deep);
  border: 1px solid var(--line-beige);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--soft-charcoal);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sage-green);
  font-weight: 800;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 56px 32px;
  background: linear-gradient(135deg, var(--ink-navy), #2a3d4f);
  border-radius: var(--card-radius);
  color: #fff;
  box-shadow: var(--shadow-deep);
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin: 0 auto 28px;
}

/* Footer */
.site-footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--line-beige);
  margin-top: 32px;
}

.footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand p {
  color: var(--muted-slate);
  font-size: 0.92rem;
  max-width: 28em;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-slate);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--soft-charcoal);
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--rain-blue);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line-beige);
  font-size: 0.85rem;
  color: var(--muted-slate);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Legal pages */
.legal-page {
  padding: 48px 0 80px;
}

.legal-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-beige);
}

.legal-header p {
  color: var(--muted-slate);
  margin: 0;
}

.legal-meta {
  font-size: 0.88rem;
  color: var(--muted-slate);
  margin-top: 8px;
}

.legal-section {
  margin-bottom: 36px;
}

.legal-section h2 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.legal-section p {
  color: var(--soft-charcoal);
}

.legal-toc {
  background: var(--card-white);
  border: 1px solid var(--line-beige);
  border-radius: var(--card-radius);
  padding: 24px 28px;
  margin-bottom: 40px;
}

.legal-toc h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-slate);
  margin-bottom: 12px;
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.2em;
}

.legal-toc li {
  margin-bottom: 6px;
}

.legal-toc a {
  font-weight: 600;
  font-size: 0.95rem;
}

/* About page */
.about-hero {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.about-logo {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-deep);
}

.values-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
