/* Reset and Base Styles */
html {
  overflow-x: hidden;
  /* Prevent horizontal scroll at root */
  width: 100%;
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-primary);
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  /* Use 100% to avoid scrollbar-induced width issues */
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  /* Changed from center to flex-start for downward expansion */
  overflow-x: hidden !important;
  /* Force prevent horizontal scrollbar */
  position: relative;
  /* For absolute children */
  padding-top: 100px;
  /* Add top padding to account for navbar */
  font-size: 16px;
}

@media (max-width: 768px) {
  body {
    padding-top: 80px;
    font-size: 14px;
  }
}

/* Custom Global Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--bg-color);
  border-radius: 10px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(251, 146, 60, 0.4);
}

/* For Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) var(--bg-color);
}

.hidden {
  display: none !important;
}

/* Floating Navbar */
.floating-nav {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 95vw);
  height: 60px;
  max-width: 1000px;
  background: rgba(30, 30, 30, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  /* Entrance Animation */
  opacity: 0;
  transition: all 0.3s ease;
  animation: navFadeIn 0.8s ease-out 2.5s forwards;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: flex !important;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.chevron-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.dropdown.active .chevron-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 320px;
  background: #141414;
  /* Opaque background */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-header {
  grid-column: span 2;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding-left: 0.5rem;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.6rem 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dropdown-icon {
  width: 18px;
  height: 18px;
  opacity: 0.7;
  transition: all 0.2s ease;
  filter: brightness(0) invert(1);
  /* Make icons white by default */
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-orange);
}

.dropdown-item:hover .dropdown-icon {
  opacity: 1;
  filter: none;
  /* Show original color on hover or keep it consistent? User said "exact SVGs". Usually they have color. */
  transform: scale(1.1);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}


@keyframes navFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2rem;
  white-space: nowrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-auth a {
  text-decoration: none !important;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-login {
  background: transparent;
  border: none;
  color: var(--text-primary) !important;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: none;
}

.btn-signup {
  background: var(--text-primary);
  /* White/Light for contrast as per VYRA image style */
  color: #000 !important;
  border: none;
  padding: 0.4rem 1.1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.2s,
    background-color 0.2s;
}

.btn-signup:hover {
  transform: scale(1.05);
  background-color: white;
}

/* Container needs relative positioning for the footer to anchor to it */
.container {
  width: 100%;
  max-width: min(900px, 100%);
  /* Ensure it never exceeds viewport */
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
  animation: contentFadeIn 1s ease-out 1.8s forwards;
  position: relative;
  /* Added for footer anchor */
}

/* ... animations keyframes ... */

@keyframes contentFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ... rest of styles ... */

/* [AT THE END OF FILE] Product Footer / Trust Bar */
.product-footer {
  position: relative;
  /* In flow */
  width: 100%;
  margin-top: 4rem;
  /* Spacing from content */
  padding-bottom: 4rem;
  /* Safe space */

  text-align: center;
  opacity: 0;
  animation: contentFadeIn 1s ease-out 2.2s forwards;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  pointer-events: none;
}

/* Enable pointer events on interactive children */
.product-footer * {
  pointer-events: auto;
}

@keyframes contentFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header */
.header {
  text-align: center;
}

h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-heading);
  /* white-space handling moved to responsive.css */
  line-height: 1.1;
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }
}

.brand-highlight {
  color: var(--accent-orange);
  background: linear-gradient(to right,
      var(--gradient-brand-start),
      var(--gradient-brand-end));
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Mobile Toggle Gear - Hidden by Default */
.llm-mobile-toggle {
  display: none;
  /* Desktop */
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.5rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.llm-mobile-toggle:hover {
  color: var(--text-heading);
}

/* LLM Selector - Tabs Container */
.llm-selector-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.llm-tabs-container {
  background: rgba(30, 41, 59, 0.4);
  /* Semi-transparent Slate 800 */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.375rem;
  border-radius: var(--radius-user-tabs);
  display: flex;
  gap: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* Subtle border */
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.llm-tab {
  background-color: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  /* Reduced horizontal padding slightly */
  border-radius: var(--radius-user-tab-item);
  cursor: pointer;
  display: flex;
  /* Flex to center SVG */
  align-items: center;
  justify-content: center;
  gap: 6px;
  /* Reduced from 0.5rem (8px) by 2px */
  transition: all 0.2s ease;
  height: 36px;
  /* Fixed height for consistency */
}

.llm-tab:hover {
  color: var(--text-heading);
}

.llm-tab.active {
  background-color: var(--accent-orange);
  color: var(--bg-color);
  font-weight: 600;
}

.llm-icon {
  width: 22px;
  height: 22px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition: background-color 0.2s ease;
}

.rotate-meta {
  transform: rotate(20deg) scale(1.3);
}

/* Input Area - Column Layout */
.input-area {
  width: 100%;
  background-color: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-user-input);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  /* Changed to column */
  gap: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    width 0.3s ease,
    min-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  min-height: 120px;
  /* Default larger height */
}

.input-area.expanded {
  min-height: 200px;
  border-radius: var(--radius-user-input);
  padding-top: 1.5rem;
}

.input-area:focus-within {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.2);
}

/* Toolbar at bottom of input area */
.input-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: auto;
  /* Push to bottom */
}

/* Hidden Utility */
.hidden {
  display: none !important;
  opacity: 0;
}

.input-area textarea,
input[type="text"] {
  width: 100%;
  background-color: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  padding: 0;
  transition: opacity 0.2s ease;
  resize: none;
  overflow-y: auto;
  overflow-x: hidden;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: var(--font-primary);
  line-height: 1.5;
  min-height: 50px;
  /* ~2 lines */
  max-height: 300px;
}

/* Custom Scrollbar for Textarea */
.input-area textarea::-webkit-scrollbar {
  width: 6px;
}

.input-area textarea::-webkit-scrollbar-track {
  background: transparent;
}

.input-area textarea::-webkit-scrollbar-thumb {
  background: rgba(251, 146, 60, 0.4);
  border-radius: 3px;
  transition: background 0.2s ease;
}

.input-area textarea::-webkit-scrollbar-thumb:hover {
  background: rgba(251, 146, 60, 0.7);
}

.input-area textarea {
  scrollbar-color: rgba(251, 146, 60, 0.4) transparent;
  scrollbar-width: thin;
}

/* Scrollbar Styling */
.card-content::-webkit-scrollbar {
  width: 10px;
}

.card-content::-webkit-scrollbar-track {
  background: transparent;
}

