/* Comfortaa is the product wordmark's typeface: the application renders "Koncepta" in the top left in
   Comfortaa 700 with -0.07em letter spacing (.nav-header .title in the app's styles.css), so the logo
   here matches it. */
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&display=swap');

/* The colours follow BRAND:1.0's brand, neutral and marker colour rules. */
:root {
  --surface: #ffffff;
  --surface-subtle: #f4f7fb;
  --surface-card: #ffffff;
  --border: #d5deeb;
  --border-hover: #2c4a9a;
  --text: #344c66;
  --text-muted: #526781;
  --text-subtle: #71819a;
  --primary-blue: #2c4a9a;
  --dark-blue: #142f66;
  --marker-green: #3f9b55;

  --font-heading: Arial, Helvetica, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;
  --font-brand: 'Comfortaa', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --max-width: 1240px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --transition: all 0.2s ease;
  --header-height: 48px;
}

/* Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-gutter: stable;
}

body {
  background-color: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--surface-subtle);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue);
}

/* Typography & Headings */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Standard links (no additional classes) */
a:not([class]) {
  color: inherit;
  text-decoration: none;
}

a:not([class]):hover {
  text-decoration: underline;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Wordmark: same typeface, weight and letter spacing as the application's own title. */
.logo {
  font-family: var(--font-brand);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.07em;
  font-optical-sizing: auto;
  font-style: normal;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--dark-blue);
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--marker-green);
  border-radius: 50%;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

nav a:hover, nav a.active {
  color: var(--text);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: var(--transition);
}

nav a:hover::after {
  width: 100%;
}

.btn-book-demo {
  background: var(--primary-blue);
  color: #ffffff;
  padding: 0.55rem 1.3rem;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  transition: var(--transition);
}

.btn-book-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(20, 47, 102, 0.2);
  text-decoration: none;
}

.nav-cta {
  background: var(--primary-blue);
  color: #ffffff;
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: none;
  transition: var(--transition);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(20, 47, 102, 0.2);
}

/* Hero Section */
.hero {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: transparent;
  z-index: -1;
  pointer-events: none;
}

.badge {
  display: inline-block;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  max-width: 900px;
  margin: 0 auto 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-blue);
  color: #ffffff;
  border: none;
  box-shadow: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(20, 47, 102, 0.2);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-subtle);
  border-color: var(--text-muted);
}

/* Glass Card Component */
.glass-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 5px 16px rgba(44, 64, 90, 0.08);
}

/* Stakeholder Benefits Section */
.benefits-section {
  padding: 4rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.benefits-grid.two-columns {
  grid-template-columns: repeat(2, 1fr);
}

.benefit-card {
  display: flex;
  flex-direction: column;
}

.benefit-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #edf2fc;
  border: 1px solid #b7c8e7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
  font-weight: bold;
  font-size: 1.25rem;
}

.benefit-card:nth-child(2) .benefit-icon {
  background: #edf8ef;
  border-color: #b8d9c0;
  color: #3d8b4c;
}

.benefit-card:nth-child(3) .benefit-icon {
  background: #fff8e7;
  border-color: #e3c993;
  color: #a37518;
}

.benefit-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.benefit-card ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.benefit-card li {
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 1.5rem;
}

.benefit-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--marker-green);
  font-weight: bold;
}

.contributor-flow-section {
  padding: 5.5rem 0;
  background: #f6f8fb;
  border-top: 1px solid #d5deeb;
  border-bottom: 1px solid #d5deeb;
}

.flow-section {
  padding: 5.5rem 0;
  border-top: 1px solid #d5deeb;
  border-bottom: 1px solid #d5deeb;
}

.contributor-flow-header {
  margin-bottom: 2rem;
}

.contributor-flow-frame {
  max-width: 920px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #d5deeb;
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 0 5px 16px rgba(44, 64, 90, 0.08);
}

.contributor-flow-frame iframe {
  display: block;
  width: 100%;
  height: clamp(280px, 55.56vw, 500px);
  border: 0;
}

.flow-section .section-header {
  margin-bottom: 2rem;
}

.flow-frame {
  max-width: 920px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #d5deeb;
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 0 5px 16px rgba(44, 64, 90, 0.08);
}

.flow-frame iframe {
  display: block;
  width: 100%;
  height: clamp(280px, 55.56vw, 500px);
  border: 0;
}

