/* Hyperion – InnoTractor look and feel (Fredoka headings, Alegreya Sans body,
   blue-to-green gradients, pill buttons, rounded cards). */
:root {
  --blue: #044E9D;
  --blue-dark: #003C7C;
  --blue-button: #0A5898;
  --green: #46C55E;
  --green-soft: #8CB56F;
  --teal: #447E87;
  --text: #1F2A37;
  --text-muted: #4B5563;
  --card: #F3F4F6;
  --line: #E5E7EB;
  --footer: #262626;
  --radius: 16px;
  --max: 1160px;
  --gradient-band: linear-gradient(265deg, #8CB56F -41.21%, #447E87 -2.31%, #044E9D 103.27%);
  --gradient-hero: linear-gradient(90deg, #8CB56F 0%, #447E87 30%, #0445BD 100%);
  --gradient-text: linear-gradient(87.78deg, #044E9D -4.16%, #46C55E 100.14%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: 'Alegreya Sans', system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  line-height: 1.15;
  color: var(--blue);
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(36px, 5.5vw, 60px);
}

h2 {
  font-size: clamp(28px, 3.6vw, 40px);
}

h3 {
  font-size: 22px;
}

p {
  margin: 0 0 16px;
}

a {
  color: var(--blue);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-block;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.lead {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 720px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1;
  padding: 12px 26px;
  border: 1px solid var(--blue-button);
  border-radius: 30px;
  background: var(--blue-button);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.btn:hover,
.btn:focus-visible {
  background: #fff;
  color: var(--blue-button);
}

.btn--outline {
  background: #fff;
  color: var(--blue-button);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--blue-button);
  color: #fff;
}

.btn--light {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.btn--light:hover,
.btn--light:focus-visible {
  background: #fff;
  color: var(--blue);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
}

.site-logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 28px;
  color: var(--blue);
  text-decoration: none;
}

.site-logo small {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a:not(.btn) {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 17px;
  color: var(--blue-dark);
  text-decoration: none;
}

.site-nav a:not(.btn):hover {
  color: var(--green);
}

.site-nav .btn {
  font-size: 16px;
  padding: 10px 22px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--blue);
  transition: transform .2s, opacity .2s;
}

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 72px;
  background: url("/assets/images/hero-bg.png") no-repeat right 4% top 20px / auto 92%;
}

.hero h1 {
  max-width: 720px;
}

.hero .lead {
  max-width: 620px;
}

.partners-strip {
  margin-top: 56px;
}

.partners-strip p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 36px;
}

.partner-logos img {
  height: 44px;
  width: auto;
}

.partner-logos .partner-text {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  color: var(--blue-dark);
  font-size: 18px;
}

/* Sections */
.section {
  padding: 96px 0;
}

.section--tint {
  background: #F7F9FB;
}

.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head--center .lead {
  margin-left: auto;
  margin-right: auto;
}

/* Gradient band */
.band {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--gradient-hero);
  padding: 88px 0;
}

.band::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 520px;
  height: 520px;
  background: url("/assets/images/bg-logo.png") no-repeat center / contain;
  opacity: .08;
  pointer-events: none;
}

.band h2,
.band h3 {
  color: #fff;
}

.band .container {
  position: relative;
  z-index: 1;
}

.band-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
}

.band-grid img {
  border-radius: var(--radius);
  display: block;
}

.x-list,
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.x-list li,
.check-list li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 16px;
}

.x-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  background:
    linear-gradient(45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 9px;
  height: 16px;
  border: solid var(--green);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* What is Hyperion */
.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}

.split-images {
  display: grid;
  gap: 16px;
}

.split-images img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.blocks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.block {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.block h3 {
  font-size: 20px;
  margin-top: 16px;
}

.block p {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0;
}

.icon {
  width: 48px;
  height: 48px;
  display: block;
}

/* Benefits */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow .2s, transform .2s;
}