.card-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border: 3px solid #1e293b;
  /* Match bg for "floating" look */
  border-radius: 99px;
}

.card-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Status Bar */
.editor-status-bar {
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  font-size: 0.7rem;
  color: #64748b;
  font-family: "Inter", sans-serif;
  user-select: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-item.special {
  color: var(--accent-orange);
  font-weight: 600;
}

/* Ultra-Premium Comparison Card Overrides */
.comparison-card {
  /* ... existing props ... */
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  height: 520px;
  /* Slightly taller for status bar */
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.3),
    /* Deep outline */
    0 20px 40px -12px rgba(0, 0, 0, 0.5),
    /* Drop shadow */
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  /* Top highlight */
}

/* Pro Card Special Glow */
.comparison-card.pro {
  box-shadow:
    0 0 0 1px rgba(249, 115, 22, 0.3),
    /* Orange outline */
    0 0 40px -10px rgba(249, 115, 22, 0.15),
    /* Ambient glow */
    0 30px 60px -12px rgba(0, 0, 0, 0.6);
}

/* Interactive Window Controls */
.dot {
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
  cursor: pointer;
}

.dot:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}

/* Ensure content fills space correctly with status bar */
.card-content {
  border-radius: 0;
  /* Let container handle corners */
}

/* Custom Scrollbar for Response Content */
.response-content::-webkit-scrollbar {
  width: 6px;
}

.response-content::-webkit-scrollbar-track {
  background: transparent;
}

.response-content::-webkit-scrollbar-thumb {
  background: rgba(251, 146, 60, 0.4);
  border-radius: 3px;
  transition: background 0.2s ease;
}

.response-content::-webkit-scrollbar-thumb:hover {
  background: rgba(251, 146, 60, 0.7);
}

.response-content {
  scrollbar-color: rgba(251, 146, 60, 0.4) transparent;
  scrollbar-width: thin;
}

.input-area textarea::placeholder,
input[type="text"]::placeholder {
  color: var(--placeholder-color);
}

/* Response Content */
.response-content {
  flex: 1;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.6;
  animation: fadeIn 0.5s ease-out forwards;
  width: 100%;
  padding: 0.5rem 0;
  max-height: 400px;
  /* Limit height */
  overflow-y: auto;
  /* Add scrollbar */
  overflow-x: hidden;
  position: relative;
  /* For absolute positioning of copy button */
}

/* Copy Button */
.copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  /* Default position when no scrollbar */
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 0.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--text-secondary);
  z-index: 100;
}

/* When scrollbar is present */
.copy-btn.has-scrollbar {
  right: 2rem;
  /* Extra margin when scrollbar is visible */
}

.copy-btn:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  box-shadow: 0 0 8px rgba(251, 146, 60, 0.5);
}

.copy-btn:active {
  opacity: 0.8;
}

.copy-btn svg {
  display: block;
  width: 16px;
  height: 16px;
}

/* Markdown Styling for Response Content */
.response-content h1,
.response-content h2,
.response-content h3,
.response-content h4,
.response-content h5,
.response-content h6 {
  color: var(--text-heading);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}

.response-content h1 {
  font-size: 1.75rem;
}

.response-content h2 {
  font-size: 1.5rem;
}

.response-content h3 {
  font-size: 1.25rem;
}

.response-content h4 {
  font-size: 1.1rem;
}

.response-content p {
  margin-bottom: 1rem;
}

.response-content ul,
.response-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.response-content li {
  margin-bottom: 0.5rem;
}

.response-content code {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
  color: var(--accent-orange);
}

.response-content pre {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.response-content pre code {
  background-color: transparent;
  padding: 0;
  color: var(--text-primary);
}

.response-content blockquote {
  border-left: 3px solid var(--accent-orange);
  padding-left: 1rem;
  margin-left: 0;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-style: italic;
}

.response-content strong {
  font-weight: 600;
  color: var(--text-heading);
}

.response-content em {
  font-style: italic;
}

.response-content a {
  color: var(--accent-orange);
  text-decoration: none;
}

.response-content a:hover {
  text-decoration: underline;
}

.response-content hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 1.5rem 0;
}

.response-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.response-content th,
.response-content td {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
  text-align: left;
}

.response-content th {
  background-color: rgba(255, 255, 255, 0.05);
  font-weight: 600;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Inline Generate Button */
.icon-btn {
  background: linear-gradient(135deg,
      var(--gradient-primary-start) 0%,
      var(--gradient-primary-end) 100%);
  border: none;
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 7px;
  /* Square with rounded corners as requested */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.1s ease,
    filter 0.2s ease,
    background 0.2s ease;
  flex-shrink: 0;
  padding: 0;
  margin-left: auto;
  /* Push to right side of flex container */
}

.icon-btn svg {
  display: block;
}

.icon-btn:hover {
  filter: brightness(110%);
}

.icon-btn:active {
  transform: scale(0.95);
}

.icon-btn:disabled {
  background: #475569;
  /* Darker Slate Grey for better contrast than #666 */
  cursor: not-allowed;
  opacity: 0.5;
  color: rgba(255, 255, 255, 0.4);
  transform: none;
  filter: grayscale(100%);
  pointer-events: none;
}

/* Loading Spinner */
.btn-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: block;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Prompt Style Selector */
.prompt-style-selector {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
  opacity: 0;
  animation: contentFadeIn 1s ease-out 2s forwards;
}

/* Mode Chips inside Input Toolbar */
.prompt-options-container {
  padding: 0;
  background: transparent;
  backdrop-filter: blur(12px);
  border: none;
  box-shadow: none;
  display: flex;
  gap: 0.5rem;
}

.prompt-options-container .style-btn {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.4rem 1rem;
  border-radius: 7px;
}

.prompt-options-container .style-btn:hover {
  color: var(--text-heading);
  background-color: rgba(255, 255, 255, 0.1);
}

.prompt-options-container .style-btn.active {
  background-color: var(--accent-orange);
  color: #000000;
  /* Black text for better contrast on orange */
  font-weight: 600;
  border-color: var(--accent-orange);
}

.style-menu-toggle {
  display: none;
}

/* External Prompt Style Buttons */
#prompt-style-container {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.375rem;
  border-radius: 30px;
  display: flex;
  gap: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#prompt-style-container .style-btn {
  background-color: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.5rem 1rem;
  border-radius: 30px;
}

#prompt-style-container .style-btn:hover {
  color: var(--text-heading);
  background-color: rgba(255, 255, 255, 0.05);
}

