:root {
  /* Colors */
  --bg: #fdfbfa;
  --text: #232b30;
  --muted: #6a6a6a;
  --link: #1e00ff;
  --highlight: #b8f28e;
  --highlight-yellow: #ffeb99;
  --highlight-red: #ffb3b3;

  /* Layout */
  --maxw: 1400px;
  --padding-desktop: 40px;
  --padding-tablet: 30px;
  --padding-mobile: 20px 16px;

  /* Grid gaps */
  --gap-desktop: 60px;
  --gap-tablet: 40px;
  --gap-mobile: 20px;

  /* Hero columns */
  --hero-logo-width: 300px;
  --hero-logo-width-tablet: 250px;

  /* Typography */
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-sans: Inter, system-ui, -apple-system, sans-serif;
  --font-size-h1: 32px;
  --font-size-h2: 20px;
  --font-size-body: 17px;
  --font-size-small: 14px;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 60px;
  --spacing-xxl: 100px;
}

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

html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.vettig_www_main_w {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--padding-desktop);
}

/* Header */
header.mobile_nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-xl);
}

/* Header logo link - hidden on desktop for frontpage, always visible on Ada */
header .logo-link {
  display: none;
}

header .logo-link .logo-img {
  width: 140px;
  height: auto;
}

/* Show logo on mobile for all pages */
@media (max-width: 768px) {
  header .logo-link {
    display: block;
  }
}

/* Always show logo on Ada page */
body:has(.ada-hero) header .logo-link,
.ada-page header .logo-link {
  display: block;
}

/* Ada CTA container - positioned within ada-main */
.ada-cta {
  position: absolute;
  top: 0;
  right: 0;
}

@media (max-width: 768px) {
  .ada-cta .ada-cta-image {
    display: none;
  }
}

.ada-cta-image {
  position: absolute;
  top: -60px;
  right: 0;
  width: auto;
  height: 50px;
}

.test-ada-link {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 28px;
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
}

/* Mobile menu toggle (hidden on desktop) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 100;
  opacity: 0; /* hidden until nav items*/
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: var(--hero-logo-width) 1fr 1fr;
  gap: var(--gap-desktop);
  margin-bottom: 80px;
}

/* Logo section on the left */
.logo-block {
  grid-column: 1;
  grid-row: 1;
}

.logo-img {
  width: 100%;
  max-width: 300px;
  height: auto;
}

/* Value proposition section in the middle */
.hero_valueprop {
  grid-column: 2;
  grid-row: 1;
}

.hero_valueprop h1 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--font-size-h1);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

.hero_valueprop ul {
  list-style: none;
  margin-bottom: var(--spacing-xl);
}

.hero_valueprop li {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.4;
}

/* Arguments section on the right */
.hero_arguments {
  grid-column: 3;
  grid-row: 1;
}

.hero_arguments ul {
  list-style: none;
}

.hero_arguments li {
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-body);
  line-height: 1.5;
}

/* Arrows */
.arrow {
  margin-right: var(--spacing-sm);
  font-size: inherit;
}

/* Highlights */
.highlight {
  background: linear-gradient(transparent 40%, var(--highlight) 60%);
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.highlight-yellow {
  background: linear-gradient(transparent 40%, var(--highlight-yellow) 60%);
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.highlight-red {
  background: linear-gradient(transparent 40%, var(--highlight-red) 60%);
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Tools Section */
.tools {
  margin-top: var(--spacing-xxl);
}

.tools-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: var(--spacing-xxl);
}

/* Ada Section */
.ada {
  grid-column: 1;
}

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--font-size-small);
  color: var(--text);
  margin-bottom: 20px;
}

.ada_logo {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 96px;
  letter-spacing: -0.03em;
  line-height: 0.8;
  margin-bottom: var(--spacing-lg);
}

.ada h2 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--font-size-h2);
  line-height: 1.4;
  margin-bottom: var(--spacing-md);
}

.ada ul {
  list-style: none;
  margin-bottom: 32px;
}

.ada li {
  margin-bottom: 10px;
  font-size: 17px;
}

._adacta {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 20px;
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
}

._adacta:hover {
  opacity: 0.7;
}

/* Examples Section */
.opensource_examples {
  grid-column: 2;
}

.opensource_examples h2.eyebrow {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 32px;
  max-width: 700px;
  line-height: 1.6;
}

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

.card h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.card ul {
  list-style: none;
}

.card li {
  margin-bottom: var(--spacing-xs);
  font-size: var(--font-size-small);
  line-height: 1.4;
  margin: 0;
}

