:root {
  --ink: #073b4c;
  --copy: #40565d;
  --paper: #fffdf8;
  --soft: #f5f6ed;
  --line: rgba(7, 59, 76, 0.14);
  --blue: #149dcc;
  --blue-dark: #0d6786;
  --red: #e50039;
  --yellow: #f7ed4a;
  --green: #0f766e;
  --shadow: 0 22px 70px rgba(7, 59, 76, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  min-height: 84px;
  padding: 0 clamp(1.25rem, 5vw, 5.5rem);
  display: flex;
  align-items: center;
  gap: 2rem;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: auto;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.brand small {
  margin-top: 0.25rem;
  color: var(--copy);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ador-mark {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  position: relative;
}

.ador-mark b {
  z-index: 2;
  color: #fff;
  font-size: 0.9rem;
}

.petal {
  width: 1.55rem;
  height: 1.55rem;
  position: absolute;
  border-radius: 55% 45% 55% 45%;
  transform-origin: 100% 100%;
}

.petal-blue {
  top: 0;
  left: 0;
  background: var(--blue);
}

.petal-red {
  top: 0;
  right: 0;
  background: var(--red);
  transform: rotate(90deg);
}

.petal-yellow {
  right: 0;
  bottom: 0;
  background: var(--yellow);
  transform: rotate(180deg);
}

.petal-green {
  bottom: 0;
  left: 0;
  background: var(--green);
  transform: rotate(270deg);
}

.ador-mark.large {
  width: 5.5rem;
  height: 5.5rem;
}

.ador-mark.large .petal {
  width: 2.85rem;
  height: 2.85rem;
}

.ador-mark.large b {
  font-size: 1.5rem;
}

.ador-mark.small {
  width: 2.35rem;
  height: 2.35rem;
}

.ador-mark.small .petal {
  width: 1.2rem;
  height: 1.2rem;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.site-header nav a:hover {
  color: var(--red);
}

.account-link {
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero {
  min-height: 680px;
  padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 8vw, 8rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 7vw, 8rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(247, 237, 74, 0.45), transparent 18rem),
    radial-gradient(circle at 72% 75%, rgba(20, 157, 204, 0.16), transparent 25rem),
    linear-gradient(135deg, var(--soft), var(--paper));
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3.2rem, 6.5vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero-intro {
  max-width: 40rem;
  color: var(--copy);
  font-size: 1.08rem;
  line-height: 1.75;
}

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

.button {
  padding: 0.9rem 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(7, 59, 76, 0.14);
}

.button.primary {
  color: #fff;
  background: var(--red);
}

.button.secondary {
  border-color: var(--line);
  background: #fff;
}

.hero-system {
  width: min(32rem, 100%);
  aspect-ratio: 1;
  margin: auto;
  position: relative;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(7, 59, 76, 0.15);
  border-radius: 50%;
}

.orbit-one {
  inset: 12%;
}

.orbit-two {
  inset: 0;
  border-style: dashed;
}

.system-center {
  width: 13rem;
  height: 13rem;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.35rem;
  border: 1px solid rgba(7, 59, 76, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  text-align: center;
}

.system-center strong {
  margin-top: 0.6rem;
}

.system-center small {
  color: var(--copy);
}

.orbit-app {
  width: 4.5rem;
  height: 4.5rem;
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  color: #fff;
  border: 0.5rem solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(7, 59, 76, 0.16);
  font-weight: 900;
}

.orbit-escritor {
  top: 4%;
  left: 19%;
  background: var(--red);
}

.orbit-tinlav {
  top: 25%;
  right: -1%;
  background: var(--blue);
}

.orbit-pastoral {
  right: 13%;
  bottom: 3%;
  background: var(--green);
}

.orbit-next {
  bottom: 14%;
  left: 1%;
  color: var(--ink);
  background: var(--yellow);
}

.purpose,
.catalog {
  padding: clamp(4.5rem, 9vw, 9rem) clamp(1.25rem, 8vw, 8rem);
}

.purpose {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 8vw, 9rem);
  color: #fff;
  background: var(--ink);
}

.purpose-copy > p {
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  line-height: 1.8;
}

.principles {
  margin-top: 2rem;
  display: grid;
  gap: 0.75rem;
}

.principles span {
  padding: 1rem;
  display: flex;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
}

.principles b {
  color: var(--yellow);
}

.catalog {
  background: #f7f5ed;
}

.section-heading {
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3rem;
  align-items: end;
}

.section-heading p:last-child {
  color: var(--copy);
  line-height: 1.7;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.app-card {
  min-height: 30rem;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 14px 45px rgba(7, 59, 76, 0.07);
}

.app-card::after {
  content: "";
  width: 12rem;
  height: 12rem;
  position: absolute;
  right: -5rem;
  bottom: -5rem;
  border: 2rem solid var(--card-color);
  border-radius: 50%;
  opacity: 0.12;
}

.app-card.escritor {
  --card-color: var(--red);
}

.app-card.tinlav {
  --card-color: var(--blue);
}

.app-card.pastoral {
  --card-color: var(--green);
}

.app-card.future {
  --card-color: #d2c609;
}

.app-top {
  margin-bottom: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app-icon {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 0.9rem;
  background: var(--card-color);
  font-size: 1.2rem;
  font-weight: 900;
}

.future .app-icon {
  color: var(--ink);
}

.status {
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status.active {
  color: #075e54;
  background: #d9f3e9;
}

.status.evolving {
  color: #8b5310;
  background: #fff0c9;
}

.status.planned {
  color: #52636a;
  background: #edf0ee;
}

.app-type {
  margin-bottom: 0.45rem;
  color: var(--card-color);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-card h3 {
  margin-bottom: 0.85rem;
  font-size: 2.4rem;
  letter-spacing: -0.05em;
}

.app-card > p:not(.app-type) {
  color: var(--copy);
  line-height: 1.7;
}

.app-card ul {
  margin: 1.5rem 0 2rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  list-style: none;
  color: var(--copy);
  font-size: 0.85rem;
}

.app-card li::before {
  content: "✓";
  margin-right: 0.55rem;
  color: var(--card-color);
  font-weight: 900;
}

.app-card > a {
  margin-top: auto;
  z-index: 2;
  color: var(--card-color);
  font-size: 0.88rem;
  font-weight: 900;
}

.app-card > a span {
  margin-left: 0.3rem;
}

.foundation {
  margin: clamp(1.25rem, 4vw, 4rem);
  padding: clamp(2rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  color: #fff;
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at right, rgba(20, 157, 204, 0.35), transparent 22rem),
    var(--blue-dark);
}

.foundation-mark {
  width: 5rem;
  height: 5rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 900;
}

.foundation h2 {
  max-width: 17ch;
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.foundation p:last-child {
  max-width: 45rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.button.light {
  white-space: nowrap;
  color: var(--ink);
  background: #fff;
}

footer {
  padding: 2rem clamp(1.25rem, 5vw, 5.5rem);
  display: flex;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid var(--line);
  color: var(--copy);
  font-size: 0.75rem;
}

.footer-brand {
  margin-right: auto;
  color: var(--ink);
}

footer p {
  margin: 0;
}

footer > a:last-child {
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header nav a:not(.account-link) {
    display: none;
  }

  .hero,
  .purpose,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero-system {
    width: min(27rem, 100%);
  }

  .foundation {
    grid-template-columns: auto 1fr;
  }

  .foundation .button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 72px;
    padding: 0 1rem;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 4rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .hero-system {
    transform: scale(0.9);
  }

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

  .app-card {
    min-height: auto;
  }

  .foundation {
    margin: 1rem;
    grid-template-columns: 1fr;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
