/* HYPERSMARTY LLC — corporate site
   ------------------------------------------------ */
:root {
  --ink: #14161b;
  --ink-soft: #3b3f48;
  --muted: #6a7080;
  --paper: #ffffff;
  --paper-alt: #f7f6f3;
  --line: #e6e4df;
  --accent: #3f4ee0;
  --accent-dark: #2b37b8;
  --night: #0d0f14;
  --night-soft: #161922;
  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 14px;
  font-synthesis-weight: none;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1.1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 18px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brandmark {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brandmark:hover { text-decoration: none; }
.brandmark .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.nav a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  margin-left: 28px;
}
.nav a:hover { color: var(--accent); text-decoration: none; }
@media (max-width: 640px) {
  .nav a { margin-left: 16px; font-size: 13px; }
  .brandmark { font-size: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--night);
  color: #eef0f5;
  padding: clamp(72px, 12vw, 150px) 0 clamp(64px, 10vw, 128px);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 55% at 78% 12%, rgba(63, 78, 224, 0.28), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow { color: #9aa2b8; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  max-width: 15ch;
  margin-bottom: 0.35em;
}
.hero p.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: #c6cad8;
  max-width: 54ch;
  margin-bottom: 2em;
}
.hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  font-size: 14px;
  color: #9aa2b8;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
}
.hero .meta strong { color: #eef0f5; font-weight: 600; }

/* ---------- Sections ---------- */
section { padding: clamp(60px, 9vw, 112px) 0; }
section.alt { background: var(--paper-alt); }
.section-head { max-width: 62ch; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.section-head p { color: var(--ink-soft); font-size: 1.06rem; margin-bottom: 0; }

.lede { font-size: 1.18rem; color: var(--ink-soft); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
}
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

.factlist { list-style: none; margin: 0; padding: 0; }
.factlist li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.factlist li span:first-child { color: var(--muted); }
.factlist li span:last-child { text-align: right; font-weight: 500; }

/* ---------- Companies ---------- */
.company-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 760px) { .company-grid { grid-template-columns: 1fr; } }

.company {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 30px 26px;
  background: var(--paper);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}
section.alt .company { background: #fff; }
.company:hover {
  border-color: #c9c6bd;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -22px rgba(20, 22, 27, 0.28);
}
.company h3 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.company .cat {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.company p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 18px; flex: 1; }
.company a.visit {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.company a.visit:hover { color: var(--accent); text-decoration: none; }
.company a.visit::after { content: "\2192"; transition: transform 0.15s ease; }
.company a.visit:hover::after { transform: translateX(3px); }

/* ---------- Contact ---------- */
.contact-card {
  background: var(--night);
  color: #eef0f5;
  border-radius: 20px;
  padding: clamp(36px, 6vw, 64px);
}
.contact-card h2 { color: #fff; }
.contact-card p { color: #c6cad8; }
.contact-card a { color: #aeb6ff; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 34px;
}
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid h4 {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9aa2b8;
  margin-bottom: 8px;
}
.contact-grid p { margin: 0; font-size: 15px; line-height: 1.6; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 60px;
  font-size: 13.5px;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--accent); }
.footer-links a { margin-left: 22px; }
.footer-links a:first-child { margin-left: 0; }
.footer-legal { max-width: 60ch; }
@media (max-width: 640px) {
  .footer-links a { margin-left: 0; margin-right: 18px; display: inline-block; }
}

/* ---------- Legal pages ---------- */
.legal {
  padding: clamp(48px, 8vw, 96px) 0 clamp(60px, 10vw, 110px);
}
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.legal h2 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin-top: 40px;
  margin-bottom: 10px;
}
.legal h3 { font-family: "Inter", sans-serif; font-weight: 600; font-size: 1rem; margin-top: 26px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 15.5px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .back {
  display: inline-block;
  margin-bottom: 36px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.skip-link {
  position: absolute;
  left: -999px;
}
.skip-link:focus {
  left: 16px; top: 12px;
  background: #fff; padding: 8px 14px; border-radius: 8px;
  z-index: 100; border: 1px solid var(--line);
}
