@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap");

:root {
  --bg: #f4f3ee;
  --surface: #faf8f3;
  --surface-strong: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.62);
  --text: #1c1917;
  --muted: #7d766d;
  --muted-soft: #9d978f;
  --border: rgba(28, 25, 23, 0.09);
  --border-strong: rgba(28, 25, 23, 0.14);
  --primary: #25596a;
  --primary-deep: #1d4a58;
  --primary-soft: rgba(37, 89, 106, 0.08);
  --shadow-soft: 0 18px 48px rgba(28, 25, 23, 0.05);
  --shadow-hero: 0 20px 60px rgba(28, 25, 23, 0.07);
  --radius-hero: 34px;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: min(1320px, calc(100vw - 28px));
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Inter Fallback", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--text);
  background: rgba(15, 76, 92, 0.2);
}

a {
  color: inherit;
}

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

.site-shell {
  width: var(--container);
  margin: 0 auto;
  padding: 18px 0 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 6px 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 210px;
  height: 86px;
  flex: 0 0 210px;
  background: url("layralogowords.png") left center / contain no-repeat;
}

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

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 180ms ease;
}

.nav a.is-active,
.nav a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 14px;
  min-height: 48px;
  padding: 0 18px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button-large {
  min-height: 60px;
  padding: 0 28px;
  font-size: 1rem;
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.button-primary,
.nav-cta {
  background: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 10px 26px rgba(37, 89, 106, 0.16);
}

.button-primary:hover,
.nav-cta:hover {
  background: var(--primary-deep);
  box-shadow: 0 14px 32px rgba(37, 89, 106, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.64);
  color: var(--text);
  border-color: var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.82);
}