#prompt-style-container .style-btn.active {
  background-color: var(--accent-orange);
  color: var(--bg-color);
  font-weight: 600;
}

/* Generate Again Button */
.generate-again-btn {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent-orange);
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.generate-again-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

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

/* Product Footer / Trust Bar */
.product-footer {
  position: absolute;
  /* Out of flow */
  top: 100%;
  /* Stitch to bottom of container */
  left: 0;
  width: 100%;

  margin-top: calc(clamp(6rem, 15vh, 10rem));
  padding-bottom: 2rem;
  /* Safe space */

  text-align: center;
  opacity: 0;
  animation: contentFadeIn 1s ease-out 2.2s forwards;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  pointer-events: none;
}

/* Enable pointer events on interactive children if any (hover effects work) */
.product-footer * {
  pointer-events: auto;
}

.site-footer {
  width: 90vw;
  margin-top: 8rem;
  margin-bottom: 2rem;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 32px;
  background: #0a0a0a;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--accent-orange);
  box-shadow:
    0 20px 40px -10px rgba(0, 0, 0, 0.5),
    inset 0 0 20px rgba(251, 146, 60, 0.05);
  overflow: visible;
  /* Relax overflow to allow carousel breakout */
  padding: 4rem 3rem 2rem;
  /* Restored horizontal padding for content alignment */
  display: flex;
  flex-direction: column;
  gap: 3rem;
  z-index: 10;
}

.footer-trust-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  overflow: visible;
}

.trust-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  text-align: center;
}


.trust-names span {
  transition: color 0.2s ease;
  cursor: default;
  white-space: nowrap;
}

.trust-names span:hover {
  color: var(--accent-orange);
}

.trust-names svg {
  height: 24px;
  width: 24px;
  vertical-align: middle;
  margin-right: 6px;
}

/* Premium Tutorial Section */

.browser-address-bar {
  flex: 1;
  height: 28px;
  background: #121212;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-family: monospace;
  opacity: 0.6;
}




/* Bento Grid Section 2.0 */
.info-section {
  width: 85vw;
  max-width: 1300px;
  margin-top: 6rem;
  padding: 2rem;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 6rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(280px, auto);
  /* Increased minimum height for more space */
  gap: 1.5rem;
  width: 100%;
}

.bento-item {
  background: linear-gradient(135deg,
      rgba(20, 20, 20, 0.8) 0%,
      rgba(10, 10, 10, 0.9) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 28px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.bento-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(251, 146, 60, 0.06) 0%,
      transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

/* Dynamic Border Glow (Proximity) */
.bento-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  /* Slight thicker for visibility */
  background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
      var(--accent-orange),
      transparent 40%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 1;
  pointer-events: none;
  z-index: 3;
}

/* Hover rule removed: opacity is always 1, controlled by gradient */

/* Removed transform and box-shadow from hover state */

.bento-item:hover::after {
  opacity: 1;
}

/* Grid Spans */
.span-2-2 {
  grid-column: span 2;
  grid-row: span 2;
}

.span-1-2 {
  grid-column: span 1;
  grid-row: span 2;
}

.span-2-1 {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Changed from space-between to center for better alignment */
  align-items: center;
  /* Center horizontally */
  text-align: center;
  /* Center text */
  gap: 1.5rem;
  /* Add consistent gap */
  z-index: 2;
}

.bento-content.landscape {
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}

.text-side {
  flex: 1;
}

.bento-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
}

.bento-footer-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  line-height: 1.5;
}

.bento-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  line-height: 1.6;
}

.bento-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0;
  /* Reduced vertical margin since gap handles it */
  width: 100%;
}

.bento-img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.orange-filter {
  filter: hue-rotate(180deg) brightness(1.1) saturate(1.5);
  mix-blend-mode: plus-lighter;
}

.bento-item:hover .bento-img {
  transform: scale(1.05) rotate(2deg);
}

/* Specific Component Styles */
.mini-graph {
  height: 80px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 1rem;
}

.mini-bar-group {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 100%;
}

.mini-bar {
  width: 12px;
  border-radius: 4px 4px 0 0;
  transition: height 1s ease;
}

.mini-bar.orange {
  background: var(--accent-orange);
  box-shadow: 0 0 10px rgba(251, 146, 60, 0.4);
}

.mini-bar.white {
  background: rgba(255, 255, 255, 0.1);
}

.reliability-score.small-mode {
  margin: 0;
  width: 60px;
  height: 60px;
  background: none;
  box-shadow: none;
  margin-bottom: 1rem;
}

.score-ring.mini {
  width: 50px;
  height: 50px;
  border-width: 4px;
}

.score-value.mini {
  font-size: 1rem;
}

/* Animations */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.floating {
  animation: float 4s ease-in-out infinite;
}

/* Bento SVG Animations */
.bento-svg {
  width: 100%;
  height: 100%;
  max-height: 180px;
}

.bento-svg.mini {
  max-height: 60px;
}

.pulse-node {
  animation: nodePulse 3s ease-in-out infinite;
}

@keyframes nodePulse {

  0%,
  100% {
    r: 35;
    opacity: 0.4;
  }

  50% {
    r: 45;
    opacity: 0.8;
  }
}

.orbitals {
  transform-origin: center;
  animation: spin 20s linear infinite;
}

.scan-bar {
  animation: scanMove 4s linear infinite;
}

@keyframes scanMove {
  0% {
    transform: translateY(-30px);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(40px);
    opacity: 0;
  }
}

.speed-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: dash 3s ease-in-out infinite;
}

@keyframes dash {
  0% {
    stroke-dashoffset: 200;
  }

  50% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: -200;
  }
}

.launch-arrow {
  animation: arrowFloat 2s ease-in-out infinite;
}

