.lora-page {
  --lora-navy: #061126;
  --lora-navy-2: #0b1d38;
  --lora-blue: #1d63ff;
  --lora-cyan: #31b8ff;
  --lora-green: #20d66b;
  --lora-text: #10223d;
  --lora-muted: #58708f;
  --lora-line: rgba(16, 34, 61, 0.09);
  --lora-radius-lg: 28px;
  --lora-radius-md: 22px;
  --lora-radius-sm: 16px;
  background:
    radial-gradient(circle at 10% 3%, rgba(29, 99, 255, 0.12), transparent 24%),
    radial-gradient(circle at 92% 6%, rgba(49, 184, 255, 0.10), transparent 23%),
    linear-gradient(180deg, #f6f9ff 0%, #ffffff 43%, #f7faff 100%);
  color: var(--lora-text);
}

.lora-page img {
  display: block;
  width: 100%;
}

.lora-page h1,
.lora-page h2,
.lora-page h3,
.lora-page p {
  overflow-wrap: break-word;
}

.lora-page .section-heading {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.lora-page .section-heading h2,
.lora-two-column h2 {
  margin: 14px 0 16px;
  color: var(--lora-navy);
  font-size: clamp(1.8rem, 4.7vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.lora-page .section-heading p,
.section-lead {
  color: var(--lora-muted);
  font-size: 1rem;
  line-height: 1.75;
}

/* HERO */
.lora-hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 58px;
}

.lora-hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.52;
  background-image:
    linear-gradient(rgba(29, 99, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 99, 255, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.lora-hero::before,
.lora-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}

.lora-hero::before {
  width: 360px;
  height: 360px;
  top: -180px;
  right: -100px;
  background: rgba(49, 184, 255, 0.16);
}

.lora-hero::after {
  width: 300px;
  height: 300px;
  bottom: -160px;
  left: -110px;
  background: rgba(32, 214, 107, 0.10);
}

.lora-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: center;
}

.lora-hero-copy {
  display: grid;
  gap: 18px;
}

.lora-hero-copy h1 {
  margin: 0;
  color: var(--lora-navy);
  font-size: clamp(2.5rem, 8vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.lora-hero-copy h1 span {
  display: block;
  max-width: 760px;
  margin-top: 12px;
  color: #284365;
  font-size: clamp(1.35rem, 4vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.lora-hero-copy > p {
  max-width: 680px;
  margin: 0;
  color: var(--lora-muted);
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.75;
}

.lora-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lora-hero-actions .btn {
  flex: 1 1 220px;
  text-align: center;
}

.lora-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lora-trust-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--lora-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #31496b;
  font-size: 0.76rem;
  font-weight: 800;
}

.lora-hero-media {
  min-width: 0;
}

.lora-hero-image,
.lora-image-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--lora-line);
  border-radius: var(--lora-radius-lg);
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(16, 34, 61, 0.13);
}

.lora-hero-image::after,
.lora-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
}

.lora-hero-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.lora-floating-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.lora-floating-row article {
  padding: 15px 16px;
  border: 1px solid var(--lora-line);
  border-radius: var(--lora-radius-sm);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(16, 34, 61, 0.08);
}

.lora-floating-row strong,
.lora-floating-row span {
  display: block;
}

.lora-floating-row strong {
  margin-bottom: 4px;
  color: var(--lora-navy);
  font-size: 0.88rem;
}

.lora-floating-row span {
  color: var(--lora-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

/* FACTS */
.lora-facts-section {
  padding: 0 0 28px;
}

.lora-facts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.lora-facts-grid article {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
  border: 1px solid var(--lora-line);
  border-radius: var(--lora-radius-sm);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(16, 34, 61, 0.07);
}

.lora-fact-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--lora-blue), var(--lora-cyan));
  font-size: 1.25rem;
  font-weight: 900;
}

.lora-facts-grid strong,
.lora-facts-grid span {
  display: block;
}

.lora-facts-grid strong {
  color: var(--lora-navy);
  font-size: 0.88rem;
}

.lora-facts-grid article div span {
  margin-top: 3px;
  color: var(--lora-muted);
  font-size: 0.75rem;
}

/* SPLIT + WHY */
.lora-two-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
}

.lora-problem-list {
  display: grid;
  gap: 12px;
}

.lora-problem-list article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--lora-line);
  border-radius: var(--lora-radius-md);
  background: rgba(255, 255, 255, 0.9);
}

