@media (min-width: 1023px) {
  .mobile {
    display: none;
  }
}

@media screen and (max-width: 1366px) {
  .container {
    max-width: 1200px;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .review-ball {
    right: 700px;
    top: 180px
  }
}

@media screen and (max-width: 1280px) {
  .container {
    max-width: 1140px;
  }
  .footer-grid {
    gap: var(--space-6);
  }
  .testimonial-card__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 1024px) { 
  /* .container {
    max-width: 960px;
  } */
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  .hero {
    padding: 150px 0 100px;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .social-header {
    /* margin-right: 15%; */
    display: none;
  }
  .review-ball {
    right: 500px;
    top: 120px;
    transform: scale(0.9);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  .company-card {
    position: relative;
  }
  .swipe-label {
    display: block;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 15px;
    color: #ff6600;
  }
  /* .companies-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 1fr);
  } */
}

@media (max-width: 960px){
  .companies-grid {
    display: flex;
    flex-wrap: wrap;
  }

  .company-card{
    flex: 0 0 40%;
  }
}

@media screen and (max-width: 960px) {
  
  .desktop {
    display: none;
  }
  /* .container {
    max-width: 720px;
  } */
  .hero-content {
    max-width: 600px;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .section-header h2 {
    font-size: 1.8rem;
  }
  .section-header p {
    font-size: 1rem;
  }
  .testimonial-card__list {
    grid-template-columns: 1fr;
  }
  .testimonial-card-small-viewport-list-wrapper {
    display: block;
  }
  .testimonial-card-list-wrapper {
    display: none;
  }
}

@media screen and (min-width: 481px) and (max-width: 1024px) {
  .company-card {
    width: 60%;
    position: relative;
  }
  .swipe-label {
    display: block;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 10px;
    color: #ff6600;
  }
}

@media screen and (min-width: 769px) and (max-width: 1028px) {
  .footer-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--space-10);
    justify-content: space-between;
  }
  .footer-about {
    flex: 2;
  }
  .footer-links, .footer-contact, .newsletter {
    flex: 1;
  }
  .cont h4 {
    margin-left: 0;
  }
  .footer-about h3 {
    margin-left: 0;
    font-size: 2rem;
  }
  .footer-about p {
    max-width: 90%;
  }
  .footer-contact p {
    justify-content: flex-start;
  }
  .newsletter form {
    max-width: 100%;
  }
  .social-links {
    justify-content: flex-start;
    margin-top: var(--space-8);
  }
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    padding: var(--space-6) 0;
  }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
  .footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-8);
    justify-content: space-between;
  }
  .footer-about, .footer-links {
    flex: 1 1 45%;
  }
  .footer-contact, .newsletter {
    flex: 1 1 45%;
  }
  .cont h4 {
    margin-left: 0;
  }
  .footer-about h3 {
    margin-left: 0;
    font-size: 1.75rem;
  }
  .contact-div h4 {
    display: flex;
    align-items: flex-start;
  }
  .footer-links ul {
    gap: var(--space-4);
  }
  .social-links {
    justify-content: flex-start;
    margin-top: var(--space-8);
  }
  .footer-bottom {
    justify-content: space-between;
    font-size: 0.875rem;
  }
}

@media (max-width: 768px) {
  /* .container {
    max-width: 540px;
  } */
  .social-header {
    font-size: 20px;
  }
  .social-header span {
    margin-right: 40%;
    display: none;
  }
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  h3 {
    font-size: 1.3rem;
  }
  .hero {
    padding: 120px 0 80px;
  }
  .hero-content h1 {
    font-size: 1.8rem;
  }
  .hero-content p {
    font-size: 0.9rem;
  }
  .review-ball {
    display: none;
  }
  .main-menu, .auth-buttons {
    display: none;
    gap: 10px;
  }
  .mobile-sidebar-toggle {
    display: flex;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .companies-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* grid-template-rows: repeat(2, 1fr); */
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }
  .footer-bottom-links {
    justify-content: center;
  }
  .option-button {
    width: 100%;
  }
  .prompt-options {
    flex-direction: column;
  }
  .options-grid {
    grid-template-columns: 1fr;
  }
  .tabs-header {
    flex-wrap: wrap;
  }
  .tab-button {
    padding: var(--space-2) var(--space-4);
  }
  .cta-buttons {
    flex-direction: column;
  }
  .btn-lg {
    width: 100%;
  }
  .company-card {
    width: 100%;
  }
  .auth-buttons {
    display: none;
  }
}