@keyframes arrowFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* Final CTA Section */
.final-cta-section {
  width: 85vw;
  max-width: 1300px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.cta-card {
  background: linear-gradient(135deg,
      rgba(20, 20, 20, 0.8) 0%,
      rgba(10, 10, 10, 0.9) 100%);
  border: 1px solid rgba(251, 146, 60, 0.2);
  border-radius: 32px;
  padding: 6rem 4rem;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(20px);
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.cta-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(251, 146, 60, 0.06) 0%,
      transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.cta-card:hover::after {
  opacity: 1;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle,
      rgba(251, 146, 60, 0.08) 0%,
      transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.cta-text {
  font-size: 1.25rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 2rem;
  align-items: center;
}

.btn-signup-large {
  background: var(--accent-orange);
  color: #000;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(251, 146, 60, 0.2);
}

.btn-signup-large:hover {
  background: #fff;
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.2);
}

.secondary-link {
  color: var(--accent-orange);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.secondary-link:hover {
  color: #fff;
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .cta-title {
    font-size: 2.5rem;
  }

  .cta-card {
    padding: 4rem 2rem;
  }

  .cta-actions {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* Pricing Section */
.pricing-section {
  width: 90vw;
  max-width: 1400px;
  margin: 10rem auto;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.pricing-toggle-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.pricing-toggle {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.375rem;
  border-radius: 100px;
  display: flex;
  gap: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pricing-toggle .toggle-option {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0.5rem 1.5rem;
  border-radius: 100px;
  transition: all 0.3s ease;
}

.pricing-toggle .toggle-option input {
  position: absolute;
  opacity: 0;
}

.pricing-toggle .toggle-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  z-index: 1;
}

.pricing-toggle .toggle-option:has(input:checked) {
  background: var(--accent-orange);
}

.pricing-toggle .toggle-option:has(input:checked) .toggle-text {
  color: var(--bg-color);
  font-weight: 700;
}

.discount-badge {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.3rem;
}

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

.pricing-card {
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card.recommended {
  border: 1px solid var(--accent-orange);
  box-shadow: 0 0 30px rgba(251, 146, 60, 0.1);
}

.recommended-badge {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: var(--accent-orange);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tier-header {
  text-align: left;
}

.tier-name {
  font-family: var(--font-heading);
  color: var(--text-dim);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.price-container {
  display: flex;
  align-items: baseline;
  color: #fff;
  font-family: var(--font-heading);
}

.currency {
  font-size: 1.5rem;
  font-weight: 600;
  margin-right: 0.2rem;
}

.price-value {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.duration {
  font-size: 1rem;
  color: var(--text-dim);
  margin-left: 0.4rem;
}

.tier-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.tier-features li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.tier-features li::before {
  content: "✓";
  color: var(--accent-orange);
  font-weight: 800;
}

.btn-tier-cta {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.1s ease;
}

.btn-tier-cta.active {
  background: var(--accent-orange);
  color: #000;
  border: none;
  box-shadow: 0 10px 20px rgba(251, 146, 60, 0.2);
}

.btn-tier-cta.active:hover {
  background: #ffae6d;
  color: #000;
}

.btn-tier-cta:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

@media (max-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .price-value {
    font-size: 2.8rem;
  }
}

/* Technical Deep Dives Section */
.deep-dives-section {
  width: 85vw;
  max-width: 1300px;
  margin: 10rem auto;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.section-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(251, 146, 60, 0.1);
  border: 1px solid rgba(251, 146, 60, 0.2);
  border-radius: 100px;
  color: var(--accent-orange);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: #fff;
  font-weight: 800;
}

.intro-text {
  color: var(--text-dim);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.deep-dives-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.dive-tabs {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  width: fit-content;
  margin: 0 auto;
}

.dive-tab {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.8rem;
  border-radius: 100px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dive-icon {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-secondary);
  opacity: 0.5;
}

.dive-label {
  font-weight: 600;
  color: var(--accent-orange);
  font-size: 1rem;
}

.dive-tab.active {
  background: rgba(251, 146, 60, 0.1);
  box-shadow: 0 4px 15px rgba(251, 146, 60, 0.1);
}

.dive-tab.active .dive-label {
  color: #fff;
}

.dive-tab.active .dive-icon {
  opacity: 1;
}

.dive-display-card {
  background: linear-gradient(135deg,
      rgba(20, 20, 20, 0.8) 0%,
      rgba(10, 10, 10, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 32px;
  padding: 5rem 4rem;
  min-height: 450px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.dive-display-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(251, 146, 60, 0.06) 0%,
      transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.dive-display-card:hover::after {
  opacity: 1;
}

.dive-content-pane {
  display: none;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  animation: fadeInSlide 0.6s ease-out;
}

.dive-content-pane.active {
  display: grid;
}

.dive-content-pane::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle,
      rgba(251, 146, 60, 0.03) 0%,
      transparent 70%);
  pointer-events: none;
  z-index: -1;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Technical Deep Dives Section (Redesign: Logic Dashboard) */
.dive-status-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  width: fit-content;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
}

.status-indicator.live {
  animation: pulseGreen 2s infinite;
}

.status-indicator.pulse {
  background: var(--accent-orange);
  box-shadow: 0 0 10px var(--accent-orange);
  animation: pulseOrange 2s infinite;
}

.status-indicator.secure {
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
}

@keyframes pulseGreen {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulseOrange {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.status-text {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.logic-rank {
  font-size: 0.7rem;
  color: var(--accent-orange);
  font-weight: 700;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.dive-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.dive-description {
  font-size: 1.15rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.dive-performance-overlay {
  display: flex;
  gap: 3rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: rgba(251, 146, 60, 0.03);
  border: 1px solid rgba(251, 146, 60, 0.1);
  border-radius: 16px;
}

.perf-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.perf-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.perf-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-orange);
  text-shadow: 0 0 20px rgba(251, 146, 60, 0.3);
}

.logic-dashboard-frame {
  position: relative;
  padding: 2rem;
  background: rgba(5, 5, 5, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logic-dashboard-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(251, 146, 60, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 146, 60, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
}

.logic-dashboard-frame::after {
  content: "SYSTEM_INTEL_STREAM: LOGIC_VERIFIED";
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  font-family: monospace;
  font-size: 0.6rem;
  color: var(--accent-orange);
  opacity: 0.4;
  letter-spacing: 2px;
}

.neural-cluster {
  animation: clusterFloat 6s ease-in-out infinite;
}

@keyframes clusterFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

.dive-description {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.dive-features {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.dive-features li {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
  font-weight: 500;
}

.dive-features li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent-orange);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-orange);
}

.dive-visual {
  background: #050505;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logic-map {
  width: 100%;
  height: auto;
  max-width: 400px;
}

@media (max-width: 1100px) {
  .dive-content-pane {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .dive-display-card {
    padding: 3rem 2rem;
  }
}

@media (max-width: 600px) {
  .dive-tabs {
    flex-wrap: wrap;
    border-radius: 20px;
    padding: 1rem;
  }

  .dive-title {
    font-size: 1.8rem;
  }
}

/* Responsive Grid Adjustments */
@media (max-width: 1100px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }

  .span-2-2,
  .span-1-2,
  .span-2-1 {
    grid-column: span 2;
    grid-row: auto;
  }
}

@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .span-2-2,
  .span-1-2,
  .span-2-1 {
    grid-column: span 1;
  }
}

/* Tutorial Section Polish */
.tutorial-section {
  box-shadow: 0 0 100px -30px rgba(251, 146, 60, 0.15);
  /* Soft ambient glow */
  border: 1px solid rgba(255, 255, 255, 0.1);
}


/* Footer Styles */

.footer-top-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      var(--accent-orange) 50%,
      transparent 100%);
  opacity: 0.8;
  box-shadow: 0 0 15px var(--accent-orange);
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.5;
    box-shadow: 0 0 10px var(--accent-orange);
  }

  50% {
    opacity: 1;
    box-shadow:
      0 0 25px var(--accent-orange),
      0 0 5px rgba(255, 255, 255, 0.5);
  }
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  width: 100%;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo .brand-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #fff, var(--accent-orange));
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-tagline {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
  text-align: left;
  opacity: 0.8;
}

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-link:hover {
  background: rgba(251, 146, 60, 0.15);
  color: var(--accent-orange);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(251, 146, 60, 0.2);
  border-color: var(--accent-orange);
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.footer-heading {
  color: var(--accent-orange);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  position: relative;
  padding-left: 0;
}

.footer-link:hover {
  color: #fff;
  padding-left: 5px;
  text-shadow: 0 0 10px rgba(251, 146, 60, 0.3);
}

.footer-link::before {
  content: "";
  position: absolute;
  left: -10px;
  opacity: 0;
  color: var(--accent-orange);
  transition: all 0.2s ease;
}

.footer-link:hover::before {
  opacity: 1;
  left: -8px;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .footer-brand,
  .footer-links-group {
    align-items: center;
    text-align: center;
  }

  .footer-tagline {
    text-align: center;
    margin: 0 auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

.made-with .heart {
  display: inline-block;
  animation: heartBeat 1.5s infinite;
  color: var(--accent-orange);
}

@keyframes heartBeat {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

/* Authentication Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border-radius: 24px;
  width: 100%;
  max-width: 420px;
  padding: 2.5rem;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: none;
}

.modal-overlay.active .modal-card:not(.hidden) {
  display: block;
  transform: scale(1);
  animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close-btn:hover {
  background: var(--accent-orange);
  color: #000;
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-header h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.modal-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Form Styles */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-group label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.input-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.auth-form input {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.75rem 1rem 0.75rem 3rem;
  color: #fff;
  font-size: 1rem;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}

.auth-form input[type="password"],
.auth-form input[id*="password"] {
  padding-right: 3rem;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--accent-orange);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: none;
}

.input-wrapper:focus-within .input-icon {
  color: var(--accent-orange);
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  transition: color 0.2s;
}

.password-toggle:hover {
  color: var(--text-primary);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.forgot-password {
  color: var(--accent-orange);
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
}

.forgot-password:hover {
  text-decoration: underline;
}

.btn-primary-block {
  background: var(--accent-orange);
  color: var(--bg-color);
  border: none;
  padding: 0.875rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s,
    filter 0.2s;
}

.btn-primary-block:hover {
  filter: brightness(110%);
  transform: translateY(-1px);
}

.divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.divider span {
  padding: 0 1rem;
}

.btn-google {
  width: 100%;
  background: #fff;
  color: #333;
  border: none;
  padding: 0.875rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: transform 0.2s;
}

.btn-google:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-footer {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.link-btn {
  background: transparent;
  border: none;
  color: var(--accent-orange);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0;
}

.link-btn:hover {
  text-decoration: underline;
}

/* User Profile in Navbar */
.nav-user-profile {
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  border: 2px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.user-avatar:hover {
  background: #fb923c;
  transition: ease-in-out 0.2s;
}

/* Profile Dropdown Redesign */
.profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 280px;
  /* Scaled up width */
  background: #121212;
  /* Solid Opaque */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0;
  /* Let rows handle padding */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-dropdown.hidden {
  display: none !important;
}

/* HYPER-AGGRESSIVE PHASE 6 FIX: Target both old and new classes to bypass HTML caching */
#user-dropdown .profile-dropdown-header,
#user-dropdown .dropdown-header {
  display: grid !important;
  grid-template-columns: 54px 1fr !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 18px 16px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#user-dropdown .profile-avatar-container,
#user-dropdown .user-avatar-large {
  width: 54px !important;
  height: 54px !important;
  border-radius: 50% !important;
  background: #1a1a1a !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  position: relative !important;
  flex-shrink: 0 !important;
  aspect-ratio: 1 / 1 !important;
  mask-image: radial-gradient(circle, white 100%, black 100%) !important;
}

#user-dropdown .profile-avatar-container img,
#user-dropdown .user-avatar-large img,
#user-photo-dropdown {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 50% !important;
}

#user-initial-dropdown {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  text-transform: uppercase !important;
}

#user-dropdown .profile-user-info,
#user-dropdown .user-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  min-width: 0 !important;
  text-align: left !important;
  flex: 1 !important;
}

.user-display-name {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  font-family: var(--font-primary);
  text-transform: none !important;
  letter-spacing: 0px !important;
  /* Force minimal width */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.user-email {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-family: var(--font-primary);
  opacity: 0.6;
  text-transform: none !important;
  letter-spacing: 0px !important;
  /* Force minimal width */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  line-height: 1.3;
}

/* Rows */
.dropdown-settings-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  /* Scaled up text */
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.settings-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.dropdown-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.upgrade-btn {
  padding: 8px 16px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 20px;
  font-size: 0.75rem;
  /* Scaled up text */
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.upgrade-btn:hover {
  transform: scale(1.02);
  background: #eee;
}

.logout-btn-square {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: 8px;
  color: #ff6b6b;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.logout-btn-square:hover {
  background: rgba(255, 107, 107, 0.2);
  color: #ff8787;
  transform: scale(1.05);
}

#user-photo-nav {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#user-initial-nav {
  font-size: 0.9rem;
  font-weight: 700;
}

/* Form error states */
.error-text {
  color: #ff6b6b;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  min-height: 1.1rem;
  display: block;
  width: 100%;
  line-height: 1.2;
}

.input-invalid {
  border-color: #ff6b6b !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.08);
}

/* Mobile menu toggle default state (hidden on desktop) */
.style-menu-toggle {
  display: none;
}

/* Pro Mode Toggle */
.pro-mode-toggle {
  margin: 10px 0;
  display: flex;
  justify-content: center;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.toggle-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}

.toggle-slider {
  width: 50px;
  height: 24px;
  background: #ccc;
  border-radius: 24px;
  position: relative;
  transition: 0.3s;
}

.toggle-label input:checked+.toggle-slider {
  background: var(--accent-orange);
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  top: 2px;
  left: 2px;
  transition: 0.3s;
}

.toggle-label input:checked+.toggle-slider::before {
  transform: translateX(26px);
}

.toggle-text {
  font-size: 14px;
  color: var(--text-primary);
}

/* Question Form */
.question-form-container {
  margin-top: 20px;
}

.question-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.question-item {
  display: flex;
  flex-direction: column;
}

.question-label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.question-input {
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 14px;
}

.proceed-btn {
  margin-top: 15px;
  padding: 12px 24px;
  background: var(--accent-orange);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.proceed-btn:hover {
  background: var(--accent-hover);
}

/* Enhanced Markdown Rendering in Response */
#response-content {
  line-height: 1.6;
}

#response-content h1 {
  font-size: 2em;
  font-weight: 700;
  margin: 1em 0 0.5em 0;
  color: var(--text-primary);
}

#response-content h2 {
  font-size: 1.5em;
  font-weight: 600;
  margin: 0.8em 0 0.4em 0;
  color: var(--text-primary);
}

#response-content h3 {
  font-size: 1.25em;
  font-weight: 600;
  margin: 0.6em 0 0.3em 0;
  color: var(--text-primary);
}

#response-content ul,
#response-content ol {
  margin: 0.5em 0;
  padding-left: 1.5em;
}

#response-content li {
  margin: 0.25em 0;
}

#response-content code {
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
}

#response-content pre {
  background: var(--bg-secondary);
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1em 0;
  border: 1px solid var(--border-color);
}

/* How It Works Section */
.how-it-works-section {
  width: 80vw;
  max-width: 1200px;
  margin-top: 8rem;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

.steps-container {
  display: flex;
  align-items: stretch;
  /* Enforce equal height for all cards */
  justify-content: center;
  width: 100%;
  gap: 1rem;
  position: relative;
}

.step-card {
  background: rgba(53, 37, 28, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  /* Keep content centered */
  text-align: center;
  flex: 1;
  /* Equal width */
  height: auto;
  /* Allow growth */
  min-height: 100%;
  /* Ensure it fills the stretched container */
  position: relative;
  transition: all 0.3s ease;
  z-index: 2;
}

.step-card:hover {
  background: rgba(24, 24, 24, 0.95);
  /* Dark grey/black hover */
  border-color: var(--accent-orange);
  box-shadow: 0 10px 30px rgba(251, 146, 60, 0.15);
}

.step-number {
  position: absolute;
  top: -1.5rem;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent-orange);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border-radius: 99px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-card h3 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.3rem;
  margin: 0;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* Connector Line */
.step-connector {
  flex: 0 0 60px;
  /* Fixed width for connector */
  height: 2px;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.1) 0%,
      var(--accent-orange) 50%,
      rgba(255, 255, 255, 0.1) 100%);
  align-self: center;
  margin-top: -2rem;
  /* visually align with center of cards roughly */
  position: relative;
  opacity: 0.5;
}

.step-connector::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--accent-orange);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-orange);
}

#response-content pre code {
  background: none;
  padding: 0;
}

#response-content blockquote {
  border-left: 4px solid var(--accent-orange);
  padding-left: 1em;
  margin: 1em 0;
  color: var(--text-secondary);
}

#response-content strong {
  font-weight: 600;
}

#response-content em {
  font-style: italic;
}

#response-content a {
  color: var(--accent-orange);
  text-decoration: none;
}

#response-content a:hover {
  text-decoration: underline;
}

