:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --ink: #0A0A0A;
  --ink-soft: #2B2B2B;
  --muted: #6B6B6B;
  --line: #E8E6E0;
  --accent: #1A1A1A;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "ss01", "cv11";
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.serif {
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
}

p a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.15s ease;
}

p a:hover { text-decoration-color: var(--ink); }

.container {
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 250, 247, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1rem;
  color: var(--ink);
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a {
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  padding: 128px 0 104px;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero-actions {
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

h1 {
  margin: 0;
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 em {
  font-style: italic;
  color: var(--ink);
}

.hero-lead {
  margin: 28px auto 0;
  max-width: 540px;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.6;
}

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

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button.primary {
  background: var(--ink);
  color: var(--bg);
}

.button.primary:hover { background: #2B2B2B; }

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button.secondary:hover { border-color: var(--ink); }

/* ---------- Phone mockup ---------- */
.phone-mockup {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 220px;
  filter:
    drop-shadow(0 24px 40px rgba(10, 10, 10, 0.18))
    drop-shadow(0 10px 20px rgba(10, 10, 10, 0.12));
}

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

/* ---------- Sections ---------- */
section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.section-heading p {
  margin: 20px auto 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 640px;
}

/* ---------- Product gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  max-width: 880px;
  margin: 0 auto;
}

.gallery-item {
  text-align: center;
}

.gallery-item .phone-mockup {
  max-width: 220px;
  margin-bottom: 32px;
}

.gallery-caption {
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 8px;
}

.gallery-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Mission / What we build ---------- */
.mission {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.mission-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.mission-body p {
  margin: 0 0 20px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.mission-body p:last-child { margin-bottom: 0; }

.mission-body strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Company info ---------- */
.company-panel {
  border-top: 1px solid var(--line);
  max-width: 720px;
  margin: 0 auto;
}

.company-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.company-label {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.company-row > div:last-child {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a:hover { color: var(--ink); }

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

.legal-content {
  max-width: 720px;
}

.legal-content h1 {
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.legal-content > p:first-of-type {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.legal-content h2 {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  margin: 44px 0 14px;
  color: var(--ink);
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 20px;
  margin: 14px 0;
}

.legal-content li { margin-bottom: 8px; }

.legal-content strong { color: var(--ink); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero { padding: 88px 0 72px; }

  section { padding: 72px 0; }

  .section-heading { margin-bottom: 44px; }

  .company-row {
    padding: 18px 0;
  }

  .nav-links {
    gap: 18px;
    font-size: 0.88rem;
  }
}

@media (max-width: 580px) {
  .container {
    width: min(100% - 32px, 1140px);
  }

  .nav { min-height: 60px; }

  .nav-links a:nth-child(1),
  .nav-links a:nth-child(2) {
    display: none;
  }

  .hero-actions { flex-direction: column; }

  .button { width: 100%; }
}
