/* =========================================================
   NOVA — responsive rules
   ========================================================= */
@media (max-width: 1460px) {
  .dash {
    grid-template-columns: 222px minmax(0, 1fr) 352px;
  }

  .dash-content {
    padding-inline: 26px;
  }

  .dash-preview {
    padding-inline: 14px;
  }

  .phone-frame {
    width: min(100%, 290px);
  }
}

@media (max-width: 1300px) {
  .dash {
    grid-template-columns: 222px minmax(0, 1fr);
  }

  .dash-preview {
    display: none;
  }

  .hero {
    gap: 32px;
  }

  .hero-profile {
    width: min(100%, 370px);
  }

  .floating-chip {
    transform: scale(0.9);
  }

  .chip-free {
    left: -1%;
  }

  .chip-cursor {
    left: 1%;
  }

  .explore-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1120px) {
  .container {
    width: min(1220px, calc(100% - 40px));
  }

  .nav-links a {
    padding-inline: 10px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.88fr);
  }

  .hero h1 {
    font-size: clamp(50px, 6.4vw, 76px);
  }

  .hero-art {
    min-height: 560px;
  }

  .floating-chip {
    display: none;
  }

  .feature-card.large,
  .feature-card.medium {
    grid-column: span 6;
  }

  .feature-card.third {
    grid-column: span 4;
  }

  .split-section {
    gap: 48px;
  }

  .quote-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quote-card:last-child {
    display: none;
  }

  .faq-grid {
    gap: 50px;
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: grid;
  }

  .site-nav .nav-signin {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 62px;
    padding-bottom: 62px;
    min-height: auto;
  }

  .hero-copy {
    max-width: 620px;
    margin-inline: auto;
    text-align: center;
  }

  .hero-kicker {
    margin-inline: auto;
  }

  .hero h1 {
    font-size: clamp(54px, 9.5vw, 88px);
  }

  .hero-sub {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-trust {
    justify-content: center;
  }

  .hero-art {
    width: min(100%, 520px);
    margin-inline: auto;
    min-height: 600px;
  }

  .hero-profile {
    width: min(100%, 390px);
    transform: none;
    animation-name: hero-float-mobile;
  }

  @keyframes hero-float-mobile {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }

  .floating-chip {
    display: flex;
  }

  .chip-badges {
    right: 0;
  }

  .chip-cursor {
    left: -1%;
  }

  .chip-free {
    left: 0;
  }

  .section {
    padding: 94px 0;
  }

  .section-tight {
    padding: 72px 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 34px;
  }

  .feature-bento {
    grid-template-columns: repeat(6, 1fr);
  }

  .feature-card.large,
  .feature-card.medium {
    grid-column: span 6;
  }

  .feature-card.third {
    grid-column: span 3;
  }

  .template-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    min-height: 170px;
  }

  .step h3 {
    margin-top: 36px;
  }

  .split-section {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .editor-mock {
    max-width: 600px;
    width: 100%;
    margin-inline: auto;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-col:last-child {
    display: none;
  }

  .dash-sidebar {
    position: fixed;
    z-index: 110;
    top: 0;
    left: 0;
    width: 270px;
    transform: translateX(-104%);
    transition: transform 0.3s var(--ease);
    box-shadow: 24px 0 80px rgba(0, 0, 0, 0.5);
  }

  .dash.sidebar-open .dash-sidebar {
    transform: translateX(0);
  }

  .dash-sidebar-backdrop {
    position: fixed;
    z-index: 105;
    inset: 0;
    display: none;
    background: rgba(3, 3, 6, 0.65);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }

  .dash.sidebar-open .dash-sidebar-backdrop {
    display: block;
  }

  .dash {
    grid-template-columns: minmax(0, 1fr);
  }

  .dash-mobile-btn {
    display: grid;
  }

  .dash-close-mobile {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--muted);
  }

  .dash-close-mobile svg {
    width: 13px;
    height: 13px;
  }

  .dash-topbar {
    padding-inline: 20px;
  }

  .dash-content {
    padding: 28px 24px 90px;
  }

  .explore-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .profile-page.layout-split .profile-card {
    display: block;
    padding: 30px 24px 22px;
    text-align: center;
  }

  .profile-page.layout-split .profile-identity {
    align-items: center;
  }

  .profile-page.layout-split .profile-name-row,
  .profile-page.layout-split .profile-meta,
  .profile-page.layout-split .profile-badges,
  .profile-page.layout-split .profile-socials {
    justify-content: center;
  }

  .profile-page.layout-split .profile-avatar-wrap {
    margin-inline: auto;
  }

  .profile-page.layout-split .profile-bio {
    margin-inline: auto;
  }

  .profile-page.layout-split .profile-links {
    margin-top: 22px;
  }

  .profile-page.layout-wide .profile-links {
    grid-template-columns: 1fr;
  }

  .profile-page.layout-split .profile-discord {
    width: auto;
  }

  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .explore-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-field {
    width: 100%;
  }

  .filter-pills {
    width: fit-content;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col:last-child {
    display: block;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .field-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 32px);
  }

  .container-wide {
    width: calc(100% - 32px);
  }

  :root {
    --nav-height: 66px;
  }

  .nav-actions .btn-primary {
    min-height: 36px;
    padding-inline: 13px;
    font-size: 11px;
  }

  .nav-actions .btn-primary svg {
    display: none;
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-kicker {
    font-size: 9.5px;
  }

  .hero h1 {
    font-size: clamp(45px, 13vw, 68px);
  }

  .hero-sub {
    font-size: 13px;
    line-height: 1.7;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-inline: auto;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-handle {
    justify-content: center;
    margin: 5px 0 0;
  }

  .hero-trust {
    flex-direction: column;
    gap: 7px;
  }

  .hero-art {
    min-height: 540px;
  }

  .hero-profile {
    width: min(100%, 350px);
    padding: 20px;
  }

  .floating-chip {
    font-size: 8px;
    padding: 8px 10px;
  }

  .chip-badges {
    top: 4%;
    right: -4px;
  }

  .chip-cursor {
    bottom: 7%;
    left: -6px;
  }

  .chip-free {
    top: 19%;
    left: -4px;
  }

  .marquee-item {
    padding-block: 13px;
  }

  .section {
    padding: 76px 0;
  }

  .section-title {
    font-size: clamp(32px, 9vw, 46px);
  }

  .section-sub {
    font-size: 12.5px;
  }

  .feature-bento {
    grid-template-columns: 1fr;
  }

  .feature-card.large,
  .feature-card.medium,
  .feature-card.third {
    grid-column: span 1;
  }

  .feature-card {
    min-height: 240px;
    padding: 22px;
  }

  .feature-visual {
    right: 16px;
    bottom: 16px;
    transform: scale(0.9);
    transform-origin: bottom right;
  }

  .template-grid {
    grid-template-columns: 1fr;
  }

  .template-card,
  .template-content {
    min-height: 400px;
  }

  .quote-grid {
    grid-template-columns: 1fr;
  }

  .quote-card:last-child {
    display: flex;
  }

  .editor-mock-body {
    grid-template-columns: 1fr;
  }

  .editor-mock-panel:first-child {
    display: none;
  }

  .editor-mock-body {
    min-height: 330px;
  }

  .cta-section {
    padding-bottom: 80px;
  }

  .cta-card {
    padding: 60px 22px;
    border-radius: 24px;
  }

  .cta-card h2 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 300px;
    margin-inline: auto;
  }

  .cta-note {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    padding-bottom: 34px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .site-footer {
    padding-top: 42px;
  }

  .explore-page {
    padding-top: calc(var(--nav-height) + 48px);
  }

  .explore-header h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .explore-grid {
    grid-template-columns: 1fr;
  }

  .explore-card {
    min-height: 380px;
  }

  .profile-topbar {
    padding: 13px 14px;
  }

  .profile-brand .brand-word {
    display: none;
  }

  .profile-views {
    padding-inline: 8px;
  }

  .profile-cta-btn {
    padding-inline: 9px;
  }

  .profile-shell {
    padding: 82px 12px 142px;
  }

  .profile-card {
    padding: 27px 18px 22px;
    border-radius: min(var(--p-radius), 24px);
  }

  .profile-avatar-wrap {
    width: 94px;
    height: 94px;
    margin-bottom: 15px;
  }

  .profile-name {
    font-size: 32px;
  }

  .profile-bio {
    font-size: 11.5px;
  }

  .profile-link {
    min-height: 52px;
  }

  .profile-music {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
  }

  .profile-page.layout-split .profile-card {
    padding: 27px 18px 22px;
  }

  .profile-page.layout-wide .profile-shell,
  .profile-page.layout-split .profile-shell {
    width: 100%;
  }

  .profile-card-footer {
    font-size: 6.5px;
  }

  .modal {
    padding: 22px;
    border-radius: 18px;
  }

  .modal-head h2 {
    font-size: 22px;
  }

  .share-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .toast-root {
    left: 12px;
    right: 12px;
    bottom: 12px;
    align-items: stretch;
  }

  .toast {
    min-width: 0;
    max-width: none;
  }

  .dash-topbar {
    min-height: 58px;
    padding-inline: 14px;
  }

  .dash-top-actions .save-indicator {
    display: none;
  }

  .dash-top-actions .btn span {
    display: none;
  }

  .dash-top-actions .btn {
    width: 33px;
    padding: 0;
  }

  .dash-top-actions .btn svg {
    width: 14px;
    height: 14px;
  }

  .dash-top-actions .btn-primary span {
    display: inline;
  }

  .dash-top-actions .btn-primary {
    width: auto;
    padding-inline: 10px;
  }

  .dash-content {
    padding: 22px 14px 80px;
  }

  .editor-heading {
    flex-direction: column;
    gap: 14px;
  }

  .editor-heading h1 {
    font-size: 25px;
  }

  .editor-heading-actions {
    width: 100%;
  }

  .panel {
    padding: 17px;
    border-radius: 13px;
  }

  .field-grid,
  .field-grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .identity-editor {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .identity-fields {
    width: 100%;
    text-align: left;
  }

  .avatar-editor {
    width: 76px;
    height: 76px;
  }

  .social-edit-row {
    grid-template-columns: 106px minmax(0, 1fr) 30px;
  }

  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .layout-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .effect-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .badge-picker {
    grid-template-columns: repeat(2, 1fr);
  }

  .custom-badge-builder {
    grid-template-columns: 48px minmax(0, 1fr) 34px;
  }

  .custom-badge-builder .btn {
    grid-column: 1 / -1;
  }

  .color-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .chart-bars {
    gap: 4px;
    height: 120px;
  }

  .chart-labels {
    gap: 4px;
  }

  .dash-crumbs {
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .link-editor-row {
    gap: 7px;
  }

  .drag-handle {
    display: none;
  }

  .link-editor-actions .switch {
    display: none;
  }

  .mini-action.reorder {
    display: none;
  }

  .settings-row {
    align-items: flex-start;
  }

  .preview-modal-shell .phone-frame {
    height: min(72vh, 580px);
  }
}

@media (max-width: 500px) {
  .nav-actions .btn-primary {
    padding-inline: 10px;
    font-size: 10px;
  }

  .hero-kicker .new {
    display: none;
  }

  .hero h1 {
    font-size: clamp(42px, 13.7vw, 58px);
  }

  .hero-art {
    min-height: 505px;
  }

  .hero-profile {
    width: 100%;
    padding: 17px;
  }

  .hero-profile-bio {
    font-size: 10.5px;
  }

  .floating-chip {
    display: none;
  }

  .feature-card {
    min-height: 230px;
  }

  .feature-visual {
    opacity: 0.65;
  }

  .feature-card.third {
    min-height: 210px;
  }

  .section-title {
    font-size: 31px;
  }

  .profile-top-actions {
    gap: 5px;
  }

  .profile-cta-btn {
    display: none;
  }

  .profile-views {
    height: 31px;
    font-size: 8px;
  }

  .profile-icon-btn {
    width: 31px;
    height: 31px;
  }

  .profile-name {
    font-size: 29px;
  }

  .profile-card {
    padding-inline: 14px;
  }

  .profile-link {
    padding-inline: 9px;
  }

  .link-icon {
    width: 31px;
    height: 31px;
  }

  .profile-page.layout-wide .profile-shell,
  .profile-page.layout-split .profile-shell,
  .profile-shell {
    padding-top: 74px;
  }

  .profile-discord {
    padding: 8px;
  }

  .profile-music {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }

  .modal {
    padding: 19px;
    max-height: calc(100dvh - 24px);
  }

  .modal-backdrop {
    padding: 12px;
  }

  .share-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .editor-heading-actions {
    flex-wrap: wrap;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .stat-card {
    padding: 10px;
  }

  .stat-value {
    font-size: 21px;
  }

  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .effect-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .panel-head {
    gap: 9px;
  }

  .panel-head h2 {
    font-size: 14px;
  }

  .dash-top-actions .btn-primary span {
    display: none;
  }

  .dash-top-actions .btn-primary {
    width: 33px;
    padding: 0;
  }

  .dash-crumbs {
    font-size: 8px;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-layer {
    display: none !important;
  }

  body.custom-cursor-active,
  body.custom-cursor-active * {
    cursor: auto !important;
  }

  .profile-card {
    transform: none !important;
  }

  .profile-link:hover {
    transform: none;
  }

  .hero-profile {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-bg {
    transform: none;
  }

  .profile-card {
    transform: none !important;
  }

  .hero-profile {
    animation: none;
  }
}
