/* OVERNICE LLC — site styles (no external dependencies) */
:root {
  --bg: #0a101c;
  --bg-alt: #0e1524;
  --surface: #131b2c;
  --surface-2: #182236;
  --border: #233049;
  --text: #ffffff;
  --text-muted: #a7b1c4;
  --text-dim: #7c879c;
  --accent: #4c8dff;
  --accent-soft: rgba(76, 141, 255, 0.12);
  --radius: 14px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 16, 28, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 700; letter-spacing: 0.14em; font-size: 15px;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  border: 1.5px solid var(--accent);
  display: grid; place-items: center;
}
.brand-mark::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
}
.brand small { font-weight: 500; color: var(--text-dim); letter-spacing: 0.14em; }

.nav { display: flex; gap: 28px; }
.nav a { color: var(--text-muted); font-size: 14.5px; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 120px 0 112px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(76, 141, 255, 0.16), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero .container { position: relative; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(76, 141, 255, 0.28);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 26px;
}
.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08; letter-spacing: -0.02em; font-weight: 700;
  max-width: 820px;
}
.hero p.lead {
  margin: 0 0 38px; max-width: 640px;
  font-size: clamp(17px, 2vw, 20px); color: var(--text-muted);
}
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 10px;
  font-size: 15px; font-weight: 600; transition: background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #3a7ef5; }
.btn-ghost { color: var(--text); border: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: #3a4a68; }

/* Sections */
.section { padding: 96px 0; border-bottom: 1px solid var(--border); }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 12px;
}
.section h2 {
  margin: 0 0 16px; font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15; letter-spacing: -0.015em;
}
.section-head p { margin: 0; color: var(--text-muted); font-size: 18px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: #31415f; }
.card h3 { margin: 0 0 10px; font-size: 18px; letter-spacing: -0.005em; }
.card p { margin: 0; color: var(--text-muted); font-size: 15.5px; }
.card .icon {
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: 20px;
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid rgba(76, 141, 255, 0.25);
}
.card .icon svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.about-text p { color: var(--text-muted); margin: 0 0 18px; }
.about-text p:last-child { margin-bottom: 0; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.principles li {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 20px; display: grid; gap: 4px;
}
.principles strong { font-size: 16px; }
.principles span { color: var(--text-muted); font-size: 15px; }

/* Contact */
.contact-panel {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border); border-radius: 18px; padding: 48px;
}
.contact-panel h2 { margin-bottom: 12px; }
.contact-panel p { color: var(--text-muted); margin: 0; }
.contact-details { display: grid; gap: 18px; }
.contact-item { display: grid; gap: 2px; }
.contact-item .k {
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); font-weight: 600;
}
.contact-item .v { font-size: 18px; color: var(--text); }
.contact-item a.v { color: var(--text); border-bottom: 1px solid var(--accent); }
.contact-item a.v:hover { text-decoration: none; color: var(--accent); }

/* Footer */
.site-footer { padding: 36px 0; background: var(--bg); }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  color: var(--text-dim); font-size: 14px;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--text-muted); }

/* Legal page */
.legal-hero { padding: 80px 0 48px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.legal-hero h1 { margin: 0 0 10px; font-size: clamp(32px, 4.5vw, 46px); letter-spacing: -0.02em; line-height: 1.1; }
.legal-hero p { margin: 0; color: var(--text-dim); font-size: 15px; }
.legal { padding: 56px 0 96px; }
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 22px; margin: 44px 0 12px; letter-spacing: -0.01em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--text-muted); }
.legal-body ul { padding-left: 22px; margin: 0 0 16px; }
.legal-body li { margin-bottom: 8px; }
.legal-body strong { color: var(--text); font-weight: 600; }
.back-link { display: inline-block; margin-bottom: 28px; font-size: 14.5px; font-weight: 500; }

/* Responsive */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-panel { grid-template-columns: 1fr; }
  .about-grid { gap: 36px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 12px; padding-bottom: 12px; min-height: 0; }
  .nav { gap: 20px; flex-wrap: wrap; }
  .nav a { font-size: 14px; }
  .site-header { position: static; }
  .hero { padding: 72px 0 72px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .contact-panel { padding: 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