@media (max-width: 767px) {
  .hero-content h1 {
    margin-top: var(--space-8);
  }
  .partners-ticker {
    display: none;
  }
  .demo-container {
    margin-top: var(--space-20);
  }
}

@media screen and (max-width: 640px) {
  .container {
    padding: 0 var(--space-3);
  }
  .hero {
    padding: 100px 0 60px;
  }
  .hero-content h1 {
    font-size: 1.6rem;
  }
  .hero-content p {
    font-size: 0.85rem;
  }
  .section-header {
    margin-bottom: var(--space-8);
  }
  .section-header h2 {
    font-size: 1.6rem;
  }
  .section-header p {
    font-size: 0.9rem;
  }
  .company-card {
    margin-bottom: var(--space-4);
  }
  .company-header {
    padding: var(--space-3);
  }
  .company-body {
    padding: var(--space-3);
  }
  .company-footer {
    padding: var(--space-3);
    flex-direction: column;
    gap: var(--space-2);
  }
  .company-footer .btn {
    width: 100%;
  }
  .question-step {
    padding: var(--space-4);
  }
  .question-nav {
    flex-direction: column;
    gap: var(--space-3);
  }
  .back-btn, .next-btn, .submit-btn {
    width: 100%;
  }
  .popular-searches {
    flex-wrap: wrap;
  }
  .popular-searches a {
    margin: var(--space-1);
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.2rem;
    margin-top: 10px;
  }
  .hero {
    padding: 90px 0 50px;
  }
  .hero-content h1 {
    font-size: 1.4rem;
  }
  .hero-content p {
    font-size: 0.8rem;
  }
  .search-box input {
    font-size: 0.9rem;
  }
  .search-btn {
    padding: 0 var(--space-3);
  }
  .search-btn svg {
    width: 20px;
    height: 20px;
  }
  .company-header img {
    width: 50px;
    height: 50px;
  }
  .rating {
    font-size: 1rem;
  }
  .stars svg {
    width: 14px;
    height: 14px;
  }
  .company-body h3 {
    font-size: 1.1rem;
  }
  .badge {
    font-size: 0.65rem;
    padding: 1px 6px;
  }
  .company-description {
    font-size: 0.8rem;
  }
  .btn-outline-sm, .btn-primary-sm {
    font-size: 0.8rem;
    padding: var(--space-1) var(--space-3);
  }
  .btn-icon svg {
    width: 16px;
    height: 16px;
  }
  .logo img {
    height: 30px;
  }
  .logo h1 {
    font-size: 1rem;
  }
  .mobile-sidebar-content {
    width: 85%;
  }
  .company-card {
    position: relative;
  }
  .review-ball {
    display: none;
    position: absolute;
    left: 0px;
    top: 100px;
    transform: scale(0.8);
  }
  .company-card {
    margin-bottom: var(--space-4);
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    background-color: var(--bg-primary);
    transition: transform 0.3s ease;
  }
  .swipe-label {
    display: block;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 10px;
    color: #ff6600;
  }
  .footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
    justify-content: space-between;
  }
  .footer-about, .footer-links, .footer-contact, .newsletter {
    flex: 1 1 45%;
    padding-bottom: var(--space-6);
  }
  .footer-about h3 {
    margin-left: 45%;
  }
  .contact-div h4 {
    display: flex;
    align-items: flex-start;
  }
  .footer-about h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
  }
  .footer-about p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-6);
    line-height: 1.8;
  }
  .footer-links h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--brand-white);
  }
  .footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-4);
  }
  .footer-links ul li a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-normal);
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-3);
  }
  .footer-links ul li a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--brand-primary);
    transition: width var(--transition-normal);
  }
  .footer-links ul li a:hover {
    color: var(--brand-primary);
    transform: translateX(5px);
  }
  .footer-links ul li a:hover::after {
    width: 100%;
  }
  .footer-contact p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-4);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-3);
  }
  .contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--brand-primary);
  }
  .contact-icon svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
  }
  .footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-normal);
  }
  .footer-contact a:hover {
    color: var(--brand-primary);
  }
  .newsletter {
    margin-top: var(--space-6);
  }
  .newsletter form {
    display: flex;
    margin-top: var(--space-3);
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }
  .newsletter input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--brand-white);
    font-size: 0.875rem;
  }
  .newsletter input:focus {
    outline: none;
  }
  .newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.5);
  }
  .newsletter button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0 var(--space-4);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .newsletter button svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
  }
  .newsletter button:hover {
    background: var(--gradient-secondary);
  }
  .social-links {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-6);
  }
  .social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    color: var(--brand-white);
  }
  .social-links a svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
  }
  .social-links a:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
    transform: translateY(-5px);
  }
  .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-4);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
  }
  .footer-bottom-links {
    display: flex;
    gap: var(--space-4);
  }
  .footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-normal);
  }
  .footer-bottom-links a:hover {
    color: var(--brand-primary);
  }
}

