/* ============================
   App Slicer — Global Styles
   ============================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;500;600;700;800;900&family=Nunito+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
  --cream:    #F2EDE5;
  --cream-dk: #E5DDD1;
  --white:    #FFFFFF;
  --ink:      #111111;
  --ink-mid:  #333333;
  --ink-lite: #666666;
  --border:   rgba(0,0,0,0.09);

  /* App colours */
  --schema:   #F28B82;
  --insight:  #D5A6F5;
  --query:    #74D7F0;
  --channel:  #F5A623;
  --sherlock: #8FD19E;
  --topic:    #F7B5D8;
  --app:      #FAC98A;
  --traffic:  #F9E07A;
  --drift:    #5B6CFA;
  --curve:    #9B6DC5;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
}

/* ---- Typography ---- */
h1,h2,h3,h4,h5 { font-family: 'Roboto Slab', serif; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); font-weight: 700; }
p  { max-width: 68ch; }
a  { color: inherit; text-decoration: none; }

/* ---- Layout ---- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
section { padding: 80px 0; }
section + section { border-top: 1px solid var(--border); }

/* ============================
   NAVBAR
   ============================ */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(242,237,229,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1160px; margin: 0 auto; padding: 0 28px; height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Roboto Slab', serif; font-weight: 800; font-size: 1.15rem;
  letter-spacing: -0.5px;
}
.nav-logo img { width: 36px; height: 36px; border-radius: 6px; }
.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a {
  padding: 6px 14px; border-radius: 40px;
  font-family: 'Roboto Slab', serif; font-weight: 600; font-size: 0.88rem;
  letter-spacing: 0.2px;
  transition: background 0.18s, color 0.18s;
  color: var(--ink-mid);
}
.nav-links a:hover, .nav-links a.active {
  background: var(--ink); color: var(--white);
}
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.2s; }

/* ============================
   HERO
   ============================ */
.hero {
  padding: 100px 0 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -120px; right: -180px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(116,215,240,0.22) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(242,139,130,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--white);
  padding: 5px 14px; border-radius: 40px;
  font-family: 'Roboto Slab', serif; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 { margin-bottom: 22px; letter-spacing: -1.5px; }
.hero h1 em { font-style: normal; position: relative; }
.hero h1 em::after {
  content: ''; position: absolute; left: 0; bottom: 4px;
  width: 100%; height: 6px; background: var(--query); opacity: 0.7;
  z-index: -1;
}
.hero-sub { font-size: 1.15rem; color: var(--ink-mid); margin-bottom: 40px; max-width: 52ch; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 40px; border: 1.5px solid var(--border);
  font-size: 0.85rem; font-family: 'Roboto Slab', serif; font-weight: 600;
  background: var(--white); transition: border-color 0.18s, box-shadow 0.18s;
}
.chip:hover { border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }

/* ============================
   SECTION HEADINGS
   ============================ */
.section-label {
  display: inline-block;
  font-family: 'Roboto Slab', serif; font-weight: 700; font-size: 0.75rem;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink-lite); margin-bottom: 12px;
}
.section-label::before { content: '— '; }

/* ============================
   APP TILES
   ============================ */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px; margin-top: 48px;
}
.app-card {
  background: var(--white); border-radius: 16px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: transform 0.22s, box-shadow 0.22s;
  display: flex; flex-direction: column;
}
.app-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.10); }
.app-card-icon {
  width: 100%; aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
}
.app-card-icon img { width: 120px; height: 120px; object-fit: contain; border-radius: 12px; }
.app-card-body { padding: 24px 28px 32px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.app-card-body h3 { margin: 0; }
.app-card-body p { color: var(--ink-mid); font-size: 0.95rem; flex: 1; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: 40px;
  font-family: 'Roboto Slab', serif; font-weight: 700; font-size: 0.88rem;
  cursor: pointer; border: none; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  width: fit-content; margin-top: 8px;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-outline { background: transparent; border: 2px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }

/* Background colours for icon panels */
.bg-schema  { background: rgba(242,139,130,0.15); }
.bg-insight { background: rgba(213,166,245,0.15); }
.bg-query   { background: rgba(116,215,240,0.15); }
.bg-channel { background: rgba(245,166,35,0.15); }
.bg-sherlock{ background: rgba(143,209,158,0.15); }
.bg-topic   { background: rgba(247,181,216,0.15); }
.bg-app     { background: rgba(250,201,138,0.15); }
.bg-traffic { background: rgba(249,224,122,0.15); }
.bg-drift   { background: rgba(91,108,250,0.10); }
.bg-curve   { background: rgba(155,109,197,0.12); }

/* ============================
   COLLAB SECTION (homepage)
   ============================ */
.collab-band {
  background: var(--ink); color: var(--white);
  border-radius: 20px; padding: 48px 52px;
  display: flex; align-items: center; gap: 48px;
  flex-wrap: wrap;
}
.collab-band h2 { color: var(--white); }
.collab-band p { color: rgba(255,255,255,0.72); max-width: 48ch; }
.collab-logo { width: 120px; flex-shrink: 0; }
.collab-logo img { width: 100%; }

/* ============================
   COMING SOON PAGE
   ============================ */
.soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px; margin-top: 40px;
}
.soon-tile {
  background: var(--white); border-radius: 14px;
  border: 1.5px solid var(--border);
  padding: 28px 20px; text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.soon-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.soon-tile img { width: 90px; height: 90px; object-fit: contain; border-radius: 10px; margin-bottom: 12px; }
.soon-tile .tile-name { font-family: 'Roboto Slab', serif; font-weight: 700; font-size: 0.92rem; }
.soon-badge {
  display: inline-block; margin-top: 8px;
  background: var(--ink); color: var(--white);
  font-size: 0.68rem; font-family: 'Roboto Slab', serif; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 40px;
}

/* ============================
   COLLABORATE PAGE
   ============================ */
.collab-hero-box {
  background: var(--ink); color: var(--white);
  border-radius: 20px; padding: 64px 60px;
  position: relative; overflow: hidden; margin-bottom: 60px;
}
.collab-hero-box::after {
  content: '⟋'; font-size: 20rem; line-height: 1;
  position: absolute; right: -40px; top: -60px;
  color: rgba(255,255,255,0.04); pointer-events: none;
  font-family: monospace;
}
.collab-hero-box h1 { color: var(--white); letter-spacing: -2px; }
.collab-hero-box p { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 56ch; margin-top: 16px; }
.models-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-top: 40px; }
.model-card {
  background: var(--white); border-radius: 14px; border: 1.5px solid var(--border);
  padding: 28px 24px;
}
.model-icon { font-size: 2rem; margin-bottom: 12px; }
.model-card h4 { font-size: 1rem; margin-bottom: 6px; }
.model-card p { font-size: 0.88rem; color: var(--ink-mid); max-width: none; }

/* ============================
   FORM STYLES
   ============================ */
.form-card {
  background: var(--white); border-radius: 20px; border: 1.5px solid var(--border);
  padding: 48px 52px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-group label {
  font-family: 'Roboto Slab', serif; font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.5px; text-transform: uppercase; color: var(--ink-mid);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--cream);
  font-family: 'Nunito Sans', sans-serif; font-size: 0.95rem; color: var(--ink);
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,17,17,0.08);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--ink-lite); margin-top: 4px; }
.form-success {
  display: none; text-align: center; padding: 40px;
  background: var(--sherlock); border-radius: 12px; color: var(--ink);
  font-family: 'Roboto Slab', serif; font-weight: 700;
}