.lora-problem-list article > span,
.layer-index {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(29, 99, 255, 0.10);
  color: var(--lora-blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.lora-problem-list h3,
.lora-layer-stack h3,
.lora-card-grid h3,
.lora-workflow-grid h3 {
  margin: 0 0 6px;
  color: var(--lora-navy);
  font-size: 1rem;
}

.lora-problem-list p,
.lora-layer-stack p,
.lora-card-grid p,
.lora-workflow-grid p {
  margin: 0;
  color: var(--lora-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ARCHITECTURE */
.lora-architecture {
  background:
    radial-gradient(circle at 10% 20%, rgba(49, 184, 255, 0.10), transparent 28%),
    linear-gradient(180deg, rgba(246,249,255,.55), rgba(255,255,255,.9));
}

.lora-architecture-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.lora-image-card img {
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.lora-image-card figcaption {
  padding: 13px 16px;
  color: var(--lora-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.lora-layer-stack {
  display: grid;
  gap: 12px;
}

.lora-layer-stack article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--lora-line);
  border-radius: var(--lora-radius-md);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(16, 34, 61, 0.06);
}

/* WORKFLOW */
.lora-workflow {
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 20%, rgba(49, 184, 255, .16), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(32, 214, 107, .12), transparent 24%),
    linear-gradient(135deg, var(--lora-navy), var(--lora-navy-2));
}

.lora-workflow .section-heading h2 {
  color: #ffffff;
}

.lora-workflow .eyebrow {
  color: #9ce7ff;
  border-color: rgba(156, 231, 255, .20);
  background: rgba(49, 184, 255, .10);
}

.lora-workflow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.lora-workflow-grid article {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--lora-radius-md);
  background: rgba(255,255,255,.055);
}

.lora-workflow-grid article > span {
  display: block;
  margin-bottom: 34px;
  color: #75dfff;
  font-size: .76rem;
  font-weight: 900;
}

.lora-workflow-grid h3 {
  color: #ffffff;
  font-size: 1.12rem;
}

.lora-workflow-grid p {
  color: #b9c8dd;
}

/* CAPABILITIES */
.lora-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.lora-card-grid article {
  padding: 22px;
  border: 1px solid var(--lora-line);
  border-radius: var(--lora-radius-md);
  background: rgba(255,255,255,.92);
  box-shadow: 0 16px 36px rgba(16, 34, 61, .07);
}

.capability-symbol {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--lora-blue), var(--lora-cyan));
  font-size: 1.2rem;
}

/* USE CASES */
.lora-use-cases {
  background: #f5f8fd;
}

.lora-sector-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 24px;
}

.lora-sector-grid article {
  padding: 15px 16px;
  border: 1px solid var(--lora-line);
  border-radius: var(--lora-radius-sm);
  background: #ffffff;
}

.lora-sector-grid strong,
.lora-sector-grid span {
  display: block;
}

.lora-sector-grid strong {
  color: var(--lora-navy);
  font-size: .88rem;
}

.lora-sector-grid span {
  margin-top: 4px;
  color: var(--lora-muted);
  font-size: .76rem;
  line-height: 1.4;
}

.lora-use-image img {
  min-height: 100%;
  object-fit: cover;
}

/* ENGINEERING */
.lora-engineering-shell {
  display: grid;
  gap: 28px;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid rgba(49, 184, 255, .16);
  border-radius: var(--lora-radius-lg);
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 10%, rgba(49,184,255,.18), transparent 32%),
    linear-gradient(135deg, var(--lora-navy), #102c52);
  box-shadow: 0 28px 70px rgba(6, 17, 38, .20);
}

.lora-engineering-shell h2 {
  margin: 14px 0 16px;
  color: #ffffff;
  font-size: clamp(1.8rem, 4.7vw, 2.8rem);
  line-height: 1.1;
}

.lora-engineering-shell p {
  max-width: 720px;
  margin: 0;
  color: #c1cde0;
  line-height: 1.7;
}

