:root {
  --bg: #1f2544;
  --bg-soft: #474f7a;
  --bg-glow: #81689d;
  --card: #ffffff;
  --text: #ffd0ec;
  --muted: #f2d4e9;
  --accent: #81689d;
  --accent-dark: #474f7a;
  --dark-text: #1f2544;
  --border: #d8c7e4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--dark-text);
  background: radial-gradient(circle at top right, #ffd0ec, #fdf7fc 40%);
  line-height: 1.6;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(129, 104, 157, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.35;
  z-index: -1;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.hero {
  background: linear-gradient(140deg, var(--bg), var(--bg-soft));
  color: var(--text);
  padding-bottom: 4rem;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  top: -240px;
  right: -110px;
  background: radial-gradient(circle, rgba(255, 208, 236, 0.3), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  bottom: -250px;
  left: -130px;
  background: radial-gradient(circle, rgba(129, 104, 157, 0.35), transparent 72%);
  pointer-events: none;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  position: relative;
  z-index: 2;
  top: 1rem;
  background: rgba(255, 208, 236, 0.07);
  border: 1px solid rgba(255, 208, 236, 0.26);
  border-radius: 14px;
  backdrop-filter: blur(7px);
}

.brand {
  font-size: 1.35rem;
  font-family: "Sora", "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin: 0;
  background: linear-gradient(90deg, #ffd0ec 20%, #d7b0ef 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.9;
  font-weight: 500;
  transition: opacity 0.2s ease, color 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  opacity: 1;
  color: #ffffff;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: #ffd0ec;
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.hero-orbs .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.5;
  animation: drift 10s ease-in-out infinite;
}

.orb-1 {
  width: 180px;
  height: 180px;
  right: 24%;
  top: 20%;
  background: radial-gradient(circle, rgba(255, 208, 236, 0.8), rgba(255, 208, 236, 0.1));
}

.orb-2 {
  width: 130px;
  height: 130px;
  right: 13%;
  top: 57%;
  background: radial-gradient(circle, rgba(129, 104, 157, 0.75), rgba(129, 104, 157, 0.1));
  animation-delay: 1.5s;
}

.orb-3 {
  width: 100px;
  height: 100px;
  right: 42%;
  top: 65%;
  background: radial-gradient(circle, rgba(71, 79, 122, 0.78), rgba(71, 79, 122, 0.08));
  animation-delay: 3s;
}

.orb-4 {
  width: 84px;
  height: 84px;
  right: 4%;
  top: 28%;
  background: radial-gradient(circle, rgba(255, 208, 236, 0.72), rgba(255, 208, 236, 0.1));
  animation-delay: 2.2s;
}

.orb-5 {
  width: 150px;
  height: 150px;
  right: 35%;
  top: 10%;
  background: radial-gradient(circle, rgba(129, 104, 157, 0.62), rgba(129, 104, 157, 0.08));
  animation-delay: 1.1s;
}

.hero-content {
  padding: 7rem 0 1.5rem;
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.2rem;
  align-items: center;
}

.hero-content h2 {
  margin: 0.4rem 0 0.8rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  font-family: "Sora", "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.4px;
  text-shadow: 0 10px 26px rgba(31, 37, 68, 0.35);
}

.hero-content p {
  color: var(--muted);
  margin-bottom: 1.4rem;
  max-width: 66ch;
}

.tag {
  display: inline-block;
  font-size: 0.85rem;
  color: #ffd0ec;
  border: 1px solid rgba(255, 208, 236, 0.45);
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 208, 236, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 208, 236, 0.08);
}

.hero-command {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
  background: rgba(10, 13, 31, 0.32);
  border: 1px solid rgba(255, 208, 236, 0.22);
  border-radius: 12px;
  padding: 0.5rem 0.7rem;
  backdrop-filter: blur(6px);
}

.hero-command .dot {
  width: 0.47rem;
  height: 0.47rem;
  border-radius: 50%;
  background: rgba(255, 208, 236, 0.75);
  box-shadow: 0 0 8px rgba(255, 208, 236, 0.4);
}

.hero-command code {
  color: #ffe5f5;
  font-size: 0.81rem;
  letter-spacing: 0.2px;
}

.btn {
  display: inline-block;
  background: linear-gradient(130deg, #81689d, #6f5b8f);
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.15rem;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid rgba(255, 208, 236, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: linear-gradient(130deg, #6f5b8f, #5d5182);
  transform: translateY(-2px);
  border-color: rgba(255, 208, 236, 0.4);
  box-shadow: 0 10px 18px rgba(21, 24, 46, 0.45);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 208, 236, 0.75);
  color: #ffd0ec;
}

.btn-outline:hover {
  background: rgba(255, 208, 236, 0.14);
}

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

.hero-dashboard {
  background: rgba(22, 27, 56, 0.7);
  border: 1px solid rgba(255, 208, 236, 0.28);
  border-radius: 16px;
  padding: 0.95rem;
  box-shadow: 0 16px 35px rgba(16, 20, 43, 0.45), 0 0 0 1px rgba(255, 208, 236, 0.08) inset;
  backdrop-filter: blur(8px);
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.dash-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: rgba(255, 208, 236, 0.88);
}

.dashboard-header p {
  margin: 0 0 0 0.35rem;
  color: #ffe6f6;
  font-weight: 600;
  font-size: 0.88rem;
}

.dashboard-row {
  border: 1px solid rgba(255, 208, 236, 0.18);
  border-radius: 10px;
  margin-bottom: 0.55rem;
  padding: 0.55rem 0.62rem;
  background: rgba(255, 208, 236, 0.06);
}

.dashboard-row .label {
  display: block;
  font-size: 0.75rem;
  color: #eccde0;
  margin-bottom: 0.2rem;
}

.dashboard-row code {
  color: #fff1fb;
  font-size: 0.8rem;
}

.dashboard-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(70px, 1fr));
  gap: 0.5rem;
  margin: 0.65rem 0 0.7rem;
}

.dashboard-status div {
  border: 1px solid rgba(255, 208, 236, 0.2);
  border-radius: 10px;
  padding: 0.42rem;
  text-align: center;
}

.dashboard-status span {
  display: block;
  color: #eccde0;
  font-size: 0.72rem;
}

.dashboard-status strong {
  color: #fff;
  font-size: 0.78rem;
}

.dashboard-log p {
  margin: 0;
  color: #e8ccdd;
  font-size: 0.77rem;
}

.dashboard-log p + p {
  margin-top: 0.3rem;
}

.hero-metrics {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.metric {
  min-width: 140px;
  padding: 0.72rem 0.9rem;
  border: 1px solid rgba(255, 208, 236, 0.35);
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(255, 208, 236, 0.13), rgba(255, 208, 236, 0.03));
  backdrop-filter: blur(5px);
  box-shadow: inset 0 0 0 1px rgba(255, 208, 236, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.metric:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 208, 236, 0.55);
  background: linear-gradient(150deg, rgba(255, 208, 236, 0.17), rgba(255, 208, 236, 0.06));
}

.metric-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffd0ec;
}

.metric-label {
  display: block;
  font-size: 0.82rem;
  color: #eec9e0;
}

.section {
  padding: 3.3rem 0;
}

.section h3 {
  margin-top: 0;
  font-size: 1.82rem;
  font-family: "Sora", "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 0.55rem;
}

.section-title {
  display: inline-block;
  position: relative;
  padding-bottom: 0.35rem;
  margin-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 68%;
  height: 3px;
  border-radius: 10px;
  background: linear-gradient(90deg, #81689d, #ffd0ec);
}

.section > p,
.section .container > p {
  color: #474f7a;
}

.section-alt {
  background: #f7ecf6;
}

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

.two-col {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.three-col {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

#security .grid.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 901px) {
  #future .grid.three-col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #future .grid.three-col article:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, calc((100% - 3rem) / 4));
  }
}

#security .card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem;
  box-shadow: 0 8px 24px rgba(31, 37, 68, 0.08);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #474f7a, #81689d, #ffd0ec);
}

.card h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-family: "Sora", "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.card:hover {
  transform: translateY(-5px);
  border-color: #81689d;
  box-shadow: 0 15px 30px rgba(71, 79, 122, 0.2);
}

.glass {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.55));
  backdrop-filter: blur(7px);
}

