/* ==========================================
   DOCS-STYLE LAYOUT
   Black & White Minimalistic Design
   ========================================== */

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

html, body {
  height: 100%;
}

body {
  font-family: 'PT Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #0f0c29;
  background: linear-gradient(135deg, #0f0c29 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #1a1a40 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: #000000;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  min-height: 100vh;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ==========================================
   WRAPPER CONTAINER
   ========================================== */

.wrapper {
  width: 100%;
  max-width: 1200px;
  height: calc(100vh - 6rem);
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ==========================================
   HEADER
   ========================================== */

.header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e5e5e5;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.lang-btn {
  color: #000000;
  text-decoration: none;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.lang-btn:hover {
  opacity: 0.8;
}

.lang-btn-active {
  opacity: 1;
  font-weight: 600;
}

.lang-sep {
  opacity: 0.3;
  font-size: 0.75rem;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.logo {
  width: 10rem;
  height: auto;
  object-fit: contain;
  max-width: 100%;
}

.tagline {
  font-size: 0.875rem;
  color: #666666;
  font-weight: 400;
}

/* ==========================================
   LAYOUT CONTAINER
   ========================================== */

.layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ==========================================
   SIDEBAR NAVIGATION
   ========================================== */

.sidebar {
  width: 200px;
  background-color: #fafafa;
  border-right: 1px solid #e5e5e5;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.menu-btn {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #666666;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.menu-btn:hover {
  background-color: #f5f5f5;
  color: #000000;
}

.menu-btn.active {
  color: #000000;
  font-weight: 500;
  background-color: #ffffff;
  border-left-color: #000000;
}

/* ==========================================
   CONTENT AREA
   ========================================== */

.content {
  flex: 1;
  overflow-y: auto;
  padding: 3rem 4rem;
  max-width: 800px;
}

.section {
  display: none;
}

.section.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

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

/* ==========================================
   TYPOGRAPHY
   ========================================== */

.section h2 {
  font-size: 1.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #000000;
  letter-spacing: -0.02em;
}

.section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #000000;
}

.section p {
  margin-bottom: 1rem;
  color: #333333;
  line-height: 1.7;
}

.section p:last-child {
  margin-bottom: 0;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */

.about-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.about-image {
  width: 200px;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.about-text {
  flex: 1;
}

.about-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.profile-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #000000;
  margin: 0;
}

.profile-title {
  font-size: 0.875rem;
  color: #666666;
  margin: 0;
}

.profile-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  width: 100%;
}

.profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.profile-btn-contact {
  background-color: #000000;
  color: #ffffff;
}

.profile-btn-contact:hover {
  background-color: #333333;
  transform: translateY(-1px);
}

.profile-btn-outline {
  background-color: transparent;
  color: #000000;
  border-color: #000000;
}

.profile-btn-outline:hover {
  background-color: #f5f5f5;
  transform: translateY(-1px);
}

/* ==========================================
   SERVICE ITEMS
   ========================================== */

.service-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e5e5;
}

.service-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ==========================================
   VENTURE ITEMS
   ========================================== */

.venture-item {
  padding: 1.5rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.venture-item.priority {
  background-color: #fafafa;
  border: 2px solid #000000;
  padding: 2rem;
  margin-bottom: 2rem;
}

.venture-item.priority h3 {
  font-size: 1.5rem;
}

.venture-description {
  color: #666666;
  font-size: 0.9375rem;
}

/* ==========================================
   PRICING
   ========================================== */

.pricing-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 1rem;
  font-weight: 600;
  color: #000000;
  white-space: nowrap;
}

.pricing-vat {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.5rem;
}

.pricing-fit {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
}

.pricing-fit h3 {
  margin-top: 1.25rem;
}

.pricing-fit h3:first-child {
  margin-top: 0;
}

.link {
  display: inline-block;
  margin-top: 1rem;
  color: #000000;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.link:hover {
  opacity: 0.7;
}

/* ==========================================
   SOCIAL SECTION
   ========================================== */

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background-color: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #000000;
  transition: all 0.2s ease;
}

.social-link:hover {
  background-color: #ffffff;
  border-color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.social-name {
  font-size: 0.9375rem;
  font-weight: 500;
}

/* ==========================================
   USE CASE CARDS
   ========================================== */

.usecase-card {
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.usecase-card:last-of-type {
  margin-bottom: 0;
}

.usecase-industry {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999999;
  margin-bottom: 0.625rem;
}

.usecase-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #000000;
}

.usecase-problem {
  color: #555555;
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 0.875rem;
}

.usecase-solution {
  color: #333333;
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.usecase-impact {
  background-color: #f5f5f5;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  color: #333333;
}

.usecase-stat {
  font-weight: 700;
  color: #000000;
}

.usecase-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: transparent;
  border: 1.5px solid #cccccc;
  color: #555555;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.usecase-cta:hover {
  border-color: #000000;
  color: #000000;
}

/* ==========================================
   INDUSTRY TABS (Use Cases section)
   ========================================== */

.industry-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.industry-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.25rem;
  border: 1.5px solid #000000;
  border-radius: 0.5rem;
  background-color: transparent;
  color: #000000;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-align: center;
}

.industry-tab.active {
  background-color: #000000;
  color: #ffffff;
}

.industry-tab:hover:not(.active) {
  background-color: #f5f5f5;
}

.industry-tab-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.industry-tab-sub {
  display: block;
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 0.25rem;
  font-weight: 400;
}

.industry-tab.active .industry-tab-sub {
  opacity: 0.7;
}

.industry-cases.hidden {
  display: none;
}

/* ==========================================
   BOOKING FORM
   ========================================== */

.booking-form {
  margin-top: 1.5rem;
}

.booking-block {
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 0.75rem;
}

.booking-block-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999999;
  margin-bottom: 1.25rem;
}

.booking-field {
  margin-bottom: 1rem;
}

.booking-field:last-child {
  margin-bottom: 0;
}

.booking-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 0.375rem;
}

