/* Martinel Labs – calm, modern, no external resources. */
:root {
  --bg: #F7F7F4;
  --surface: #FFFFFF;
  --text: #15171C;
  --muted: #5E6470;
  --line: rgba(21, 23, 28, .09);
  --accent: #4F4FD0;
  --accent-soft: rgba(79, 79, 208, .09);
  --radius: 22px;
  --shadow: 0 1px 2px rgba(16, 18, 24, .04), 0 8px 24px rgba(16, 18, 24, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1115; --surface: #171A20; --text: #EEF0F4; --muted: #9AA1AD;
    --line: rgba(238, 240, 244, .09); --accent: #8B8BF5; --accent-soft: rgba(139, 139, 245, .12);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1115; --surface: #171A20; --text: #EEF0F4; --muted: #9AA1AD;
  --line: rgba(238, 240, 244, .09); --accent: #8B8BF5; --accent-soft: rgba(139, 139, 245, .12);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
@media (max-width: 620px) { .nav .hide-sm { display: none; } }

/* Hero */
.hero { padding: 96px 0 72px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.04; letter-spacing: -.035em; margin: 22px 0 18px; font-weight: 700; max-width: 14ch; }
.hero p { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 40ch; margin: 0 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600;
  text-decoration: none; font-size: 16px; border: 1px solid var(--line); background: var(--surface); transition: transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--text); color: var(--bg); border-color: transparent; }

/* Sections */
section { padding: 56px 0; }
h2 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -.025em; line-height: 1.15; margin: 0 0 10px; }
.lead { color: var(--muted); margin: 0 0 32px; max-width: 56ch; }

.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.app { display: flex; flex-direction: column; gap: 14px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
a.app:hover { transform: translateY(-3px); }
.app-head { display: flex; align-items: center; gap: 16px; }
.app-icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 4px 14px rgba(244, 122, 34, .3); }
.app h3 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.app p { margin: 0; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 13px; color: var(--muted); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.more { color: var(--accent); font-weight: 600; }
.app.soon { border-style: dashed; box-shadow: none; background: transparent; justify-content: center; }
.soon-icon { width: 64px; height: 64px; border-radius: 16px; border: 2px dashed var(--line); display: grid; place-items: center; color: var(--muted); font-size: 26px; }

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.principle .num { color: var(--accent); font-weight: 700; font-size: 14px; }
.principle h3 { margin: 8px 0 6px; font-size: 19px; }
.principle p { margin: 0; color: var(--muted); font-size: 16px; }

.about { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 680px; }
.about p { margin: 0; color: var(--muted); }
.about strong { color: var(--text); font-weight: 600; }

.contact { text-align: center; }
.contact .card { padding: 48px 26px; }
.mail { font-size: clamp(20px, 3vw, 28px); font-weight: 650; color: var(--accent); text-decoration: none; letter-spacing: -.01em; word-break: break-all; }

/* Legal pages */
.legal { padding: 56px 0 24px; max-width: 760px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -.03em; margin: 0 0 6px; }
.legal h2 { font-size: 21px; margin: 34px 0 6px; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); }
.legal address { font-style: normal; color: var(--text); line-height: 1.7; }
.lang-switch { margin: 6px 0 24px; font-size: 15px; }
.lang-switch a { color: var(--accent); }
hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

/* Footer */
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* Start page: a quiet business card, one screen, nothing else */
body.solo { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.solo-card { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px 20px; gap: 6px; }
.solo-mark { width: 56px; height: 56px; margin-bottom: 14px; }
.solo-card h1 { font-size: clamp(30px, 5vw, 40px); letter-spacing: -.03em; margin: 0; font-weight: 700; }
.solo-card p { margin: 0 0 22px; color: var(--muted); font-size: 18px; }
.solo-mail { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 17px; }
.solo-mail:hover { text-decoration: underline; }
.solo-footer { border: 0; margin: 0; padding: 0 20px 32px; display: flex; justify-content: center; flex-wrap: wrap;
  gap: 8px 22px; font-size: 14px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