/* Performance Metrics Section */
.metrics-section {
  width: 85vw;
  max-width: 1300px;
  padding: 2rem;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.metrics-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.metrics-info {
  display: flex;
  flex-direction: column;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--accent-orange);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Graph Visualization */
.graph-card {
  background: rgba(13, 13, 13, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(251, 146, 60, 0.1);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
}

.graph-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.graph-header h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #fff;
  margin: 0;
}

.graph-legend {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.orange {
  background: var(--accent-orange);
}

.legend-dot.white {
  background: #fff;
}

.bar-graph {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Premium Line Graph */
.metrics-container.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.premium-graph-card {
  width: 100%;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 2rem;
  backdrop-filter: blur(20px);
}

.premium-graph-card .graph-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.premium-graph-card .graph-legend {
  display: flex;
  gap: 1.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.premium-line-graph {
  width: 100%;
  height: auto;
  max-height: 300px;
}

.premium-line-graph text {
  font-family: var(--font-heading);
}

.graph-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawGraphLine 2s ease-out forwards;
}

.graph-line.orange-line {
  animation-delay: 0.3s;
}

.area-fill {
  opacity: 0;
  animation: fadeInArea 1s ease-out 0.8s forwards;
}

@keyframes drawGraphLine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeInArea {
  to {
    opacity: 1;
  }
}

.data-point {
  opacity: 0;
  animation: popIn 0.4s ease-out forwards;
}

.data-point:nth-of-type(1) {
  animation-delay: 0.6s;
}

.data-point:nth-of-type(2) {
  animation-delay: 0.9s;
}

.data-point:nth-of-type(3) {
  animation-delay: 1.2s;
}

.data-point:nth-of-type(4) {
  animation-delay: 1.5s;
}

.data-point:nth-of-type(5) {
  animation-delay: 0.8s;
}

.data-point:nth-of-type(6) {
  animation-delay: 1.1s;
}

.data-point:nth-of-type(7) {
  animation-delay: 1.4s;
}

.data-point:nth-of-type(8) {
  animation-delay: 1.7s;
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0);
  }

  70% {
    transform: scale(1.2);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Old horizontal bar styles - kept for backwards compatibility */
.graph-bar-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bar-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.bar-wrapper {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 4px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-fill.orange {
  background: var(--accent-orange);
  box-shadow: 0 0 10px rgba(251, 146, 60, 0.3);
  z-index: 2;
}

.bar-fill.white {
  background: rgba(255, 255, 255, 0.2);
  z-index: 1;
}

/* Result Comparison Section — breaks out of .container (900px max-width) */
.comparison-section {
  width: 95vw;
  max-width: 1600px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: 10rem 0;
}

.comparison-section .section-container {
  width: 100%;
  margin: 0 auto;
}

/* Result Comparison Section - Minimalist */
.comparison-section.minimalist {
  width: 90%;
  max-width: 1000px;
  margin: 8rem auto;
  position: relative;
}

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

.minimal-card {
  background: rgba(15, 15, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
}

.minimal-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.minimal-card.optimized {
  border-color: rgba(251, 146, 60, 0.2);
}

.minimal-card.optimized:hover {
  border-color: rgba(251, 146, 60, 0.4);
  box-shadow: 0 0 40px rgba(251, 146, 60, 0.1);
}

.bot-logo {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.bot-logo svg {
  width: 100%;
  height: 100%;
}

.minimal-card .card-title {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: #fff;
  margin-bottom: 0.25rem;
}

.minimal-card .card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.minimal-card .card-desc.highlight {
  color: var(--accent-orange);
}

.mini-input-area {
  width: 100%;
  margin-bottom: 1rem;
}

.mini-input-area input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.mini-input-area input:focus {
  border-color: rgba(255, 255, 255, 0.2);
}

.minimal-card.optimized .mini-input-area input:focus {
  border-color: var(--accent-orange);
}

.output-area {
  width: 100%;
  min-height: 120px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1rem;
  text-align: left;
}

.output-area.highlight {
  border-color: rgba(251, 146, 60, 0.15);
  background: rgba(251, 146, 60, 0.03);
}

.output-area .placeholder {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-style: italic;
}

.compare-action {
  display: flex;
  justify-content: center;
}

.btn-compare {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-orange);
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-compare:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(251, 146, 60, 0.3);
}

@media (max-width: 768px) {
  .minimal-comparison-grid {
    grid-template-columns: 1fr;
  }
}

/* Legacy comparison styles */
.comparison-container {
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 32px;
  padding: 3rem;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  margin: 0 auto;
  max-width: 100%;
}

/* Comparison Heading */
.comparison-heading {
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  font-family: var(--font-heading);
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
}

/* Terminal Input - High Fidelity Port */
.premium-demo-input {
  margin: 0 auto 4rem auto;
  max-width: 80%;
}

.premium-demo-input:focus-within {
  border-color: var(--accent-orange);
  box-shadow: 0 0 30px rgba(251, 146, 60, 0.1);
}

#demo-prompt-input {
  min-height: 60px;
}

/* Comparison Cards */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.comparison-card {
  background: rgba(15, 15, 15, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 550px;
}

.card-bench-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bot-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.bot-icon svg {
  width: 100%;
  height: 100%;
}

.bot-icon.promptplus img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.header-text {
  display: flex;
  flex-direction: column;
}

.bench-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.bench-label.highlight {
  color: var(--accent-orange);
}

.bench-desc {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.card-content-frame {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #000;
  min-height: 350px;
}

.card-content-frame.highlight {
  background: radial-gradient(circle at top right,
      rgba(251, 146, 60, 0.05),
      #000);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.code-dots {
  display: flex;
  gap: 0.4rem;
}

.code-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.file-name {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.card-content {
  padding: 2rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #a1a1aa;
  overflow-y: auto;
}

/* Scanline Effect */
.scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      transparent 50%,
      rgba(251, 146, 60, 0.02) 51%,
      transparent 52%);
  background-size: 100% 4px;
  pointer-events: none;
  opacity: 0.3;
}

/* Performance Metrics Section Refinement */
.metrics-section-top {
  text-align: center;
  margin-bottom: 2rem;
}

.metrics-section-top .section-tag {
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}

.metrics-section-top .section-heading {
  text-align: center;
  margin-top: 1rem;
}

.metrics-header-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
  margin-bottom: 4rem;
}

.metrics-header-left {
  flex: 1;
  max-width: 650px;
  /* Increased for longer paragraph */
  text-align: left;
}

.metrics-description {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.metrics-capsules {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  flex: 0 0 350px;
}

.metric-capsule {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.2rem 1.8rem;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  cursor: default;
  /* No pointer cursor since no hover effect */
}

/* Static Capsules - No Hover Effects */
.metric-capsule:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.capsule-dot {
  width: 10px;
  height: 10px;
  background: var(--accent-orange);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-orange);
  flex-shrink: 0;
}

.capsule-text {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* Graph Interactivity */
.graph-point {
  cursor: pointer;
  transition: r 0.2s ease, stroke-width 0.2s ease;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 0;
}

.graph-point:hover {
  r: 8;
  stroke-width: 10px;
}

.graph-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--accent-orange);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -100%);
  margin-top: -15px;
  transition: opacity 0.2s ease;
}

.graph-tooltip.hidden {
  opacity: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .metrics-header-grid {
    flex-direction: column;
    gap: 3rem;
  }

  .metrics-header-left {
    max-width: 100%;
    text-align: center;
  }

  .metrics-capsules {
    flex: 1;
    width: 100%;
  }
}

.metrics-section {
  background: transparent;
}

/* Metrics Strip */
.logic-metrics-strip {
  padding: 2rem;
  background: rgba(251, 146, 60, 0.02);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-top: 1px solid rgba(251, 146, 60, 0.1);
}

.metric-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.m-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.m-val {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-orange);
}

.m-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.m-fill {
  height: 100%;
  background: var(--accent-orange);
  box-shadow: 0 0 10px var(--accent-orange);
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 1024px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .comparison-container {
    padding: 1.5rem;
  }
}

/* Tutorial Section Refinement */
.tutorial-section {
  width: 100%;
  max-width: 1000px;
  margin: 6rem auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  gap: 1rem;
  padding: 4rem;
}

/* Tutorial Breakout for Desktop (restore 16:9 landscape) */
@media (min-width: 1025px) {
  .tutorial-section {
    width: 70vw;
    max-width: 1400px;
    padding: 4rem 3rem;
  }
}

/* Large monitors: viewport-center the tutorial since parent is narrower */
@media (min-width: 1441px) {
  .tutorial-section {
    left: 50%;
    transform: translateX(-50%);
  }
}


/* Spotlight Glow Re-integrated */
.spotlight-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle at center,
      rgba(251, 146, 60, 0.05) 0%,
      transparent 70%);
  pointer-events: none;
  z-index: -1;
  filter: blur(60px);
}