/* ============================
   ABOUT PAGE
   ============================ */
.about-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }
.about-photo { position: sticky; top: 88px; }
.about-photo img {
  width: 100%; border-radius: 16px; object-fit: cover;
  aspect-ratio: 3/4; border: 3px solid var(--white);
  box-shadow: 8px 8px 0 var(--ink);
}
.about-photo-fallback {
  width: 100%; aspect-ratio: 3/4; border-radius: 16px;
  background: var(--ink); display: flex; align-items: center; justify-content: center;
  box-shadow: 8px 8px 0 var(--cream-dk);
}
.about-photo-fallback span {
  font-family: 'Roboto Slab', serif; font-size: 5rem; font-weight: 800; color: var(--white);
}
.about-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.meta-chip {
  padding: 5px 14px; border-radius: 40px; border: 1.5px solid var(--border);
  font-size: 0.82rem; font-family: 'Roboto Slab', serif; font-weight: 600; background: var(--white);
}
.stat-row { display: flex; flex-wrap: wrap; gap: 32px; margin: 40px 0; padding: 32px; background: var(--ink); border-radius: 16px; }
.stat-item h3 { color: var(--query); font-size: 2rem; }
.stat-item p { color: rgba(255,255,255,0.7); font-size: 0.85rem; max-width: none; }
.testimonial {
  border-left: 4px solid var(--schema); padding: 20px 24px;
  background: var(--white); border-radius: 0 12px 12px 0; margin: 28px 0;
  font-style: italic; color: var(--ink-mid);
}
.testimonial cite { font-style: normal; display: block; font-size: 0.85rem; margin-top: 8px; font-family: 'Roboto Slab', serif; font-weight: 700; }

/* ============================
   CONTACT PAGE
   ============================ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 40px 0; }
.service-card {
  background: var(--white); border-radius: 12px; border: 1.5px solid var(--border);
  padding: 24px 22px;
}
.service-icon { font-size: 1.8rem; margin-bottom: 10px; }
.service-card h4 { font-size: 0.95rem; margin-bottom: 4px; }
.service-card p { font-size: 0.85rem; color: var(--ink-mid); max-width: none; }

/* ============================
   FOOTER
   ============================ */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  background: var(--ink); color: rgba(255,255,255,0.6);
}
.footer-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 28px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px;
}
.footer-brand { font-family: 'Roboto Slab', serif; font-weight: 800; color: var(--white); font-size: 1.1rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 0.88rem; transition: color 0.18s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.82rem; width: 100%; text-align: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); }

/* ============================
   UTILITIES
   ============================ */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.spacer { height: 40px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 48px 0; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px) {
  section { padding: 56px 0; }
  .hero { padding: 64px 0 48px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--border); padding: 16px 28px; gap: 4px; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .apps-grid { grid-template-columns: 1fr; }
  .collab-band { padding: 36px 28px; gap: 28px; }
  .about-layout { grid-template-columns: 1fr; }
  .about-photo { position: static; }
  .about-photo img { aspect-ratio: 4/3; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 32px 24px; }
  .collab-hero-box { padding: 40px 28px; }
  .stat-row { gap: 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