.booking-input,
.booking-select {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: #000000;
  background-color: #ffffff;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.booking-input:focus,
.booking-select:focus {
  outline: none;
  border-color: #000000;
}

.booking-input::placeholder {
  color: #c0c0c0;
}

.booking-select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.timeslot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.timeslot-btn {
  padding: 0.625rem 0.25rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 0.375rem;
  background-color: #ffffff;
  color: #444444;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.timeslot-btn:hover:not(:disabled) {
  border-color: #000000;
  color: #000000;
}

.timeslot-btn.selected {
  background-color: #000000;
  border-color: #000000;
  color: #ffffff;
}

.timeslot-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.booking-error {
  display: none;
  font-size: 0.8125rem;
  color: #cc0000;
  margin-top: 0.375rem;
}

.booking-error.visible {
  display: block;
}

.booking-submit {
  display: block;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background-color: #000000;
  color: #ffffff;
  border: none;
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
  margin-top: 1rem;
  text-align: center;
}

.booking-submit:hover {
  opacity: 0.8;
}

.booking-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.booking-success {
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-top: 0.75rem;
  color: #000000;
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ==========================================
   CONTACT GRID
   ========================================== */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #000000;
  transition: all 0.2s ease;
}

.contact-card:hover {
  border-color: #000000;
  background-color: #000000;
  color: #ffffff;
}

.contact-channel {
  font-weight: 700;
  font-size: 1rem;
}

.contact-detail {
  font-size: 0.875rem;
  opacity: 0.65;
  transition: opacity 0.2s;
}

.contact-note {
  font-size: 0.8125rem;
  opacity: 0.45;
  margin-top: 0.375rem;
  transition: opacity 0.2s;
}

.contact-card:hover .contact-detail,
.contact-card:hover .contact-note {
  opacity: 0.8;
}

/* Keep old .btn for any other usage */
.contact-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  background-color: #000000;
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.btn:hover {
  background-color: #333333;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
  text-align: center;
  padding: 1rem 0;
  margin-top: 1rem;
  width: 100%;
  max-width: 1200px;
}

.affiliate-disclaimer {
  font-size: 0.7rem;
  color: var(--gray-400);
  margin: 0.5rem 0 0;
}

.usecase-card .affiliate-disclaimer {
  margin: 0.5rem 0;
}

.n8n-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.n8n-link:hover {
  color: inherit;
  opacity: 0.75;
}

.footer-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-weight: 300;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================
   RESPONSIVE - MOBILE
   ========================================== */

@media (max-width: 768px) {
  body {
    padding: 0;
    justify-content: flex-start;
  }

  /* Allow body to grow with content so the gradient covers the full scrollable page */
  html {
    height: auto;
  }

  body {
    height: auto;
  }

  /* Allow sticky to work on mobile — overflow:hidden breaks position:sticky on iOS */
  .wrapper {
    width: 100%;
    height: auto;
    min-height: 100vh;
    border-radius: 0;
    overflow: visible;
  }

  .layout {
    flex-direction: column;
    overflow: visible;
  }

  .content {
    overflow-y: visible;
    padding: 2rem 1.5rem;
  }

  .header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
  }

  .logo-link {
    display: flex;
    align-items: center;
  }

  .logo {
    width: 8rem;
    display: block;
  }

  .tagline {
    font-size: 0.8125rem;
  }

  /* Sidebar top = exact header height (logo 57.5px + 2×16px padding = 90px) */
  .sidebar {
    position: sticky;
    top: 90px;
    z-index: 999;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e5e5e5;
    padding: 0;
    flex-direction: row;
    overflow-x: auto;
    gap: 0;
    background-color: #fafafa;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .sidebar::-webkit-scrollbar {
    display: none;
  }

  .menu-btn {
    padding: 0.75rem 1rem;
    white-space: nowrap;
    border-left: none;
    border-bottom: 2px solid transparent;
  }

  .menu-btn.active {
    border-left: none;
    border-bottom-color: #000000;
  }

  .section h2 {
    font-size: 1.5rem;
  }

  .section h3 {
    font-size: 1.125rem;
  }

  /* Profile first on mobile — photo + info row above the text */
  .about-content {
    flex-direction: column-reverse;
    gap: 1.5rem;
  }

  .about-profile {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }

  .about-image {
    width: 150px;
    height: auto;
    flex-shrink: 0;
    border-radius: 0.5rem;
  }

  .profile-info {
    text-align: left;
  }

  .profile-buttons {
    width: auto;
  }

  .pricing-header {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .usecase-card {
    padding: 1.25rem;
  }

  .booking-row {
    grid-template-columns: 1fr;
  }

  .timeslot-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer {
    padding: 1.5rem 1rem;
    margin-top: 0;
    width: 100%;
  }

  .footer-text {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0;
  }

  .wrapper {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
  }

  .header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
  }

  .logo {
    width: 7rem;
  }

  /* Logo 7rem=112px, height=112*(642/1430)=50.3px + 2×12px padding = 74px */
  .sidebar {
    top: 74px;
  }

  .content {
    padding: 1.5rem 1rem;
  }

  .section h2 {
    font-size: 1.25rem;
  }

  .about-profile {
    gap: 1rem;
  }

  .about-image {
    width: 110px;
  }

  .profile-btn {
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
  }

  .timeslot-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .venture-item {
    padding: 1rem;
  }

  .venture-item.priority {
    padding: 1.25rem;
  }

  .footer {
    padding: 1.5rem 1rem;
    margin-top: 0;
  }

  .footer-text {
    font-size: 0.6875rem;
  }
}