.tutorial-heading {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: #fff;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.01em;
}

.browser-frame {
  width: 100%;
  max-width: 100%;
  /* Allow filling the breakout container */
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8), 0 0 40px rgba(251, 146, 60, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.browser-header {
  background: #1a1a1a;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 2;
}

.window-controls {
  display: flex;
  gap: 8px;
  margin-right: 20px;
}

.window-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.window-dot.red {
  background: #ff5f56;
}

.window-dot.yellow {
  background: #ffbd2e;
}

.window-dot.green {
  background: #27c93f;
}

.browser-address-bar {
  flex: 1;
  background: #000;
  border-radius: 6px;
  padding: 4px 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
}

.tutorial-section .video-container {
  position: relative;
  width: 100%;
  height: auto !important;
  background: #000;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
}

.tutorial-section .video-container video {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.tutorial-section .video-controls-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  padding: 30px;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 10;
  backdrop-filter: blur(8px);
  transform: translateY(10px);
}

.video-container:not(.is-fullscreen):hover .video-controls-overlay,
.video-container.show-controls .video-controls-overlay {
  opacity: 1;
  transform: translateY(0);
}

.video-container.is-fullscreen {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  background: #000 !important;
}

.video-container.is-fullscreen video {
  max-width: 100%;
  max-height: 100%;
  width: auto !important;
  height: auto !important;
}

.video-container.is-fullscreen:not(.show-controls),
.video-container.is-fullscreen:not(.show-controls) * {
  cursor: none !important;
}

.video-progress-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  margin-bottom: 20px;
  position: relative;
  border-radius: 99px;
  transition: height 0.2s ease;
}

