/* Logic Layer — company site
   Hand-written CSS. No external resources. Light theme, B2B software aesthetic. */

/* ---------- Design tokens ---------- */
:root {
  --ink-900: #0e1726;
  --ink-800: #1a2436;
  --ink-700: #2b3648;
  --ink-500: #55617a;
  --ink-400: #7a8499;
  --ink-300: #a7afc0;

  --paper: #ffffff;
  --paper-soft: #f6f8fb;
  --paper-line: #e6eaf1;

  --accent: #3457d5;
  --accent-strong: #2540a8;
  --accent-soft: #eef2fe;

  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1120px;

  --shadow-sm: 0 1px 2px rgba(14, 23, 38, 0.06), 0 1px 3px rgba(14, 23, 38, 0.04);
  --shadow-md: 0 8px 24px rgba(14, 23, 38, 0.08), 0 2px 6px rgba(14, 23, 38, 0.05);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

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

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

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

h1,
h2,
h3 {
  color: var(--ink-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 700;
}

p {
  margin: 0 0 1.1rem;
}

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

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

img,
svg {
  max-width: 100%;
}

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

.section {
  padding: 88px 0;
}

.section--soft {
  background: var(--paper-soft);
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
}

.section-head p {
  color: var(--ink-500);
  font-size: 1.05rem;
  margin-top: 12px;
  margin-bottom: 0;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--paper-line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
  color: var(--ink-900);
}

.brand .logo {
  width: 30px;
  height: 30px;
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: var(--ink-700);
  font-size: 0.96rem;
  font-weight: 520;
}

.nav-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.92rem;
}

.nav-cta:hover {
  background: var(--accent-strong);
  text-decoration: none;
}

.nav-toggle-only {
  display: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-strong);
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  background: #fff;
  color: var(--ink-800);
  border-color: var(--paper-line);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  border-color: var(--ink-300);
  color: var(--ink-900);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 84px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(52, 87, 213, 0.10), transparent 70%),
    radial-gradient(50% 50% at 6% 30%, rgba(52, 87, 213, 0.06), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  margin-bottom: 20px;
}

.hero .lead {
  font-size: 1.2rem;
  color: var(--accent-strong);
  font-weight: 600;
  margin-bottom: 18px;
}

.hero p.blurb {
  font-size: 1.12rem;
  color: var(--ink-500);
  max-width: 40ch;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Hero visual — layered geometric motif */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(14, 23, 38, 0.12));
}

/* ---------- About ---------- */
.prose {
  max-width: 720px;
}

.prose p {
  font-size: 1.08rem;
  color: var(--ink-700);
}

.prose p:last-child {
  margin-bottom: 0;
}

/* ---------- Products ---------- */
.product-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 28px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.product-badge {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  background: linear-gradient(150deg, var(--accent), #6f8bff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.product-badge svg {
  width: 46px;
  height: 46px;
}

.product-body h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.product-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 14px;
}

.product-body p {
  color: var(--ink-500);
}

.product-features {
  list-style: none;
  margin: 4px 0 22px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.product-features li {
  position: relative;
  padding-left: 22px;
  font-size: 0.98rem;
  color: var(--ink-700);
}

.product-features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.product-link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Approach ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.principle {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}

.principle .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.principle .icon svg {
  width: 24px;
  height: 24px;
}

.principle h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.principle p {
  color: var(--ink-500);
  font-size: 1rem;
  margin-bottom: 0;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-md);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--paper-line);
}

.contact-list li:first-child {
  padding-top: 0;
}

.contact-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-list .c-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-list .c-icon svg {
  width: 20px;
  height: 20px;
}

.contact-list .c-label {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 2px;
}

.contact-list .c-value {
  color: var(--ink-800);
  font-weight: 520;
}

.contact-list .c-value.muted {
  color: var(--ink-400);
  font-weight: 400;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-900);
  color: var(--ink-300);
  padding: 56px 0 40px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}

.footer-brand .logo {
  width: 28px;
  height: 28px;
}

.footer-tagline {
  margin: 14px 0 0;
  max-width: 34ch;
  color: var(--ink-400);
  font-size: 0.96rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-nav a {
  color: var(--ink-300);
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  font-size: 0.9rem;
  color: var(--ink-400);
}

.footer-bottom a {
  color: var(--ink-300);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }

  .principles {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle-only {
    display: inline-flex;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 24px;
  }

  .product-badge {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .product-badge svg {
    width: 34px;
    height: 34px;
  }

  .footer-top {
    flex-direction: column;
  }
}

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

  * {
    transition: none !important;
  }
}
