/* Diwbiau Labs — main stylesheet (index.html)
   Layout: an engineering spec sheet. White pages, hairline rules, two dark bands, mono labels. */
:root {
  --ink: #0B1220;
  --text: #3F4858;
  --muted: #5B6472;
  --line: #E3E6EB;
  --line-soft: #EEF0F3;
  --paper: #FFFFFF;
  --mist: #F5F6F8;
  --accent: #2F5BEA;
  --accent-ink: #FFFFFF;
  --night: #0B1220;
  --night-raise: #131C2E;
  --night-line: #263042;
  --night-chip: #344057;
  --night-text: #C3CAD5;
  --night-muted: #9AA4B5;
  --night-accent: #8FA8FF;
  --warn-bg: #FFF4E0;
  --warn-fg: #8A4B00;
  --warn-dot: #D97706;
  --idle-bg: #EEF0F3;
  --idle-fg: #3A4456;
  --display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
a { color: inherit; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; color: inherit; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.band { padding-block: 96px; }
.band--mist { background: var(--mist); border-block: 1px solid var(--line); }
.band--night { background: var(--night); color: #FFFFFF; }
.stack { display: flex; flex-direction: column; gap: 48px; }
.eyebrow { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.band--night .eyebrow { color: var(--night-accent); }
.h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
.lead { font-size: 17px; color: var(--text); max-width: 60ch; }
.band--night .lead { color: var(--night-text); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 48px; }
.section-head > div { display: flex; flex-direction: column; gap: 14px; max-width: 640px; min-width: 0; }
.section-head .lead { max-width: 440px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 10px; font-family: var(--body); font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { color: var(--accent-ink); filter: brightness(1.08); }
.btn--ghost { border-color: #CDD2DA; color: var(--ink); background: var(--paper); }
.btn--dark { background: var(--ink); color: #FFFFFF; min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--dark:hover { color: #FFFFFF; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand span { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; padding: 12px 0; }
.nav-end { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--paper); }
.mobile-menu nav { display: flex; flex-direction: column; padding-block: 8px 24px; }
.mobile-menu a.m-link { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-soft); font-family: var(--display); font-weight: 700; font-size: 24px; text-decoration: none; }
.mobile-menu .btn { margin-top: 20px; }
.mobile-menu .m-mail { margin-top: 16px; font-size: 14px; color: var(--muted); }
@media (max-width: 880px) {
  .nav-links, .nav-end .btn--dark { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (min-width: 881px) { .mobile-menu { display: none !important; } }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 88px 96px; }
.hero-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.hero h1 { font-size: clamp(38px, 5vw, 64px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.hero .lead { font-size: 19px; max-width: 58ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: 14px; color: var(--muted); }
.hero-note a { font-weight: 600; color: var(--ink); }
.glance { flex: 1 1 360px; min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--mist); padding: 28px; }
.glance-title { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.facts { margin: 0; font-size: 15px; }
.facts > div { display: flex; flex-wrap: wrap; gap: 2px 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { flex: 0 0 128px; color: var(--muted); }
.facts dd { margin: 0; flex: 1 1 180px; min-width: 0; font-weight: 600; line-height: 1.5; }
.ph { font-family: var(--mono); font-size: 0.92em; font-weight: 500; color: var(--muted); }

/* Services */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card h3 { font-size: 21px; font-weight: 700; }
.card p { font-size: 15px; color: var(--text); }
.card .tags { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.split > div { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border: 1px dashed #C6CCD5; border-radius: 14px; min-width: 0; }
.split p { font-size: 15px; color: var(--text); }
.split a { font-weight: 600; color: var(--ink); }
.tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #FFFFFF; background: var(--ink); padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
.tag--accent { background: var(--accent); }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 36px 24px; counter-reset: step; }
.steps li { border-top: 2px solid var(--ink); padding-top: 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.step-num { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.steps h3 { font-size: 22px; font-weight: 700; }
.steps p { font-size: 15px; color: var(--text); }
.deliverable { margin-top: auto; font-size: 14px; }
.deliverable span { color: var(--muted); }

/* Technologies */
.tech { display: flex; flex-wrap: wrap; gap: 48px; }
.tech-intro { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.tech-groups { flex: 999 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.tech-group { border: 1px solid var(--night-line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.tech-group h3 { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--night-text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.chips li { border: 1px solid var(--night-chip); border-radius: 999px; padding: 5px 12px; }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.studio-mark { flex: 1 1 320px; max-width: 100%; aspect-ratio: 4 / 5; max-height: 500px; border-radius: 16px; background-color: var(--night); background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px); background-size: 40px 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 24px; color: var(--night-text); }
.studio-mark svg { width: 45%; max-width: 160px; height: auto; }
.studio-mark p { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; }
.about-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about-copy p { font-size: 17px; color: var(--text); max-width: 62ch; line-height: 1.7; }
.signature { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.signature strong { display: block; font-family: var(--display); font-size: 18px; }
.signature small { font-size: 14px; color: var(--muted); }

/* Values */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 32px; }
.values h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.values p { font-size: 15px; color: var(--text); }

/* Products */
.status { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.status--dev { color: var(--warn-fg); background: var(--warn-bg); }
.status--dev .dot { background: var(--warn-dot); width: 7px; height: 7px; }
.status--plan { color: var(--idle-fg); background: var(--idle-bg); }
.status--plan .dot { background: var(--muted); width: 7px; height: 7px; }
.card h3.product { font-size: 24px; }
.product-card { padding: 0; overflow: hidden; gap: 0; }
.product-card .body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.product-visual { position: relative; aspect-ratio: 16 / 9; max-height: 300px; width: 100%; background: linear-gradient(135deg, var(--tint), var(--tint-2)); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); }
.product-visual > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.app-icon { width: 96px; height: 96px; border-radius: 24px; padding: 16px; background: #FFFFFF; color: var(--tint-2); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 34px; box-shadow: 0 10px 30px rgba(11, 18, 32, 0.22); }
.visual-note { position: absolute; left: 12px; bottom: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #FFFFFF; background: rgba(11, 18, 32, 0.45); padding: 4px 8px; border-radius: 6px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
form.notify { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 16px 32px; }
.notify .notify-copy { flex: 1 1 300px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.notify .notify-field { flex: 999 1 420px; display: flex; flex-wrap: wrap; gap: 12px; min-width: 0; }
.notify .notify-field label { flex-basis: 100%; }
.notify .notify-field .input-dark { flex: 1 1 220px; width: auto; }
.notify .form-status { flex-basis: 100%; }
.meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 24px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); }
.notify { background: var(--night); color: #FFFFFF; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.notify h3 { font-size: 22px; font-weight: 700; }
.notify p { font-size: 15px; color: var(--night-text); }
.notify label { font-size: 14px; color: var(--night-text); }
.input-dark { font: inherit; font-size: 15px; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--night-chip); background: var(--night-raise); color: #FFFFFF; width: 100%; }
.input-dark::placeholder { color: var(--night-muted); }
.form-status { font-size: 14px; min-height: 1.4em; }
.notify .form-status { color: var(--night-accent); }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.channels { list-style: none; margin: 8px 0 0; padding: 0; font-size: 16px; }
.channels li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--night-line); }
.channels li:last-child { border-bottom: 1px solid var(--night-line); }
.channels svg { flex: none; margin-top: 3px; }
.channels .label { display: block; font-size: 13px; color: var(--night-muted); }
.channels .value { font-weight: 600; color: #FFFFFF; }
.channels .ph { color: var(--night-text); }
.contact-form { flex: 999 1 520px; min-width: 0; background: var(--paper); color: var(--ink); border-radius: 18px; padding: clamp(22px, 4vw, 36px); display: flex; flex-direction: column; gap: 20px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }
.field label span { font-weight: 400; color: var(--muted); }
.input { font: inherit; font-size: 15px; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid #C6CCD5; background: var(--paper); color: var(--ink); width: 100%; }
textarea.input { padding: 12px 14px; min-height: 150px; resize: vertical; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-foot p { font-size: 13px; color: var(--muted); max-width: 380px; }
.contact-form .form-status { color: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 64px 32px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px; }
.footer-cols > * { min-width: 0; }
.f-brand { flex: 2 1 280px; display: flex; flex-direction: column; gap: 14px; }
.f-brand p { font-size: 14px; color: var(--text); max-width: 340px; }
.f-col { flex: 1 1 160px; display: flex; flex-direction: column; font-size: 14px; }
.f-col h2 { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.f-col a, .f-col span { padding: 6px 0; text-decoration: none; }
.legal-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.legal-line .site { font-family: var(--mono); }

@media (max-width: 640px) {
  .band { padding-block: 64px; }
  .hero { padding-block: 56px 64px; gap: 40px; }
  .facts dt { flex-basis: 100%; }
}

/* Honeypot anti-spam field (hidden from humans) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
