/* Closyre AI — brand site
   Colors and radii follow the existing Closyre Territory product palette. */

:root {
  --ink: #12141c;
  --muted: #565c6e;
  --bg: #f4f5f8;
  --paper: #ffffff;
  --primary: #312db8;
  --primary-dark: #2a2796;
  --primary-fg: #f7f7ff;
  --accent: #e8e9fb;
  --border: #e4e6ee;
  --moss: #0f766e;
  --moss-bg: #e6f4f2;
  --shadow-soft: 0 1px 2px rgb(18 20 28 / 0.04), 0 8px 24px rgb(18 20 28 / 0.06);
  --shadow-float: 0 1px 1px rgb(18 20 28 / 0.05), 0 16px 40px rgb(18 20 28 / 0.1);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --header-h: 4.25rem;
  --max: 70rem;
  --font: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

@font-face {
  font-family: Inter;
  src: url("fonts/inter-latin-variable.woff2") format("woff2"),
       url("fonts/inter-latin-variable.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

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

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

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

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--primary-dark);
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-float);
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(calc(100% - 2.5rem), var(--max));
  margin-inline: auto;
}

@media (max-width: 40rem) {
  .wrap {
    width: min(calc(100% - 2rem), var(--max));
  }
}

/* Header
   -------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(244 245 248 / 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgb(228 230 238 / 0.9);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  min-height: 2.75rem;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  flex: none;
}

.brand-name {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-size: 1.0625rem;
}

.brand-name .ai {
  font-weight: 550;
  color: var(--muted);
  letter-spacing: -0.02em;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.25rem;
}

.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.45rem 0.15rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.site-nav a:not(.btn):hover {
  color: var(--primary);
}

/* Buttons
   -------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: 0 1px 1px rgb(18 20 28 / 0.08), 0 6px 16px rgb(49 45 184 / 0.22);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--primary-fg);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: #d4d7e2;
}

.btn-lg {
  min-height: 3.15rem;
  padding: 0.7rem 1.35rem;
  font-size: 1rem;
}

/* Hero
   -------------------------------------------------- */

.hero {
  position: relative;
  padding: 3.25rem 0 4rem;
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 28rem;
  background:
    radial-gradient(ellipse 50% 60% at 80% 20%, rgb(49 45 184 / 0.12), transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 0%, rgb(49 45 184 / 0.08), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.85rem;
}

h1,
h2,
h3 {
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0;
}

.hero h1 {
  font-size: clamp(2.15rem, 5.2vw, 3.65rem);
  font-weight: 700;
  max-width: 14ch;
}

.lead {
  margin: 1.15rem 0 0;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-art {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  padding: 1.15rem 1.15rem 1.25rem;
}

.hero-art-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}

.hero-art-label span {
  color: var(--muted);
  font-weight: 500;
}

.map-svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: #eef0f7;
}

/* Sections
   -------------------------------------------------- */

section {
  padding: 4rem 0;
}

.section-kicker {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.6rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 700;
  max-width: 22ch;
}

.section-copy {
  margin: 0.85rem 0 0;
  color: var(--muted);
  max-width: 38rem;
}

.problem {
  padding-top: 1rem;
}

.problem-grid {
  display: grid;
  gap: 1.15rem;
  margin-top: 2rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.35rem 1.4rem 1.45rem;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 650;
  margin-bottom: 0.45rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

/* Territory
   -------------------------------------------------- */

.territory {
  padding-top: 2.5rem;
}

.territory-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.75rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.badge-early {
  background: var(--moss-bg);
  color: var(--moss);
}

.badge-soon {
  background: var(--accent);
  color: var(--primary-dark);
}

.feature-grid {
  display: grid;
  gap: 1rem;
}

.feature {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem 1.3rem;
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  background: var(--accent);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
}

.feature-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.feature h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 0.3rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Modules
   -------------------------------------------------- */

.modules {
  padding-top: 2.5rem;
}

.module-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.module {
  display: grid;
  gap: 0.65rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem 1.3rem;
  box-shadow: var(--shadow-soft);
}

.module-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.module h3 {
  font-size: 1.05rem;
  font-weight: 650;
}

.module p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* CTA
   -------------------------------------------------- */

.cta {
  padding-bottom: 4.5rem;
}

.cta-panel {
  background: var(--primary);
  color: var(--primary-fg);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow-float);
  display: grid;
  gap: 1.25rem;
}

.cta-panel h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  max-width: 16ch;
}

.cta-panel p {
  margin: 0.6rem 0 0;
  color: rgb(247 247 255 / 0.86);
  max-width: 36rem;
}

.cta-panel a.mail {
  color: var(--primary-fg);
}

.cta-panel .btn-on-dark {
  background: var(--paper);
  color: var(--primary-dark);
  box-shadow: none;
  justify-self: start;
}

.cta-panel .btn-on-dark:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

/* Footer
   -------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.25rem 0 2.5rem;
  background: var(--paper);
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.footer-contacts a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
}

.footer-contacts a:hover {
  color: var(--primary);
}

.footer-meta {
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-meta p {
  margin: 0 0 0.35rem;
}


.title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}

.title-row .section-title {
  max-width: none;
}
/* Responsive
   -------------------------------------------------- */

@media (min-width: 40rem) {
  .problem-grid,
  .feature-grid,
  .module-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 64rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3.5rem;
    min-height: 28rem;
  }

  .hero {
    padding: 4.5rem 0 5rem;
  }

  .module-list {
    grid-template-columns: 1fr 1fr;
  }

  .cta-panel {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .footer-grid {
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 2rem;
  }

  .footer-meta {
    justify-self: end;
    text-align: right;
  }
}

@media (max-width: 47.99rem) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: rgb(244 245 248 / 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a:not(.btn) {
    padding: 0.85rem 0.35rem;
    border-bottom: 1px solid var(--border);
  }

  .site-nav .btn {
    margin-top: 0.75rem;
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 14rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