.architecture-flow {
  display: grid;
  grid-template-columns: repeat(17, minmax(20px, 1fr));
  gap: 0.55rem;
  align-items: center;
}

.flow-card {
  grid-column: span 2;
  width: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.7rem 0.55rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, #ffffff, #faeff8);
  color: #1f2544;
  box-shadow: 0 8px 24px rgba(31, 37, 68, 0.08);
  font-weight: 700;
  line-height: 1.35;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.flow-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #474f7a, #81689d, #ffd0ec);
}

.flow-card:hover {
  transform: translateY(-5px);
  border-color: #81689d;
  box-shadow: 0 15px 30px rgba(71, 79, 122, 0.2);
}

.flow-link {
  grid-column: span 1;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #81689d, #ffd0ec);
  box-shadow: 0 0 10px rgba(129, 104, 157, 0.65);
  position: relative;
}

.flow-link::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd0ec;
}

.timeline {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.2rem 1.1rem 2rem;
  box-shadow: 0 10px 26px rgba(31, 37, 68, 0.12);
  counter-reset: workflow;
}

.timeline li {
  margin: 0.5rem 0;
  list-style: none;
  position: relative;
  padding-left: 2.2rem;
}

.timeline li::before {
  counter-increment: workflow;
  content: counter(workflow);
  position: absolute;
  left: 0;
  top: 0.03rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  box-shadow: 0 5px 12px rgba(71, 79, 122, 0.45);
}

