@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0f172a;
  --navy2:  #1e293b;
  --orange: #ff4d00;
  --orange2:#e04400;
  --light:  #f8fafc;
  --muted:  #64748b;
  --border: #e2e8f0;
  --white:  #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Navbar ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15,23,42,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow .2s;
}
#navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.3); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
}
.nav-logo span { color: var(--orange); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s, transform .15s;
  border: none;
}
.btn-orange {
  background: var(--orange);
  color: var(--white);
}
.btn-orange:hover { background: var(--orange2); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.25);
}
.btn-outline:hover { border-color: rgba(255,255,255,.6); }

/* ── Hero ── */
#hero {
  background: var(--navy);
  padding: 160px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(255,77,0,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255,77,0,.1);
  border: 1px solid rgba(255,77,0,.25);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 860px;
  margin: 0 auto 24px;
}
.hero-title em {
  font-style: normal;
  color: var(--orange);
}
.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,.6);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-ctas .btn { font-size: 15px; padding: 13px 28px; }

.hero-demo-note {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,.35);
}
.hero-demo-note a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* trust badges */
.trust-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.5);
}
.trust-item i {
  color: var(--orange);
  font-size: 14px;
}

/* ── Section base ── */
section { padding: 96px 0; }
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 580px;
}
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ── Koha legitimacy bar ── */
#koha-bar {
  background: var(--navy2);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 20px 0;
}
.koha-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.koha-bar-text {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.koha-bar-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.koha-stat {
  font-size: 13px;
  color: rgba(255,255,255,.55);
}
.koha-stat strong { color: var(--white); font-weight: 700; }
.koha-stat-sep {
  width: 1px; height: 16px;
  background: rgba(255,255,255,.12);
}

/* ── Versus / counter-positioning ── */
#versus { background: var(--navy); }
#versus .section-title { color: var(--white); }
#versus .section-sub { color: rgba(255,255,255,.55); }
.versus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}
.versus-card {
  border-radius: 16px;
  padding: 36px 32px;
}
.versus-them {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
}
.versus-us {
  background: rgba(255,77,0,.08);
  border: 1px solid rgba(255,77,0,.25);
}
.versus-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.versus-them .versus-label { color: rgba(255,255,255,.3); }
.versus-us .versus-label { color: var(--orange); }
.versus-card ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.versus-card li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.versus-them li { color: rgba(255,255,255,.45); }
.versus-us li { color: rgba(255,255,255,.85); }
.versus-them li i { color: rgba(255,255,255,.2); font-size: 12px; margin-top: 3px; flex-shrink: 0; }
.versus-us li i { color: var(--orange); font-size: 12px; margin-top: 3px; flex-shrink: 0; }

/* ── No lock-in pledge ── */
#pledge {
  background: var(--light);
  padding: 64px 0;
}
.pledge-inner {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 44px 48px;
  max-width: 900px;
  margin: 0 auto;
}
.pledge-icon {
  width: 64px; height: 64px;
  background: #fff4ee;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--orange);
  font-size: 26px;
  flex-shrink: 0;
}
.pledge-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.pledge-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Problems ── */
#problems { background: var(--light); }
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.problem-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 32px;
  border: 1px solid var(--border);
}
.problem-icon {
  width: 48px; height: 48px;
  background: #fff4ee;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--orange);
  font-size: 18px;
  margin-bottom: 20px;
}
.problem-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.problem-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Solution intro ── */
#solution {
  background: var(--navy);
  text-align: center;
}
#solution .section-title { color: var(--white); max-width: 740px; margin: 0 auto 16px; }
#solution .section-sub { color: rgba(255,255,255,.55); margin: 0 auto 48px; }
.solution-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.stat-num {
  font-size: 48px;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  font-weight: 500;
}