.lora-engineering-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.lora-engineering-grid article {
  padding: 15px 16px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--lora-radius-sm);
  background: rgba(255,255,255,.055);
}

.lora-engineering-grid strong,
.lora-engineering-grid span {
  display: block;
}

.lora-engineering-grid strong {
  color: #ffffff;
  font-size: .86rem;
}

.lora-engineering-grid span {
  margin-top: 4px;
  color: #b9c8dd;
  font-size: .75rem;
}

/* CONTACT */
.lora-contact .contact-shell {
  background:
    radial-gradient(circle at 84% 14%, rgba(49, 184, 255, .18), transparent 30%),
    linear-gradient(135deg, var(--lora-navy), #102d54);
}

/* RESPONSIVE */
@media (min-width: 640px) {
  .lora-floating-row,
  .lora-facts-grid,
  .lora-sector-grid,
  .lora-engineering-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lora-workflow-grid,
  .lora-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lora-hero-actions .btn {
    flex: 0 0 auto;
  }
}

@media (min-width: 900px) {
  .lora-hero {
    padding: 66px 0 72px;
  }

  .lora-hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
    gap: 54px;
  }

  .lora-facts-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lora-two-column {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 60px;
  }

  .lora-architecture-layout {
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr);
    gap: 34px;
  }

  .lora-workflow-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lora-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lora-use-case-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    align-items: stretch;
  }

  .lora-engineering-shell {
    grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr);
    align-items: center;
  }

  .lora-engineering-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .lora-hero {
    padding-top: 30px;
  }

  .lora-hero-copy h1 {
    font-size: clamp(2.25rem, 13vw, 3.15rem);
  }

  .lora-trust-strip span {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }

  .lora-problem-list article,
  .lora-layer-stack article {
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 15px;
  }

  .lora-problem-list article > span,
  .layer-index {
    width: 40px;
    height: 40px;
  }
}

/* =========================================================
   LAYOUT CORRECTIONS
   Image framing, icon centering and deployment sizing
   ========================================================= */

/* Prevent grid children and figures from forcing overflow */
.lora-hero-media,
.lora-hero-image,
.lora-image-card,
.lora-use-image,
.lora-architecture-layout > *,
.lora-use-case-layout > * {
  min-width: 0;
  max-width: 100%;
}

/* Keep every image fully inside its rounded frame */
.lora-hero-image,
.lora-image-card {
  isolation: isolate;
}

.lora-hero-image img,
.lora-image-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  border-radius: inherit;
}

/* The generated hero graphic already contains its own composition.
   Do not crop it with a forced 4:3 ratio. */
.lora-hero-image img {
  aspect-ratio: auto;
  object-fit: contain;
}

/* Keep the architecture infographic completely visible */
.lora-architecture .lora-image-card img {
  aspect-ratio: auto;
  object-fit: contain;
  background: #f7faff;
}

/* Fix icon glyphs that were being changed back to display:block */
.lora-facts-grid .lora-fact-icon,
.lora-card-grid .capability-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-align: center;
  line-height: 1;
}

.lora-facts-grid .lora-fact-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
}

.lora-card-grid .capability-symbol {
  width: 46px;
  height: 46px;
}

/* Deployment image: use the complete landscape image instead of cropping it */
.lora-use-image {
  width: 100%;
  max-width: 540px;
  justify-self: center;
  align-self: center;
}

.lora-use-image img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

/* Keep the border overlay inside the rounded corners */
.lora-hero-image::after,
.lora-image-card::after {
  border-radius: inherit;
}

/* Desktop proportions */
@media (min-width: 900px) {
  .lora-hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
  }

  .lora-use-case-layout {
    grid-template-columns: minmax(0, 1.18fr) minmax(380px, 0.82fr);
    align-items: center;
  }

  .lora-use-image {
    justify-self: end;
  }
}

/* Tablet and mobile */
@media (max-width: 899px) {
  .lora-hero-image,
  .lora-image-card,
  .lora-use-image {
    width: 100%;
  }

  .lora-use-image {
    max-width: 680px;
    margin-inline: auto;
  }
}