:root {
  --surface: #fcf9f8;
  --on-surface: #1c1b1b;
  --primary: #ffe600; /* Hazard yellow / primary-container */
  --black: #1c1b1b;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--surface);
  color: var(--on-surface);
  font-family: 'Hanken Grotesk', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
.logo, .projects-title, .project-title {
  font-family: 'Anybody', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
}

.logo {
  font-size: 64px;
  letter-spacing: -0.04em;
  padding: 20px 40px;
}

.header {
  border-bottom: 8px solid var(--black);
  width: 100%;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.btn-start-journey {
  font-family: 'Anybody', sans-serif;
  font-weight: 900;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  background-color: var(--primary);
  color: var(--black);
  border: 4px solid var(--black);
  padding: 16px 32px;
  margin-right: 40px;
  cursor: pointer;
  box-shadow: 6px 6px 0px var(--black);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-start-journey:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0px var(--black);
}

.btn-start-journey:active {
  transform: translate(0, 0);
  box-shadow: 3px 3px 0px var(--black);
}

.main-content {
  flex: 1;
  display: flex;
  justify-content: center;
    margin-top: 80px;
}

.projects-section {
  width: 100%;
  max-width: 900px;
}

.projects-header {
  display: flex;
  align-items: flex-end;
  margin-bottom: 40px;
  border-bottom: 4px solid var(--black);
  padding-bottom: 16px;
  justify-content: space-between;
}

.projects-title {
  font-size: 72px;
  letter-spacing: -0.02em;
}

.header-accent-line {
  width: 100px;
  height: 16px;
  background-color: var(--primary);
  border: 4px solid var(--black);
  box-shadow: 4px 4px 0px var(--black);
  margin-bottom: 12px;
}

.projects-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 40px;
}

.project-card {
  border: 4px solid var(--black);
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 8px 8px 0px var(--black);
  transition: background-color 0.2s ease, transform 0.2s ease;
  cursor: default;
}

/* Base Colors and Hover */
.project-card.color-white {
  background-color: var(--surface);
}
.project-card.color-white:hover {
  background-color: var(--primary);
}

.project-card.color-yellow {
  background-color: var(--primary);
}
.project-card.color-yellow:hover {
  background-color: var(--surface);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-title {
  font-size: 64px;
  letter-spacing: -0.02em;
}

.project-description {
  margin-top: 0;
  font-size: 20px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 500;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  line-height: 1.5;
}

.project-card:hover .project-description {
  margin-top: 24px;
  max-height: 200px;
  opacity: 1;
}

.btn-demo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--surface);
  background-color: var(--black);
  border: 2px solid var(--black);
  padding: 16px 32px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-demo:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px rgba(0,0,0,0.5);
}

.btn-demo:active {
  transform: translate(0, 0);
  box-shadow: none;
}

/* Divider */
.divider {
  border-top: 6px dashed var(--black);
  margin-bottom: 24px;
}

/* Decorative Boxes */
.decorative-boxes {
  display: flex;
  gap: 16px;
}

.box {
  height: 20px;
  border: 4px solid var(--black);
  box-shadow: 4px 4px 0px var(--black);
}

.box-white {
  flex: 1;
  background-color: var(--surface);
}