.card:hover {
  box-shadow: 0 12px 32px rgba(4, 78, 157, .10);
  transform: translateY(-2px);
}

.card h3 {
  margin-top: 18px;
}

.card p {
  color: var(--text-muted);
  margin: 0;
}

/* Who */
.audience {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.audience li {
  list-style: none;
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.audience {
  padding: 0;
  margin: 0;
}

.audience strong {
  display: block;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  color: var(--blue);
  font-size: 18px;
  margin-bottom: 6px;
}

.audience span {
  font-size: 16px;
  color: var(--text-muted);
}

/* Technology */
.diagram {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 48px;
}

.diagram svg {
  display: block;
  width: 100%;
  height: auto;
}

.diagram figcaption {
  margin-top: 16px;
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 40px;
}

.tech-item h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.tech-item p {
  color: var(--text-muted);
  margin: 0;
}

.standards {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.standards span:first-child {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  color: var(--blue-dark);
  margin-right: 8px;
}

.tag {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--blue);
  border-radius: 30px;
  font-size: 16px;
  color: var(--blue);
  background: #fff;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.steps li {
  position: relative;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius);
  padding: 28px 24px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 22px;
  margin-bottom: 18px;
}

.steps h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.steps p {
  margin: 0;
  font-size: 17px;
  opacity: .92;
}

/* FAQ */
.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.faq summary {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--blue-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 26px;
  line-height: 1;
  color: var(--green);
  transition: transform .2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 12px 0 0;
  color: var(--text-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: start;
}

.contact-aside .check-list {
  margin: 24px 0 32px;
}

.contact-aside .direct {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 17px;
}

.form {
  background: var(--card);
  border-radius: var(--radius);
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.field label,
.field legend {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--blue-dark);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 17px;
  padding: 11px 14px;
  border: 1px solid #D1D5DB;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: transparent;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

fieldset.field {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.options label {
  font-family: inherit;
  font-weight: 400;
  font-size: 17px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.consent input {
  margin-top: 5px;
}

.form-note {
  font-size: 15px;
  color: var(--text-muted);
  margin: 16px 0 0;
}

.form-status {
  margin-top: 16px;
  font-weight: 500;
  color: var(--blue);
}

/* CTA */
.cta {
  background: var(--gradient-band);
  color: #fff;
  padding: 80px 0;
}

.cta h2 {
  color: #fff;
}

.cta .band-grid img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

/* Footer */
.site-footer {
  background: var(--footer);
  color: #9CA3AF;
  padding: 64px 0 32px;
  font-size: 16px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid #3F3F46;
}

.footer-brand img {
  height: 40px;
  width: auto;
  opacity: .7;
}

.footer-brand p {
  font-family: 'Fredoka', sans-serif;
  font-size: 22px;
  color: #A1A1AA;
  margin: 20px 0 0;
  max-width: 300px;
  line-height: 1.3;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.footer-nav a {
  color: #A1A1AA;
  text-decoration: none;
  font-family: 'Fredoka', sans-serif;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-funding {
  display: flex;
  justify-content: center;
  padding: 32px 0;
}

.footer-funding img {
  background: #fff;
  padding: 16px 32px;
  width: 420px;
  max-width: 100%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #71717A;
}

.footer-bottom a {
  color: #A1A1AA;
}

/* 404 */
.page-simple {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 24px;
  max-width: 720px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 1024px) {
  .blocks { grid-template-columns: repeat(2, 1fr); }
  .audience { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 24px 28px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .site-header.nav-open .site-nav { display: flex; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { background-size: 70% auto; background-position: right -20% bottom 0; padding-top: 64px; }
  .band-grid,
  .split,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 72px 0; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .container { padding: 0 16px; }
  .blocks,
  .audience,
  .steps,
  .tech-grid,
  .cards,
  .form-row { grid-template-columns: 1fr; }
  .form { padding: 24px 18px; }
  .diagram { padding: 16px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .partner-logos img { height: 36px; }
}