.video-progress-container:hover {
  height: 8px;
}

.video-progress-bar {
  width: 100%;
  height: 100%;
  position: relative;
}

.video-progress-filled {
  width: 0%;
  height: 100%;
  background: var(--accent-orange);
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 99px;
  box-shadow: 0 0 10px var(--accent-orange);
}

.video-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.video-progress-container:hover .video-progress-thumb {
  transform: translate(-50%, -50%) scale(1);
  left: var(--progress-percent, 0%);
}

.video-controls-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.controls-left,
.controls-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.control-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.control-btn:hover {
  color: var(--accent-orange);
}

.control-btn svg {
  width: 28px;
  height: 28px;
}

.time-display {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  color: #fff;
  min-width: 110px;
  letter-spacing: 0.05em;
}

/* Video Buffering Overlay */
.video-buffering-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-container.is-buffering .video-buffering-overlay {
  opacity: 1;
}

.video-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent-orange);
  border-radius: 50%;
  animation: video-spin 1s linear infinite;
}

@keyframes video-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hidden {
  display: none !important;
}

/* Responsive adjustments for Tutorial */
@media (max-width: 855px) {
  .tutorial-section {
    width: 95vw;
    padding: 0 1rem;
  }

  .center-play-button {
    width: 60px;
    height: 60px;
  }

  .center-play-button svg {
    width: 28px;
    height: 28px;
  }

  .video-controls-overlay {
    padding: 15px;
  }
}

