/* ==========================================================================
   BotForge Landing Page Styles V2 (Robust Vertical Layout - Dark Theme)
   ========================================================================== */

.landing-container-v2 {
  width: 100%;
  background-color: #111827; /* Match login page left pane */
  background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
  background-size: 400px;
  background-repeat: repeat;
  background-attachment: fixed;
  background-blend-mode: soft-light; /* Subtle integration */
  color: #f8fafc;
  overflow-x: hidden;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}

.v2-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.v2-section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #ffffff;
}

/* Navbar V2 */
.v2-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 1000;
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  height: 100%;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
}

.v2-nav .logo-container {
  height: 100%;
  display: flex;
  align-items: center;
  min-width: 0;
  margin-bottom: 0;
}

.v2-nav .brand-logo-image {
  width: auto;
  max-width: 100%;
  height: 54px;
  max-height: 54px;
  object-fit: contain;
  transform: none;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 2.6vw, 34px);
  min-width: 0;
}

.nav-links a {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #f8fafc;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.nav-actions .btn {
  min-height: 42px;
  min-width: 82px;
  padding: 0 16px;
  line-height: 1;
  white-space: nowrap;
}

.nav-actions .btn-get-started {
  min-width: 128px;
}

.landing-container-v2 .btn {
  color: #ffffff !important;
}

.landing-container-v2 .btn-secondary {
  border-color: rgba(255, 255, 255, 0.2);
}

.landing-container-v2 .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Hero V2 */
.v2-hero {
  padding: 180px 0 120px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-left-content {
  text-align: left;
}

.hero-bg-glow {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 32px;
  color: #38bdf8;
}

.hero-main-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  line-height: 1.1;
  color: white;
}

.hero-lead {
  font-size: 1.25rem;
  color: #94a3b8;
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 24px;
}

.crypto-accept {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4ec9b0;
  font-weight: 700;
  font-size: 14px;
  background: rgba(78, 201, 176, 0.1);
  padding: 6px 16px;
  border-radius: 8px;
}

