/* NexBot Premium Minimalist CSS - Tesla Bot Optimus Style */

@layer reset, base, theme, components, utilities;

@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html, body {
    height: 100%;
    background-color: #e2e2e2; /* Matches the Spline backdrop exactly for seamless blending */
    color: #111111;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
}

@layer theme {
  :root {
    --color-bg: #e2e2e2;
    --color-text-primary: #111111;
    --color-text-subtle: #555555;
    --color-accent: #00e676; /* Green status dot */
    
    --font-heading: 'Outfit', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
}

@layer base {
  body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
  }
}

@layer components {
  /* Navigation Bar */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(226, 226, 226, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
  }

  .logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    color: var(--color-text-primary);
  }

  .logo-icon {
    color: var(--color-text-primary);
  }

  .logo-text {
    font-weight: 700;
  }

  .nav-links {
    display: flex;
    gap: 32px;
  }

  .nav-links a {
    text-decoration: none;
    color: var(--color-text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    opacity: 0.8;
  }

  .nav-links a:hover {
    opacity: 1;
  }

  .nav-cta {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .badge-pill {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-subtle);
    background: rgba(0, 0, 0, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
  }

  .btn-black-sm {
    background: #000000;
    color: #ffffff;
    border: none;
    outline: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
  }

  .btn-black-sm:hover {
    background: #222222;
  }

  /* Hero Showroom */
  .hero-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-top: 110px;
    padding-bottom: 40px;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    z-index: 10;
  }

  /* Floating active badge */
  .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--color-text-subtle);
    background: rgba(255, 255, 255, 0.4);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  }

  .dot-green {
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--color-accent);
  }

  /* Large background title text block */
  .hero-title-wrapper {
    position: absolute;
    top: 23dvh;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 1;
  }

  .hero-title {
    font-size: clamp(2.5rem, 8.5dvw, 5.8rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    color: #111111;
  }

  /* Spline iframe wrapper */
  .spline-container {
    width: 100%;
    height: 52dvh;
    position: relative;
    z-index: 2; /* Sits in front of title text */
    pointer-events: auto;
  }

  .spline-container iframe {
    border: none;
    width: 100%;
    height: 100%;
    display: block;
  }

  /* Watermark cover mask blending with background color */
  .spline-mask {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 160px;
    height: 50px;
    background-color: #e2e2e2;
    z-index: 3;
    pointer-events: none;
  }

  /* Bottom content wrapper */
  .hero-info {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 600px;
    padding: 0 20px;
  }

  .hero-description {
    font-size: clamp(0.9rem, 2dvw, 1.1rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-subtle);
  }

  .hero-actions {
    display: flex;
    gap: 16px;
    width: 100%;
    justify-content: center;
  }

  .btn-black {
    background: #000000;
    color: #ffffff;
    border: none;
    outline: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }

  .btn-black:hover {
    background: #222222;
    transform: translateY(-2px);
  }

  .btn-black .arrow {
    transition: transform 0.2s;
  }

  .btn-black:hover .arrow {
    transform: translateX(4px);
  }

  .btn-white {
    background: #ffffff;
    color: #000000;
    border: none;
    outline: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.4), 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .btn-white:hover {
    background: #f5f5f7;
    transform: translateY(-2px);
  }

  /* Specifications Grid */
  .specs-section {
    background: #e2e2e2;
    padding: 60px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 10;
  }

  .specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1000px;
    margin: 0 auto;
    gap: 20px;
    text-align: center;
  }

  .spec-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .spec-value {
    font-size: clamp(1.8rem, 4dvw, 2.5rem);
    font-weight: 700;
    color: var(--color-text-primary);
  }

  .spec-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  /* Footer */
  .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    background: #e2e2e2;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.8rem;
    color: var(--color-text-subtle);
    z-index: 10;
  }

  .footer-links {
    display: flex;
    gap: 24px;
  }

  .footer-links a {
    text-decoration: none;
    color: var(--color-text-subtle);
    transition: var(--transition-smooth);
  }

  .footer-links a:hover {
    color: var(--color-text-primary);
  }
}

/* Responsive Handling for Mobile Devices */
@media (max-width: 768px) {
  .navbar {
    padding: 0 24px;
    height: 60px;
  }

  .nav-links {
    display: none; /* Hide navigation links on mobile for absolute simplicity */
  }

  .nav-cta {
    gap: 10px;
  }

  .badge-pill {
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  .btn-black-sm {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .hero-container {
    padding-top: 80px;
    padding-bottom: 24px;
    height: calc(100dvh - 60px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
  }

  .status-badge {
    margin-bottom: 8px;
    padding: 4px 12px;
    font-size: 0.65rem;
  }

  .hero-title-wrapper {
    top: 18dvh;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 3.2rem);
    letter-spacing: -1.5px;
    line-height: 1.1;
  }

  .spline-container {
    height: 40dvh;
    margin: 10px 0;
  }

  .hero-info {
    gap: 16px;
    padding: 0 16px;
    width: 100%;
  }

  .hero-description {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .hero-actions {
    flex-direction: row; /* Keep buttons inline on mobile for clean double-pill layout */
    width: 100%;
    gap: 12px;
    justify-content: center;
  }

  .btn-black, .btn-white {
    flex: 1;
    font-size: 0.8rem;
    padding: 12px 16px;
    justify-content: center;
    border-radius: 24px;
    white-space: nowrap;
  }

  .specs-section {
    padding: 40px 16px;
  }

  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 12px;
  }

  .spec-value {
    font-size: 1.8rem;
  }

  .spec-label {
    font-size: 0.75rem;
  }

  .footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 24px 16px;
    font-size: 0.75rem;
  }
}