.nav-ghost {
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  border-color: var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.section {
  margin-top: 18px;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(28, 25, 23, 0.08);
  border-radius: var(--radius-hero);
  min-height: min(760px, calc(100vh - 110px));
  background:
    radial-gradient(circle at 18% 20%, rgba(145, 211, 236, 0.44), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(243, 219, 147, 0.36), transparent 24%),
    radial-gradient(circle at 74% 82%, rgba(142, 205, 203, 0.34), transparent 26%),
    radial-gradient(circle at 10% 90%, rgba(122, 196, 240, 0.22), transparent 22%),
    linear-gradient(180deg, rgba(243, 247, 240, 0.95), rgba(238, 244, 238, 0.92));
  box-shadow: var(--shadow-hero);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    radial-gradient(circle at center, rgba(255, 248, 224, 0.3), transparent 34%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: inherit;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 64px 24px 72px;
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: #4f8aa0;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.compliance-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: #4d6670;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 8px 24px rgba(28, 25, 23, 0.04);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.hero-copy h1,
.subhero h1,
.section-head h2,
.cta-panel h2,
.contact-panel h2 {
  margin: 0;
  font-family: "Fraunces", "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--text);
}

.hero-actions,
.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-actions-large {
  justify-content: center;
  margin-top: 12px;
}

.hero-copy h1 {
  max-width: 10ch;
  font-size: clamp(4rem, 7vw, 6.9rem);
  line-height: 1.02;
}

.lede,
.section-copy,
.hero-subtext {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.15rem);
  line-height: 1.6;
}

.hero-subtext {
  max-width: 760px;
}

.hero-card,
.stat-card,
.feature-row,
.demo-stage,
.cta-panel,
.module-card,
.workflow-card,
.contact-panel,
.subhero,
.architecture,
.workflow-grid,
.stats,
.feature-band,
.demo {
  border-radius: var(--radius-xl);
}

.hero-card {
  min-height: 168px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 36px rgba(28, 25, 23, 0.04);
  text-align: left;
}

.hero-card h3,
.feature-copy h3,
.module-card h3,
.workflow-card h3 {
  margin: 12px 0 10px;
  font-family: "Fraunces", serif;
  font-size: 2rem;
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero-card p,
.hero-card span,
.feature-copy p,
.module-card p,
.workflow-card p,
.footer p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.hero-card .card-stat {
  display: block;
  margin-bottom: 12px;
  font-family: "Fraunces", serif;
  font-size: 3.1rem;
  line-height: 0.95;
  color: var(--text);
}

.card-label,
.feature-tag {
  color: #5a8898;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-head {
  max-width: 960px;
}

.section-head h2 {
  font-size: clamp(2.8rem, 5vw, 4.7rem);
  line-height: 1.05;
}

.split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.section-copy {
  max-width: 460px;
}

.stats,
.feature-band,
.demo,
.architecture,
.workflow-grid,
.cta-grid,
.cta {
  padding: 68px 24px;
}

.subhero {
  padding: 64px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.2));
  border: 1px solid var(--border);
}

.subhero h1 {
  max-width: 13ch;
  margin-top: 10px;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 1.04;
}

.lede.narrow {
  max-width: 720px;
  margin-top: 16px;
}

.stats-grid,
.modules-grid,
.workflow-grid,
.placeholder-grid,
.cta-grid {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.modules-grid,
.workflow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.placeholder-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cta-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: start;
}

.stat-card,
.module-card,
.workflow-card,
.contact-panel {
  padding: 28px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.stat-value {
  font-family: "Fraunces", serif;
  font-size: clamp(3rem, 4.4vw, 4.9rem);
  line-height: 0.94;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.stat-label {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.feature-stack {
  display: grid;
  gap: 26px;
  margin-top: 34px;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 30px;
  align-items: center;
  padding: 30px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.feature-row.reverse {
  grid-template-columns: minmax(360px, 1.08fr) minmax(0, 0.92fr);
}

.feature-row.reverse .feature-copy {
  order: 2;
}

.feature-copy p:last-child {
  margin-top: 10px;
}

.media-placeholder,
.demo-video {
  min-height: 380px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background:
    radial-gradient(circle at 15% 18%, rgba(193, 219, 243, 0.45), transparent 26%),
    radial-gradient(circle at 80% 18%, rgba(242, 223, 170, 0.28), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(237, 242, 236, 0.58));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  display: grid;
  place-items: center;
  padding: 36px;
  text-align: center;
}

.media-frame {
  overflow: hidden;
  padding: 0;
}

.demo-video {
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.demo-video-player {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: inherit;
  background: #000;
}

.feature-media {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  object-position: center top;
  border-radius: inherit;
}

.media-placeholder.large {
  min-height: 420px;
}

.media-placeholder span,
.demo-video strong {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 400;
  color: var(--text);
}

.media-placeholder small,
.demo-video p {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
}

.play-button {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 12px 30px rgba(37, 89, 106, 0.18);
}

.demo-stage {
  margin-top: 28px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid var(--border);
  box-shadow: none;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 36px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.cta-panel h2 {
  font-size: clamp(2.7rem, 4.8vw, 4.2rem);
  line-height: 1.06;
}

.cta-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 600px;
}

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

.contact-form {
  display: grid;
  gap: 20px;
}

.contact-form label {
  display: grid;
  gap: 10px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  padding: 15px 16px;
  color: var(--text);
  font: inherit;
  outline: none;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-side {
  display: grid;
  gap: 18px;
}

.contact-panel-centered {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 34px 34px;
}

.contact-panel-centered .section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.contact-panel-centered .section-head .eyebrow {
  margin: 0;
}

.contact-panel-centered .section-head h2 {
  line-height: 1.02;
}

.footer {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  margin-top: 18px;
  padding: 72px 64px 86px;
  border-radius: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(81, 219, 207, 0.12), transparent 14%),
    radial-gradient(circle at 28% 20%, rgba(121, 135, 255, 0.14), transparent 12%),
    linear-gradient(180deg, #232220, #1d1c1a);
  color: rgba(255, 255, 255, 0.9);
}

.footer-full {
  margin-top: 26px;
  min-height: 360px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 0;
}

.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.22;
  pointer-events: none;
}

.footer > * {
  position: relative;
  z-index: 1;
}

.footer-brand {
  max-width: 430px;
}

.footer-logo {
  width: 156px;
  height: 156px;
  margin-bottom: 18px;
  background: url("layralogo.png") center / contain no-repeat;
}

.footer p {
  color: rgba(255, 255, 255, 0.64);
  max-width: 430px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-top: 6px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.96);
  transform: translateX(2px);
}

@media (max-width: 1180px) {
  .split,
  .cta-panel,
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-row.reverse .feature-copy {
    order: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modules-grid,
  .workflow-grid,
  .placeholder-grid,
  .cta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-shell {
    width: min(calc(100vw - 18px), 1320px);
    padding-top: 10px;
    padding-bottom: 0;
  }

  .topbar {
    flex-wrap: wrap;
    padding-bottom: 10px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    font: inherit;
    font-weight: 500;
  }

  .nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 8px;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-inner,
  .subhero,
  .stats,
  .feature-band,
  .demo,
  .architecture,
  .workflow-grid,
  .cta-grid {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(3rem, 13vw, 4.6rem);
  }

  .stats-grid,
  .placeholder-grid {
    grid-template-columns: 1fr;
  }

  .media-placeholder,
  .demo-video {
    min-height: 300px;
    padding: 26px;
  }

  .media-frame {
    min-height: 0;
    padding: 0;
  }

  .demo-video {
    min-height: 0;
    padding: 0;
  }

  .feature-media {
    height: auto;
    min-height: 0;
    object-fit: contain;
  }

  .footer {
    flex-direction: column;
    padding: 42px 24px 48px;
    border-radius: 0;
  }
}