.flow-followup {
  max-width: 720px;
  margin: 2rem 0 0;
}

.page-intro {
  padding: calc(var(--header-height) + 2rem) 0 3.5rem;
  background: #ffffff;
  border-bottom: 1px solid #d5deeb;
}

.page-intro .section-header {
  max-width: 760px;
  margin: 0;
}

.page-intro .hero-logo {
  display: block;
  margin-bottom: 2.25rem;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.page-intro h1 {
  max-width: 780px;
  margin-bottom: 0.8rem;
  color: #304a68;
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  line-height: 1.2;
}

.page-intro p {
  max-width: 720px;
  margin: 0;
  color: #526781;
  font-size: 1rem;
  line-height: 1.7;
}

main > section:nth-of-type(odd),
body > section:nth-of-type(odd) {
  background: #ffffff;
}

main > section:nth-of-type(even):not(.demo-section),
body > section:nth-of-type(even):not(.demo-section) {
  background: #f6f8fb;
}

main > section.demo-section,
body > section.demo-section {
  background: #ffffff;
}

main > .benefits-section + .demo-section,
body > .benefits-section + .demo-section {
  padding-top: 2rem;
}

main > .benefits-section > .container > .section-header:only-child,
body > .benefits-section > .container > .section-header:only-child {
  margin-bottom: 0;
}

.benefit-card:nth-child(1) li::before {
  color: var(--primary-blue);
}

.benefit-card:nth-child(3) li::before {
  color: var(--primary-blue);
}

/* Features Interactive Section */
.features-section {
  padding: 4rem 0;
  background: var(--surface-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.interactive-showcase {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 3rem;
  align-items: stretch;
}

.feature-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border-left: 4px solid transparent;
  background: transparent;
  transition: var(--transition);
}

.feature-item:hover {
  background: #eef3fb;
}

.feature-item.active {
  background: #eaf0fc;
  border-left-color: var(--primary-blue);
  box-shadow: none;
}

.feature-item.active h3 {
  color: var(--text);
}

.feature-item.active p {
  color: var(--text-muted);
}

.feature-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-subtle);
  transition: var(--transition);
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--text-subtle);
  transition: var(--transition);
}

.feature-item-inline-img {
  display: none;
}

.feature-item .screenshot-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--marker-green);
  margin-top: 0.5rem;
  opacity: 0.6;
  transition: var(--transition);
}

.feature-item.active .screenshot-indicator {
  opacity: 1;
}

.feature-display {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  height: 100%;
}

.screenshot-wrapper {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(54, 73, 102, 0.1);
  position: relative;
  cursor: zoom-in;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s, box-shadow 0.3s;
}

.screenshot-wrapper:hover {
  border-color: var(--primary-blue);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(54, 73, 102, 0.14);
}

.screenshot-img {
  width: 100%;
  height: auto;
  display: none;
  opacity: 0;
}

.screenshot-img.active {
  display: block;
  animation: imgFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes imgFadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.screenshot-overlay-hint {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  pointer-events: none;
  opacity: 0;
  transition: var(--transition);
}

.screenshot-wrapper:hover .screenshot-overlay-hint {
  opacity: 1;
}

.showcase-header {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}


.flow-pane {
  display: none;
  animation: fadeIn 0.4s ease;
}

.flow-pane.active {
  display: block;
}

.flow-pane p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Hosting / Pricing Section */
.hosting-section {
  padding: 4rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.hosting-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.hosting-card {
  position: relative;
  height: 100%;
}

.hosting-tier {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
  min-height: 3rem;
}

.hosting-price {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.hosting-price {
  display: none; /* prices TBD */
}

.hosting-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-subtle);
}

.hosting-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.hosting-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hosting-features li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hosting-features li::before {
  content: '✓';
  color: var(--marker-green);
  font-weight: bold;
}

.hosting-card .btn {
  width: 100%;
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
}

.beta-section {
  padding: 4rem 0;
  background: var(--surface-subtle);
  border-top: 1px solid var(--border);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: rgba(20, 47, 102, 0.82);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 2rem;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(22, 39, 66, 0.35);
  overflow: hidden;
  display: flex;
  background: var(--surface-card);
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--surface-card);
  border: 1px solid var(--border);
  color: var(--dark-blue);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: var(--surface-subtle);
  border-color: var(--dark-blue);
  transform: rotate(90deg);
}