/* Phone Mockup */
.phone-mockup {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.phone-frame {
  width: 100%;
  height: 640px;
  background: #000;
  border-radius: 40px;
  padding: 10px;
  border: 4px solid #1e293b;
  box-shadow: 0 50px 100px rgba(0,0,0,0.6);
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #1c2431;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Telegram Style */
.telegram-header {
  height: 56px;
  background: #242f3d;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  color: white;
  flex-shrink: 0;
}

.tg-back i { width: 20px; height: 20px; }

.tg-user {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-grow: 1;
}

.tg-avatar {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
}

.tg-name {
  display: flex;
  flex-direction: column;
}

.tg-name span { font-weight: 600; font-size: 14px; line-height: 1.2; }
.tg-name small { font-size: 11px; color: #38bdf8; }

.tg-actions i { width: 18px; height: 18px; opacity: 0.7; }

.telegram-chat {
  flex-grow: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  background-color: #0e1621;
  background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
  background-size: 400px;
  background-blend-mode: overlay;
}

.chat-date {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.3);
  padding: 2px 12px;
  border-radius: 12px;
  width: fit-content;
  margin: 0 auto 4px;
}

.msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14.5px;
  font-family: 'Share Tech Mono', monospace;
  line-height: 1.4;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.msg.bot {
  background: #182533;
  color: white;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.msg.user {
  background: #2b5278;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.inline-btn {
  margin-top: 10px;
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  font-weight: 700;
  font-size: 11px;
}

.msg.typing {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
}

.msg.typing span {
  width: 5px;
  height: 5px;
  background: #94a3b8;
  border-radius: 50%;
  animation: tg-typing 1.4s infinite;
}

@keyframes tg-typing {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

.telegram-input {
  height: 52px;
  background: #242f3d;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 14px;
  color: #94a3b8;
  flex-shrink: 0;
}

.fake-input { flex-grow: 1; font-size: 14px; color: rgba(255,255,255,0.4); }

/* Bento Grid */
.v2-features {
  padding: 100px 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 24px;
  margin-top: 60px;
}

.bento-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.bento-card:hover {
  border-color: #38bdf8;
  transform: translateY(-5px);
}

.bento-lg {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.bento-icon {
  width: 48px;
  height: 48px;
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}

.bento-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: white;
}

.bento-card p {
  color: #94a3b8;
  line-height: 1.6;
}

/* Workflow */
.v2-workflow {
  padding: 100px 0;
  background: rgba(15, 23, 42, 0.3);
}

.workflow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.steps-list {
  display: flex;
  flex-direction: column; gap: 40px; margin-top: 48px;
}

.step-item {
  display: flex; gap: 24px;
}

.step-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: #38bdf8; color: #0f172a; display: grid; place-items: center; font-weight: 800; flex-shrink: 0;
}

.step-item h4 { font-size: 1.25rem; margin-bottom: 8px; color: white; }
.step-item p { color: #94a3b8; }

.visual-card {
  background: #1e293b; border: 1px solid rgba(56, 189, 248, 0.2); border-radius: 20px; padding: 32px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.card-line { height: 8px; background: rgba(255,255,255,0.05); border-radius: 4px; margin-bottom: 16px; width: 100%; }
.card-line.short { width: 60%; }
.card-action {
  margin-top: 32px; padding: 12px; background: #38bdf8; color: #0f172a; border-radius: 8px;
  text-align: center; font-weight: 700; animation: pulse-op 2s infinite;
}

@keyframes pulse-op { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

/* Pricing V2 */
.v2-pricing {
  padding: 120px 0;
}

.pricing-header { text-align: center; margin-bottom: 64px; }

.v2-pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 450px)); justify-content: center; gap: 32px;
}

.v2-price-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 32px;
  padding: 48px;
  position: relative;
}

.v2-price-card.popular {
  border-color: #38bdf8;
  box-shadow: 0 20px 50px rgba(56, 189, 248, 0.1);
}

.p-badge {
  position: absolute; top: 24px; right: 24px; background: #38bdf8; color: #0f172a;
  padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase;
}

.p-name { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; color: white; }
.p-amount { font-size: 3.5rem; font-weight: 800; margin-bottom: 8px; color: white; }
.p-period { font-size: 1rem; color: #94a3b8; font-weight: 500; }
.p-desc { color: #94a3b8; margin-bottom: 32px; line-height: 1.5; }

.p-features { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.p-features li { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; color: #f1f5f9; }
.p-features li i { color: #38bdf8; width: 18px; }

.landing-container-v2 .logo-text {
  color: #ffffff !important;
}

/* Marketing Home Refresh */
.marketing-home + .v2-hero,
.marketing-home + .v2-hero + .v2-features,
.marketing-home + .v2-hero + .v2-features + .v2-workflow,
.marketing-home + .v2-hero + .v2-features + .v2-workflow + .v2-pricing {
  display: none;
}

.marketing-home {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(14, 22, 33, 0.98));
}

.marketing-hero {
  padding: 140px 0 88px;
}

.hero-copy {
  max-width: 920px;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: #f8fafc;
  font-weight: 600;
  margin: -12px 0 18px;
  max-width: 760px;
}

.marketing-hero .hero-lead {
  margin-bottom: 34px;
}

.studio-preview {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  min-height: 420px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.preview-sidebar,
.preview-assistant {
  background: rgba(17, 24, 39, 0.92);
  padding: 20px;
}

.preview-sidebar {
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  color: #94a3b8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  font-size: 13px;
}

.preview-pill.active {
  color: #f8fafc;
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.1);
}

.preview-pill i,
.marketing-card > i,
.runtime-item > i,
.debug-points i,
.audience-list i {
  width: 18px;
  height: 18px;
  color: #38bdf8;
  flex-shrink: 0;
}

.preview-editor {
  min-width: 0;
  background: #0e1621;
}

.preview-tabs {
  display: flex;
  min-height: 46px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(17, 24, 39, 0.74);
}

.preview-tabs span {
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  color: #94a3b8;
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 13px;
}

.preview-tabs .active {
  color: #f8fafc;
  background: #0e1621;
  border-top: 2px solid #38bdf8;
}

.preview-editor pre {
  margin: 0;
  padding: 24px;
  overflow: auto;
  min-height: 374px;
  color: #c4b5fd;
  font: 13px/1.75 'Fira Code', Consolas, monospace;
}

.preview-assistant {
  border-left: 1px solid rgba(148, 163, 184, 0.12);
}

.assistant-header,
.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f8fafc;
  font-weight: 700;
  margin-bottom: 18px;
}

.context-row,
.context-stack div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  color: #94a3b8;
}

.context-row strong,
.context-stack strong {
  color: #4ec9b0;
  white-space: nowrap;
}

.assistant-note,
.debug-response {
  margin-top: 20px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.16);
  color: #cbd5e1;
  line-height: 1.6;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.hero-metrics div,
.marketing-card,
.runtime-item,
.debug-panel,
.deploy-timeline,
.final-cta-inner {
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(30, 41, 59, 0.58);
}

.hero-metrics div {
  padding: 18px;
}

.hero-metrics strong {
  display: block;
  font-size: 1.55rem;
  color: #ffffff;
}

.hero-metrics span {
  display: block;
  color: #94a3b8;
  margin-top: 4px;
}

.audience-strip,
.marketing-features,
.marketing-ai,
.marketing-runtime,
.marketing-workflow,
.marketing-pricing,
.final-cta {
  padding: 96px 0;
}

.audience-strip,
.marketing-ai,
.marketing-workflow {
  background: rgba(15, 23, 42, 0.34);
}

.audience-grid,
.debug-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 56px;
  align-items: center;
}

.audience-copy p,
.section-lead,
.debug-copy p,
.runtime-header p,
.pricing-header p,
.final-cta p {
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 760px;
}

.audience-list,
.debug-points {
  display: grid;
  gap: 14px;
}

.audience-list div,
.debug-points div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #dbeafe;
  padding: 14px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.marketing-grid,
.runtime-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.marketing-card,
.runtime-item {
  padding: 26px;
}

.marketing-card.wide {
  grid-column: span 2;
}

.marketing-card h3,
.runtime-item h3 {
  color: #ffffff;
  font-size: 1.15rem;
  margin: 18px 0 10px;
}

.marketing-card p,
.runtime-item p {
  color: #94a3b8;
  line-height: 1.65;
}

.debug-panel {
  padding: 28px;
}

.debug-response strong {
  color: #ffffff;
}

.debug-response p {
  color: #cbd5e1;
  margin-top: 8px;
  line-height: 1.6;
}

.runtime-header,
.pricing-header {
  text-align: center;
}

.runtime-header .section-lead,
.pricing-header p {
  margin: 0 auto;
}

.marketing-workflow .workflow-grid {
  align-items: start;
}

.deploy-timeline {
  padding: 24px;
  display: grid;
  gap: 14px;
}

.deploy-timeline div {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 4px 14px;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
}

.deploy-timeline span {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  font-weight: 800;
}

.deploy-timeline strong {
  color: #ffffff;
}

.deploy-timeline small {
  color: #94a3b8;
}

.final-cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 40px;
}

.final-cta .v2-section-title {
  margin-bottom: 12px;
}

/* Footer V2 Redesign */
.v2-footer {
  padding: 100px 0 60px;
  background: rgba(15, 23, 42, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.footer-brand p {
  margin-top: 24px;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 300px;
}

.footer-column h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: #38bdf8;
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748b;
  font-size: 13px;
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-socials a {
  color: #64748b;
  transition: color 0.2s;
}

.footer-socials a:hover {
  color: white;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand {
    grid-column: span 2;
    text-align: center;
  }
  .footer-brand .logo-container {
    justify-content: center;
  }
  .footer-brand p {
    margin: 20px auto;
  }
}

/* Scroll Animations */
.animate-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.animate-in.visible { opacity: 1; transform: translateY(0); }
/* Responsive */
@media (max-width: 1024px) {
  .nav-container {
    grid-template-columns: 220px 1fr auto;
    gap: 18px;
    padding: 0 24px;
  }

  .v2-nav .brand-logo-image {
    width: 180px;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .nav-actions .btn {
    min-width: 74px;
    padding: 0 12px;
  }

  .nav-actions .btn-get-started {
    min-width: 116px;
  }

  .hero-grid { gap: 40px; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-lg { grid-column: span 2; }
  .workflow-grid { grid-template-columns: 1fr; gap: 48px; }
  .v2-pricing-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }

  .studio-preview {
    grid-template-columns: 180px 1fr;
  }

  .preview-assistant {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
  }

  .hero-metrics,
  .marketing-grid,
  .runtime-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audience-grid,
  .debug-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .v2-nav .nav-links { display: none; }
  .nav-container {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0 20px;
    gap: 14px;
  }

  .v2-nav .brand-logo-image {
    width: 170px;
    max-height: 50px;
  }

  .hero-grid { 
    grid-template-columns: 1fr; 
    text-align: center; 
    gap: 48px;
    padding-top: 40px;
  }

  .hero-left-content { text-align: center; }
  .hero-lead { margin: 0 auto 40px; }
  .hero-btns { justify-content: center; }

  .phone-mockup { 
    max-width: 260px; 
    transform: scale(0.9);
    margin-top: 20px;
  }
  .phone-frame { height: 520px; } /* Slightly shorter for mobile */

  .bento-grid { grid-template-columns: 1fr; }
  .bento-lg, .bento-md, .bento-sm { grid-column: span 1; }
  .v2-hero { padding: 120px 0 60px; }

  .v2-section-title { font-size: 2rem; }

  .footer-top { flex-direction: column; gap: 32px; text-align: center; }
  .footer-links { justify-content: center; }

  .marketing-hero {
    padding: 116px 0 64px;
  }

  .hero-copy,
  .marketing-hero .hero-lead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .studio-preview {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .preview-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  }

  .preview-editor pre {
    min-height: 300px;
    font-size: 12px;
  }

  .hero-metrics,
  .marketing-grid,
  .runtime-grid {
    grid-template-columns: 1fr;
  }

  .marketing-card.wide {
    grid-column: span 1;
  }

  .audience-strip,
  .marketing-features,
  .marketing-ai,
  .marketing-runtime,
  .marketing-workflow,
  .marketing-pricing,
  .final-cta {
    padding: 64px 0;
  }

  .final-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
  }

  .final-cta-inner .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btns .btn { width: 100%; }
  .nav-actions .btn-login-trigger { display: none; } /* Hide sign in text to save space */
  .v2-price-card { padding: 32px 24px; }

  .marketing-hero {
    padding-top: 104px;
  }

  .hero-main-title {
    font-size: 2.6rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .preview-tabs {
    overflow-x: auto;
  }

  .preview-tabs span {
    white-space: nowrap;
  }

  .deploy-timeline div {
    grid-template-columns: 1fr;
  }

  .deploy-timeline span {
    grid-row: auto;
  }
}

