/* ═══════════════════════════════════════════════════════════════════════════
   BEYOND LOGIC LABS - MOBILE-NATIVE EXPERIENCE
   "Terminal in Your Pocket" - A truly mobile-first design
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── MOBILE DETECTION ───────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* ═══════════════════════════════════════════════════════════════════════
     MOBILE CSS CUSTOM PROPERTIES
     ═══════════════════════════════════════════════════════════════════════ */
  :root {
    --mobile-nav-height: 72px;
    --mobile-header-height: 56px;
    --mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
    --mobile-safe-top: env(safe-area-inset-top, 0px);
    --touch-target-min: 44px;
    --mobile-gutter: 20px;
  }

  /* ═══════════════════════════════════════════════════════════════════════
     BASE MOBILE ADJUSTMENTS
     ═══════════════════════════════════════════════════════════════════════ */
  html {
    font-size: 15px; /* Compact for higher information density */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    /* Prevent zoom */
    touch-action: pan-x pan-y;
    -ms-touch-action: pan-x pan-y;
  }

  body {
    padding-bottom: calc(var(--mobile-nav-height) + var(--mobile-safe-bottom));
    overscroll-behavior-y: contain;
    /* Prevent zoom on double-tap */
    touch-action: manipulation;
  }

  /* ═══════════════════════════════════════════════════════════════════════
     NATURAL SCROLLING - Content flows freely
     ═══════════════════════════════════════════════════════════════════════ */
  main {
    overflow-y: auto;
  }

  .section,
  .section--hero,
  #problem,
  #solution,
  #steam-integration,
  #pricing,
  #newsletter,
  #features,
  #audience,
  #how-it-works,
  #requirements,
  #why-local {
    min-height: auto;
    display: block;
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }

  /* Hero section - keep taller but not full viewport */
  .section--hero {
    min-height: 70vh;
    min-height: 70svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Prevent zoom on form inputs */
  input, select, textarea {
    font-size: 16px !important; /* Prevents iOS zoom on focus */
  }

  /* Hide desktop noise overlay on mobile for performance */
  body::before {
    display: none;
  }

  .container {
    padding: 0 var(--mobile-gutter);
  }

  /* ═══════════════════════════════════════════════════════════════════════
     MOBILE HEADER - Minimal & Clean
     ═══════════════════════════════════════════════════════════════════════ */
  .header {
    padding: var(--space-sm) 0;
    height: var(--mobile-header-height);
    padding-top: calc(var(--space-sm) + var(--mobile-safe-top));
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
  }

  .header.scrolled {
    background: var(--color-bg);
    backdrop-filter: none;
  }

  .header__inner {
    height: 100%;
  }

  .logo {
    font-size: 0.85rem;
    gap: var(--space-xs);
  }

  .logo__icon {
    width: 28px;
    height: 28px;
  }

  .logo span {
    display: inline; /* Show company name */
    font-size: 0.75rem;
  }

  /* Hide hamburger - we're using bottom nav */
  .nav-toggle {
    display: none !important;
  }

  /* Hide desktop nav */
  .nav {
    display: none !important;
  }

  /* ═══════════════════════════════════════════════════════════════════════
     MOBILE BOTTOM TAB NAVIGATION - App-like Experience
     ═══════════════════════════════════════════════════════════════════════ */
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--mobile-nav-height) + var(--mobile-safe-bottom));
    padding-bottom: var(--mobile-safe-bottom);
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: var(--z-sticky);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  }

  .mobile-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: var(--mobile-nav-height);
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.65rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap; /* Prevent label wrapping */
  }

  .mobile-nav__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
    border-radius: 0 0 2px 2px;
  }

  .mobile-nav__item--active {
    color: var(--color-primary);
  }

  .mobile-nav__item--active::before {
    width: 32px;
  }

  .mobile-nav__icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
  }

  .mobile-nav__icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
  }

  /* Touch feedback */
  .mobile-nav__item:active {
    transform: scale(0.95);
    opacity: 0.8;
  }

  /* ═══════════════════════════════════════════════════════════════════════
     MOBILE HERO - Full Screen Immersive
     ═══════════════════════════════════════════════════════════════════════ */
  .section--hero {
    min-height: calc(100vh - var(--mobile-header-height));
    min-height: calc(100svh - var(--mobile-header-height)); /* Small viewport height */
    padding-top: 0;
    padding-bottom: var(--space-xl);
    margin-top: 0;
  }

  .hero__bg {
    opacity: 0.6; /* Reduce visual noise on mobile */
  }

  .hero__grid {
    background-size: 30px 30px;
    opacity: 0.3;
  }

  .hero__glow {
    width: 300px;
    height: 300px;
    filter: blur(80px);
    opacity: 0.15;
  }

  .hero__content {
    padding: var(--space-lg) 0;
  }

  .hero__pretitle {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-sm);
  }

  .hero__title {
    font-size: clamp(1.75rem, 9vw, 2.5rem);
    line-height: 1.1;
    margin-bottom: var(--space-sm);
  }

  .hero__subtitle {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
    padding: 0 var(--space-sm);
  }

  .hero__actions {
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    min-height: var(--touch-target-min);
    font-size: 0.85rem;
  }

  /* Hide hero scroll indicator on mobile - causes duplication issues */
  .hero__scroll {
    display: none !important;
  }

  /* ═══════════════════════════════════════════════════════════════════════
     MOBILE SECTIONS
     ═══════════════════════════════════════════════════════════════════════ */
  .section {
    padding: var(--space-lg) 0;
  }

  .section-header {
    text-align: center;
    margin-top: 16px;
    margin-bottom: var(--space-md);
  }

  .section-label {
    font-size: 0.65rem;
    justify-content: center;
    margin-bottom: var(--space-xs);
  }

  .section-label::before,
  .section-label::after {
    content: none;
  }

  .section-title {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
    margin-bottom: var(--space-xs);
  }

  .section-subtitle {
    font-size: 0.8rem;
    text-align: center;
    padding: 0 var(--space-sm);
  }

  /* ═══════════════════════════════════════════════════════════════════════
     MOBILE CAROUSEL - Swipeable Cards with Story Dots
     ═══════════════════════════════════════════════════════════════════════ */
  .mobile-carousel {
    width: calc(100% + var(--mobile-gutter) * 2);
    margin-left: calc(var(--mobile-gutter) * -1);
    margin-right: calc(var(--mobile-gutter) * -1);
    overflow: hidden;
  }

  .mobile-carousel__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    width: 100%;
  }

  .mobile-carousel__track::-webkit-scrollbar {
    display: none;
  }

  .mobile-carousel__slide {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: start;
    padding: 0 var(--mobile-gutter);
    box-sizing: border-box;
  }

  /* Story dots */
  .mobile-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: var(--space-lg) 0;
  }

  .mobile-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--color-border);
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .mobile-carousel__dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--color-primary);
  }

  /* ═══════════════════════════════════════════════════════════════════════
     MOBILE PROJECT CARDS - Full Background Themed Cards
     ═══════════════════════════════════════════════════════════════════════ */

  /* Base card - full background visual with overlaid content */
  .mobile-carousel .project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
    margin: 0;
    border-radius: 16px;
    height: 320px;
    cursor: pointer;
    overflow: hidden;
  }

  /* Visual fills entire card as background */
  .mobile-carousel .project-card__visual {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    z-index: 0;
  }

  /* Hide ALL original visual text spans */
  .mobile-carousel .project-card__visual > span:not(.project-card__badge) {
    display: none !important;
  }

  /* Badge positioned at top */
  .mobile-carousel .project-card__badge {
    position: absolute !important;
    top: var(--space-md) !important;
    left: var(--space-md) !important;
    right: auto !important;
    font-size: 0.65rem;
    padding: 4px 10px;
    z-index: 10;
  }

  /* Product name centered in visual via ::after */
  .mobile-carousel .project-card__visual::after {
    position: relative;
    z-index: 5;
  }

  /* Content overlaid at bottom with gradient fade */
  .mobile-carousel .project-card__content {
    position: relative;
    z-index: 5;
    padding: var(--space-lg);
    margin-top: auto;
  }

  /* Hide title - name is shown in visual */
  .mobile-carousel .project-card__title {
    display: none !important;
  }

  .mobile-carousel .project-card__desc {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Hide tags, platforms and link - card is clickable */
  .mobile-carousel .project-card__tags,
  .mobile-carousel .platforms,
  .mobile-carousel .card__link {
    display: none !important;
  }

  /* ─────────────────────────────────────────────────────────────────────────
     NETSHELL - Dark CRT Terminal Theme
     ───────────────────────────────────────────────────────────────────────── */
  .mobile-carousel__slide--netshell .project-card {
    border: 2px solid #00ff41;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2), inset 0 0 60px rgba(0, 255, 65, 0.05);
  }

  .mobile-carousel__slide--netshell .project-card__visual {
    background: linear-gradient(180deg, #000a04 0%, #001a0a 50%, #002a10 100%) !important;
  }

  /* CRT scanlines effect */
  .mobile-carousel__slide--netshell .project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
      0deg,
      rgba(0, 255, 65, 0.03) 0px,
      rgba(0, 255, 65, 0.03) 1px,
      transparent 1px,
      transparent 3px
    );
    pointer-events: none;
    z-index: 2;
    border-radius: 16px;
  }

  .mobile-carousel__slide--netshell .project-card__visual::after {
    content: '>_NETSHELL';
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: #00ff41;
    text-shadow: 0 0 10px #00ff41, 0 0 30px #00ff41, 0 0 50px #00ff41;
    letter-spacing: 0.1em;
  }

  .mobile-carousel__slide--netshell .project-card__content {
    background: linear-gradient(to top, rgba(0, 10, 4, 0.95) 0%, rgba(0, 10, 4, 0.8) 60%, transparent 100%);
  }

  .mobile-carousel__slide--netshell .project-card__desc {
    color: rgba(0, 255, 65, 0.9);
  }

  /* ─────────────────────────────────────────────────────────────────────────
     LOREGUARD - Light Gradient SaaS Theme
     ───────────────────────────────────────────────────────────────────────── */
  .mobile-carousel__slide--loreguard .project-card {
    border: 2px solid var(--color-primary);
    box-shadow: 0 8px 40px rgba(0, 188, 212, 0.15), 0 8px 40px rgba(233, 30, 99, 0.1);
  }

  .mobile-carousel__slide--loreguard .project-card__visual {
    background: linear-gradient(135deg, #e0f7fa 0%, #fce4ec 50%, #e8f5e9 100%) !important;
  }

  /* Subtle gradient overlay */
  .mobile-carousel__slide--loreguard .project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(0, 188, 212, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
    border-radius: 16px;
  }

  .mobile-carousel__slide--loreguard .project-card__visual::after {
    content: 'LoreGuard';
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .mobile-carousel__slide--loreguard .project-card__content {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 60%, transparent 100%);
  }

  .mobile-carousel__slide--loreguard .project-card__desc {
    color: var(--color-text);
  }

  /* ─────────────────────────────────────────────────────────────────────────
     DEBATER - Light Orange Theme
     ───────────────────────────────────────────────────────────────────────── */
  .mobile-carousel__slide--debater .project-card {
    border: 2px solid #f97316;
    box-shadow: 0 8px 40px rgba(249, 115, 22, 0.15);
  }

  .mobile-carousel__slide--debater .project-card__visual {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fed7aa 100%) !important;
  }

  .mobile-carousel__slide--debater .project-card__visual::after {
    content: 'bl-debater';
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: #ea580c;
    text-shadow: none;
  }

  .mobile-carousel__slide--debater .project-card__content {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 60%, transparent 100%);
  }

  .mobile-carousel__slide--debater .project-card__desc {
    color: var(--color-text);
  }

  /* ─────────────────────────────────────────────────────────────────────────
     MODEL FORGE - Coming Soon Placeholder
     ───────────────────────────────────────────────────────────────────────── */
  .mobile-carousel__slide--modelforge .project-card {
    border: 1px dashed var(--color-text-muted);
    background: var(--color-bg-elevated);
    opacity: 0.8;
  }

  .mobile-carousel__slide--modelforge .project-card__visual {
    background: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%) !important;
  }

  .mobile-carousel__slide--modelforge .project-card__visual::after {
    content: 'Model Forge';
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
  }

  .mobile-carousel__slide--modelforge .project-card__content {
    background: linear-gradient(to top, var(--color-bg-elevated) 0%, var(--color-bg-elevated) 60%, transparent 100%);
  }

  .mobile-carousel__slide--modelforge .project-card__desc {
    color: var(--color-text-muted);
  }

  /* ─────────────────────────────────────────────────────────────────────────
     DEFAULT/OTHER CARDS - Neutral Theme
     ───────────────────────────────────────────────────────────────────────── */
  .mobile-carousel__slide:not(.mobile-carousel__slide--netshell):not(.mobile-carousel__slide--loreguard):not(.mobile-carousel__slide--debater):not(.mobile-carousel__slide--modelforge) .project-card {
    border: 1px solid var(--color-border);
    background: var(--color-bg-elevated);
  }

  .mobile-carousel__slide:not(.mobile-carousel__slide--netshell):not(.mobile-carousel__slide--loreguard):not(.mobile-carousel__slide--debater):not(.mobile-carousel__slide--modelforge) .project-card__visual {
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-elevated) 100%) !important;
  }

  .mobile-carousel__slide:not(.mobile-carousel__slide--netshell):not(.mobile-carousel__slide--loreguard):not(.mobile-carousel__slide--debater):not(.mobile-carousel__slide--modelforge) .project-card__content {
    background: linear-gradient(to top, var(--color-bg-elevated) 0%, var(--color-bg-elevated) 60%, transparent 100%);
  }

  .tag {
    font-size: 0.6rem;
    padding: 3px var(--space-xs);
  }

  /* ═══════════════════════════════════════════════════════════════════════
     MOBILE CARDS - With proper margins
     ═══════════════════════════════════════════════════════════════════════ */
  .project-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    border-radius: 12px;
  }

  .project-card__visual {
    aspect-ratio: 16/9;
    border-radius: 12px 12px 0 0;
    min-height: 180px;
  }

  .project-card__badge {
    top: var(--space-sm);
    left: var(--space-sm);
    font-size: 0.65rem;
  }

  .project-card__content {
    padding: var(--space-lg) var(--mobile-gutter);
  }

  .project-card__title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
  }

  .project-card__desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
  }

  .project-card__tags {
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
  }

  .platforms {
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: flex-start;
    margin-top: var(--space-md);
  }

  .platform {
    font-size: 0.75rem;
  }

  .platform svg {
    width: 16px;
    height: 16px;
  }

  .card__link {
    font-size: 0.8rem;
    padding: var(--space-sm) 0;
    min-height: var(--touch-target-min);
    display: inline-flex;
    align-items: center;
  }

  /* ═══════════════════════════════════════════════════════════════════════
     MOBILE TERMINAL - Touch Optimized
     ═══════════════════════════════════════════════════════════════════════ */
  .terminal {
    margin: 0;
    border-radius: 8px;
  }

  .terminal__header {
    padding: var(--space-sm) var(--space-md);
  }

  .terminal__dot {
    width: 10px;
    height: 10px;
  }

  .terminal__title {
    font-size: 0.7rem;
  }

  .terminal__body {
    padding: var(--space-md);
    font-size: 0.85rem;
    min-height: auto;
    max-height: 300px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .terminal__prompt {
    font-size: 0.85rem;
  }

  .terminal__output {
    font-size: 0.8rem;
    line-height: 1.6;
  }

  .terminal__cursor {
    width: 6px;
    height: 14px;
  }

  /* ═══════════════════════════════════════════════════════════════════════
     MOBILE BUTTONS - Touch Optimized
     ═══════════════════════════════════════════════════════════════════════ */
  .btn {
    min-height: var(--touch-target-min);
    padding: var(--space-md) var(--space-lg);
    font-size: 0.85rem;
    border-radius: 6px;
    /* Active state for touch feedback */
    transition: transform 0.1s ease, opacity 0.1s ease, box-shadow 0.25s ease;
  }

  .btn:active {
    transform: scale(0.97);
    opacity: 0.9;
  }

  .btn--primary:active {
    box-shadow: 0 2px 10px var(--color-primary-glow);
  }

  /* ═══════════════════════════════════════════════════════════════════════
     MOBILE FEATURES GRID
     ═══════════════════════════════════════════════════════════════════════ */
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .feature {
    padding: var(--space-lg);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-md);
    text-align: left;
  }

  .feature__icon {
    font-size: 1.25rem;
    margin-bottom: 0;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-glow);
    border-radius: 8px;
  }

  .feature__title {
    font-size: 0.95rem;
    margin-bottom: var(--space-xs);
  }

  .feature__text {
    font-size: 0.85rem;
    margin: 0;
  }

  .feature--wide {
    grid-column: 1;
  }

  /* ═══════════════════════════════════════════════════════════════════════
     MOBILE FEATURES CAROUSEL (Netshell)
     ═══════════════════════════════════════════════════════════════════════ */
  .mobile-carousel--features {
    margin: 0 calc(var(--mobile-gutter) * -1);
    width: calc(100% + var(--mobile-gutter) * 2);
  }

  .mobile-carousel--features .mobile-carousel__slide {
    padding: 0 var(--mobile-gutter);
  }

  .mobile-carousel--features .feature {
    flex-direction: column;
    text-align: center;
    align-items: center;
    min-height: 200px;
    padding: var(--space-xl);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
  }

  .mobile-carousel--features .feature__icon {
    width: auto;
    height: auto;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-mono);
    font-weight: 600;
    margin-bottom: var(--space-md);
  }

  .mobile-carousel--features .feature__title {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
  }

  .mobile-carousel--features .feature__text {
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* ═══════════════════════════════════════════════════════════════════════
     MOBILE DEVLOG - Compact Inline Filters
     ═══════════════════════════════════════════════════════════════════════ */

  .devlog-section {
    padding-top: calc(var(--mobile-header-height) + var(--space-lg));
  }

  .devlog-page-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  /* Compact Inline Chip Filters */
  .devlog-filters-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
  }

  .devlog-chip {
    padding: 4px 10px;
    font-size: 0.7rem;
    border-radius: 12px;
    min-height: auto;
  }

  .devlog-chip-separator {
    display: none; /* Hide separator on mobile */
  }

  /* Legacy support - hide old hero/filters if present */
  .devlog-hero {
    display: none !important;
  }
  .devlog-filters-wrapper {
    display: none !important;
  }

  /* ─────────────────────────────────────────────────────────────────────────
     DEVLOG ENTRIES - Timeline Feed Cards
     ───────────────────────────────────────────────────────────────────────── */
  .devlog-list {
    position: relative;
    padding-left: 20px;
  }

  /* Timeline line */
  .devlog-list::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-border) 100%);
    border-radius: 1px;
  }

  .devlog-entry {
    position: relative;
    padding: var(--space-md);
    margin: 0 0 var(--space-md);
    border-radius: 12px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
  }

  /* Timeline dot */
  .devlog-entry::before {
    content: '';
    position: absolute;
    left: -20px;
    top: var(--space-lg);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 2px solid var(--color-primary);
    z-index: 1;
  }

  /* Type-specific dot colors */
  .devlog-entry:has(.devlog-entry__type--technical)::before {
    border-color: var(--color-secondary);
  }

  .devlog-entry:has(.devlog-entry__type--video)::before {
    border-color: #f97316;
    background: #f97316;
  }

  .devlog-entry:has(.devlog-entry__type--update)::before {
    border-color: var(--color-primary);
  }

  .devlog-entry:active {
    transform: scale(0.98);
    background: var(--color-bg-hover);
  }

  /* Entry Header - Terminal Style */
  .devlog-entry__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
  }

  .devlog-entry__date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
  }

  .devlog-entry__type {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
  }

  .devlog-entry__type--update {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(0, 188, 212, 0.1);
  }

  .devlog-entry__type--technical {
    color: var(--color-secondary);
    border-color: var(--color-secondary);
    background: rgba(233, 30, 99, 0.1);
  }

  .devlog-entry__type--video {
    color: #f97316;
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.1);
  }

  /* Project Badge - Compact */
  .project-badge {
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
  }

  /* Entry Content */
  .devlog-entry__title,
  .devlog-entry__content h3 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-xs);
    color: var(--color-text);
  }

  .devlog-entry__excerpt,
  .devlog-entry__content p {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Video Entries - Full Width Player */
  .devlog-entry__video {
    margin: 0 calc(var(--space-md) * -1);
    margin-top: calc(var(--space-md) * -1);
    margin-bottom: var(--space-md);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
  }

  .devlog-entry__video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .devlog-entry__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
  }

  .devlog-entry__play svg {
    width: 24px;
    height: 24px;
    fill: white;
    margin-left: 3px;
  }

  .devlog-entry__video-player {
    margin: 0 calc(var(--space-md) * -1);
    margin-top: calc(var(--space-md) * -1);
    margin-bottom: var(--space-md);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    background: #000;
  }

  .devlog-entry__video-player video {
    width: 100%;
    border-radius: 0;
  }

  /* Fullscreen video - force landscape */
  video:fullscreen {
    object-fit: contain;
    width: 100%;
    height: 100%;
  }

  video:-webkit-full-screen {
    object-fit: contain;
    width: 100%;
    height: 100%;
  }

  /* Force landscape orientation in fullscreen */
  @media screen and (orientation: portrait) {
    video:fullscreen,
    video:-webkit-full-screen {
      transform: rotate(90deg);
      transform-origin: center center;
      width: 100vh;
      height: 100vw;
      position: fixed;
      top: 50%;
      left: 50%;
      margin-left: -50vh;
      margin-top: -50vw;
    }
  }

  /* ─────────────────────────────────────────────────────────────────────────
     PAPERS SECTION - Horizontal Scroll Cards
     ───────────────────────────────────────────────────────────────────────── */
  #papers {
    padding: var(--space-xl) 0;
  }

  #papers .section-header {
    text-align: left;
    margin-bottom: var(--space-md);
  }

  #papers .section-title {
    font-size: 1.25rem;
  }

  #papers .section-desc {
    font-size: 0.85rem;
    display: none; /* Hide on mobile */
  }

  .papers-grid {
    display: flex !important;
    gap: var(--space-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    margin: 0 calc(var(--mobile-gutter) * -1);
    padding: 0 var(--mobile-gutter);
    scrollbar-width: none;
  }

  .papers-grid::-webkit-scrollbar {
    display: none;
  }

  .paper-card {
    flex: 0 0 85%;
    min-width: 280px;
    scroll-snap-align: start;
    padding: var(--space-md);
    border-radius: 12px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
  }

  .paper-card:hover {
    transform: none;
  }

  .paper-card:active {
    transform: scale(0.98);
    background: var(--color-bg-hover);
  }

  .paper-card__meta {
    margin-bottom: var(--space-sm);
    gap: var(--space-sm);
  }

  .paper-card__date {
    font-size: 0.7rem;
  }

  .paper-card__title {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
    line-height: 1.3;
  }

  .paper-card__desc {
    font-size: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .paper-card__link {
    font-size: 0.75rem;
    margin-top: var(--space-sm);
  }

  /* ─────────────────────────────────────────────────────────────────────────
     NEWSLETTER - Compact Card
     ───────────────────────────────────────────────────────────────────────── */
  .newsletter-section {
    padding: var(--space-lg) 0;
  }

  .newsletter-box {
    padding: var(--space-lg);
    border-radius: 12px;
  }

  .newsletter-title {
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
  }

  .newsletter-text {
    font-size: 0.85rem;
    margin-bottom: var(--space-md);
  }

  .newsletter-form {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .newsletter-input {
    min-height: 44px;
    font-size: 16px;
  }

  /* Pagination - Simple Dots */
  .devlog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: var(--space-lg) 0;
  }

  .pagination-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    font-size: 0.75rem;
    font-family: var(--font-mono);
  }

  .pagination-btn.active {
    background: var(--color-primary);
    border-color: transparent;
    color: white;
  }

  /* ═══════════════════════════════════════════════════════════════════════
     MOBILE NEWSLETTER
     ═══════════════════════════════════════════════════════════════════════ */
  .newsletter {
    padding: var(--space-xl);
    margin: 0;
    border-radius: 12px;
  }

  .newsletter__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }

  .newsletter__title {
    font-size: 1.25rem;
  }

  .newsletter__text {
    font-size: 0.9rem;
  }

  .newsletter__form {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .newsletter__input {
    width: 100%;
    min-height: var(--touch-target-min);
    font-size: 16px; /* Prevent zoom on iOS */
    text-align: center;
  }

  .newsletter-box {
    margin: 0;
    border-radius: 12px;
    padding: var(--space-xl);
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-input {
    font-size: 16px;
    min-height: var(--touch-target-min);
  }

  /* ═══════════════════════════════════════════════════════════════════════
     MOBILE FOOTER
     ═══════════════════════════════════════════════════════════════════════ */
  .footer {
    padding-bottom: calc(var(--space-xl) + var(--mobile-nav-height) + var(--mobile-safe-bottom));
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }

  .footer__brand {
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer__brand .logo {
    justify-content: center;
  }

  .footer__brand .logo span {
    display: inline; /* Show text in footer */
  }

  .footer__brand p {
    text-align: center;
  }

  .footer__nav {
    text-align: center;
  }

  .footer__nav h4 {
    font-size: 0.8rem;
    margin-bottom: var(--space-md);
  }

  .footer__nav li {
    margin-bottom: var(--space-sm);
  }

  .footer__nav a {
    font-size: 0.85rem;
    display: inline-block;
    padding: var(--space-xs) 0;
    min-height: 36px;
    line-height: 36px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
    padding-top: var(--space-lg);
  }

  .footer__social {
    gap: var(--space-sm);
  }

  .footer__social a {
    width: 44px;
    height: 44px;
  }

  /* ═══════════════════════════════════════════════════════════════════════
     MOBILE PRICING (LoreGuard)
     ═══════════════════════════════════════════════════════════════════════ */
  .pricing-tabs {
    display: flex;
    flex-direction: row;
    gap: 0;
    justify-content: stretch;
    padding: 0;
    margin: 0 0 var(--space-lg);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
  }

  .pricing-tabs::-webkit-scrollbar {
    display: none;
  }

  .pricing-tab {
    flex: 1;
    padding: var(--space-md) var(--space-sm);
    font-size: 0.75rem;
    min-width: 0;
    white-space: nowrap;
    border: none;
    border-radius: 0;
    background: transparent;
    border-right: 1px solid var(--color-border);
  }

  .pricing-tab:last-child {
    border-right: none;
  }

  .pricing-tab.active {
    background: var(--color-primary);
    color: white;
    border-color: transparent;
  }

  .pricing-grid {
    display: block !important;
    margin-top: var(--space-md);
  }

  .pricing-card {
    padding: var(--space-lg);
  }

  .pricing-card__name {
    font-size: 1.1rem;
  }

  .pricing-card__price {
    font-size: 1.75rem;
  }

  .pricing-card__desc {
    font-size: 0.85rem;
  }

  .pricing-card__features li {
    font-size: 0.8rem;
  }

  .audience-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-md);
  }

  .audience-card {
    padding: var(--space-lg);
    text-align: left !important;
  }

  .audience-card__icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
  }

  .audience-card__title {
    font-size: 1rem;
  }

  .audience-card__text {
    font-size: 0.85rem;
  }

  /* LoreGuard sections - consistent spacing */
  #problem, #why-local, #solution, #audience, #how-it-works, #requirements, #pricing, #steam-integration {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-xl);
  }

  /* Override inline grid-template-columns for features */
  .features-grid[style*="repeat(4"] {
    grid-template-columns: 1fr !important;
  }

  /* LoreGuard features with text icons [DOC], [CIT], [STATE], [VER] */
  .features-grid[style*="repeat(4"] .feature {
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
  }

  .features-grid[style*="repeat(4"] .feature__icon {
    width: auto !important;
    min-width: 56px;
    height: auto;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    font-weight: 600;
    white-space: nowrap;
  }

  .features-grid[style*="repeat(4"] .feature__title {
    text-align: center;
    font-size: 1rem;
  }

  .features-grid[style*="repeat(4"] .feature__text {
    text-align: center;
  }

  /* LoreGuard architecture diagram - horizontal scroll */
  #steam-integration pre {
    font-size: 0.5rem !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Hide desktop code snippets on mobile */
  .code-snippet-desktop {
    display: none !important;
  }

  /* Show mobile alternative for code */
  .code-snippet-mobile {
    display: block !important;
  }

  /* Also hide ASCII architecture diagram on mobile - too wide */
  #steam-integration .animate-fade-in-up:has(pre) {
    display: none;
  }

  /* Hide ALL scroll indicators on mobile - override inline styles */
  .section-scroll,
  .hero__scroll,
  [class*="scroll-indicator"],
  [class*="__scroll"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  /* NPC Marketplace Preview - Smaller on mobile */
  .hero__content > .animate-fade-in-up.delay-4 {
    padding: var(--space-sm) var(--space-md) !important;
    margin-top: var(--space-lg) !important;
  }

  .hero__content > .animate-fade-in-up.delay-4 > div {
    flex-direction: column !important;
    gap: var(--space-xs) !important;
    text-align: center;
  }

  .hero__content > .animate-fade-in-up.delay-4 span[style*="font-size: 1.1rem"] {
    font-size: 0.9rem !important;
  }

  .hero__content > .animate-fade-in-up.delay-4 span[style*="font-size: 0.9rem"] {
    font-size: 0.75rem !important;
  }

  .hero__content > .animate-fade-in-up.delay-4 a {
    font-size: 0.75rem !important;
  }

  /* ═══════════════════════════════════════════════════════════════════════
     MOBILE MERGED PRICING CAROUSEL
     ═══════════════════════════════════════════════════════════════════════ */

  /* Hide tabs and panels when merged carousel is active */
  .pricing-tabs {
    display: none !important;
  }

  .pricing-panel {
    display: none !important;
  }

  /* Merged carousel wrapper */
  .mobile-pricing-merged {
    margin-top: var(--space-md);
  }

  .mobile-pricing-merged .mobile-carousel__dots {
    justify-content: center;
    gap: 6px;
    padding: 0 0 var(--space-sm);
  }

  .mobile-pricing__category {
    position: relative;
    display: inline-block;
    width: 100%;
  }

  .mobile-pricing__category::before,
  .mobile-pricing__category::after {
    content: '─';
    color: var(--color-border);
    margin: 0 var(--space-sm);
  }

  .mobile-carousel--pricing {
    margin: 0 calc(var(--mobile-gutter) * -1);
    width: calc(100% + var(--mobile-gutter) * 2);
  }

  .mobile-carousel--pricing .mobile-carousel__slide {
    padding: 0 var(--mobile-gutter);
  }

  .mobile-carousel--pricing .pricing-card {
    margin: 0;
    min-height: 480px; /* Match Live card height */
    display: flex;
    flex-direction: column;
  }

  /* Bundle and Enterprise cards need more height for their features */
  .mobile-carousel--pricing .mobile-carousel__slide:nth-last-child(-n+2) .pricing-card {
    min-height: 580px;
  }

  .mobile-carousel--pricing .pricing-card__features {
    flex-grow: 1;
  }

  .mobile-carousel--pricing .pricing-card .btn {
    margin-top: auto;
  }

  .mobile-carousel--pricing .pricing-card__badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
  }

  .mobile-carousel--pricing .mobile-carousel__dots {
    padding: var(--space-md) 0 0;
  }

  /* FAQ panels in carousel */
  .mobile-carousel--pricing .faq-panel {
    display: block !important;
    min-height: 480px;
    border-radius: 8px;
  }

  /* Hide FAQ tabs wrapper on mobile */
  .faq-tabs {
    display: none !important;
  }

  /* ═══════════════════════════════════════════════════════════════════════
     MOBILE POST/ARTICLE
     ═══════════════════════════════════════════════════════════════════════ */
  .post__header {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
  }

  .post__meta {
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .post__title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    line-height: 1.2;
  }

  .post__excerpt {
    font-size: 0.95rem;
  }

  .post__content {
    font-size: 0.95rem;
  }

  .post__content h2 {
    font-size: 1.25rem;
    margin-top: var(--space-xl);
  }

  .post__content h3 {
    font-size: 1.1rem;
  }

  .post__content pre {
    margin: var(--space-md) 0;
    border-radius: 8px;
    padding: var(--space-md);
    font-size: 0.75rem;
    overflow-x: auto;
  }

  .post__content table {
    font-size: 0.8rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .breadcrumb {
    font-size: 0.8rem;
    padding-top: var(--space-lg);
    margin-bottom: var(--space-md);
    overflow-x: auto;
    white-space: nowrap;
  }

  /* Back to devlog link - ensure not hidden under bottom nav */
  .btn[href="/devlog/"],
  a.btn[href*="devlog"] {
    margin-bottom: calc(var(--mobile-nav-height) + var(--space-xl));
  }

  /* ═══════════════════════════════════════════════════════════════════════
     NETSHELL MOBILE SPECIFICS
     ═══════════════════════════════════════════════════════════════════════ */
  .netshell-hero__title {
    font-size: clamp(3rem, 15vw, 6rem);
    letter-spacing: 0.05em;
  }

  .netshell-hero__tagline {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-xl);
  }

  .netshell-hero__status {
    font-size: 0.75rem;
    padding: var(--space-xs) var(--space-md);
  }

  .ascii-frame {
    display: none; /* Hide ASCII frames on mobile */
  }

  .crt-overlay {
    opacity: 0.5; /* Reduce CRT effect on mobile */
  }

  /* Screenshots grid */
  .screenshots-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .screenshot figcaption {
    font-size: 0.7rem;
    padding: var(--space-sm) var(--space-md);
  }

  /* Lightbox mobile */
  .lightbox__nav {
    padding: var(--space-sm) var(--space-md);
    font-size: 1.5rem;
  }

  .lightbox__nav--prev {
    left: var(--space-xs);
  }

  .lightbox__nav--next {
    right: var(--space-xs);
  }

  .lightbox__close {
    top: var(--space-sm);
    right: var(--space-md);
    font-size: 2rem;
  }

  .lightbox__caption {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
  }

  .lightbox__counter {
    font-size: 0.7rem;
  }

  /* Papers list */
  .papers-list {
    gap: var(--space-sm);
  }

  .paper-item {
    grid-template-columns: 36px 1fr 20px;
    gap: var(--space-md);
    padding: var(--space-md);
  }

  .paper-item__icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .paper-item__content h4 {
    font-size: 0.9rem;
  }

  .paper-item__content p {
    font-size: 0.8rem;
  }

  /* ═══════════════════════════════════════════════════════════════════════
     MOBILE ANIMATIONS - Optimized for Performance
     ═══════════════════════════════════════════════════════════════════════ */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }

  /* Simplify animations on mobile */
  .animate-fade-in-up {
    animation-duration: 0.4s;
  }

  .hero__logo {
    animation: none; /* Disable floating on mobile */
  }

  /* Matrix rain - disable on mobile for performance */
  .matrix-rain {
    display: none;
  }

  /* ═══════════════════════════════════════════════════════════════════════
     MOBILE LEGAL PAGES
     ═══════════════════════════════════════════════════════════════════════ */
  .legal-page {
    padding: var(--space-xl) 0;
  }

  .legal-page h1 {
    font-size: 1.75rem;
  }

  .legal-page h2 {
    font-size: 1.25rem;
  }

  .legal-page h3 {
    font-size: 1.1rem;
  }

  .legal-page p,
  .legal-page li {
    font-size: 0.9rem;
  }

  /* ═══════════════════════════════════════════════════════════════════════
     MOBILE UTILITY OVERRIDES
     ═══════════════════════════════════════════════════════════════════════ */
  .mt-2xl { margin-top: var(--space-xl); }
  .mt-3xl { margin-top: var(--space-2xl); }
  .mb-2xl { margin-bottom: var(--space-xl); }

  /* ═══════════════════════════════════════════════════════════════════════
     DEBATER PAGE MOBILE
     ═══════════════════════════════════════════════════════════════════════ */
  .debater-hero__title {
    font-size: clamp(2rem, 12vw, 3.5rem);
  }

  /* ═══════════════════════════════════════════════════════════════════════
     FLOATING ACTION BUTTON (FAB) - Optional CTA
     ═══════════════════════════════════════════════════════════════════════ */
  .mobile-fab {
    position: fixed;
    bottom: calc(var(--mobile-nav-height) + var(--mobile-safe-bottom) + var(--space-md));
    right: var(--mobile-gutter);
    width: 56px;
    height: 56px;
    background: var(--color-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px var(--color-primary-glow), 0 4px 20px var(--color-secondary-glow);
    z-index: calc(var(--z-sticky) - 1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .mobile-fab:active {
    transform: scale(0.95);
  }

  .mobile-fab svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
  }

  /* ═══════════════════════════════════════════════════════════════════════
     PULL TO REFRESH STYLE INDICATOR (Visual Only)
     ═══════════════════════════════════════════════════════════════════════ */
  .pull-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-primary);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: var(--z-overlay);
  }

  .pull-indicator.visible {
    transform: translateY(0);
  }

} /* End @media (max-width: 768px) */