.box-yellow {
  flex: 1;
  background-color: var(--primary);
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-content {
  background-color: var(--surface);
  border: 4px solid var(--black);
  box-shadow: 8px 8px 0px var(--black);
  width: 90%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 4px solid var(--black);
  padding: 16px 24px;
  background-color: var(--primary);
}

.modal-title {
  font-family: 'Anybody', sans-serif;
  font-weight: 900;
  font-size: 24px;
  margin: 0;
}

.btn-close-modal {
  background: transparent;
  border: none;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  color: var(--black);
}

.modal-body {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal-description {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
  color: var(--on-surface);
}

.brutalist-input {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  padding: 16px;
  border: 4px solid var(--black);
  background-color: var(--white);
  outline: none;
  width: 100%;
}

.brutalist-input:focus {
  border-color: var(--black);
  box-shadow: inset 4px 4px 0px rgba(0,0,0,0.1);
}

.btn-next {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--surface);
  background-color: var(--black);
  border: 2px solid var(--black);
  padding: 16px;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-next:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px rgba(0,0,0,0.5);
}

.btn-next:active {
  transform: translate(0, 0);
  box-shadow: none;
}

@media (max-width: 768px) {
  /* Header: tighter, full-width CTA */
  .logo {
    text-align: center;
    font-size: 34px;
    padding: 16px 20px 12px;
    line-height: 0.95;
    word-break: break-word;
  }
  .header { border-bottom-width: 6px; }

  .header-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .btn-start-journey {
    font-size: 16px;
    padding: 14px 24px;
    margin: 0 20px 18px;
    text-align: center;
    box-shadow: 4px 4px 0px var(--black);
  }
  .btn-start-journey:hover {
    transform: none;
    box-shadow: 4px 4px 0px var(--black);
  }

  /* Reclaim the wasted top gap + add breathing room on the sides */
  .main-content {
    margin-top: 0;
    padding: 28px 16px 8px;
  }

  .projects-header {
    margin-bottom: 24px;
    padding-bottom: 12px;
  }
  .projects-title { font-size: 44px; }

  .projects-container { gap: 24px; }

  .project-card {
    padding: 22px 20px;
    box-shadow: 6px 6px 0px var(--black);
  }

  .project-title { font-size: 36px; }

  .project-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
  }

  /* Touch devices have no hover — show the description so cards aren't
     just empty colored blocks. */
  .project-description {
    max-height: none;
    opacity: 1;
    margin-top: 16px;
    font-size: 16px;
  }
  .project-card:hover .project-description {
    max-height: none;
    margin-top: 16px;
  }

  .btn-demo {
    padding: 12px 18px;
    flex-shrink: 0;
  }
  .btn-demo:hover { transform: none; box-shadow: none; }
  .btn-demo:active { box-shadow: none; }
}

@media (max-width: 380px) {
  .logo { font-size: 28px; }
  .projects-title { font-size: 38px; }
  .project-title { font-size: 30px; }
}

/* ──────────────────────────────────────────────────────────────────────────
   Contact modal — mirrored exactly from the root project (ContextEditor.css +
   ContactModal). Scoped under .nd-contact-theme so it carries the root app's
   NEO_RADICAL theme variables without affecting the rest of the intro page.
   ────────────────────────────────────────────────────────────────────────── */
.nd-contact-theme {
  --bg-secondary:   #FFFFFF;
  --bg-tertiary:    #EAE6DC;
  --text-primary:   #1A1A1A;
  --text-secondary: #4A4A4A;
  --accent-primary: #ffe600;
  --border-color:   #1A1A1A;
  --font-heading:   'Anton', sans-serif;
  --font-body:      'Work Sans', sans-serif;
}

.context-editor-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: rgba(15, 15, 19, 0.45);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000;
  animation: ndFadeIn 0.3s ease;
}

.context-editor-overlay.hidden {
  display: none;
}

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

.context-editor-window {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 18px;
  width: 90%;
  display: flex;
  flex-direction: column;
  box-shadow: 8px 8px 0 var(--border-color);
  overflow: hidden;
  animation: ndSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ndSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.contact-modal-window {
  max-width: 500px;
  height: auto;
  max-height: 80dvh;
}

.context-editor-header {
  background: var(--accent-primary);
  padding: 1.25rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border-color);
}

.context-editor-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.context-editor-btn {
  background: rgba(26, 26, 26, 0.12);
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease-out;
}

.context-editor-btn:hover {
  background: var(--border-color);
  color: var(--bg-secondary);
}

.context-editor-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
}

.contact-modal-body {
  text-align: center;
}

.contact-modal-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.contact-email-row {
  background: var(--bg-tertiary);
  padding: 0.875rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 1px solid var(--border-color);
  width: 100%;
  overflow: hidden;
}

.contact-email {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.85rem;
  word-break: break-all;
  text-align: left;
}

.contact-copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.contact-copy-btn.copied {
  color: #10b981;
}

.contact-telegram-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  width: 100%;
}

.contact-telegram-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.12);
  border-color: #0088cc;
  color: #0088cc;
}

.contact-telegram-button svg {
  color: #0088cc;
  transition: transform 0.3s ease;
}

.contact-telegram-button:hover svg {
  transform: scale(1.1) rotate(-10deg);
}

@media (max-width: 768px) {
  .contact-modal-window {
    width: 90%;
    max-width: 450px;
    margin: auto;
    border-radius: 20px;
  }

  .context-editor-header {
    padding: 1rem 1.25rem;
  }

  .context-editor-title {
    font-size: 0.95rem;
    letter-spacing: 0.1em;
  }

  .context-editor-body {
    padding: 1.5rem;
    gap: 1rem;
  }
}
