:root {
  --black: #050505;
  --dark: #0b1220;
  --green: #53e709;
  --green-dark: #22c55e;
  --white: #ffffff;
  --soft: #f4f6f8;
  --text: #111111;
  --muted: #6b7280;
  --line: #d9dee5;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #dce1e7;
  color: var(--text);
}

.proposal {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.18);
}

.page {
  min-height: 100vh;
  padding: clamp(28px, 5vw, 72px);
  position: relative;
  overflow: hidden;
  border-bottom: 10px solid var(--black);
}

/* =========================
   LOGOS
========================= */

.logo {
  width: 170px;
  height: auto;
  object-fit: contain;
}

.small-logo {
  width: 135px;
  height: auto;
  object-fit: contain;
}

/* =========================
   GLOBAL HEADER
========================= */

.top-bar,
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 3;
}

.tagline {
  color: var(--green);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
}

/* =========================
   COVER / HERO
========================= */

.cover {
  background: var(--black);
  color: var(--white);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.72)),
    radial-gradient(circle at 75% 25%, rgba(83, 231, 9, 0.18), transparent 35%);
  z-index: 1;
}

.cover > *:not(.hero-video):not(.hero-overlay) {
  position: relative;
  z-index: 2;
}

.cover::before,
.cover::after {
  content: "010010 101010 CODEMUSE 001101 CTRL ALT CREATE 010101 110010";
  position: absolute;
  left: 0;
  width: 100%;
  padding-inline: 48px;
  color: rgba(83, 231, 9, 0.35);
  font-family: monospace;
  font-size: clamp(0.7rem, 1.4vw, 1rem);
  letter-spacing: 0.18em;
  white-space: nowrap;
  z-index: 2;
}

.cover::before {
  top: 18px;
}

.cover::after {
  bottom: 18px;
}

.cover-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  min-height: calc(100vh - 150px);
  position: relative;
  z-index: 2;
}

.label {
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.cover h1 {
  font-size: clamp(3.8rem, 9vw, 8.5rem);
  line-height: 0.85;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  max-width: 850px;
}

.cover h2 {
  font-size: clamp(1.4rem, 3vw, 2.7rem);
  line-height: 1;
  text-transform: uppercase;
  margin-top: 22px;
  max-width: 720px;
}

.intro {
  color: #d6d6d6;
  max-width: 680px;
  line-height: 1.8;
  margin-top: 28px;
  font-size: 1rem;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 54px;
}

.meta-grid div {
  border-left: 3px solid var(--green);
  padding-left: 16px;
}

.meta-grid span {
  color: #9ca3af;
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.meta-grid strong {
  font-size: 0.95rem;
}

.visual-card {
  min-height: 520px;
  border-radius: 30px;
  border: 1px solid rgba(83, 231, 9, 0.35);
  background:
    linear-gradient(135deg, rgba(83, 231, 9, 0.14), transparent),
    repeating-linear-gradient(
      90deg,
      rgba(16, 24, 32, 0.8) 0,
      rgba(16, 24, 32, 0.8) 42px,
      rgba(7, 11, 15, 0.8) 44px,
      rgba(7, 11, 15, 0.8) 82px
    );
  box-shadow: 0 0 90px rgba(83, 231, 9, 0.15);
  padding: 30px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.binary {
  color: rgba(83, 231, 9, 0.55);
  font-family: monospace;
  letter-spacing: 0.14em;
  line-height: 1.8;
  position: relative;
  z-index: 2;
}

.server-lines {
  position: absolute;
  inset: 80px 36px 36px;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 28px,
      rgba(83, 231, 9, 0.45) 30px,
      transparent 32px
    );
  opacity: 0.7;
}

/* =========================
   LIGHT PAGES
========================= */

.light {
  background: var(--white);
}

.page-header span {
  color: var(--green-dark);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
}

.section-title {
  margin-top: clamp(48px, 8vw, 92px);
}

.section-title h2,
.investment h2 {
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  max-width: 850px;
}

.section-title::after {
  content: "";
  display: block;
  width: 90px;
  height: 5px;
  background: var(--green);
  margin-top: 24px;
}

.wide-text {
  max-width: 850px;
  margin-top: 34px;
  color: #30343a;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.85;
}

/* =========================
   FEATURE CARDS
========================= */

.feature-grid,
.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: clamp(36px, 6vw, 80px);
}

.feature-grid article,
.scope-grid div {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 36px);
  min-height: 230px;
}

