.modal-backdrop[hidden],
.contact-form[hidden],
.form-success[hidden],
[hidden] {
  display: none !important;
}

.form-honeypot {
  display: none !important;
}

.hero-proof-mobile {
  display: none;
}

.comparison-list div {
  align-items: start;
}

.comparison-list p {
  margin-top: 0;
}

.comparison-list span {
  display: inline-flex;
  min-height: 1.72em;
  align-items: center;
  line-height: 1;
}

html {
  width: 100%;
  min-width: 0;
  font-size: 16px;
}

body,
#top {
  width: 100%;
  min-width: 0;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  font-size: 16px;
  line-height: 1.45;
}

.form-error {
  white-space: pre-wrap;
}

@media (min-width: 641px) {
  .modal-backdrop {
    padding: 0.75rem;
  }

  .contact-modal {
    width: min(620px, calc(100vw - 2rem));
    max-height: calc(100vh - 1.5rem);
    padding: 1rem 1.15rem;
  }

  .contact-form-heading {
    gap: 0.3rem;
    padding-right: 2.6rem;
  }

  .contact-form-heading h2 {
    font-size: 1.72rem;
    line-height: 1.04;
  }

  .contact-form-heading p {
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .contact-form,
  .form-success {
    gap: 0.68rem;
    margin-top: 0.82rem;
  }

  .contact-form label {
    gap: 0.28rem;
    font-size: 0.82rem;
  }

  .contact-form input,
  .contact-form select {
    min-height: 3rem;
    padding: 0.66rem 0.9rem;
  }

  .contact-form textarea {
    min-height: 6.2rem;
    max-height: 8rem;
    padding: 0.72rem 0.9rem;
  }

  .contact-form button {
    min-height: 3.05rem;
  }

  .form-error {
    font-size: 0.84rem;
    line-height: 1.45;
  }
}

@media (max-width: 1180px) {
  .hero-section,
  .final-cta,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    width: min(100% - 2rem, 980px);
    min-height: auto;
    padding-top: 7.25rem;
  }

  .hero-copy {
    max-width: 58rem;
    margin: 0 auto;
    text-align: center;
  }

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

  .hero-visual {
    width: 100%;
    max-width: 760px;
    min-height: 34rem;
    margin: 0 auto;
  }

  .impact-strip {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }

  .problem-grid,
  .service-grid,
  .project-grid,
  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .final-mockup {
    max-width: 760px;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding-right: 0.72rem;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .burger-button {
    z-index: 70;
    display: block;
    position: static;
    justify-self: end;
  }

  .dashboard-mockup {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    min-height: 0;
  }

  .hero-dashboard-shell {
    width: min(100%, 44rem);
    transform: rotateX(5deg) rotateY(-4deg);
  }

  .floating-panel {
    min-width: 9.25rem;
    padding: 0.75rem;
  }

  .floating-panel strong {
    font-size: 1.35rem;
  }

  .dashboard-sidebar {
    padding: 0.7rem;
  }

  .dashboard-sidebar span {
    padding: 0.5rem 0.42rem;
    font-size: 0.62rem;
  }

  .dashboard-main {
    padding: 0.7rem;
  }

  .dashboard-topbar,
  .dashboard-metrics > div,
  .dashboard-chart,
  .dashboard-feed {
    padding: 0.72rem;
  }

  .dashboard-topbar strong {
    font-size: 1rem;
  }

  .dashboard-metrics,
  .dashboard-grid {
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .dashboard-metrics strong {
    font-size: 1.05rem;
  }

  .dashboard-chart {
    height: 5.8rem;
  }

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

@media (max-width: 640px) {
  html {
    scroll-padding-top: 5rem;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    width: calc(100vw - 1.3rem);
    top: 0.65rem;
    left: 0.65rem;
    right: auto;
    gap: 0.65rem;
    padding: 0.62rem;
  }

  .brand strong {
    max-width: 54vw;
    font-size: 0.9rem;
  }

  .brand span {
    width: 2.25rem;
    height: 2.25rem;
  }

  .hero-section {
    gap: 2rem;
    width: min(100% - 1.25rem, 1280px);
    min-height: auto;
    padding-top: 6.2rem;
    padding-bottom: 3.5rem;
  }

  .hero-copy {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .hero-copy h1 {
    font-size: 2.2rem;
    line-height: 1.02;
    letter-spacing: 0;
  }

  .hero-copy p {
    width: min(100%, 100vw - 1.25rem);
    max-width: 100%;
    font-size: 0.96rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }

  .hero-actions,
  .hero-proof {
    display: grid;
  }

  .hero-proof span {
    min-width: 0;
    text-align: center;
  }

  .hero-visual {
    min-height: auto;
    padding: 0.5rem 0 0.25rem;
    overflow: hidden;
  }

  .command-grid,
  .hero-orbit,
  .floating-panel {
    display: none;
  }

  .hero-dashboard-shell {
    width: min(100%, 23.5rem);
    transform: none;
  }

  .impact-strip {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-top: 0;
  }

  .primary-action,
  .secondary-action,
  .final-action {
    width: 100%;
  }

  .content-section {
    padding-top: 3.75rem;
    padding-bottom: 3.75rem;
  }

  .section-title {
    font-size: 2.1rem;
    letter-spacing: 0;
  }

  .section-subtitle {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .problem-grid,
  .service-grid,
  .feature-grid,
  .project-grid,
  .tech-grid {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }

  .dashboard-mockup {
    grid-template-columns: 4.6rem minmax(0, 1fr);
    border-radius: 1.25rem;
  }

  .dashboard-logo {
    width: 2rem;
    height: 2rem;
    border-radius: 0.65rem;
  }

  .dashboard-sidebar span {
    font-size: 0.52rem;
  }

  .dashboard-topbar > span,
  .dashboard-feed {
    display: none;
  }

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

  .dashboard-metrics > div:last-child {
    grid-column: 1 / -1;
  }

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

  .dashboard-table > div {
    padding: 0.58rem 0.65rem;
    font-size: 0.6rem;
  }

  .project-mockup {
    height: 12rem;
    transform: none;
  }

  .contact-modal {
    width: calc(100vw - 1.25rem);
    max-height: calc(100vh - 1rem);
    border-radius: 1.25rem;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    padding: 0.82rem 0.9rem;
  }

  .hero-proof-desktop {
    display: none;
  }

  .hero-proof-mobile {
    counter-reset: proof-card;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    width: 100%;
    margin-top: -0.35rem;
  }

  .hero-proof-mobile span {
    counter-increment: proof-card;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 4.15rem;
    align-items: center;
    gap: 0.58rem;
    border: 1px solid rgba(109, 247, 206, 0.18);
    border-radius: 1rem;
    background:
      linear-gradient(135deg, rgba(109, 247, 206, 0.12), rgba(82, 215, 255, 0.055)),
      rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.22;
    padding: 0.78rem;
    text-align: left;
  }

  .hero-proof-mobile span::before {
    content: counter(proof-card, decimal-leading-zero);
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 0.7rem;
    background: rgba(109, 247, 206, 0.16);
    color: #6df7ce;
    font-size: 0.72rem;
    font-weight: 950;
  }
}

@media (max-width: 380px) {
  .brand strong {
    max-width: 48vw;
  }

  .hero-copy h1 {
    font-size: 1.92rem;
  }

  .hero-proof-mobile {
    grid-template-columns: 1fr;
  }

  .hero-proof-mobile span {
    min-height: 3.6rem;
  }
}

@media (max-width: 640px) {
  body {
    background:
      radial-gradient(circle at 82% 10%, rgba(82, 215, 255, 0.13), transparent 18rem),
      radial-gradient(circle at 14% 24%, rgba(109, 247, 206, 0.1), transparent 18rem),
      linear-gradient(135deg, #06110f 0%, #0b1715 52%, #06100f 100%);
  }

  #top {
    background:
      radial-gradient(circle at 80% 8%, rgba(82, 215, 255, 0.16), transparent 19rem),
      radial-gradient(circle at 18% 30%, rgba(109, 247, 206, 0.1), transparent 18rem),
      linear-gradient(135deg, #06110f 0%, #0b1715 50%, #06100f 100%);
  }

  .glow-blob {
    opacity: 0.26;
  }

  .site-header {
    background: linear-gradient(90deg, rgba(24, 40, 37, 0.94), rgba(10, 19, 17, 0.92)), #0a1311;
  }

  .hero-section {
    gap: 1.25rem;
    padding-top: 5.85rem;
    padding-bottom: 2.4rem;
  }

  .hero-copy h1 {
    max-width: 12ch;
    font-size: 2rem;
    line-height: 1.03;
  }

  .hero-copy p {
    margin-top: 1rem;
    font-size: 0.92rem;
    line-height: 1.58;
  }

  .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 1.3rem;
  }

  .hero-actions .primary-action,
  .hero-actions .secondary-action {
    width: auto;
    min-width: 0;
    min-height: 3rem;
    border-radius: 0.9rem;
    padding-inline: 1rem;
    font-size: 0.82rem;
    text-align: center;
  }

  .primary-action,
  .secondary-action {
    min-height: 3rem;
    border-radius: 0.9rem;
    padding-inline: 1rem;
  }

  .hero-visual {
    min-height: 20.5rem;
    margin-top: 0.15rem;
    padding: 0.2rem 0 0;
    overflow: visible;
  }

  .command-grid {
    display: block;
    inset: 10% -10% -12%;
    opacity: 0.34;
    transform: rotateX(64deg) translateY(10%);
  }

  .hero-orbit {
    display: block;
    inset: 4% 0;
    opacity: 0.7;
  }

  .hero-orbit-two {
    inset: 13% 12%;
  }

  .hero-dashboard-shell {
    width: min(100%, 22rem);
    animation: dashboardBreath 6.5s ease-in-out infinite;
    transform: rotateX(8deg) rotateY(-10deg) rotate(1deg);
  }

  .hero-visual .dashboard-mockup {
    min-height: 19.25rem;
    box-shadow: 0 34px 110px rgba(0, 0, 0, 0.55), 0 0 70px rgba(109, 247, 206, 0.16);
  }

  .hero-visual .dashboard-table {
    display: none;
  }

  .hero-visual .dashboard-chart {
    height: 4.6rem;
  }

  .floating-panel {
    display: block;
    min-width: 0;
    border-radius: 0.85rem;
    padding: 0.58rem 0.68rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07)), rgba(7, 18, 16, 0.72);
  }

  .floating-panel span {
    font-size: 0.64rem;
  }

  .floating-panel strong {
    margin-top: 0.2rem;
    font-size: 1.08rem;
  }

  .floating-panel p {
    display: none;
  }

  .floating-panel-sales {
    top: 0.9rem;
    left: -0.15rem;
  }

  .floating-panel-stock {
    top: 3.7rem;
    right: -0.2rem;
  }

  .floating-panel-auto {
    bottom: 0.15rem;
    left: 0.85rem;
  }

  .hero-proof-mobile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.2rem;
  }

  .hero-proof-mobile span {
    display: block;
    min-height: 0;
    border-radius: 999px;
    padding: 0.5rem 0.58rem;
    background: rgba(255, 255, 255, 0.075);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.69rem;
    line-height: 1.2;
    text-align: center;
  }

  .hero-proof-mobile span::before {
    display: none;
  }

  .impact-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 0.4rem;
  }

  .impact-strip div {
    border-radius: 0.85rem;
    padding: 0.58rem 0.48rem;
  }

  .impact-strip strong {
    font-size: 0.92rem;
    line-height: 1.15;
  }

  .impact-strip span {
    font-size: 0.66rem;
    line-height: 1.25;
  }

  .content-section {
    padding: 3rem 0.9rem;
  }

  .section-kicker {
    font-size: 0.72rem;
  }

  .section-title {
    margin-top: 0.85rem;
    font-size: 1.88rem;
    line-height: 1.08;
  }

  .section-subtitle {
    margin-top: 0.85rem;
    font-size: 0.9rem;
    line-height: 1.58;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem;
  }

  .service-card {
    border-radius: 1rem;
    padding: 0.9rem;
  }

  .service-card > span {
    margin-bottom: 0.75rem;
  }

  .service-card h3 {
    font-size: 0.88rem;
    line-height: 1.2;
  }

  .service-card p,
  .project-card p,
  .timeline-step p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
  }

  .service-card p {
    -webkit-line-clamp: 2;
    font-size: 0.76rem;
    line-height: 1.42;
  }

  .comparison-grid,
  .project-grid,
  .timeline,
  .faq-list {
    margin-top: 1.55rem;
  }

  .comparison-panel,
  .project-card {
    border-radius: 1.1rem;
    padding: 1rem;
  }

  .comparison-list {
    gap: 0.62rem;
    margin-top: 1rem;
  }

  .comparison-list div:nth-child(n + 5) {
    display: none;
  }

  .project-grid {
    gap: 0.9rem;
  }

  .project-mockup {
    height: 8.5rem;
    margin-bottom: 0.9rem;
  }

  .project-mockup strong {
    font-size: 1.7rem;
  }

  .project-card p {
    -webkit-line-clamp: 3;
  }

  .tag-list {
    display: none;
  }

  .timeline:before {
    left: 1rem;
  }

  .timeline-step {
    grid-template-columns: 2.15rem 1fr;
    gap: 0.75rem;
  }

  .timeline-step > span {
    width: 2rem;
    height: 2rem;
    border-radius: 0.7rem;
  }

  .timeline-step > div {
    border-radius: 1rem;
    padding: 0.95rem;
  }

  .timeline-step p {
    -webkit-line-clamp: 2;
  }

  .faq-item {
    border-radius: 0.95rem;
    padding: 0.95rem;
  }

  .final-cta {
    gap: 1.2rem;
  }

  .final-mockup {
    display: none;
  }

  .footer {
    gap: 0.85rem;
    padding-block: 1.35rem;
  }
}

@media (max-width: 380px) {
  .floating-panel-auto {
    display: none;
  }

  .hero-visual {
    min-height: 19.2rem;
  }
}