@media screen and (max-width: 375px) {
  .container {
    padding: 0 var(--space-2);
  }
  .hero {
    padding: 80px 0 40px;
  }
  .hero-content h1 {
    font-size: 1.3rem;
  }
  .hero-content p {
    font-size: 0.75rem;
  }
  .search-box input {
    padding: 0.8rem 1rem;
  }
  .company-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
  .company-rating {
    text-align: left;
  }
  .option-card .option-content {
    padding: var(--space-2);
    min-height: 60px;
  }
  .option-title {
    font-size: 0.85rem;
  }
  .btn {
    padding: var(--space-2) var(--space-4);
    font-size: 0.9rem;
  }
  .logo h1 {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 320px) {
  .hero-content h1 {
    font-size: 1.2rem;
  }
  .hero-content p {
    font-size: 0.7rem;
  }
  .search-box input {
    padding: 0.7rem 0.9rem;
    font-size: 0.8rem;
  }
  .search-btn svg {
    width: 18px;
    height: 18px;
  }
  .company-header img {
    width: 40px;
    height: 40px;
  }
  .company-body h3 {
    font-size: 1rem;
  }
  .badge {
    font-size: 0.6rem;
    padding: 1px 4px;
  }
  .btn-outline-sm, .btn-primary-sm {
    font-size: 0.75rem;
    padding: var(--space-1) var(--space-2);
  }
  .btn-icon svg {
    width: 14px;
    height: 14px;
  }
  .logo h1 {
    font-size: 0.85rem;
  }
  .logo {
    display: flex;
    align-items: center;
    gap: var(--space-1);
  }
}

@media (orientation: landscape) and (max-height: 600px) {
  .hero {
    padding: 70px 0 40px;
  }
  .hero-content h1 {
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
  }
  .hero-content p {
    margin-bottom: var(--space-2);
  }
  .partners-ticker {
    margin: 1rem 0;
  }
  .ticker-item {
    height: 40px;
  }
  .mobile-sidebar-content {
    padding-top: var(--space-4);
  }
  .mobile-sidebar-nav ul {
    gap: var(--space-1);
  }
  .mobile-sidebar-nav ul li a {
    padding: var(--space-1) 0;
  }
}

.swipeable-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.swipeable-wrapper {
  display: flex;
  transition: transform 0.3s ease;
}

.swipe-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.swipe-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-medium);
  transition: all 0.3s ease;
}

.swipe-dot.active {
  background-color: var(--brand-primary);
  transform: scale(1.2);
}

.pull-indicator {
  position: fixed;
  top: -60px;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
}

.pull-indicator.active {
  opacity: 1;
}

.pull-indicator.ready .spinner {
  border-top-color: var(--success);
}

.pull-indicator.refreshing .spinner {
  animation: spin 1s linear infinite;
}

.pull-indicator .spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-light);
  border-top: 3px solid var(--brand-primary);
  border-radius: 50%;
  margin-right: 10px;
}

.pull-indicator span {
  font-size: 14px;
  color: var(--text-secondary);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

:root {
  --app-height: 100%;
}

html, body {
  height: 100vh;
  height: var(--app-height);
}

.touch-device {
  -webkit-overflow-scrolling: touch;
}

.is-mobile .hero-shape {
  display: none;
}

.is-mobile .animated-graphics {
  opacity: 0.3;
}

.is-mobile .glitch-text::before,
.is-mobile .glitch-text::after {
  display: none;
}

.reduce-motion * {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 30px;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all 0.25s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-sidebar-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-sidebar-toggle span {
  width: 30px;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all 0.25s ease;
}

.mobile-sidebar-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-sidebar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-sidebar-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-sidebar-overlay.active {
  opacity: 1;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

footer {
  position: relative;
  padding: var(--space-16) 0 var(--space-4);
  background-color: var(--brand-secondary);
  color: var(--brand-white);
  overflow: hidden;
}

.footer-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.footer-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.footer-shape.shape-1 {
  top: 20%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 102, 0, 0.05);
}

.footer-shape.shape-2 {
  bottom: 20%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
}