.feature-grid article span {
  color: var(--green-dark);
  font-weight: 900;
  font-size: 2rem;
}

h3 {
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.03em;
  margin: 18px 0 12px;
}

.feature-grid p,
.scope-grid li {
  color: #3d424a;
  line-height: 1.7;
}

/* =========================
   REFERENCES
========================= */

.reference-list {
  display: grid;
  gap: 22px;
  margin-top: clamp(36px, 6vw, 70px);
}

.reference-list a {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 28px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  background: #fff;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.reference-list a:hover {
  transform: translateY(-4px);
  border-color: var(--green-dark);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.reference-list strong {
  color: var(--green-dark);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  text-transform: uppercase;
}

.reference-list p {
  color: #3d424a;
  line-height: 1.7;
}

/* =========================
   SCOPE
========================= */

.scope-grid ul,
.included ul {
  padding-left: 20px;
  line-height: 1.9;
}

/* =========================
   INVESTMENT
========================= */

.investment {
  background:
    radial-gradient(circle at 85% 15%, rgba(83, 231, 9, 0.18), transparent 30%),
    var(--black);
  color: var(--white);
}

.dark-header span {
  color: var(--green);
}

.investment-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  min-height: calc(100vh - 220px);
}

.price {
  color: var(--green);
  font-size: clamp(4.5rem, 11vw, 10rem);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.08em;
  margin-top: 24px;
}

.included {
  background: var(--white);
  color: var(--text);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 48px);
}

.included h3 {
  color: var(--green-dark);
  font-size: 1.5rem;
}

.included li {
  color: #30343a;
}

footer {
  position: absolute;
  left: clamp(28px, 5vw, 72px);
  right: clamp(28px, 5vw, 72px);
  bottom: 34px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #9ca3af;
  border-top: 1px solid rgba(83, 231, 9, 0.3);
  padding-top: 18px;
}

/* =========================
   LARGE TABLETS
========================= */

@media (max-width: 1100px) {
  .cover-grid,
  .investment-grid {
    grid-template-columns: 1fr;
  }

  .visual-card {
    min-height: 360px;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .scope-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================
   TABLETS
========================= */

@media (max-width: 768px) {
  .proposal {
    box-shadow: none;
  }

  .page {
    min-height: auto;
    padding: 32px 22px 70px;
  }

  .cover::before,
  .cover::after {
    padding-inline: 22px;
    font-size: 0.65rem;
  }

  .top-bar,
  .page-header {
    align-items: flex-start;
  }

  .tagline {
    font-size: 0.62rem;
    text-align: right;
  }

  .logo {
    width: 125px;
  }

  .small-logo {
    width: 95px;
  }

  .cover-grid {
    min-height: auto;
    padding-top: 70px;
  }

  .cover h1 {
    font-size: clamp(3.2rem, 17vw, 5.8rem);
  }

  .cover h2 {
    font-size: 1.5rem;
  }

  .intro {
    font-size: 0.98rem;
  }

  .visual-card {
    min-height: 290px;
    border-radius: 22px;
  }

  .feature-grid,
  .scope-grid {
    grid-template-columns: 1fr;
  }

  .reference-list a {
    grid-template-columns: 1fr;
  }

  footer {
    position: static;
    margin-top: 60px;
    flex-direction: column;
  }
}

/* =========================
   SMALL PHONES
========================= */

@media (max-width: 480px) {
  .page {
    padding: 28px 18px 64px;
  }

  .cover h1 {
    letter-spacing: -0.07em;
  }

  .cover h2 {
    font-size: 1.25rem;
  }

  .intro,
  .wide-text {
    font-size: 0.95rem;
  }

  .meta-grid {
    margin-top: 36px;
  }

  .visual-card {
    min-height: 240px;
    padding: 22px;
  }

  .section-title {
    margin-top: 46px;
  }

  .section-title h2,
  .investment h2 {
    font-size: 2.3rem;
  }

  .price {
    font-size: 4.6rem;
  }

  .included {
    border-radius: 20px;
    padding: 26px;
  }

  .reference-list a {
    padding: 22px;
  }
}

/* =========================
   PRINT / PDF EXPORT
========================= */

@media print {
  body {
    background: white;
  }

  .proposal {
    max-width: none;
    box-shadow: none;
  }

  .page {
    min-height: 100vh;
    page-break-after: always;
  }

  .reference-list a {
    break-inside: avoid;
  }

  .hero-video {
    display: none;
  }

  .cover {
    background: #050505;
  }
}