/* PCDOC Coming Soon - Professional Design System */
/* Matching main application 'app/globals.css' and 'app/(public)/public.css' */

:root {
  /* Brand Colors */
  --pcdoc-green: #84cc16; /* lime-500 */
  --pcdoc-green-bright: #a3e635; /* lime-400 */
  --pcdoc-green-dark: #4d7c0f; /* lime-700 */
  --pcdoc-green-muted: #65a30d; /* lime-600 */

  /* Neutral Palette */
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #111827;

  /* Typography */
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  /* Spacing & Radius */
  --container-max-width: 1280px;
  --radius-lg: 0.5rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;

  /* shadcn-like variables for circuit pattern */
  --primary: 84 81% 44%; /* #84cc16 */
  --primary-foreground: 0 0% 100%; /* #ffffff */

  /* Shadows */
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl:
    0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Layout Utilities */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* 
   ==========================================================================
   HERO SECTION (Green Gradient)
   ========================================================================== 
*/
.hero-section {
  background: linear-gradient(135deg, #9acd32 0%, #7cb342 100%);
  position: relative;
  overflow: hidden;
  padding: 2rem 0 6rem 0;
  min-height: 90vh; /* Full viewport height feeling */
  display: flex;
  flex-direction: column;
}

.circuit-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.6;
  pointer-events: none;
}

/* Navbar / Header inside Hero */
.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  margin-bottom: 4rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  color: white;
  line-height: 1;
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2px;
}

.status-pill {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Hero Content */
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  flex: 1;
}

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

.hero-subtitle-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  margin-bottom: 2rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.badge-text {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: white;
  margin-bottom: 2rem;
}

.hero-heading-sub {
  color: rgba(255, 255, 255, 0.95);
}

.hero-desc {
  font-size: 1.5rem;
  line-height: 1.6;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  max-width: 500px;
}

.hero-cta-group {
  display: flex;
  gap: 1.5rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  color: #7cb342;
  padding: 1.25rem 2.5rem;
  border-radius: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
  padding: 1.25rem 2.5rem;
  border-radius: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* Focus States for Accessibility */
.btn-hero-primary:focus-visible,
.btn-hero-outline:focus-visible {
  outline: 3px solid white;
  outline-offset: 2px;
}

.footer-link:focus-visible,
.contact-item:focus-visible {
  outline: 2px solid var(--pcdoc-green);
  outline-offset: 2px;
  border-radius: 4px;
}

.logo-link:focus-visible {
  outline: 2px solid white;
  outline-offset: 4px;
  border-radius: 8px;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 1rem 2rem;
  background: white;
  color: var(--pcdoc-green-dark);
  z-index: 9999;
  border-radius: 0.5rem;
  font-weight: 700;
}

/* Utility Classes */
.brand-doc-highlight {
  color: rgba(255, 255, 255, 0.9);
}

.brand-highlight {
  color: var(--pcdoc-green);
}

.icon-green {
  color: var(--pcdoc-green);
}

/* Right Side: Logo with Service Cards */
.hero-visual {
  position: relative;
  height: 600px;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Performance optimizations for mobile */
.hero-robot-logo {
  position: absolute;
  width: 420px;
  height: auto;
  z-index: 10;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
  animation: float-slow 6s ease-in-out infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  will-change: transform; /* Optimize for animations */
  backface-visibility: hidden; /* Prevent flickering */
}

/* Feature Cards - Large cards with icon, title and description */
.feature-card {
  position: absolute;
  background: white;
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  z-index: 15;
  max-width: 240px;
  transition: all 0.3s ease;
  will-change: transform; /* Optimize for hover animations */
  backface-visibility: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(
    135deg,
    var(--pcdoc-green-bright) 0%,
    var(--pcdoc-green) 100%
  );
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--gray-900);
  margin-bottom: 0.625rem;
}

.feature-desc {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* Card Positions */
.card-top-right {
  top: 20px;
  right: -40px;
  animation: float 5s ease-in-out infinite;
}

.card-bottom-left {
  bottom: 60px;
  left: -120px;
  animation: float 6s ease-in-out infinite 0.5s;
}

/*
   ==========================================================================
   DARK FOOTER SECTION
   ==========================================================================
*/
.footer-section {
  background-color: var(--gray-900);
  color: white;
  padding: 6rem 0 3rem 0;
  position: relative;
  margin-top: auto;
}

/* Footer Top Decoration */
.footer-top-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--pcdoc-green),
    var(--pcdoc-green-dark)
  );
}

.footer-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 30%;
  height: 30%;
  background: var(--pcdoc-green);
  filter: blur(120px);
  opacity: 0.05;
  border-radius: 50%;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

/* Footer Brand Column */
.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  color: white;
  line-height: 1;
}

.footer-desc {
  color: var(--gray-400);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-badges {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-300);
}

