/* ========== TOKENS ========== */
:root {
  --bg: #F8FAFC;
  --ink: #0F172A;
  --rule: #E2E8F0;
  --blue: #0EA5E9;
  --blue-dark: #0369A1;
  --blue-tint: #F0F9FF;
  --muted: rgba(15, 23, 42, 0.6);
  --faint: rgba(15, 23, 42, 0.4);
  --max: 1400px;
  --pad: clamp(1.5rem, 5vw, 4rem);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body { font-size: 18px; line-height: 1.6; }

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

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

/* ========== LAYOUT HELPERS ========== */
.section { padding: clamp(5rem, 10vw, 9rem) var(--pad); border-bottom: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 900px) {
  .row { grid-template-columns: 4fr 8fr; gap: 4rem; }
  .row.align-end { align-items: end; }
}

/* ========== HEADER ========== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  height: 80px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
}
.logo { height: 44px; width: auto; }
.logo-sm { height: 40px; }
.main-nav { display: flex; align-items: center; gap: 2.5rem; }
.main-nav a {
  font-size: 0.875rem; font-weight: 500;
  color: var(--muted); transition: color 0.2s;
}
.main-nav a:hover { color: var(--blue); }
.status {
  display: none; align-items: center; gap: 0.5rem;
  padding-left: 1.5rem; border-left: 1px solid var(--rule);
}
@media (min-width: 640px) { .status { display: flex; } }
.status-dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue);
}
.status-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--blue); opacity: 0.6;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.6; }
  75%, 100% { transform: scale(2.5); opacity: 0; }
}
.status-text {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--faint);
}

/* ========== TYPOGRAPHY ========== */
.mono-label, .mono-num, .service-stack li, .status-text, .footer-bottom p {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
}
.mono-blue { color: var(--blue); margin-bottom: 2rem; display: block; }
.mono-muted { color: var(--faint); }
.mono-num { color: var(--blue); margin-top: 2px; }

.hero-title {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.05;
  max-width: 48rem;
}
.hero-sub { margin-top: 2rem; font-size: 1.25rem; color: var(--muted); max-width: 36rem; line-height: 1.6; }

.about-text {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 500;
  letter-spacing: -0.01em; line-height: 1.3; color: rgba(15,23,42,0.9);
}

.cta-title { font-size: clamp(1.875rem, 5vw, 3rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.col-cta { display: flex; }
@media (min-width: 900px) { .col-cta { justify-content: flex-end; } }

/* ========== BUTTONS ========== */
.btn-primary, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 48px; padding: 0 1.75rem;
  font-size: 0.875rem; font-weight: 500;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  min-width: 44px; min-height: 44px;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--blue); }
.btn-primary:hover .arrow { transform: translate(2px, -2px); }
.btn-outline { border: 1px solid var(--rule); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.arrow { transition: transform 0.2s; font-size: 0.9em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; }

/* ========== SERVICES ========== */
.section > p.mono-muted { margin-bottom: 3rem; }
.service-list { display: flex; flex-direction: column; }
.service-row {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  padding: 2.5rem 0; border-top: 1px solid var(--rule);
  transition: background 0.2s;
}
.service-row:first-child { border-top: none; }
.service-row:hover { background: var(--blue-tint); }
.service-head { display: flex; align-items: flex-start; gap: 1rem; }
.service-head h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; }
.service-desc { font-size: 1.125rem; color: var(--muted); line-height: 1.6; }
.service-stack { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.service-stack li { color: var(--muted); }
@media (min-width: 900px) {
  .service-row { grid-template-columns: 4fr 5fr 3fr; gap: 4rem; padding: 2.5rem; margin: 0 -1rem; border-radius: 2px; }
  .service-row:first-child { border-top: none; }
}

/* ========== CONTACT ========== */
.contact { border-top: 1px solid var(--rule); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 5fr 7fr; gap: 5rem; }
}
.contact-title { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.contact-sub { margin-top: 2rem; font-size: 1.125rem; color: var(--muted); max-width: 28rem; line-height: 1.6; }
.contact-meta { margin-top: 3rem; display: flex; flex-direction: column; gap: 1.5rem; }
.contact-meta > div { display: flex; flex-direction: column; gap: 0.5rem; }
.meta-value { font-size: 1rem; color: var(--muted); }
.meta-value:hover, a.meta-value:hover { color: var(--blue); }
.opt { text-transform: none; }

.contact-right { }
@media (min-width: 900px) {
  .contact-right { border-left: 1px solid var(--rule); padding-left: 2rem; }
}
.contact-form { display: flex; flex-direction: column; gap: 2.5rem; }
.field { display: flex; flex-direction: column; gap: 0.75rem; }
.field label { display: block; }
.contact-form input, .contact-form textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--rule);
  padding: 0.75rem 0; font-size: 1.125rem; color: var(--ink);
  font-family: inherit; resize: none;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(15,23,42,0.3); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); }
.btn-send { width: 100%; height: 56px; margin-top: 0.5rem; font-size: 1rem; }

.success { padding: 5rem 0; }
.success-title { font-size: 1.875rem; font-weight: 600; letter-spacing: -0.02em; margin: 1.5rem 0 1rem; }

/* ========== FOOTER ========== */
.site-footer { border-top: 1px solid var(--rule); padding: 3rem var(--pad); }
.footer-inner { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
.footer-brand { max-width: 24rem; }
.footer-tag { margin-top: 1rem; font-size: 0.875rem; color: var(--muted); line-height: 1.6; }
.footer-cols { display: flex; gap: 2.5rem; }
.footer-cols > div { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-cols p { margin-bottom: 0.75rem; }
.footer-cols a, .footer-cols span { font-size: 0.875rem; color: var(--muted); }
.footer-cols a:hover { color: var(--blue); }
.footer-bottom {
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 1rem;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

/* ========== FOCUS/ACCESSIBILITY ========== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px;
}