/* ═══════════════════════════════════════════════════════════════════════════
   SMALL MOBILE (< 380px) - Extra compact adjustments
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 380px) {
  :root {
    --mobile-gutter: 16px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .netshell-hero__title {
    font-size: 2.5rem;
  }

  .mobile-nav__item {
    font-size: 0.6rem;
  }

  .mobile-nav__icon {
    width: 20px;
    height: 20px;
    font-size: 0.9rem;
  }

  .btn {
    font-size: 0.8rem;
    padding: var(--space-sm) var(--space-md);
  }

  .feature {
    flex-direction: column;
    text-align: center;
  }

  .feature__icon {
    margin: 0 auto var(--space-sm);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LANDSCAPE MOBILE - Adjusted for horizontal viewing
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) and (orientation: landscape) {
  .section--hero {
    min-height: 100vh;
    padding: var(--space-xl) 0;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .netshell-hero__title {
    font-size: 4rem;
  }

  .hero__actions {
    flex-direction: row;
    gap: var(--space-md);
  }

  .hero__actions .btn {
    width: auto;
    min-width: 140px;
  }

  .hero__scroll {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ULTRA-COMPACT - For iPhone 14 Pro (393px) and smaller
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 400px) {
  :root {
    --mobile-gutter: 16px;
  }

  html {
    font-size: 14px;
  }

  .hero__title {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .hero__subtitle {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .section-title {
    font-size: clamp(1.125rem, 5vw, 1.375rem);
  }

  .section-subtitle {
    font-size: 0.75rem;
  }

  .mobile-carousel .project-card {
    height: 280px;
  }

  .mobile-carousel .project-card__desc {
    font-size: 0.75rem;
    -webkit-line-clamp: 3;
  }

  .hero__actions .btn {
    font-size: 0.8rem;
    padding: var(--space-sm) var(--space-md);
  }
}
