@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Libre+Caslon+Text:wght@400&display=swap');

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

:root {
  --font-mono: 'IBM Plex Mono', monospace;
  --font-serif: 'Libre Caslon Text', serif;
}

html {
  font-family: var(--font-serif);
  line-height: 1.6;
  color: #333;
}

body {
  background-color: rgb(233, 237, 233);
}

a {
  color: inherit;
  text-decoration: none;
  border: 2px solid black;
  border-left-width: 6px;
  border-radius: 4px;
  padding: 4px 8px;
  margin: 0 8px;
  display: inline-block;
  font-weight: 600;
  font-family: var(--font-mono);
  background: white;
}

a:hover {
  background-color: #f0f0f0;
}

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

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
}

ul, ol {
  font-family: var(--font-serif);
  margin: 1.5em 0 1.5em 2em;
  font-size: 1.05em;
  line-height: 1.8;
}

li {
  margin-bottom: 0.5em;
}

/* Dividers */
hr {
  border: none;
  border-top: 2px dashed rgba(0, 0, 0, 0.7);
  margin: 3rem 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-family: var(--font-mono);
  border: 2px solid black;
  background: white;
}

table thead {
  background: black;
  color: white;
}

table th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid black;
}

table td {
  padding: 12px;
  border-bottom: 1px solid black;
}

table tbody tr:last-child td {
  border-bottom: none;
}

table tbody tr:hover {
  background: rgb(245, 245, 245);
}

/* Hero Section */
.hero {
  width: calc(100vw - 4rem);
  padding: 0 2rem;
  height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
  margin-left: calc(50% - 50vw + 2rem);
  border: 2px solid black;
  box-sizing: border-box;
}

.hero-logo {
  max-width: 400px;
  height: auto;
  margin: 0;
}

main {
  position: relative;
}

button,
input,
textarea,
select {
  font: inherit;
  font-family: var(--font-mono);
}

button {
  all: unset;
  color: black;
  background: white;
  border: 2px solid black;
  border-left-width: 6px;
  border-radius: 4px;
  padding: 8px 16px;
  margin: 8px 0;
  cursor: pointer;
  font-weight: 600;
  box-sizing: border-box;
  display: inline-block;
}

button:hover {
  background-color: #f0f0f0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.2;
  font-weight: 500;
}

h1 {
  font-size: 2.2em;
  margin: 1.5em 0 0.8em;
}

h2 {
  font-size: 1.6em;
  margin: 1.3em 0 0.6em;
}

h3 {
  font-size: 1.2em;
  margin: 1em 0 0.5em;
}

/* Layout & Spacing */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header,
main,
footer {
  padding: 2rem 1rem;
}

header {
  border-bottom: 2px dashed rgba(0, 0, 0, 0.7);
}

main {
  flex: 1;
}

footer {
  border-top: 2px dashed rgba(0, 0, 0, 0.7);
  text-align: center;
}

/* Container */
header nav,
main,
footer {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

/* Spacing */
p {
  font-family: var(--font-serif);
  margin-bottom: 1.5rem;
  font-size: 1.05em;
  line-height: 1.8;
}

img {
  margin-bottom: 2rem;
}

.beta-cta {
  background: white;
  border: 2px dashed rgba(0, 0, 0, 0.7);
  padding: 1.5rem 1.25rem;
  margin: 2rem 0 3rem;
}

.beta-cta h3 {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
}

.beta-cta p {
  margin-bottom: 1rem;
}

.beta-cta .button {
  all: unset;
  color: black;
  background: white;
  border: 2px solid black;
  border-left-width: 6px;
  border-radius: 4px;
  padding: 8px 16px;
  margin: 8px 0 0;
  cursor: pointer;
  font-weight: 600;
  box-sizing: border-box;
  display: inline-block;
  font-family: var(--font-mono);
}

.beta-cta .button:hover {
  background-color: #f0f0f0;
}

/* Navigation */
header nav {
  display: flex;
  gap: 2rem;
}

/* Form Elements */
input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
  all: unset;
  background: white;
  border: 2px solid black;
  border-left-width: 6px;
  border-radius: 4px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.95em;
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin-bottom: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  background: #f9f9f9;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-color: white;
  padding-right: 28px;
}

/* Mobile */
@media (max-width: 640px) {
  header nav {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-logo {
    max-width: 250px;
  }
}

/* Tablet and up */
@media (min-width: 768px) {
  header,
  main,
  footer {
    padding: 3rem 2rem;
  }

  header nav {
    gap: 3rem;
  }
}

/* Modal */
.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease-in;
}

.image-modal.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal-content img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  margin: 0;
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal-close:hover {
  color: #ccc;
  background: none;
}

.expandable-image {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.expandable-image:hover {
  opacity: 0.8;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Knowledge base articles */
.kb-articles {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.kb-article {
  border-top: 2px dashed black;
  border-bottom: 2px dashed black;
  padding: 1.5rem;
}

.kb-article-title {
  font-family: var(--font-serif);
  font-size: 1.3em;
  font-weight: 500;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.kb-article-title a {
  all: unset;
  cursor: pointer;
  font-family: inherit;
  font-weight: inherit;
  border: none;
  border-radius: 0;
  padding: 0;
  background: none;
  display: inline;
}

.kb-article-title a:hover {
  text-decoration: underline;
  background: none;
}

.kb-article-excerpt {
  font-family: var(--font-serif);
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: #444;
}

.kb-article-readmore {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9em;
}

/* Large screens */
@media (min-width: 1024px) {
  .hero {
    height: 700px;
  }
}
