/* ─── Home page — mobile app polish ─── */

body.page-home .hero-cta-signin {
  display: none;
}

@media (max-width: 768px) {
  body.page-home .section {
    padding: 2.75rem 0;
    overflow-x: clip;
  }

  body.page-home .section-compact {
    padding-bottom: 2.5rem;
  }

  body.page-home .section-header {
    margin-bottom: 1.65rem;
  }

  body.page-home .section-header h2 {
    font-size: 1.42rem;
    line-height: 1.25;
    margin-bottom: 0.55rem;
  }

  body.page-home .section-header p {
    font-size: 0.88rem;
    line-height: 1.55;
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
  }

  body.page-home .section-label {
    font-size: 0.68rem;
    margin-bottom: 0.45rem;
    letter-spacing: 0.1em;
  }

  /* Hero */
  body.page-home .hero {
    padding: 1.5rem 0 2rem;
    text-align: center;
  }

  body.page-home .hero-split {
    padding: 0;
    gap: 1.35rem;
    text-align: center;
  }

  body.page-home .hero-split .hero-animate {
    order: 1;
  }

  body.page-home .hero-split .phone-mockup {
    order: 2;
  }

  body.page-home .hero-badge {
    font-size: 0.64rem;
    padding: 0.32rem 0.8rem;
    margin-bottom: 0.85rem;
    letter-spacing: 0.05em;
  }

  body.page-home .hero h1 {
    font-size: clamp(1.85rem, 7.5vw, 2.35rem);
    margin-bottom: 0.75rem;
    filter: none;
    line-height: 1.12;
  }

  body.page-home .hero-split .hero-sub {
    margin: 0 auto 1.35rem;
    max-width: none;
    font-size: 0.9rem;
    line-height: 1.58;
    padding: 0 0.15rem;
  }

  body.page-home .hero-split .hero-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    justify-content: stretch;
  }

  body.page-home .hero-cta .hero-cta-learn {
    display: none;
  }

  body.page-home .hero-cta .hero-cta-signin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.page-home .hero-cta .btn {
    width: 100%;
    min-height: 42px;
    padding: 0.55rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 12px;
    white-space: nowrap;
  }

  body.page-home .hero-cta .btn-glow {
    box-shadow: 0 2px 12px rgba(0, 242, 255, 0.22);
  }

  body.page-home .hero-glow-orb.cyan {
    width: 220px;
    height: 220px;
    opacity: 0.2;
    top: -40px;
  }

  body.page-home .hero-glow-orb.purple {
    width: 180px;
    height: 180px;
    opacity: 0.15;
    right: -10%;
  }

  body.page-home .phone-mockup {
    max-width: 230px;
    padding: 7px;
    border-radius: 26px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 24px rgba(0, 242, 255, 0.12);
  }

  body.page-home .phone-screen {
    min-height: 300px;
    padding: 1rem;
    border-radius: 20px;
  }

  body.page-home .phone-balance {
    font-size: 1.3rem;
    margin: 0.35rem 0 0.85rem;
  }

  body.page-home .phone-actions {
    gap: 0.45rem;
    margin-bottom: 1rem;
  }

  body.page-home .phone-action {
    padding: 0.55rem 0.35rem;
    border-radius: 10px;
    font-size: 0.62rem;
  }

  body.page-home .phone-action strong {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
  }

  /* Stats — app metric tiles */
  body.page-home #features.section {
    padding-top: 0;
    padding-bottom: 2rem;
  }

  body.page-home .stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
  }

  body.page-home .stats-bar-item {
    padding: 0.85rem 0.6rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    text-align: center;
  }

  body.page-home .stats-bar-item .num {
    font-size: 1.22rem;
    font-weight: 800;
  }

  body.page-home .stats-bar-item .lbl {
    font-size: 0.66rem;
    line-height: 1.3;
    margin-top: 0.2rem;
  }

  /* Showcase */
  body.page-home .trading-showcase {
    padding-top: 0;
  }

  body.page-home .showcase-split {
    gap: 1.25rem;
  }

  body.page-home .showcase-gallery {
    display: none;
  }

  body.page-home .showcase-content {
    text-align: center;
  }

  body.page-home .showcase-content h2 {
    font-size: 1.35rem;
    line-height: 1.25;
    margin-bottom: 0.65rem;
  }

  body.page-home .showcase-content p {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 0.85rem;
  }

  body.page-home .showcase-list {
    text-align: left;
    margin: 0 0 1.15rem;
    padding: 0.85rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
  }

  body.page-home .showcase-list li {
    font-size: 0.8rem;
    padding: 0.35rem 0;
  }

  body.page-home .showcase-content .btn {
    width: 100%;
    min-height: 44px;
    border-radius: 12px;
    font-size: 0.85rem;
  }

  /* Market cards — horizontal scroll */
  body.page-home .market-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    padding-bottom: 0.35rem;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  body.page-home .market-gallery::-webkit-scrollbar {
    display: none;
  }

  body.page-home .market-card {
    flex: 0 0 min(258px, 82%);
    scroll-snap-align: start;
    border-radius: 14px;
  }

  body.page-home .market-card:hover {
    transform: none;
    box-shadow: none;
  }

  body.page-home .market-card-body {
    padding: 0.9rem 1rem 1rem;
  }

  body.page-home .market-card-body h3 {
    font-size: 0.92rem;
    margin-bottom: 0.35rem;
  }

  body.page-home .market-card-body p {
    font-size: 0.76rem;
    line-height: 1.5;
  }

  /* Platform features — compact rows */
  body.page-home #platform .features-grid {
    gap: 0.55rem;
  }

  body.page-home #platform .feature-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 14px;
  }

  body.page-home #platform .feature-card:hover {
    transform: none;
    box-shadow: none;
  }

  body.page-home #platform .feature-icon {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
    margin-bottom: 0;
    flex-shrink: 0;
    border-radius: 10px;
  }

  body.page-home #platform .feature-card h3 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
  }

  body.page-home #platform .feature-card p {
    font-size: 0.76rem;
    line-height: 1.48;
  }

  /* Account plans — swipeable cards */
  body.page-home #accounts .features-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    margin: 0;
    padding: 0.25rem 0 0.5rem;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  body.page-home #accounts .features-grid::-webkit-scrollbar {
    display: none;
  }

  body.page-home #accounts .feature-card {
    flex: 0 0 min(272px, 86%);
    scroll-snap-align: center;
    padding: 1.15rem 1.1rem;
    border-radius: 14px;
  }

  body.page-home #accounts .feature-card:hover {
    transform: none;
    box-shadow: var(--shadow-glow);
  }

  body.page-home #accounts .feature-card h3 {
    font-size: 1rem;
  }

  body.page-home #accounts .feature-card p[style*="font-size:2rem"] {
    font-size: 1.65rem !important;
    margin-bottom: 0.65rem !important;
  }

  body.page-home #accounts .feature-card > p:not([style*="font-size:2rem"]) {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  body.page-home #accounts .feature-card .btn {
    margin-top: 1rem !important;
    min-height: 42px;
    border-radius: 12px;
    font-size: 0.8rem;
  }

  /* How it works — compact step list */
  body.page-home .steps-grid {
    gap: 0.5rem;
  }

  body.page-home .step-card {
    text-align: left;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    border-radius: 12px;
  }

  body.page-home .step-num {
    margin: 0;
    width: 32px;
    height: 32px;
    font-size: 0.82rem;
    flex-shrink: 0;
  }

  body.page-home .step-card h3 {
    font-size: 0.88rem;
    margin-bottom: 0.15rem;
  }

  body.page-home .step-card p {
    font-size: 0.74rem;
    line-height: 1.45;
  }

  /* Testimonials */
  body.page-home .testimonials-carousel {
    padding: 0 0 1.5rem;
  }

  body.page-home .testimonial-card {
    padding: 1.15rem 1.1rem;
    border-radius: 14px;
  }

  /* Crypto news — compact carousel for easier page scrolling */
  body.page-home .crypto-news-section {
    padding-top: 2rem;
  }

  body.page-home .crypto-news-home-meta {
    margin-bottom: 0.65rem;
  }

  body.page-home .crypto-news-carousel {
    padding: 0 0 0.85rem;
    margin: 0;
    max-width: 100%;
  }

  body.page-home .crypto-news-viewport {
    border-radius: 12px;
  }

  body.page-home .crypto-news-track {
    gap: 0.65rem;
    padding: 0.1rem 0.05rem 0.3rem;
  }

  body.page-home .crypto-news-item-carousel {
    flex: 0 0 min(200px, 100%);
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  }

  body.page-home .crypto-news-section .crypto-news-item-carousel:hover {
    transform: none;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  }

  body.page-home .crypto-news-item-carousel .crypto-news-thumb,
  body.page-home .crypto-news-item-carousel .crypto-news-thumb-fallback {
    height: 88px;
  }

  body.page-home .crypto-news-item-carousel .crypto-news-thumb-fallback {
    font-size: 1.35rem;
  }

  body.page-home .crypto-news-item-carousel .crypto-news-item-body {
    padding: 0.55rem 0.7rem 0.7rem;
  }

  body.page-home .crypto-news-section .crypto-news-item-carousel .crypto-news-source {
    font-size: 0.58rem;
    padding: 0.12rem 0.32rem;
  }

  body.page-home .crypto-news-item-carousel .crypto-news-title {
    font-size: 0.78rem;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    margin: 0.2rem 0 0.2rem;
  }

  body.page-home .crypto-news-section .crypto-news-item-carousel .crypto-news-summary {
    font-size: 0.7rem;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    margin-bottom: 0.2rem;
  }

  body.page-home .crypto-news-item-carousel .crypto-news-time {
    font-size: 0.64rem;
  }

  body.page-home .crypto-news-dots {
    margin-top: 0.45rem;
  }

  body.page-home .crypto-news-dots .carousel-dot {
    width: 5px;
    height: 5px;
  }

  /* Market overview */
  body.page-home .market-overview-card {
    border-radius: 14px;
  }

  body.page-home .market-overview-card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding: 0.85rem 1rem;
  }

  body.page-home .market-overview-brand {
    font-size: 0.82rem;
  }

  body.page-home .market-overview-updated {
    font-size: 0.68rem;
  }

  body.page-home .market-overview-table-wrap {
    max-height: 380px;
  }

  /* CTA banner */
  body.page-home .cta-banner-img {
    min-height: 240px;
    border-radius: 14px;
  }

  body.page-home .cta-banner-content {
    padding: 1.75rem 1.15rem;
  }

  body.page-home .cta-banner-content h2 {
    font-size: 1.32rem;
    line-height: 1.25;
    margin-bottom: 0.5rem;
  }

  body.page-home .cta-banner-content p {
    font-size: 0.86rem;
    line-height: 1.5;
    margin-bottom: 1.15rem;
  }

  body.page-home .cta-banner-content .hero-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    max-width: 100%;
    margin: 0 auto;
  }

  body.page-home .cta-banner-content .hero-cta .btn {
    width: 100%;
    min-height: 42px;
    padding: 0.55rem 0.5rem;
    font-size: 0.74rem;
    border-radius: 12px;
    white-space: nowrap;
  }

  /* Footer */
  body.page-home .footer {
    margin-top: 2rem;
    padding: 2rem 0 1.5rem;
  }

  body.page-home .footer-brand p {
    font-size: 0.82rem;
    line-height: 1.55;
  }
}

@media (max-width: 480px) {
  body.page-home .hero h1 {
    font-size: clamp(1.72rem, 8vw, 2rem);
  }

  body.page-home .hero-split .hero-cta,
  body.page-home .cta-banner-content .hero-cta {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }

  body.page-home .hero-cta .btn,
  body.page-home .cta-banner-content .hero-cta .btn {
    font-size: 0.72rem;
    padding: 0.5rem 0.4rem;
  }

  body.page-home .stats-bar-item .num {
    font-size: 1.12rem;
  }

  body.page-home .phone-mockup {
    max-width: 210px;
  }
}
