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

:root {
  --bg: #0a0e17;
  --bg-surface: #0f1420;
  --bg-card: #131825;
  --border: rgba(0, 200, 255, 0.08);
  --text: #e0e6f0;
  --text-muted: #7a8ba8;
  --accent: #00c8ff;
  --accent-2: #6366f1;
  --gradient: linear-gradient(135deg, #00c8ff, #6366f1);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 14, 23, 0.8);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.nav-logo-img {
  width: 32px;
  height: 32px;
}

.nav-logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 200, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: rgba(0, 200, 255, 0.12);
  top: -100px;
  right: -100px;
}

.glow-2 {
  width: 400px;
  height: 400px;
  background: rgba(99, 102, 241, 0.1);
  bottom: -50px;
  left: -100px;
}

.hero-content {
  text-align: center;
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(0, 200, 255, 0.04);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  font-family: var(--font);
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 0 24px rgba(0, 200, 255, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 0 40px rgba(0, 200, 255, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(0, 200, 255, 0.15);
}

.btn-secondary:hover {
  color: var(--accent);
  border-color: rgba(0, 200, 255, 0.3);
  background: rgba(0, 200, 255, 0.04);
}

/* Hero visual */
.hero-visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
}

.eye-graphic {
  width: min(500px, 90vw);
  height: min(500px, 90vw);
}

/* Eye animation */
.ring {
  transform-origin: 200px 200px;
  animation: rotate 20s linear infinite;
}
.ring-2 { animation-direction: reverse; animation-duration: 25s; }
.ring-3 { animation-duration: 15s; }

.scan-line {
  animation: scan 4s ease-in-out infinite;
}

.pupil {
  animation: pulse 3s ease-in-out infinite;
}

.pupil-inner {
  animation: pulse 3s ease-in-out infinite 0.5s;
}

.node {
  animation: nodePulse 2s ease-in-out infinite;
}
.node-1 { animation-delay: 0.2s; }
.node-2 { animation-delay: 0.4s; }
.node-3 { animation-delay: 0.6s; }
.node-4 { animation-delay: 0.8s; }
.node-5 { animation-delay: 1.0s; }
.node-6 { animation-delay: 1.2s; }

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes scan {
  0%, 100% { transform: translateY(-60px); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  50% { transform: translateY(60px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

@keyframes nodePulse {
  0%, 100% { opacity: 0.4; r: 2; }
  50% { opacity: 1; r: 3; }
}

/* ===== About ===== */
.about {
  padding: 120px 0;
  position: relative;
}

.section-label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.about h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.about-text {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 650px;
  line-height: 1.8;
  margin-bottom: 60px;
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.capability {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.capability:hover {
  border-color: rgba(0, 200, 255, 0.2);
  box-shadow: 0 0 30px rgba(0, 200, 255, 0.05);
}

.capability-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 200, 255, 0.06);
  color: var(--accent);
  margin-bottom: 20px;
}

.capability-icon svg {
  width: 22px;
  height: 22px;
}

.capability h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.capability p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ===== Contact ===== */
.contact {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.contact h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.contact-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 500px;
}

.contact-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.contact-phone:last-of-type {
  margin-bottom: 40px;
}

.phone-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-info {
  color: var(--text-muted);
  font-size: 0.95rem;
  user-select: none;
  -webkit-user-select: none;
}

.contact-info a,
.contact-phone a {
  color: var(--text-muted) !important;
  text-decoration: none !important;
  pointer-events: none;
}


.contact-form {
  max-width: 600px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(122, 139, 168, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(0, 200, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.08);
}

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

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-logo {
  width: 24px;
  height: 24px;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero {
    padding-top: 100px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .nav-links {
    gap: 20px;
  }
}

/* ===== JS-driven animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.capability.fade-in {
  transition-delay: calc(var(--i, 0) * 0.1s);
}

.nav.scrolled {
  background: rgba(10, 14, 23, 0.95);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

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

  .fade-in {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

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

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

  .btn {
    width: 100%;
    justify-content: center;
  }
}