.deeplink {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 20px;
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.deeplink:hover {
  opacity: 0.7;
}

/* Footer */
footer {
  margin-top: var(--spacing-xxl);
  padding: var(--padding-desktop) 0 20px;
  border-top: 1px solid #e9e4e2;
}

.footer_txt {
  font-size: var(--font-size-small);
  color: var(--muted);
  text-align: center;
}

/* Utility classes */
.mono {
  font-family: var(--font-mono);
}

.inline {
  display: inline-flex;
}

/* Animation for cards */
.card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1100px) {
  .vettig_www_main_w {
    padding: var(--padding-tablet);
  }

  .hero {
    grid-template-columns: var(--hero-logo-width-tablet) 1fr 1fr;
    gap: var(--gap-tablet);
  }

  .tools-grid {
    grid-template-columns: 280px 1fr;
    gap: var(--spacing-xl);
  }

  .ada_logo {
    font-size: 72px;
  }

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .vettig_www_main_w {
    padding: var(--padding-mobile);
  }

  /* Mobile Header */
  header.mobile_nav {
    margin-bottom: var(--spacing-lg);
  }

  /* Show menu toggle on mobile */
  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  /* Mobile Hero */
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-mobile);
    margin-bottom: 48px;
  }

  .logo-block {
    display: none;
  }

  .hero_valueprop {
    grid-column: 1;
    grid-row: 1;
  }

  .hero_valueprop h1 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .hero_valueprop ul {
    margin-bottom: 32px;
  }

  .hero_valueprop li {
    font-size: 16px;
    margin-bottom: 10px;
  }

  /* Mobile Arguments */
  .hero_arguments {
    grid-column: 2;
    grid-row: 1;
  }

  .hero_arguments li {
    font-size: 14px;
    margin-bottom: 12px;
  }

  /* Mobile Tools */
  .tools {
    margin-top: 60px;
  }

  .tools-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: var(--gap-mobile);
  }

  .ada {
    grid-column: 1;
  }

  .opensource_examples {
    grid-column: 2;
  }

  .eyebrow {
    font-size: 12px;
    margin-bottom: var(--spacing-sm);
  }

  .ada_logo {
    font-size: 56px;
    margin-bottom: 20px;
  }

  .ada h2 {
    font-size: 17px;
    margin-bottom: 16px;
  }

  .ada ul {
    margin-bottom: 20px;
  }

  .ada li {
    font-size: 14px;
    margin-bottom: 8px;
  }

  ._adacta {
    font-size: 14px;
  }

  /* Mobile Examples */
  .opensource_examples h2.eyebrow {
    font-size: 12px;
    margin-bottom: 24px;
  }

  .others {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .card h3 {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .card li {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .deeplink {
    font-size: 14px;
  }

  /* Mobile Footer */
  footer {
    margin-top: 60px;
    padding: 32px 0 16px;
  }

  .footer_txt {
    font-size: 12px;
  }
}

/* Ada Page Styles */
.ada-hero {
  margin-bottom: 80px;
  display: flex;
  justify-content: center;
  padding: 0;
  position: relative;
}

.ada-main {
  max-width: 1200px;
  text-align: left;
  position: relative;
}

.ada-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 96px;
  letter-spacing: -0.09em;
  line-height: 0.8;
  margin-bottom: var(--spacing-sm);
}

.ada-subtitle {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 24px;
  margin-bottom: var(--spacing-lg);
}

.ada-intro {
  margin-bottom: 0;
}

.ada-intro p {
  margin-bottom: var(--spacing-sm);
  font-size: 24px;
  line-height: 1.4;
}

.ada-content {
  margin-bottom: 80px;
}

.ada-headers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-desktop);
  margin-bottom: var(--spacing-lg);
}

.ada-headers h3 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--font-size-h2);
}

.ada-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-desktop);
  margin-bottom: var(--spacing-xl);
}

.ada-example {
  padding-left: 36px;
  position: relative;
}

.ada-example::before {
  content: "";
  position: absolute;
  left: 0px;
  top: 0;
  bottom: 0;
  width: 12px;
  background: var(--highlight);
}

.ada-advantage h4 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--font-size-body);
  margin-bottom: var(--spacing-sm);
}

.ada-advantage p,
.ada-example p {
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-small);
  line-height: 1.5;
}

/* Ada Page Mobile Styles */
@media (max-width: 768px) {
  .ada-headers {
    grid-template-columns: 1fr;
    gap: var(--gap-mobile);
    text-align: center;
  }

  .ada-headers h3:last-child {
    display: none;
  }

  .ada-row {
    grid-template-columns: 1fr;
    gap: var(--gap-mobile);
    margin-bottom: var(--spacing-lg);
  }

  .ada-example::before {
    display: none;
  }

  .ada-example {
    padding-left: 0;
  }

  .ada-hero {
    padding: 40px 0;
    margin-bottom: 0px;
  }

  .ada-main {
    max-width: 100%;
  }

  .ada-title {
    font-size: 56px;
    margin-bottom: 20px;
  }

  .ada-subtitle {
    font-size: 17px;
    margin-bottom: var(--spacing-lg);
  }

  .ada-intro p {
    font-size: 18px;
    margin-bottom: var(--spacing-sm);
  }

  .ada-advantage h4 {
    font-size: var(--font-size-small);
  }

  .ada-advantage p,
  .ada-example p {
    font-size: 13px;
  }
}