/* TielOS — site styles
   Palette: navy + warm amber accent, warm off-white background.
   No stock photos or generated images — icons and CSS only. */

:root {
  --navy-900: #0f1e33;
  --navy-800: #16283f;
  --navy-700: #203450;
  --ink: #16202c;
  --slate-600: #4b5768;
  --slate-400: #7c8798;
  --amber-500: #e2911f;
  --amber-600: #c67912;
  --bg: #f7f5f0;
  --card: #ffffff;
  --border: #e5ddce;
  --border-dark: #2a3c58;

  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

p { margin: 0 0 16px; color: var(--slate-600); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 245, 240, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy-900);
}

.brand-name .os {
  color: var(--amber-600);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--slate-600);
  white-space: nowrap;
}

.site-nav a:hover { color: var(--navy-900); }

.site-nav .nav-link { display: inline-block; }

@media (max-width: 620px) {
  .site-nav .nav-link { display: none; }
  .site-nav { gap: 12px; }
  .brand-name { font-size: 1.1rem; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 11px 20px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--amber-500);
  color: var(--navy-900);
}

.btn-primary:hover { background: var(--amber-600); }

.btn-ghost {
  background: transparent;
  border-color: var(--border-dark);
  color: var(--navy-900);
}

.btn-ghost:hover { border-color: var(--navy-900); }

/* ---------- Hero ---------- */

.hero {
  background: var(--navy-900);
  color: #f4f1ea;
  padding: 96px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(226, 145, 31, 0.16) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 70%);
  pointer-events: none;
}

.hero .wrap { position: relative; }

.hero-inner {
  max-width: 680px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  color: #ffffff;
}

.hero .eyebrow { color: var(--amber-500); }

.hero p.lede {
  font-size: 1.12rem;
  color: #c9d1de;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero .btn-ghost {
  border-color: #3c4d68;
  color: #f4f1ea;
}

.hero .btn-ghost:hover { border-color: #f4f1ea; }

/* ---------- Who it's for ---------- */

.trades {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trade-chip {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--navy-800);
}

.who-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 760px) {
  .who-grid { grid-template-columns: 1fr; }
}

/* ---------- Pain points ---------- */

.pain-section { background: var(--navy-900); color: #f4f1ea; }
.pain-section .eyebrow { color: var(--amber-500); }
.pain-section h2 { color: #ffffff; }
.pain-section > .wrap > p { color: #c9d1de; max-width: 620px; }

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

@media (max-width: 820px) {
  .pain-grid { grid-template-columns: 1fr; }
}

.pain-card {
  background: var(--navy-800);
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  padding: 28px 24px;
}

.pain-card .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  color: var(--amber-500);
}

.pain-card h3 {
  font-size: 1.08rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.pain-card p {
  color: #b7c0cf;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- What / How ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  counter-reset: step;
}

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  position: relative;
  padding-left: 4px;
}

.step .num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--amber-600);
  border: 1px solid var(--border);
  background: var(--card);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Contact ---------- */

.contact-section { background: var(--card); border-top: 1px solid var(--border); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info a {
  text-decoration: none;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy-900);
}

.contact-row .icon {
  width: 22px;
  height: 22px;
  color: var(--amber-600);
  flex: none;
}

.contact-row span.label {
  display: block;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

form.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--amber-500);
  outline-offset: 1px;
}

.field textarea { resize: vertical; min-height: 110px; }

.form-note {
  font-size: 0.82rem;
  color: var(--slate-400);
  margin-top: 10px;
  margin-bottom: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-900);
  color: #9aa6ba;
  padding: 40px 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand .brand-mark { width: 22px; height: 22px; }

.footer-brand span {
  font-family: var(--font-head);
  font-weight: 700;
  color: #f4f1ea;
}

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 0.9rem;
}

.footer-links a { text-decoration: none; color: #9aa6ba; }
.footer-links a:hover { color: #f4f1ea; }

.footer-fine {
  font-size: 0.82rem;
  margin-top: 18px;
  color: #6c7690;
}

/* ---------- Blog placeholder ---------- */

.blog-hero {
  background: var(--navy-900);
  color: #f4f1ea;
  padding: 90px 0 70px;
}

.blog-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.blog-hero p { color: #c9d1de; max-width: 560px; }

.coming-soon {
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  margin-top: 8px;
}

.coming-soon .icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  color: var(--amber-600);
}

.coming-soon h2 { margin-bottom: 8px; }
.coming-soon p { max-width: 460px; margin-left: auto; margin-right: auto; }

/* ---------- Post list ---------- */

.post-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.post-card {
  display: block;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 28px;
  transition: border-color 0.15s ease;
}

.post-card:hover { border-color: var(--amber-500); }

.post-card .post-eyebrow {
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-600);
}

.post-card h2 {
  font-size: 1.2rem;
  margin: 8px 0 8px;
  color: var(--navy-900);
}

.post-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}