/* Footer Link Columns */
h3.footer-col-title,
.footer-col-title {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gray-500);
  margin-bottom: 2rem;
  margin-top: 0;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-link {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-link:hover {
  color: var(--pcdoc-green);
  transform: translateX(4px);
}

.dot-indicator {
  width: 6px;
  height: 6px;
  background: var(--gray-700);
  border-radius: 50%;
  transition: background 0.2s;
}

.footer-link:hover .dot-indicator {
  background: var(--pcdoc-green);
}

/* Footer Contact Column */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-decoration: none;
}

.contact-icon-box {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pcdoc-green);
  flex-shrink: 0;
  transition: all 0.3s;
}

.contact-item:hover .contact-icon-box {
  background: var(--pcdoc-green);
  color: white;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.625rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-bottom: 0.25rem;
}

.contact-value {
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  transition: color 0.2s;
}

.contact-item:hover .contact-value {
  color: var(--pcdoc-green);
}

/* Footer Bottom */
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gray-500);
}

.bottom-badges {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.bottom-badge {
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Animations */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.9);
  }
}

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

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

/* Circuit Pattern Animations */
@keyframes pulse-opacity {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}
@keyframes pulse-opacity-random {
  0%,
  100% {
    opacity: 0.3;
  }
  20% {
    opacity: 0.8;
  }
  40% {
    opacity: 0.4;
  }
  60% {
    opacity: 0.9;
  }
  80% {
    opacity: 0.5;
  }
}
@keyframes trace-dash {
  to {
    stroke-dashoffset: -100;
  }
}
@keyframes trace-dash-reverse {
  to {
    stroke-dashoffset: 100;
  }
}

.pulse-node {
  animation: pulse-opacity 3s ease-in-out infinite;
}
.pulse-node-fast {
  animation: pulse-opacity 1.5s ease-in-out infinite;
}
.pulse-node-random {
  animation: pulse-opacity-random 5s ease-in-out infinite;
}

.trace-anim {
  stroke-dasharray: 10 20;
  animation: trace-dash 10s linear infinite;
}
.trace-anim-fast {
  stroke-dasharray: 15 25;
  animation: trace-dash 5s linear infinite;
}
.trace-anim-reverse {
  stroke-dasharray: 10 20;
  animation: trace-dash-reverse 15s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .pulse-node,
  .pulse-node-fast,
  .pulse-node-random,
  .trace-anim,
  .trace-anim-fast,
  .trace-anim-reverse {
    animation: none !important;
  }
}

