/* ===== Design tokens ===== */
:root {
  --ink:        #0B1B2B;   /* deep navy text / dark sections */
  --ink-soft:   #33485a;
  --muted:      #5b6b78;
  --line:       #e3e8ec;
  --bg:         #ffffff;
  --bg-alt:     #f5f8f9;
  --accent:     #0fb8a9;   /* teal */
  --accent-dk:  #0a9488;
  --radius:     16px;
  --maxw:       1080px;
  --shadow:     0 1px 2px rgba(11,27,43,.04), 0 12px 32px rgba(11,27,43,.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-dk); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-badge { display: block; border-radius: 8px; flex-shrink: 0; }
.brand-mark {
  font-weight: 800;
  letter-spacing: .04em;
  font-size: 1.2rem;
  color: var(--ink);
}
.brand-name { font-weight: 500; color: var(--muted); font-size: .95rem; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 10px;
}
.nav-cta:hover { background: #14283a; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: 12px;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #04302b;
  box-shadow: 0 8px 22px rgba(15,184,169,.28);
}
.btn-primary:hover { background: var(--accent-dk); color: #04302b; }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}
.btn-ghost:hover { border-color: var(--ink-soft); }
.btn-lg { padding: 17px 32px; font-size: 1.08rem; }

/* ===== Hero ===== */
.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(900px 360px at 80% -10%, rgba(15,184,169,.10), transparent 60%),
    linear-gradient(180deg, #fbfdfd, #ffffff);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent-dk);
  margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 800;
  margin: 0 0 22px;
  max-width: 16ch;
}
.lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0 0 14px;
}
.section-intro {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 60ch;
  margin: 0 0 44px;
}

/* ===== Grids ===== */
.grid { display: grid; gap: 22px; }
.services-grid { grid-template-columns: repeat(2, 1fr); }
.work-grid { grid-template-columns: repeat(3, 1fr); }

/* ===== Service cards ===== */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 10px; font-size: 1.18rem; }
.card p { margin: 0; color: var(--ink-soft); }

/* ===== Work cards ===== */
.work-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.logo-plate {
  height: 88px;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  margin-bottom: 18px;
}
.logo-plate img { max-height: 48px; width: auto; object-fit: contain; }
.logo-plate--text { background: var(--ink); border-color: var(--ink); }
.text-logo {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -.01em;
  color: #fff;
}
.role-tag {
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent-dk);
  background: rgba(15,184,169,.10);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.work-card h3 { margin: 0 0 10px; font-size: 1.3rem; }
.work-card p { margin: 0 0 18px; color: var(--ink-soft); flex-grow: 1; }
.work-links { display: flex; flex-direction: column; gap: 6px; }
.work-link { font-weight: 600; }

/* ===== About ===== */
.about-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-copy p { color: var(--ink-soft); font-size: 1.08rem; }
.about-facts {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
}
.about-facts ul { list-style: none; margin: 0; padding: 0; }
.about-facts li {
  display: flex;
  flex-direction: column;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.about-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.about-facts strong {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 3px;
}
.about-facts span { color: #dfe7ec; }

/* ===== Contact ===== */
.section-contact {
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(15,184,169,.12), transparent 60%),
    var(--bg-alt);
  text-align: center;
  border-top: 1px solid var(--line);
}
.contact-inner .section-intro { margin-inline: auto; }
.contact-alt { margin-top: 22px; color: var(--muted); }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: #c7d2da;
  padding: 44px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-brand .brand-mark { color: #fff; }
.footer-brand .x-bright { color: #2dd4bf; }
.footer-brand .brand-name { color: #8ba0ad; }
.footer-brand { display: flex; align-items: center; gap: 9px; }
.footer-meta { font-size: .85rem; color: #8ba0ad; }
.footer-meta p { margin: 2px 0; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: #fff; font-weight: 500; }

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .services-grid, .work-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 28px; }
  .nav { gap: 16px; }
  .nav a:not(.nav-cta) { display: none; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 60px 0; }
}
