/* 3iDATA — company site. Static, no framework. Light theme, technical/professional. */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f8f9;
  --ink: #0f172a;          /* slate-900 */
  --ink-soft: #334155;     /* slate-700 */
  --muted: #64748b;        /* slate-500 */
  --accent: #0f766e;       /* teal-700 */
  --accent-soft: #14b8a6;  /* teal-500 */
  --border: #e2e8f0;       /* slate-200 */
  --card: #ffffff;
  --maxw: 1080px;
  --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; height: 34px; width: auto; }
.nav { display: flex; gap: 24px; flex-wrap: wrap; }
.nav a { color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--accent); text-decoration: none; }

/* Hero */
.hero { padding: 80px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-art { min-width: 0; }
.hero-art img { width: 100%; height: auto; display: block; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700;
  color: var(--accent); margin: 0 0 16px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 20px; max-width: 14ch; font-weight: 800;
}
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-soft); max-width: 62ch; margin: 0 0 32px; }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #0b5e57; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.01em; margin: 0 0 24px; font-weight: 800; }
.section p { color: var(--ink-soft); margin: 0 0 16px; }
.muted { color: var(--muted) !important; }
/* Prose-only sections: align left with the other sections (full container)
   but keep a readable line length. */
#about p, #contact p { max-width: 68ch; }

/* Focus grid */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover { border-color: var(--accent-soft); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06); }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 700; }
.card h3::before { content: ""; display: block; width: 32px; height: 4px; border-radius: 2px; background: var(--accent); margin-bottom: 14px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* Products */
.product {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 18px;
  background: var(--card);
}
.product-muted { background: var(--bg-alt); }
.product-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.product-head h3 { margin: 0; font-size: 1.4rem; font-weight: 800; }
.product p { margin: 0 0 14px; }
.badge {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 999px; background: var(--border); color: var(--ink-soft);
}
.badge-live { background: #ccfbf1; color: #0b5e57; }
.link-arrow { font-weight: 700; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; background: var(--bg); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { color: var(--ink-soft); font-weight: 600; }
.footer-legal { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.footer-legal nav { display: flex; gap: 8px 18px; flex-wrap: wrap; }
.footer-legal a { color: var(--muted); font-weight: 500; font-size: 0.82rem; }
.footer-legal a:hover { color: var(--accent); }

/* Legal / policy pages reuse the .article prose styles, with a few extras */
.legal-toc { max-width: 720px; margin: 0 0 28px; padding: 16px 20px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); }
.legal-toc p { margin: 0 0 8px; font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.legal-toc ul { columns: 2; column-gap: 28px; margin: 0; padding-left: 18px; }
.legal-toc li { margin: 0 0 6px; }
@media (max-width: 560px) { .legal-toc ul { columns: 1; } }

/* Responsive */
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { max-width: 480px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  /* Stack the header: logo on top, nav centered below (no overflow/misalignment). */
  .header-inner { flex-direction: column; align-items: center; height: auto; gap: 10px; padding: 12px 0; }
  .nav { width: 100%; justify-content: center; flex-wrap: wrap; gap: 8px 18px; }
  .nav a { font-size: 0.92rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}

/* Blog — article + post list */
.post-back { font-weight: 600; margin: 0 0 20px; }
.article h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em;
  margin: 0 0 12px; max-width: 24ch; font-weight: 800;
}
.post-meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 28px; }
.post-lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 720px; margin: 0 0 8px; }
.article h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem); letter-spacing: -0.01em; margin: 40px 0 12px; font-weight: 800;
}
.article p, .article ul { max-width: 720px; }
.article p { margin: 0 0 18px; color: var(--ink-soft); line-height: 1.75; }
.article ul { margin: 0 0 18px; padding-left: 22px; color: var(--ink-soft); line-height: 1.7; }
.article li { margin: 0 0 12px; }
.article strong { color: var(--ink); }
.article code {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 5px;
  padding: 1px 6px; font-size: 0.9em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.article .table-wrap { max-width: 760px; overflow-x: auto; margin: 0 0 18px; }
.article table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.article th, .article td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; vertical-align: top; }
.article thead th { background: var(--bg-alt); font-weight: 700; color: var(--ink); }
.article tbody td { color: var(--ink-soft); }
.article .callout {
  max-width: 760px; margin: 0 0 18px; padding: 14px 18px;
  border: 1px solid #fcd34d; background: #fffbeb; border-radius: 10px;
}
.article .callout p { margin: 0; color: var(--ink-soft); }

.post-list { list-style: none; margin: 24px 0 0; padding: 0; }
.post-card { border-top: 1px solid var(--border); padding: 26px 0; max-width: 760px; }
.post-card:first-child { border-top: none; padding-top: 8px; }
.post-card h2 { margin: 4px 0 10px; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; }
.post-card h2 a { color: var(--ink); }
.post-card h2 a:hover { color: var(--accent); }
.post-card p { color: var(--ink-soft); margin: 0 0 10px; }