/* ===== Live Intelligence Comparison Styles ===== */
.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 2rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.loading-indicator .spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error-text {
  color: #ef4444;
  padding: 1rem;
  font-size: 0.9rem;
  text-align: center;
}

.output-text {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
  text-align: left;
  white-space: normal;
  word-break: break-word;
}

.output-text h1,
.output-text h2,
.output-text h3 {
  margin: 1rem 0 0.5rem 0;
  color: var(--accent-color);
}

.output-text p {
  margin-bottom: 0.8rem;
}

.output-text ul,
.output-text ol {
  margin: 0.5rem 0 1rem 1.5rem;
}

.output-text li {
  margin-bottom: 0.4rem;
}

.output-text .code-block {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 12px;
  margin: 12px 0;
  overflow-x: auto;
}

.output-text .inline-code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

/* Compare button loading state */
#demo-compare-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

#demo-compare-btn .btn-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* --- Responsive Navbar Final Overrides (Under 1024px & Portrait) --- */
@media (max-width: 1023px),
(max-width: 1024px) and (orientation: portrait) {
  .floating-nav {
    width: 90vw !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-radius: 24px !important;
    height: auto !important;
    min-height: 60px;
    padding: 0.75rem 1.25rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .mobile-menu-toggle {
    display: block !important;
    order: 3;
  }

  .nav-logo {
    order: 2;
    flex: 0 0 auto;
    margin: 0 auto !important;
  }

  .nav-user-profile {
    order: 1;
    display: flex !important;
    position: relative !important;
    z-index: 1001 !important;
  }

  .nav-user-profile.hidden {
    display: none !important;
  }

  .profile-dropdown {
    right: auto !important;
    left: -10px !important;
    transform-origin: top left !important;
  }

  .nav-links {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 12px) !important;
    left: 0 !important;
    width: 100% !important;
    background: rgba(15, 15, 15, 0.98) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    flex-direction: column !important;
    padding: 2.5rem 2rem !important;
    gap: 1.5rem !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7) !important;
    z-index: 1000 !important;
    transform: none !important;
  }

  .nav-links.active {
    display: flex !important;
  }

  .nav-auth {
    display: none !important;
  }

  .mobile-auth-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
    margin-top: 1rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-top: 2rem !important;
  }

  .mobile-auth-links .nav-btn {
    width: 100% !important;
    text-align: center !important;
    padding: 0.8rem !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
  }

  .mobile-auth-links .login-link {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  .mobile-auth-links .signup-btn {
    background: var(--accent-orange) !important;
    color: #000 !important;
    border: none !important;
  }
}

.mobile-auth-links {
  display: none;
}

.mobile-auth-links.hidden {
  display: none !important;
}

@media (max-height: 500px) and (orientation: landscape) {
  .tutorial-section .video-container {
    height: 80vh !important;
    padding-top: 0 !important;
  }
  
  .tutorial-section .video-controls-overlay {
    padding: 15px;
    bottom: 0;
  }
  
  .control-btn svg {
    width: 20px;
    height: 20px;
  }
}
/* --- Free Trial Toast Notification --- */
.new-user-toast {
    position: fixed;
    bottom: 30px;
    right: -400px; /* Hidden off-screen initially */
    width: 350px;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--accent-orange);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(251, 146, 60, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    z-index: 10000;
    transition: right 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.new-user-toast.show {
    right: 30px;
}

.new-user-toast .toast-content {
    flex: 1;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
}

.new-user-toast .toast-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    margin-top: 2px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.new-user-toast .toast-close:hover {
    color: var(--accent-orange);
}

@media (max-width: 600px) {
    .new-user-toast {
        width: calc(100% - 40px);
        bottom: 20px;
        right: -100%;
    }
    .new-user-toast.show {
        right: 20px;
    }
}