.lightbox-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: rgba(20, 47, 102, 0.82);
  color: #ffffff;
  font-size: 1rem;
  text-align: center;
  font-weight: 500;
}

/* Footer Section */
footer {
  padding: 5rem 0 3rem;
  border-top: 1px solid var(--border);
  background: var(--surface-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-info p {
  font-size: 0.95rem;
  color: var(--text-subtle);
  margin-top: 1rem;
  max-width: 320px;
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-subtle);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

/* Book a Demo Section */
.demo-section,
.beta-section {
  padding: 5rem 0;
}

.demo-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 3rem 3.5rem;
  border-radius: var(--radius-lg);
}

.demo-cta-content {
  flex: 1;
}

.demo-cta-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.demo-cta-content p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 700px;
  line-height: 1.7;
}

.btn-demo-primary {
  display: inline-block;
  background: var(--primary-blue);
  color: #ffffff;
  padding: 0.9rem 2.2rem;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-demo-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(20, 47, 102, 0.2);
  text-decoration: none;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hosting-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .interactive-showcase {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .screenshot-wrapper {
    max-width: 800px;
    margin: 0 auto;
  }
  .feature-display {
    display: none;
  }
  .feature-item,
  .feature-item.active {
    background: var(--surface-card);
    border-left-color: transparent;
    box-shadow: 0 2px 5px rgba(44, 64, 90, 0.04);
  }

  .feature-item h3 {
    color: var(--text);
  }
  .feature-item p {
    color: var(--text-muted);
  }
  .feature-item-inline-img {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(54, 73, 102, 0.1);
    cursor: zoom-in;
  }

  .feature-item {
    cursor: pointer;
  }
}

#mobile-img-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(20, 47, 102, 0.82);
  overflow: auto;
  touch-action: pinch-zoom;
  align-items: center;
  justify-content: center;
}

#mobile-img-overlay.active {
  display: flex;
}

#mobile-img-overlay img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  touch-action: pinch-zoom;
  cursor: zoom-out;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.8rem !important;
  }
  .benefits-grid,
  .benefits-grid.two-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  header {
    height: 70px;
  }
  nav {
    display: none; /* Can be expanded as mobile menu if needed, but for static presentation keeps clean */
  }
  .demo-cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
  }
  .btn-demo-primary {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.2rem !important;
  }
  .hosting-grid {
    grid-template-columns: 1fr;
  }
  .btn {
    width: 100%;
  }
  .container {
    padding: 0 1.25rem;
  }
}

html {
  background: #ffffff;
}

body {
  background: #ffffff;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
}

::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: #f4f7fb;
}

::-webkit-scrollbar-thumb {
  background: #c4cfdf;
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: #8798b2;
}

h1, h2, h3, h4 {
  color: var(--text);
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
}

.container {
  max-width: var(--max-width);
  padding: 0 2rem;
}

section[id] {
  scroll-margin-top: var(--header-height);
}

header {
  height: var(--header-height);
  background: #ffffff;
  border-bottom: 1px solid #cbd6e5;
  box-shadow: 0 1px 0 rgba(44, 74, 154, 0.04);
}

header.scrolled {
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #c1cede;
  box-shadow: 0 2px 8px rgba(45, 67, 95, 0.08);
  backdrop-filter: blur(8px);
}

.header-container {
  max-width: none;
  padding: 0 1rem;
  height: 100%;
  gap: 2rem;
}

.logo {
  flex-shrink: 0;
  color: #172a5e;
  font-family: var(--font-brand);
  font-size: 1.3rem;
  letter-spacing: -0.07em;
}

.logo-version {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  margin-left: 0.35rem;
  padding: 0.12rem 0.42rem;
  border: 1px solid #7ac087;
  border-radius: 4px;
  background: #eaf7eb;
  color: #397b43;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0;
}

nav {
  align-self: stretch;
  gap: 0;
  margin-right: auto;
}

nav a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 0.85rem;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  color: #243c58;
  font-size: 0.86rem;
  font-weight: 400;
}

nav a:hover,
nav a.active {
  background: #f5f7fb;
  border-left-color: #e0e6ef;
  border-right-color: #e0e6ef;
  color: var(--primary-blue);
}

