/* Autonomo Website V2 - Tech Focus */
/* Futuristic, geometric, tech-forward design */

:root {
  --color-black: #050508;
  --color-dark: #0a0a0f;
  --color-surface: #12121a;
  --color-border: #1e1e2a;
  --color-white: #ffffff;
  --color-orange: #f26522;
  --color-orange-glow: rgba(242, 101, 34, 0.5);
  --color-silver: #8b8b9a;
  --color-silver-light: #b4b4c4;
  --color-cyan: #00d4ff;

  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --glow-orange: 0 0 20px var(--color-orange-glow), 0 0 40px rgba(242, 101, 34, 0.2);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-white);
  background: var(--color-black);
  overflow-x: hidden;
}

/* Animated Grid Background */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(242, 101, 34, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 101, 34, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.bg-grid::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, transparent 0%, var(--color-black) 70%);
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 2rem;
  background: linear-gradient(180deg, var(--color-black) 0%, transparent 100%);
}

nav {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  display: block;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.logo:hover img {
  opacity: 1;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--color-silver);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.nav-marker {
  color: var(--color-orange);
  margin-right: 0.25rem;
}

.nav-links a:hover {
  color: var(--color-white);
}

/* Main */
main {
  position: relative;
  z-index: 1;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--color-silver);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.loading-dots {
  display: inline-block;
  animation: loading 1.5s infinite;
  letter-spacing: 0.1em;
}

@keyframes loading {
  0% { content: '.'; opacity: 0.3; }
  33% { opacity: 0.6; }
  66% { opacity: 0.9; }
  100% { opacity: 0.3; }
}

.status {
  color: #22c55e;
  text-transform: uppercase;
  font-size: 0.8rem;
  animation: fade-in 0.5s ease-out;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  color: var(--color-orange);
  text-shadow: var(--glow-orange);
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--color-silver);
  max-width: 500px;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  max-width: 500px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-white);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--color-silver);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-silver);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scroll-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--color-orange), transparent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; width: 60px; }
  50% { opacity: 1; width: 80px; }
}

/* Sections */
section {
  padding: 8rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.section-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-orange);
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-orange);
  border-radius: 4px;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* About */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text .lead {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.about-text p {
  color: var(--color-silver);
  line-height: 1.8;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.tech-box {
  width: 300px;
  height: 300px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  position: relative;
  background: var(--color-surface);
}

.tech-line {
  position: absolute;
  left: 20%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-orange), transparent);
  opacity: 0.5;
}

.tech-line:nth-child(1) { top: 30%; animation: scan 3s infinite; }
.tech-line:nth-child(2) { top: 50%; animation: scan 3s infinite 1s; }
.tech-line:nth-child(3) { top: 70%; animation: scan 3s infinite 2s; }

@keyframes scan {
  0%, 100% { opacity: 0.2; transform: scaleX(0.8); }
  50% { opacity: 0.8; transform: scaleX(1); }
}

.tech-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--color-orange);
  border-radius: 50%;
  box-shadow: var(--glow-orange);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.5; }
}

/* Products */
.product-grid {
  display: grid;
  gap: 2rem;
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2.5rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-orange), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover {
  border-color: var(--color-orange);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 60px rgba(242, 101, 34, 0.1);
}

.product-card:hover::before {
  opacity: 1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  color: var(--color-orange);
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-silver);
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.product-card h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.product-tagline {
  font-size: 1.1rem;
  color: var(--color-white);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.product-card > p {
  color: var(--color-silver);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Compatibility Section */
.compatibility {
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.compat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

.compat-row:not(:last-child) {
  border-bottom: 1px solid var(--color-border);
}

.compat-label {
  font-family: var(--font-mono);
  color: var(--color-silver);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  min-width: 80px;
}

.compat-list {
  color: var(--color-silver-light);
  flex: 1;
}

.compat-list a {
  color: var(--color-orange);
  text-decoration: none;
  transition: color 0.2s;
}

.compat-list a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.feature-list {
  list-style: none;
  margin-bottom: 2rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--color-silver-light);
  font-size: 0.9rem;
}

.feature-list .check {
  color: var(--color-orange);
  font-weight: bold;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
  background: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-border);
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.btn:hover {
  border-color: var(--color-orange);
  background: rgba(242, 101, 34, 0.1);
}

.btn:hover svg {
  transform: translate(4px, -4px);
}

.btn-primary {
  background: var(--color-orange);
  border-color: var(--color-orange);
}

.btn-primary:hover {
  background: var(--color-orange);
  box-shadow: var(--glow-orange);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

/* Contact */
.contact {
  text-align: center;
  padding: 8rem 2rem;
}

.contact .section-header {
  justify-content: center;
}

.contact-content {
  max-width: 550px;
  margin: 0 auto;
}

.contact-content > p {
  font-size: 1.5rem;
  margin-bottom: 3rem;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 5, 8, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Window - OS Style */
.modal-window {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(242, 101, 34, 0.1);
}

.modal-overlay.active .modal-window {
  transform: scale(1) translateY(0);
}

/* Window Header - macOS Style */
.window-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  background: var(--color-dark);
  border-bottom: 1px solid var(--color-border);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.window-dots .dot.red {
  background: #ff5f57;
}

.window-dots .dot.yellow {
  background: #febc2e;
}

.window-dots .dot.green {
  background: #28c840;
}

.window-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-silver);
}

.window-close {
  background: none;
  border: none;
  color: var(--color-silver);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  line-height: 1;
}

.window-close:hover {
  color: var(--color-white);
}

/* Window Body */
.window-body {
  padding: 1.5rem;
  max-height: calc(90vh - 60px);
  overflow-y: auto;
}

/* Contact Form */
.contact-form {
  text-align: left;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.label-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-silver);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.label-required {
  color: var(--color-orange);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-white);
  background: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  transition: all 0.2s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-silver);
  opacity: 0.5;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  margin-top: 0.5rem;
  cursor: pointer;
}

.btn-submit:hover svg {
  transform: translateX(4px);
}

/* Footer */
footer {
  border-top: 1px solid var(--color-border);
  padding: 3rem 2rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  opacity: 0.7;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-silver);
  text-decoration: none;
  transition: color 0.2s;
}

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

.copyright {
  font-size: 0.8rem;
  color: var(--color-silver);
}

/* Responsive */
@media (max-width: 900px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-visual {
    order: -1;
  }

  .tech-box {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 6rem 1.5rem 3rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .stat-divider {
    display: none;
  }

  section {
    padding: 5rem 1.5rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .product-card {
    padding: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-label {
    font-size: 0.75rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
