/* =========================
   RESPONSIVE
========================== */
@media (max-width: 1200px) {
  :root {
    --container: 1080px;
  }

  .hero {
    gap: 42px;
  }

  .dashboard {
    max-width: 470px;
  }

  .project-showcase {
    gap: 42px;
  }
}

@media (max-width: 1024px) {
  .navbar {
    height: 76px;
  }

  .nav-links {
    gap: 16px;
  }

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

  .hero {
    min-height: auto;
    padding: 135px 0 85px;
    grid-template-columns: 1fr;
    gap: 45px;
    text-align: center;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero h1 {
    max-width: 820px;
  }

  .hero-text {
    max-width: 690px;
  }

  .hero-visual {
    min-height: 500px;
    width: min(680px, 100%);
    margin: 0 auto;
  }

  .dashboard {
    width: min(520px, 88%);
    transform: none;
  }

  .uptime-card {
    left: 0;
  }

  .support-card {
    right: 0;
  }

  .split-heading,
  .request-section,
  .project-showcase {
    grid-template-columns: 1fr;
  }

  .split-heading {
    gap: 10px;
  }

  .split-heading > p {
    max-width: 680px;
  }

  .request-section {
    gap: 55px;
  }

  .support-preview,
  .request-copy {
    width: min(680px, 100%);
    margin-inline: auto;
  }

  .request-copy {
    text-align: center;
  }

  .check-list {
    width: fit-content;
    margin: 28px auto 0;
    text-align: left;
  }

  .project-showcase {
    gap: 34px;
  }

  .project-copy {
    max-width: 700px;
  }

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

  .timeline .line {
    display: none;
  }

  .step {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.018);
  }
}

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

  .nav-actions {
    margin-left: auto;
  }

  .language-switch {
    height: 36px;
    padding-inline: 8px;
  }

  .menu-toggle {
    display: block;
    margin-left: 0;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    right: 20px;
    left: 20px;
    visibility: hidden;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(17, 10, 27, 0.97);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-10px);
    transition: 0.25s ease;
  }

  .nav-links.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 14px 12px;
    border-radius: 10px;
    font-size: 14px;
  }

  .nav-links a:hover {
    background: rgba(168, 85, 247, 0.07);
  }

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

  .compare-grid {
    max-width: 680px;
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 600px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .navbar {
    height: 68px;
  }

  .brand-main {
    font-size: 20px;
  }

  .brand-sub {
    font-size: 7px;
  }

  .nav-links {
    top: 62px;
    right: 14px;
    left: 14px;
  }

  .hero {
    padding: 112px 0 60px;
    gap: 28px;
  }

  .eyebrow {
    padding: 8px 10px;
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .hero h1 {
    margin-top: 18px;
    font-size: clamp(44px, 14vw, 60px);
    line-height: 1;
    letter-spacing: -0.045em;
  }

  .hero-text {
    margin: 20px 0 24px;
    font-size: 15px;
    line-height: 1.65;
  }

  .hero-actions {
    width: 100%;
    gap: 10px;
  }

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

  .hero-trust {
    margin-top: 20px;
    justify-content: center;
    gap: 8px 12px;
    font-size: 10px;
  }

  .hero-visual {
    min-height: 400px;
    width: 100%;
  }

  .orb {
    width: 270px;
    height: 270px;
  }

  .dashboard {
    width: 100%;
    padding: 14px;
    border-radius: 20px;
  }

  .dashboard-top {
    padding-bottom: 16px;
  }

  .dashboard-top h3 {
    font-size: 16px;
  }

  .metric {
    padding: 10px;
    grid-template-columns: 34px 1fr auto;
    gap: 9px;
  }

  .metric-icon {
    width: 34px;
    height: 34px;
  }

  .metric strong {
    font-size: 12px;
  }

  .pill {
    padding: 4px 6px;
    font-size: 8px;
  }

  .request-box {
    padding: 13px;
  }

  .request-box p {
    font-size: 12px;
  }

  .float-card {
    padding: 9px 10px;
    transform: scale(0.88);
  }

  .uptime-card {
    top: -4%;
    left: -2%;
  }

  .support-card {
    right: -2%;
    bottom: -2%;
  }

  .section {
    padding: 78px 0;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading h2,
  .request-copy h2,
  .cta-inner h2 {
    font-size: clamp(34px, 10vw, 42px);
    letter-spacing: -0.04em;
  }

  .section-heading p,
  .request-copy > p,
  .cta-inner > p {
    font-size: 14px;
  }

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

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

  .feature-icon {
    margin: 30px 0 20px;
  }

  .service-card {
    min-height: 175px;
    padding: 21px;
  }

  .service-top {
    margin-bottom: 36px;
  }

  .request-section {
    gap: 38px;
  }

  .chat-window {
    border-radius: 20px;
  }

  .chat-header {
    padding: 15px;
  }

  .chat-body {
    min-height: 315px;
    padding: 20px 14px;
  }

  .bubble {
    max-width: 86%;
    font-size: 12px;
  }

  .chat-input {
    margin: 0 14px 14px;
  }

  .check-list {
    width: 100%;
  }

  .check-list li {
    font-size: 13px;
  }

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

  .step {
    padding: 20px;
  }

  .project-showcase {
    padding: 20px;
    border-radius: 22px;
  }

  .project-carousel-viewport {
    border-radius: 22px;
  }

  .project-carousel-controls {
    margin-top: 14px;
    grid-template-columns: auto 1fr auto auto;
    gap: 8px;
  }

  .project-nav-button {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .project-copy h3 {
    font-size: 30px;
  }

  .project-tags {
    gap: 6px;
  }

  .browser-mockup {
    border-radius: 14px;
    transform: none;
  }

  .browser-address {
    font-size: 7px;
  }

  .mock-site {
    min-height: 285px;
    padding: 16px;
  }

  .mock-hero {
    padding: 45px 0 34px;
  }

  .mock-hero h4 {
    font-size: 29px;
  }

  .real-estate-mockup {
    min-height: 285px;
  }

  .real-estate-mock-nav {
    height: 44px;
    padding-inline: 14px;
  }

  .real-estate-mock-nav span {
    width: 18px;
  }

  .real-estate-mock-hero {
    min-height: 175px;
    padding: 24px 18px 18px;
  }

  .real-estate-mock-hero h4 {
    margin-bottom: 13px;
    font-size: 25px;
  }

  .real-estate-mock-cards {
    padding: 11px 14px;
    gap: 7px;
  }

  .real-estate-mock-cards div {
    min-height: 48px;
    padding: 5px;
  }

  .real-estate-mock-cards span {
    height: 22px;
  }

  .mock-nav span {
    width: 18px;
  }

  .compare-card {
    min-height: auto;
    padding: 22px;
  }

  .compare-title h3 {
    font-size: 21px;
  }

  .recommended {
    top: 16px;
    right: 16px;
  }

  .cta-section {
    padding: 95px 0;
  }

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

  .footer {
    padding-top: 55px;
  }

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

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    line-height: 1.5;
  }

  .contact-panel {
    padding: 20px 16px 26px;
  }

  .contact-panel-head {
    gap: 12px;
  }

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

  .contact-close {
    width: 38px;
    height: 38px;
  }

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

  .need-options span {
    min-height: 44px;
    justify-content: flex-start;
  }

  .noise {
    display: none;
  }

  .bg-glow,
  .cta-glow,
  .orb {
    filter: blur(65px);
  }

  .nav-wrap.scrolled,
  .nav-links,
  .dashboard,
  .float-card,
  .contact-overlay {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .contact-overlay {
    background: rgba(5, 3, 9, 0.72);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

  .language-switch {
    gap: 5px;
    padding-inline: 7px;
  }

  .lang-btn {
    font-size: 9px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-visual {
    min-height: 365px;
  }

  .float-card {
    display: none;
  }

  .dashboard {
    border-radius: 18px;
  }

  .metric {
    grid-template-columns: 32px 1fr;
  }

  .metric .pill {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
  }

  .section-heading h2,
  .request-copy h2,
  .cta-inner h2 {
    font-size: 32px;
  }

  .project-showcase {
    padding: 16px;
  }

  .project-carousel-viewport {
    border-radius: 20px;
  }

  .project-carousel-status {
    display: none;
  }

  .project-carousel-controls {
    grid-template-columns: auto 1fr auto;
  }

  .project-copy h3 {
    font-size: 27px;
  }

  .mock-hero h4 {
    font-size: 25px;
  }

  .bg-glow {
    opacity: 0.08;
  }

  .orb {
    opacity: 0.38;
  }
}

@media (hover: none), (pointer: coarse) {
  .btn:hover,
  .feature-card:hover,
  .service-card:hover {
    transform: none;
  }

  .service-arrow {
    opacity: 1;
    transform: none;
  }

  .feature-card,
  .service-card,
  .btn,
  .contact-close {
    transition-duration: 0.15s;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Safe fallback for browsers without content-visibility */
@supports not (content-visibility: auto) {
  .services-section,
  .request-section,
  .process-section,
  #projects,
  .compare-section,
  .cta-section,
  .footer {
    content-visibility: visible;
  }
}
