/* Spark Triangle — shared styles for the company pages. No external resources.
   Theme "Daybreak": a light page with a sunrise glow behind the spark. */

:root {
  --bg: #f6f8fd;
  --surface: #fff;
  --ink: #171a3a;
  --text: #3b4063;
  --muted: #6a6f8f;
  --faint: #8a8fab;
  --electric: #4338ff;
  --electric-deep: #3328e6;
  --line: rgba(23, 26, 58, 0.09);
  --card-line: rgba(23, 26, 58, 0.08);
  --sky: linear-gradient(180deg, #d9e4ff 0%, #e9eeff 40%, #fff0e2 82%, var(--bg) 100%);
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }

a { color: inherit; }
img { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 248, 253, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; letter-spacing: 0.2px; }
.brand img { width: 20px; height: 18px; }

.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-size: 14.5px; color: var(--text); }
.nav a:hover, .nav a:focus-visible { color: var(--electric); }

.menu { display: none; position: relative; }
.menu summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
  padding: 6px 10px;
  border: 1px solid rgba(23, 26, 58, 0.18);
  border-radius: 8px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary::before {
  content: "";
  width: 16px;
  height: 10px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat;
}
.menu .nav {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
  padding: 10px 8px;
  background: var(--surface);
  border: 1px solid var(--card-line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(40, 46, 120, 0.14);
}
.menu .nav a { padding: 8px 12px; border-radius: 8px; }
.menu .nav a:hover { background: rgba(67, 56, 255, 0.06); }

main { flex: 1; }

/* Hero: sky gradient with the sun rising behind the logo. */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -64px 0 0 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 50%, rgba(255, 255, 255, 0.9) 0, rgba(200, 208, 255, 0.7) 12%, rgba(255, 210, 190, 0.28) 30%, transparent 50%),
    var(--sky);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 96px;
}
.eyebrow { margin: 0 0 16px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #7a5a3a; }
.hero h1 { font-size: clamp(34px, 4.6vw, 50px); letter-spacing: -1.4px; font-weight: 750; margin-bottom: 20px; }
.lead { font-size: 18px; max-width: 30em; margin: 0 0 32px; color: #464b6e; }
.hero-logo { justify-self: center; width: min(340px, 78%); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--electric);
  color: #fff;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(67, 56, 255, 0.28);
}
.btn:hover, .btn:focus-visible { background: var(--electric-deep); }

/* Sections */
.section { scroll-margin-top: 64px; }
.section .wrap { padding-top: 72px; padding-bottom: 72px; }
.section h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.4px; }
.section-sub { margin: 6px 0 32px; color: var(--muted); font-size: 15px; }
#about { background: var(--surface); }

.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.app-card {
  padding: 22px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--card-line);
  box-shadow: 0 1px 2px rgba(23, 26, 58, 0.04), 0 14px 34px rgba(67, 56, 255, 0.08);
}
.app-card img {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  display: block;
  margin: 4px 0 20px;
  filter: saturate(0.72) brightness(1.03);
  box-shadow: 0 0 0 4px #e3e8ff, 0 6px 18px rgba(67, 56, 255, 0.18);
}
.app-card h3 { font-size: 19px; font-weight: 650; }
.app-card p { margin: 6px 0 16px; font-size: 14.5px; color: var(--muted); }
.app-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.app-links a { color: var(--electric); text-underline-offset: 3px; text-decoration-color: rgba(67, 56, 255, 0.3); }
.app-links a:hover { text-decoration-color: var(--electric); }

.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.about h2 { margin-bottom: 16px; }
.about p { margin: 0; font-size: 16.5px; max-width: 34em; }
.facts { display: grid; grid-template-columns: 110px 1fr; gap: 10px 16px; margin: 0; padding: 22px 24px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; font-size: 15px; }
.facts dt { color: var(--faint); }
.facts dd { margin: 0; color: var(--ink); }
.facts a { color: var(--electric); text-decoration: none; }

/* Inner pages (contact, legal, 404): a softer band of the same sky at the top. */
.page { position: relative; }
.page::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -64px 0 auto 0;
  height: 460px;
  pointer-events: none;
  background:
    radial-gradient(circle at 86% 42%, rgba(255, 255, 255, 0.8) 0, rgba(200, 208, 255, 0.5) 14%, rgba(255, 210, 190, 0.2) 26%, transparent 38%),
    var(--sky);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.page .wrap { padding-top: 72px; padding-bottom: 88px; }
.page h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -1px; font-weight: 750; margin-bottom: 10px; }
.page-meta { color: var(--muted); font-size: 14.5px; margin: 0 0 40px; }
.prose { max-width: 70ch; padding: 36px 40px; background: var(--surface); border: 1px solid var(--card-line); border-radius: 18px; box-shadow: 0 14px 34px rgba(67, 56, 255, 0.06); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 20px; font-weight: 650; margin: 36px 0 12px; }
.prose p, .prose li { font-size: 16px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--electric); text-underline-offset: 3px; }

.contact-card { max-width: 480px; padding: 26px 28px; border: 1px solid var(--card-line); border-radius: 18px; background: var(--surface); box-shadow: 0 14px 34px rgba(67, 56, 255, 0.08); }
.contact-card dl { margin: 0; display: grid; grid-template-columns: 90px 1fr; gap: 12px 16px; }
.contact-card dt { color: var(--faint); }
.contact-card dd { margin: 0; color: var(--ink); }
.contact-card a { color: var(--electric); }

/* Footer: deep indigo to anchor the light page. */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.7); font-size: 14px; }
.site-footer .brand { color: #fff; }
.site-footer .brand img { filter: brightness(0) invert(1); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 36px; }
.footer-grid p { margin: 12px 0 0; color: rgba(255, 255, 255, 0.6); max-width: 22em; }
.footer-grid h2 { font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); font-weight: 600; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid ul a { text-decoration: none; color: rgba(255, 255, 255, 0.78); }
.footer-grid ul a:hover { color: #fff; }
.legal-bar { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.legal-bar .wrap { padding-top: 18px; padding-bottom: 22px; color: rgba(255, 255, 255, 0.5); font-size: 13px; }

:focus-visible { outline: 2px solid var(--electric); outline-offset: 3px; border-radius: 4px; }
.site-footer :focus-visible { outline-color: #fff; }

/* Tablet */
@media (max-width: 900px) {
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Phone */
@media (max-width: 720px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .site-header .nav-inline { display: none; }
  .menu { display: block; }
  .hero::before {
    background:
      radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.9) 0, rgba(200, 208, 255, 0.7) 16%, rgba(255, 210, 190, 0.28) 32%, transparent 50%),
      var(--sky);
  }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; gap: 12px; padding-top: 40px; padding-bottom: 64px; }
  .hero-logo { grid-row: 1; width: 200px; }
  .lead { font-size: 16.5px; margin-left: auto; margin-right: auto; }
  .section .wrap { padding-top: 56px; padding-bottom: 56px; }
  .app-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 96px 1fr; }
  .page::before { height: 300px; }
  .page .wrap { padding-top: 48px; padding-bottom: 64px; }
  .prose { padding: 24px 20px; border-radius: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

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