.animate-in {
  animation: fadeUp 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-heading {
    font-size: 3.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .hero-visual {
    height: 520px;
    max-width: 580px;
  }
  .hero-robot-logo {
    width: 320px;
  }
  .feature-card {
    max-width: 200px;
    padding: 1.5rem;
  }
  .feature-icon {
    width: 48px;
    height: 48px;
  }
  .feature-icon svg {
    width: 24px;
    height: 24px;
  }
  .feature-title {
    font-size: 1.125rem;
  }
  .feature-desc {
    font-size: 0.875rem;
  }
  .card-top-right {
    right: -20px;
  }
  .card-bottom-left {
    left: -80px;
  }
}

/* 
   ==========================================================================
   COUNTDOWN TIMER
   ========================================================================== 
*/
.countdown-container {
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  min-width: 80px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.countdown-val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.25rem;
}

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
  /* Container adjustments for mobile */
  .container {
    padding: 0 1rem;
  }

  /* Hero Section Mobile Optimizations */
  .hero-section {
    padding: 1.5rem 0 4rem 0;
    min-height: auto; /* Remove fixed height on mobile */
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .header-nav {
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .brand-tagline {
    font-size: 0.5rem;
  }

  .status-pill {
    padding: 0.375rem 0.75rem;
    font-size: 0.625rem;
  }

  .hero-heading {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
  }

  .hero-text {
    margin: 0 auto;
    padding: 0;
    max-width: 100%;
  }

  .hero-subtitle-badge {
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
  }

  .hero-desc {
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 100%;
  }

  .hero-cta-group {
    justify-content: center;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
  }

  .btn-hero-primary,
  .btn-hero-outline {
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  /* Visual section mobile layout */
  .hero-visual {
    height: auto;
    min-height: 200px;
    margin-top: 0;
    margin-bottom: 2rem;
    order: -1; /* Move visual above text on mobile */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  .hero-robot-logo {
    width: 120px;
    position: static;
    top: auto;
    left: auto;
    transform: none;
    margin: 0 auto;
    display: block;
    animation: none; /* Disable floating animation on mobile */
  }

  .feature-card {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    max-width: 280px;
    margin: 1rem auto;
    animation: none;
    text-align: left;
    padding: 1.25rem;
    display: none; /* Hide feature cards on mobile to avoid clutter */
  }

  .feature-icon {
    width: 40px;
    height: 40px;
  }

  .feature-icon svg {
    width: 20px;
    height: 20px;
  }

  .feature-title {
    font-size: 1rem;
  }

  .feature-desc {
    font-size: 0.875rem;
  }

  /* Countdown Mobile Optimizations */
  .countdown-container {
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
  }

  .countdown-item {
    min-width: 60px;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
  }

  .countdown-val {
    font-size: 1.5rem;
  }

  .countdown-label {
    font-size: 0.5rem;
  }

  /* Footer Mobile Optimizations */
  .footer-section {
    padding: 3rem 0 2rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand-col {
    align-items: center;
    text-align: center;
  }

  .footer-brand-name {
    margin: 0 auto;
  }

  .footer-desc {
    margin: 0 auto;
    max-width: 100%;
  }

  .footer-badges {
    align-items: center;
    width: 100%;
  }

  .mini-badge {
    width: fit-content;
    margin: 0 auto;
  }

  .footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
  }

  .footer-link {
    justify-content: center;
    text-align: center;
    width: auto;
    display: flex;
    gap: 0.5rem;
  }

  .footer-col-title {
    margin-bottom: 1.25rem;
    text-align: center;
    display: block;
    width: 100%;
  }

  .dot-indicator,
  .mobile-hide {
    display: none !important;
  }

  .contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
    gap: 1rem;
  }

  .contact-item {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 1rem;
    justify-content: center;
    max-width: 280px;
  }

  .contact-icon-box {
    margin: 0;
    flex-shrink: 0;
  }

  .contact-info {
    align-items: flex-start;
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .bottom-badges {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .copyright {
    font-size: 0.5rem;
  }
}

@media (max-width: 480px) {
  /* Extra small screens optimization */
  .container {
    padding: 0 0.75rem;
  }

  .hero-section {
    padding: 1rem 0 3rem 0;
  }

  .header-nav {
    margin-bottom: 1.5rem;
  }

  .brand-name {
    font-size: 1.125rem;
  }

  .status-pill {
    padding: 0.25rem 0.5rem;
    font-size: 0.5rem;
  }

  .hero-heading {
    font-size: 2rem;
    line-height: 1.1;
  }

  .hero-desc {
    font-size: 0.875rem;
  }

  .btn-hero-primary,
  .btn-hero-outline {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    min-height: 48px; /* Minimum touch target size */
  }

  .hero-robot-logo {
    width: 100px;
  }

  .feature-card {
    display: none; /* Keep feature cards hidden on small screens */
  }

  .countdown-container {
    gap: 0.375rem;
  }

  .countdown-item {
    min-width: 50px;
    padding: 0.375rem 0.5rem;
  }

  .countdown-val {
    font-size: 1.25rem;
  }

  .countdown-label {
    font-size: 0.4rem;
  }

  .footer-section {
    padding: 2rem 0 1.5rem 0;
  }

  .footer-grid {
    gap: 1.5rem;
  }

  .footer-brand-name {
    font-size: 1.25rem;
  }

  .footer-desc {
    font-size: 0.75rem;
  }

  .contact-item {
    max-width: 100%;
    min-height: 48px; /* Minimum touch target size */
  }

  .contact-icon-box {
    width: 36px;
    height: 36px;
  }

  .contact-value {
    font-size: 0.75rem;
  }

  .copyright {
    font-size: 0.45rem;
  }

  .bottom-badge {
    font-size: 0.5rem;
  }
}

/* Landscape phone optimization */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: 1rem 0 2rem 0;
  }

  .hero-content {
    gap: 1rem;
  }

  .hero-visual {
    min-height: 120px;
    margin-bottom: 1rem;
  }

  .hero-robot-logo {
    width: 80px;
  }

  .feature-card {
    display: none;
  }
}

/* High DPI screens optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-robot-logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn-hero-primary,
  .btn-hero-outline,
  .contact-item,
  .footer-link {
    min-height: 44px; /* iOS recommended minimum */
    min-width: 44px;
  }

  .btn-hero-primary:active,
  .btn-hero-outline:active {
    transform: scale(0.98);
  }

  .contact-item:active {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
  }

  .footer-link:active {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    margin: -0.25rem -0.5rem;
  }
}

/* Additional mobile optimizations */

/* Prevent zoom on input focus (iOS) */
@media screen and (max-width: 768px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Smooth scrolling for mobile */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Optimize animations for mobile performance */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-robot-logo,
  .feature-card,
  .animate-in {
    animation: none !important;
  }
}

/* Safe area insets for devices with notches */
@supports (padding: max(0px)) {
  .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .hero-section {
    padding-top: max(1.5rem, env(safe-area-inset-top));
  }

  .footer-section {
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }
}

/* Improve tap targets for better accessibility */
@media (max-width: 768px) {
  .status-pill {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .hero-subtitle-badge {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .mini-badge {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }
}

/* Mobile-specific hover states */
@media (hover: hover) and (pointer: fine) {
  /* Keep hover effects only for devices that support them */
  .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
  }

  .btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  }

  .btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
  }
}

/* Remove hover effects on touch devices */
@media (hover: none) {
  .feature-card:hover,
  .btn-hero-primary:hover,
  .btn-hero-outline:hover,
  .footer-link:hover,
  .contact-item:hover {
    transform: none;
    background: initial;
    border-color: initial;
    box-shadow: initial;
  }
}