nav a::after {
  top: auto;
  right: 0;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: none;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.btn-book-demo,
.btn-demo-primary {
  border: 1px solid var(--dark-blue);
  border-radius: 4px;
  background: var(--primary-blue);
  box-shadow: none;
  color: #ffffff;
}

.btn-book-demo {
  padding: 0.42rem 0.85rem;
  font-size: 0.82rem;
}

.btn-book-demo:hover,
.btn-demo-primary:hover {
  background: var(--dark-blue);
  box-shadow: 0 3px 8px rgba(20, 47, 102, 0.2);
  transform: translateY(-1px);
}

.hero {
  padding-top: calc(var(--header-height) + 5.25rem);
  padding-bottom: 6rem;
  border-bottom: 1px solid #d5deeb;
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 68%);
  text-align: left;
}

.hero::before {
  top: 0;
  right: 0;
  left: auto;
  width: 50%;
  height: 100%;
  transform: none;
  background: linear-gradient(135deg, transparent 35%, rgba(44, 74, 154, 0.045) 100%);
}

.hero-logo {
  display: inline-block;
  margin-bottom: 1.8rem;
  color: #172a5e;
  font-family: var(--font-brand);
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.95;
  -webkit-text-stroke: 0.25px currentColor;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.45rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid #cbd7e8;
  border-radius: 4px;
  background: #ffffff;
  color: #536987;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4db96b;
  box-shadow: 0 0 0 3px #e1f3e5;
}

.hero h1 {
  max-width: 780px;
  margin: 0 0 1.4rem;
  color: #294766;
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-subtitle {
  max-width: 720px;
  margin: 0;
  color: #526781;
  font-size: 1.12rem;
  line-height: 1.7;
}

.benefits-section,
.features-section,
.hosting-section,
.demo-section,
.beta-section {
  padding: 5.5rem 0;
}

.benefits-section,
.hosting-section,
.demo-section {
  background: #ffffff;
}

.features-section,
.beta-section {
  background: #f6f8fb;
  border-top: 1px solid #d5deeb;
  border-bottom: 1px solid #d5deeb;
}

.section-header {
  max-width: 760px;
  margin: 0 0 2.8rem;
  text-align: left;
}

.section-header h2 {
  margin-bottom: 0.7rem;
  color: #304a68;
  font-size: clamp(1.9rem, 3vw, 2.55rem);
}

.section-header p {
  max-width: 720px;
  font-size: 1rem;
}

.section-header p + p {
  margin-top: 1rem;
}

.document-link {
  margin-top: 1.25rem;
}

.document-link-anchor {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
}

.document-link-anchor:hover {
  text-decoration: underline;
}

.document-link-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
}

.glass-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(44, 64, 90, 0.04);
  backdrop-filter: none;
}

.glass-card:hover {
  border-color: #9dafc8;
  box-shadow: 0 5px 16px rgba(44, 64, 90, 0.08);
}

.benefits-grid {
  gap: 1rem;
}

.benefit-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 1.25rem;
  border: 1px solid #b7c8e7;
  border-radius: 4px;
  background: #edf2fc;
  color: var(--primary-blue);
}

.benefit-card:nth-child(2) .benefit-icon {
  border-color: #b8d9c0;
  background: #edf8ef;
  color: #3d8b4c;
}

.benefit-card:nth-child(3) .benefit-icon {
  border-color: #e3c993;
  background: #fff8e7;
  color: #a37518;
}

.benefit-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.28rem;
}

.benefit-card ul,
.hosting-features {
  gap: 0.65rem;
}

.benefit-card li,
.hosting-features li {
  color: #5b6e87;
  font-size: 0.92rem;
}

.benefit-card li::before,
.hosting-features li::before {
  color: #3f9b55;
}

.benefit-card:nth-child(1) li::before,
.benefit-card:nth-child(3) li::before {
  color: var(--primary-blue);
}

.interactive-showcase {
  gap: 2.25rem;
}

.feature-list {
  gap: 0.35rem;
}

.feature-item,
.feature-item.active {
  padding: 1rem 1.15rem;
  border-radius: 4px;
  border-left: 3px solid transparent;
  background: transparent;
  box-shadow: none;
}

.feature-item:hover {
  background: #eef3fb;
}

.feature-item.active {
  border-left-color: var(--primary-blue);
  background: #eaf0fc;
}

.feature-item h3,
.feature-item.active h3 {
  margin-bottom: 0.35rem;
  color: #385474;
  font-size: 1.12rem;
}