/* ── Features ── */
#features { background: var(--white); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 56px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.feature-item {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.feature-item:hover { background: var(--light); }
.feature-item:nth-child(3n) { border-right: none; }
.feature-item:nth-child(7),
.feature-item:nth-child(8),
.feature-item:nth-child(9) { border-bottom: none; }
.feature-icon {
  width: 44px; height: 44px;
  background: #fff4ee;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--orange);
  font-size: 17px;
  margin-bottom: 18px;
}
.feature-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.feature-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── How it works ── */
#howitworks { background: var(--light); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 28px; left: 12.5%; right: 12.5%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step {
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 auto 20px;
  transition: background .2s, border-color .2s, color .2s;
}
.step:hover .step-num {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}
.step h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.step p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── OPAC showcase ── */
#opac-showcase {
  background: var(--navy);
  overflow: hidden;
}
.showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
#opac-showcase .section-title { color: var(--white); }
#opac-showcase .section-sub { color: rgba(255,255,255,.55); margin-bottom: 32px; }
.showcase-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}
.showcase-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255,255,255,.8);
}
.showcase-points li i {
  color: var(--orange);
  font-size: 14px;
  flex-shrink: 0;
}
.showcase-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.08);
}
.showcase-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Pricing ── */
#pricing { background: var(--white); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  align-items: start;
}
.pricing-card {
  border-radius: 20px;
  padding: 40px 36px;
  border: 1.5px solid var(--border);
  position: relative;
}
.pricing-card.featured {
  background: var(--navy);
  border-color: var(--navy);
  transform: scale(1.03);
  box-shadow: 0 24px 60px rgba(15,23,42,.25);
}
.pricing-badge {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
  white-space: nowrap;
}
.pricing-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.pricing-card.featured .pricing-name { color: rgba(255,255,255,.5); }
.pricing-price {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-card.featured .pricing-price { color: var(--white); }
.pricing-price sup {
  font-size: 22px;
  font-weight: 700;
  vertical-align: super;
}
.pricing-price sub {
  font-size: 16px;
  font-weight: 500;
  vertical-align: baseline;
  color: var(--muted);
}
.pricing-card.featured .pricing-price sub { color: rgba(255,255,255,.4); }
.pricing-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.5;
}
.pricing-card.featured .pricing-desc { color: rgba(255,255,255,.5); }
.pricing-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 28px;
}
.pricing-card.featured .pricing-divider { background: rgba(255,255,255,.1); }
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--navy2);
  line-height: 1.5;
}
.pricing-card.featured .pricing-features li { color: rgba(255,255,255,.8); }
.pricing-features li i {
  color: var(--orange);
  font-size: 13px;
  margin-top: 2px;
  flex-shrink: 0;
}
.pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 13px;
  color: var(--muted);
}

/* ── FAQ ── */
#faq { background: var(--light); }
.faq-list {
  max-width: 760px;
  margin: 56px auto 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.faq-item {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  gap: 16px;
}
.faq-question i {
  color: var(--orange);
  font-size: 13px;
  flex-shrink: 0;
  transition: transform .25s;
}
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* ── Contact ── */
#contact {
  background: var(--navy);
}
#contact .section-title { color: var(--white); }
#contact .section-sub { color: rgba(255,255,255,.55); margin-bottom: 48px; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}
.contact-info { padding-top: 8px; }
.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.contact-info-icon {
  width: 40px; height: 40px;
  background: rgba(255,77,0,.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--orange);
  font-size: 15px;
  flex-shrink: 0;
}
.contact-info-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}
.contact-info-text span {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  line-height: 1.5;
}
.contact-form {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 40px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color .2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.25); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--orange); }
.form-group select option { background: var(--navy); color: var(--white); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  border-radius: 10px;
  margin-top: 8px;
  justify-content: center;
}
.form-success {
  display: none;
  text-align: center;
  padding: 24px;
  color: rgba(255,255,255,.7);
  font-size: 15px;
}
.form-success i { color: var(--orange); font-size: 32px; display: block; margin-bottom: 12px; }

/* ── Footer ── */
footer {
  background: #070e1a;
  padding: 48px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 24px;
}
.footer-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
}
.footer-logo span { color: var(--orange); }
.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,.3);
  margin-top: 4px;
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,.35);
  transition: color .2s;
}
.footer-links a:hover { color: rgba(255,255,255,.7); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,.45);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-item:nth-child(3n) { border-right: 1px solid var(--border); }
  .feature-item:nth-child(2n) { border-right: none; }
  .feature-item:nth-child(7),
  .feature-item:nth-child(8),
  .feature-item:nth-child(9) { border-bottom: 1px solid var(--border); }
  .feature-item:nth-child(8),
  .feature-item:nth-child(9) { border-bottom: none; }
  .showcase-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .nav-links { display: none; }
  .problems-grid { grid-template-columns: 1fr; }
  .versus-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .steps::before { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .form-row { grid-template-columns: 1fr; }
  .solution-stats { gap: 32px; }
  .contact-form { padding: 28px 20px; }
  .pledge-inner { flex-direction: column; padding: 32px 24px; }
  .koha-bar-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 580px) {
  .features-grid { grid-template-columns: 1fr; border: none; gap: 12px; }
  .feature-item { border: 1px solid var(--border) !important; border-radius: 12px; }
  .steps { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: center; }
}