.timeline li::after {
  content: "";
  position: absolute;
  left: 0.67rem;
  top: 1.5rem;
  width: 2px;
  height: calc(100% - 0.4rem);
  background: linear-gradient(180deg, rgba(129, 104, 157, 0.45), rgba(255, 208, 236, 0.4));
}

.timeline li:last-child::after {
  display: none;
}

.stepper li h4 {
  margin: 0;
  font-size: 1rem;
}

.stepper li p {
  margin: 0.28rem 0 0;
  color: #4e567f;
  font-size: 0.93rem;
}

.stepper li.is-active::before {
  box-shadow: 0 0 0 5px rgba(129, 104, 157, 0.2), 0 5px 12px rgba(71, 79, 122, 0.45);
}

.terminal-window {
  font-family: "ui-monospace", "SFMono-Regular", Menlo, Consolas, monospace;
  background: #14182f;
  color: #f6dff0;
  border-radius: 11px;
  border: 1px solid rgba(255, 208, 236, 0.2);
  padding: 0.8rem;
}

.terminal-window p {
  margin: 0;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.terminal-window p + p {
  margin-top: 0.4rem;
}

.prompt {
  color: #ffd0ec;
}

.response-cards {
  display: grid;
  gap: 0.62rem;
}

.response-card {
  border-radius: 12px;
  padding: 0.75rem;
  border: 1px solid #e0d0e9;
  background: #fff;
}

.response-card strong {
  display: block;
  margin-bottom: 0.2rem;
}

.response-card p {
  margin: 0;
  color: #474f7a;
}

.response-card.success {
  border-left: 4px solid #81689d;
}

.response-card.validated {
  border-left: 4px solid #474f7a;
}

.response-card.done {
  border-left: 4px solid #cf86bf;
}

.team-card {
  text-align: center;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 0.8rem;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #474f7a, #81689d);
  box-shadow: 0 10px 22px rgba(71, 79, 122, 0.32);
}

.social-links,
.footer-links,
.footer-social {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.social-links {
  justify-content: center;
  margin-top: 0.65rem;
}

.social-links a,
.footer-links a,
.footer-social a,
.back-top {
  text-decoration: none;
  color: #ffd0ec;
  border: 1px solid rgba(255, 208, 236, 0.27);
  padding: 0.3rem 0.58rem;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.social-links a {
  color: #474f7a;
  border-color: rgba(71, 79, 122, 0.18);
}

.social-links a:hover,
.footer-links a:hover,
.footer-social a:hover,
.back-top:hover {
  transform: translateY(-2px);
  background: rgba(255, 208, 236, 0.14);
  border-color: rgba(255, 208, 236, 0.45);
}

.footer {
  background: #1f2544;
  color: #ffd0ec;
  padding: 1.3rem 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer a {
  color: #ffd0ec;
  text-decoration: none;
}

.footer p {
  margin: 0;
}

.footer small {
  color: #f3d9ec;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.floaty {
  animation: floatY 5.8s ease-in-out infinite;
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-9px) translateX(6px);
  }
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.deliverables-intro {
  max-width: 70ch;
  color: #474f7a;
  margin: 0 0 1.25rem;
}

.deliverables-intro code {
  font-size: 0.88em;
  background: rgba(129, 104, 157, 0.14);
  padding: 0.12rem 0.38rem;
  border-radius: 6px;
  color: #1f2544;
}

.deliverables-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.deliverable-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
}

.deliverable-card p {
  flex-grow: 1;
  margin-bottom: 0;
}

.deliverable-card .btn {
  margin-top: 1rem;
  align-self: flex-start;
}

@media (max-width: 900px) {
  .container {
    width: min(1120px, 94%);
  }

  .nav {
    gap: 0.8rem;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    row-gap: 0.45rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-content {
    padding-top: 6.2rem;
  }

  .hero-content p {
    max-width: 100%;
  }

  .hero-command {
    display: flex;
    width: 100%;
  }

  .hero-command code {
    white-space: normal;
    overflow-wrap: anywhere;
  }

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

  .dashboard-row code {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .section {
    padding: 2.8rem 0;
  }

  .section h3 {
    font-size: 1.6rem;
  }

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

  #security .grid.three-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #security .card {
    min-height: 160px;
  }

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

  .deliverable-card {
    min-height: 190px;
  }

  #future .grid.three-col article:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, calc((100% - 1rem) / 2));
  }

  .architecture-flow {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }

  .flow-card {
    min-height: 96px;
    padding: 0.7rem;
  }

  .flow-link {
    width: 2px;
    height: 28px;
    align-self: center;
    background: linear-gradient(180deg, #81689d, #ffd0ec);
  }

  .flow-link::after {
    right: -3px;
    top: auto;
    bottom: -3px;
  }

  .timeline {
    padding: 1rem 1rem 1rem 1.7rem;
  }

  .footer-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    align-items: start;
  }
}

@media (max-width: 700px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    top: 0.75rem;
  }

  .hero-metrics {
    gap: 0.6rem;
  }

  .metric {
    min-width: 125px;
    flex: 1 1 130px;
  }

  .hero-orbs {
    display: none;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
    text-align: center;
  }

  .dashboard-status {
    grid-template-columns: 1fr;
  }

  .grid.two-col,
  .grid.three-col {
    grid-template-columns: 1fr;
  }

  #security .grid.three-col {
    grid-template-columns: 1fr;
  }

  #security .card {
    min-height: auto;
  }

  .timeline li {
    padding-left: 1.9rem;
  }

  .timeline li::before {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.73rem;
  }

  .timeline li::after {
    left: 0.58rem;
  }

  .social-links,
  .footer-links,
  .footer-social {
    gap: 0.45rem;
  }

  .social-links a,
  .footer-links a,
  .footer-social a,
  .back-top {
    font-size: 0.82rem;
    padding: 0.24rem 0.5rem;
  }

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

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

  #future .grid.three-col article:last-child {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding-top: 5.6rem;
  }

  .hero-content h2 {
    font-size: clamp(1.5rem, 7.3vw, 1.9rem);
  }

  .hero-command {
    padding: 0.45rem 0.5rem;
  }

  .hero-command code {
    font-size: 0.75rem;
  }

  .metric {
    min-width: 100%;
  }

  .card {
    padding: 0.9rem;
  }

  .terminal-window p {
    font-size: 0.74rem;
  }

  .avatar {
    width: 56px;
    height: 56px;
    font-size: 0.85rem;
  }
}