.feature-item.active h3 {
  color: var(--primary-blue);
}

.feature-item p,
.feature-item.active p {
  color: #687b94;
  font-size: 0.9rem;
}

.screenshot-wrapper {
  border: 1px solid #becadd;
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(54, 73, 102, 0.1);
}

.screenshot-wrapper:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 10px 24px rgba(54, 73, 102, 0.14);
  transform: translateY(-2px);
}

.screenshot-overlay-hint {
  border: 1px solid #bfcbdd;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.94);
  color: #405777;
}

.hosting-grid {
  gap: 1rem;
}

.hosting-card {
  min-height: 280px;
}

.hosting-tier {
  min-height: 0;
  color: #304a68;
  font-size: 1.25rem;
}

.hosting-desc,
.hosting-features li {
  color: #60738c;
}

.demo-cta-card {
  padding: 2.4rem 2.7rem;
  border-color: #b9c9e2;
  border-radius: 6px;
  background: #edf3fc;
  box-shadow: none;
}

.demo-cta-content h2 {
  margin-bottom: 0.7rem;
  background: none;
  color: #2f4c72;
  font-size: 1.9rem;
  -webkit-text-fill-color: initial;
}

.demo-cta-content p {
  color: #536a86;
}

.btn-demo-primary {
  padding: 0.78rem 1.35rem;
  font-size: 0.92rem;
}

footer {
  padding: 4rem 0 2.2rem;
  border-top: 1px solid #cbd6e5;
  background: #f4f7fb;
}

.footer-grid {
  margin-bottom: 3rem;
}

.footer-links h4 {
  color: #304a68;
  font-size: 1rem;
}

.footer-info p,
.footer-links a,
.footer-bottom p {
  color: #687b94;
}

.footer-bottom {
  border-top-color: #d6dfeb;
}

.lightbox {
  background: rgba(20, 47, 102, 0.82);
  backdrop-filter: blur(8px);
}

.lightbox-content {
  border-color: #c1ccdd;
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(22, 39, 66, 0.35);
}

.lightbox-close {
  border: 1px solid #c8d3e1;
  border-radius: 4px;
  background: #ffffff;
  color: var(--dark-blue);
}

.lightbox-close:hover {
  border-color: var(--dark-blue);
  background: #edf2f9;
  color: var(--dark-blue);
}

.lightbox-caption {
  background: linear-gradient(to top, rgba(20, 47, 102, 0.86) 0%, transparent 100%);
}

@media (max-width: 768px) {
  header,
  header.scrolled {
    height: var(--header-height);
  }

  .hero {
    padding-top: calc(var(--header-height) + 3.5rem);
  }

  .hero h1 {
    font-size: 1.9rem !important;
  }

  .logo-version {
    display: none;
  }
}

.mobile-nav-toggle {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 34px;
  padding: 0;
  border: 1px solid #c8d4e4;
  border-radius: 4px;
  background: #ffffff;
  color: var(--dark-blue);
  cursor: pointer;
}

.mobile-nav-toggle > span:not(.sr-only) {
  position: absolute;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav-toggle > span:nth-child(1) { transform: translateY(-5px); }
.mobile-nav-toggle > span:nth-child(3) { transform: translateY(5px); }

.mobile-nav-toggle.open > span:nth-child(1) { transform: rotate(45deg); }
.mobile-nav-toggle.open > span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.open > span:nth-child(3) { transform: rotate(-45deg); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .header-container {
    gap: 0.5rem;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  #nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    margin: 0;
    padding: 0.35rem;
    border: 1px solid #cbd6e5;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(42, 61, 89, 0.14);
  }

  #nav-menu.open {
    display: flex;
  }

  #nav-menu a {
    justify-content: flex-start;
    height: 44px;
    min-height: 44px;
    padding: 0 0.85rem;
    border: 0;
    border-bottom: 1px solid #e2e8f0;
  }

  #nav-menu a:last-child {
    border-bottom: 0;
  }

  #nav-menu a::after {
    right: 0.35rem;
    bottom: 0;
    left: 0.35rem;
  }

  .btn-book-demo {
    padding: 0.42rem 0.7rem;
  }
}

@media (max-width: 1024px) {
  .feature-item.active,
  .feature-item.active:hover {
    background: transparent;
    border-left-color: transparent;
    box-shadow: none;
  }

  .feature-item.active h3 {
    color: #385474;
  }
}
