:root {
  --bg-paper: #f4f4f5;
  --bg-white: #ffffff;
  --text-main: #27272a;
  --text-muted: #52525b;
  --accent: #3f3f46;
  --border: #d4d4d8;
  --link: #18181b;

  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: "Helvetica Neue", "Arial", sans-serif;

  --container: 1000px;
  --article-width: 720px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-white);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: var(--link);
  transition: opacity 0.3s ease;
}
a:hover {
  opacity: 0.7;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

/* Utilities */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.article-width {
  max-width: var(--article-width);
}
.bg-paper {
  background-color: var(--bg-paper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}
h1 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
}
h2 {
  font-size: 2rem;
  margin-top: 1rem;
}
h3 {
  font-size: 1.4rem;
}
p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.meta-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--accent);
}

/* Header */
.header {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--accent);
  backdrop-filter: blur(5px);
  z-index: 100;
}
.header a {
  color: var(--bg-white);
}
.header__wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
}
.logo img {
  width: 30px;
  height: 30px;
}
.desktop-nav {
  display: flex;
  gap: 32px;
}
.desktop-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-main);
  transition: width 0.3s;
}
.desktop-nav a:hover::after {
  width: 100%;
}

/* Burger */
.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
}
.line {
  width: 100%;
  height: 2px;
  background: var(--bg-paper);
  transition: 0.3s;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 50px;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-white);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 99;
  padding: 40px;
  border-top: 1px solid var(--border);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
}

/* Content */
.hero {
  padding: 80px 0 60px;
  background-image: url("./images/cartoon-ai-robot-scene\ \(2\).jpg");
  background-size: cover;
  background-position: center;
  text-align: center;
}

.hero__content {
  max-width: 700px;
  margin: 0 auto;
  color: var(--bg-white);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.hero__content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--bg-white);
}
.hero__content p {
  font-size: 1.2rem;
  color: var(--bg-white);
}
.section {
  padding: 80px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}
.content-grid.reversed {
  grid-template-columns: 0.8fr 1.2fr;
}
.content-grid.reversed .text-block {
  order: 2;
}

/* Visuals */
.schematic-box {
  border: 2px solid var(--text-main);
  padding: 40px;
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  font-family: monospace;
  font-size: 0.9rem;
}
.scheme-node {
  border: 1px solid var(--border);
  padding: 10px 20px;
  width: 100%;
  text-align: center;
  background: var(--bg-paper);
}
.caption {
  display: block;
  margin-top: 15px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
}
.tech-img {
  border: 1px solid var(--border);
  filter: grayscale(100%);
  transition: filter 0.3s;
}
.tech-img:hover {
  filter: grayscale(0%);
}

.journal-list {
  margin: 20px 0;
  padding-left: 20px;
}
.journal-list li {
  list-style-type: disc;
  margin-bottom: 10px;
  color: var(--text-muted);
  padding-left: 10px;
}

.columns-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}
.columns-2 h3 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

/* FAQ */
.acc-item {
  border-bottom: 1px solid var(--border);
}
.acc-head {
  padding: 20px 0;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  transition: color 0.3s;
}
.acc-head:hover {
  color: var(--text-muted);
}
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.acc-body p {
  padding-bottom: 20px;
  font-size: 1rem;
}

/* FORM STYLES */
.form-header {
  text-align: center;
  margin-bottom: 40px;
}
.journal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.input-group label {
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-serif);
}
.input-group input,
.input-group select,
.input-group textarea {
  padding: 12px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-main);
  border-radius: 0; /* Strict look */
  transition: border-color 0.3s;
}
.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--text-main);
}
.short-input {
  max-width: 100px;
}
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-size: 0.9rem;
}
.checkbox-group a {
  text-decoration: underline;
}
.btn-submit {
  align-self: flex-start;
  padding: 12px 30px;
  background: var(--text-main);
  color: #fff;
  border: none;
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s;
}
.btn-submit:hover {
  opacity: 0.8;
}

/* Footer */
.footer {
  padding: 60px 0;
  border-top: 4px solid var(--text-main);
  background: var(--bg-paper);
  font-size: 0.9rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}
.footer-col a {
  display: block;
  margin-bottom: 10px;
}
.copyright {
  margin-top: 20px;
  opacity: 0.6;
}

/* Cookie */
.cookie-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-main);
  color: var(--bg-white);
  padding: 15px 30px;
  font-size: 0.9rem;
  display: none;
  align-items: center;
  gap: 20px;
  z-index: 200;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.btn-text {
  background: none;
  border: none;
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }
  .burger-btn {
    display: flex;
  }
  h1 {
    font-size: 2.2rem;
  }
  .content-grid,
  .content-grid.reversed {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .content-grid.reversed .text-block {
    order: 0;
  }
  .columns-2 {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .input-row {
    grid-template-columns: 1fr;
  }
}

.pages {
  padding: 120px 0;
}

.pages-wrap {
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto 20px;
}

.pages h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 40px;
  text-align: center;
}

.text-wrapper {
  background: #f8fafc;
  padding: 50px 40px;
  border-radius: 20px;
  line-height: 1.8;
}

.text-wrapper h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  padding-bottom: 5px;
}

.text-wrapper h3 {
  color: #000000;
  margin-bottom: 20px;
}

.text-wrapper p {
  color: #64748b;
  margin-bottom: 20px;
}

.text-wrapper ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.text-wrapper ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: #1e293b;
}

.text-wrapper ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--primary);
  top: 0;
}

.text-wrapper strong {
  color: var(--color-error);
}

.text-wrapper a {
  color: #001eff;
  text-decoration: underline;
  font-weight: 600;
}

@media (max-width: 768px) {
  .pages {
    padding: 100px 0 60px;
  }
  .pages h1 {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .text-wrapper {
    padding: 30px 20px;
  }
  .text-wrapper h2 {
    font-size: 24px;
    margin-top: 30px;
  }
}

.text-wrapper ol {
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: #000000;
}

.margin {
  margin: 120px 0 50px;
}
