:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #fbfaf7;
  --card: #ffffff;
  --accent: #15803d;
  --night: #060a13;
  --night-2: #0f172a;
  --orange: #fb923c;
  --amber: #fbbf24;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand img { width: 30px; height: 30px; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; letter-spacing: 0; }
.nav { display: flex; gap: 24px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 96px 0 72px; }
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  max-width: 16ch;
}
.hero p.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 32px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--ink);
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1e293b; }
.btn-ghost:hover { background: #fff; }

/* Sections */
section { padding: 72px 0; }
.section-title {
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 16px;
}
.section-intro { color: var(--ink-soft); max-width: 62ch; margin: 0 0 40px; font-size: 17px; }

/* Trimetra */
.trimetra {
  background: radial-gradient(1200px 500px at 85% 0%, rgba(251, 146, 60, 0.16), transparent 60%), var(--night);
  color: #f8fafc;
}
.trimetra .eyebrow {
  background: linear-gradient(135deg, var(--orange), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.trimetra .section-intro { color: #cbd5e1; }
.trimetra-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.trimetra-logo { height: 44px; width: auto; margin-bottom: 24px; }
.features { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 16px; }
.features li { padding-left: 22px; position: relative; color: #e2e8f0; }
.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}
.features strong { color: #fff; }
.btn-brand {
  background: linear-gradient(135deg, var(--orange), var(--amber));
  border: 0;
  color: var(--night);
}
.btn-brand:hover { filter: brightness(1.05); }
.trimetra .btn-ghost { border-color: #475569; color: #f8fafc; }
.trimetra .btn-ghost:hover { background: var(--night-2); }
.phone {
  justify-self: center;
  width: min(320px, 100%);
  border-radius: 32px;
  border: 1px solid #1e293b;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  aspect-ratio: 1284 / 2000;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

/* Story */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.story p { color: var(--ink-soft); margin: 0 0 16px; font-size: 17px; }
.principles { display: grid; gap: 16px; align-content: start; }
.principle {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.principle h3 { margin: 0 0 4px; font-size: 16px; }
.principle p { margin: 0; color: var(--muted); font-size: 15px; }

/* Contact */
.contact { border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.details { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; font-size: 15px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--muted); }

/* Text pages */
.page { padding: 72px 0; max-width: 72ch; }
.page h1 { font-size: 40px; letter-spacing: -0.02em; margin: 0 0 8px; }
.page h2 { font-size: 20px; margin: 36px 0 8px; }
.page p, .page li { color: var(--ink-soft); }
.page .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }

@media (max-width: 860px) {
  .trimetra-grid, .story-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .nav { gap: 16px; font-size: 14px; }
  .nav .hide-sm { display: none; }
  .hero { padding: 64px 0 48px; }
  section { padding: 56px 0; }
}
