/* ============================================================================
RESET & BASE STYLES
============================================================================ */

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

body {
  font-family: Inter, sans-serif, system-ui;
  background-color: #f5f5f5;
  color: #333;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 900 !important;
}

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

.header {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  position: relative;
  z-index: 100;
}

.header-content {
  width: 100%;
  margin: 0;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  width: 180px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.theme-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.theme-selector {
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  background: white;
  min-width: 200px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-weight: 900;
}

.viewport-buttons {
  display: flex;
  gap: 10px;
}

.viewport-btn {
  padding: 10px 16px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.viewport-btn.active {
  background: #277dcc;
  color: white;
  border-color: #277dcc;
}

.viewport-btn:hover {
  border-color: #277dcc;
}

.header-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

/* ============================================================================
           MAIN CONTENT LAYOUT
           ============================================================================ */

.main-content {
  width: 100%;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  gap: 0;
  min-height: calc(100vh - 80px);
}

/* ============================================================================
           LEFT COLUMN (STEP BOXES)
           ============================================================================ */

.left-column {
  background: #f8f9fa;
  border-right: 1px solid #dee2e6;
  padding: 30px;
  position: relative;
  overflow-y: auto;
  max-height: calc(100vh - 80px);
}

.left-column::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, #f8f9fa);
  pointer-events: none;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.left-column.scrolled-to-bottom::after {
  opacity: 0;
}

.left-section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

.step-box {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 32px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.step-box:hover {
  border-color: #277dcc;
  background: #f0f8ff;
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.15);
}

.step-box.active {
  border-color: #277dcc;
  background: #e3f2fd;
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
}

.step-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.step-screenshot {
  width: 100%;
  height: 120px;
  background: #e9ecef;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 14px;
}

.step-screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  object-position: top;
}

/* ============================================================================
           CENTER COLUMN (IFRAME)
           ============================================================================ */

.center-column {
  background: white;
  padding: 30px;
  position: relative;
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.demo-header h2 {
  margin: 0;
}

.demo {
  width: 100%;
  height: 600px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background: #ffffff;
  position: relative;
  margin: 0 auto;
  display: block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.demo.desktop-height {
  height: calc(100vh - 200px);
}

.demo.tablet-height {
  height: 800px;
}

#demo-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  display: block;
}

.step-selector {
  display: none;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  background: white;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

/* ============================================================================
           RIGHT COLUMN (CONTENT)
           ============================================================================ */

.right-column {
  background: #f8f9fa;
  border-left: 1px solid #dee2e6;
  padding: 30px;
  position: relative;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #333;
}

.right-column .section-title {
  font-size: 40px;
}

.description-text {
  color: #757575;
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 20px;
}

.hero-icons-outer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.icon-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.icon-wrap {
  width: 50px;
  height: 50px;
  background: #486580;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.icon-wrap i {
  font-size: 20px;
  color: white;
}

.action-blue-bg {
  background: #277dcc !important;
}

.action-blue-bg i {
  color: white !important;
}

.icon-text {
  color: #333;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

/* ============================================================================
           BUTTONS & INTERACTIVE ELEMENTS
           ============================================================================ */

.ask-questions-btn {
  background: #6c757d;
  color: white;
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}

.ask-questions-btn:hover {
  background: #5a6268;
}

.get-started-btn {
  background: #28a745;
  color: white;
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}

.get-started-btn:hover {
  background: #218838;
}

.buy-now-btn {
  background: #277dcc;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  margin-top: 20px;
  text-decoration: none;
  display: block;
  text-align: center;
}

.buy-now-btn:hover {
  background: #1e6bb8;
}

.close-btn {
  background: white;
  border: 1px solid #ddd;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.2s;
}

.close-btn:hover {
  background: #ddd;
}

.demo-link-btn {
  background: #277dcc;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}

.demo-link-btn:hover {
  background: #1e6bb8;
}

/* ============================================================================
           RESPONSIVE STYLES
           ============================================================================ */

/* 2 columns: hide right column (1024px - 1650px) */
@media (max-width: 1650px) {
  .right-column {
    display: none;
  }

  .main-content {
    grid-template-columns: 300px 1fr;
  }
}

/* 1 column: hide left and right columns, show step selector (≤ 1024px) */
@media (max-width: 1024px) {
  .main-content {
    grid-template-columns: 1fr;
  }

  .left-column,
  .right-column {
    display: none;
  }

  .step-selector {
    display: block;
  }

  .viewport-buttons {
    display: none;
  }

  .section-label {
    display: none;
  }

  .center-column {
    padding: 30px;
  }

  .demo {
    height: calc(100vh - 200px);
  }
}

/* Tablet styles (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .logo {
    width: 140px;
  }
}

/* Mobile styles (< 768px) */
@media (max-width: 768px) {
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    padding: 0 15px;
  }

  .logo-section {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
  }

  .logo {
    width: 80px;
    height: auto;
    flex-shrink: 0;
  }

  .theme-section {
    display: flex;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
    max-width: 45%;
  }

  .theme-selector {
    width: 100%;
    min-width: 0;
    font-size: 12px;
    padding: 6px 8px;
    max-width: 100%;
  }

  .header-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
    align-items: center;
  }

  .ask-questions-btn {
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  .get-started-btn {
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  .close-btn {
    padding: 6px 10px;
    font-size: 18px;
    white-space: nowrap;
  }
}
