/* ===== DESIGN TOKENS ===== */
:root {
  --white: #ffffff;
  --black: #0a0a0a;
  --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: #171717;

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

  --section-padding: clamp(80px, 10vw, 140px);
  --container-width: 1200px;
  --container-padding: clamp(20px, 5vw, 40px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* ===== UTILITY ===== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 20px;
}

.section-desc {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 560px;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s var(--ease-out-expo);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  padding: 14px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--black);
  transition: width 0.3s var(--ease-out-expo);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white) !important;
  background: var(--black);
  padding: 10px 24px;
  border-radius: 100px;
  transition: all 0.3s ease;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--gray-800);
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,0,0,0.04) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 32px;
  font-family: var(--font-mono);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--black);
  margin-bottom: 24px;
}

.hero h1 .em {
  background: linear-gradient(135deg, var(--gray-400) 0%, var(--black) 50%, var(--gray-400) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.hero-desc {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 40px;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--black);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--gray-800);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.btn-primary .arrow {
  transition: transform 0.3s ease;
}

.btn-primary:hover .arrow {
  transform: translateX(3px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--black);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 100px;
  border: 1.5px solid var(--gray-300);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--black);
  transform: translateY(-2px);
}

/* ===== MARQUEE / SCROLLING TEXT ===== */
.marquee-section {
  padding: 60px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}

.marquee-track span {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 500;
  color: var(--gray-400);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 60px;
}

.marquee-track span::after {
  content: '·';
  font-size: 2rem;
  color: var(--gray-300);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: var(--section-padding) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--black), var(--gray-400), var(--black));
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--black);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 4px;
  font-weight: 500;
}

.about-text .section-desc {
  margin-bottom: 32px;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  transition: background 0.3s ease;
}

.value-item:hover {
  background: var(--gray-50);
}

.value-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.value-content h4 {
  font-size: 0.95rem;
  font-weight: 650;
  margin-bottom: 4px;
}

.value-content p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ===== PRODUCTS SECTION ===== */
.products {
  padding: var(--section-padding) 0;
  background: var(--gray-50);
}

.products-header {
  text-align: center;
  margin-bottom: 72px;
}

.products-header .section-desc {
  margin: 0 auto;
}

/* Product Card — EchoAI */
.product-showcase {
  margin-bottom: 80px;
}

.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: 24px;
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

.product-card.reverse {
  direction: rtl;
}

.product-card.reverse > * {
  direction: ltr;
}

.product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: var(--gray-50);
  min-height: 400px;
}

.product-image img {
  max-height: 360px;
  object-fit: contain;
  transition: transform 0.6s var(--ease-out-expo);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: var(--font-mono);
}

.product-tag.hardware {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.product-tag.software {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.product-info h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.product-info p {
  color: var(--gray-500);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gray-600);
  font-weight: 500;
}

.product-features li .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.65rem;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
  transition: gap 0.3s ease;
}

.product-link:hover {
  gap: 12px;
}

/* ===== TECH SECTION ===== */
.tech {
  padding: var(--section-padding) 0;
}

.tech-header {
  text-align: center;
  margin-bottom: 64px;
}

.tech-header .section-desc {
  margin: 0 auto;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tech-card {
  padding: 40px 32px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gray-50) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.tech-card:hover {
  border-color: var(--gray-300);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.05);
}

.tech-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.4rem;
  position: relative;
  z-index: 1;
}

.tech-card h3 {
  font-size: 1.1rem;
  font-weight: 650;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.tech-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ===== CONTACT / FOOTER ===== */
.contact {
  padding: var(--section-padding) 0;
  background: var(--gray-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info {
  padding-top: 8px;
}

.contact-info .section-desc {
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-item-text h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

.contact-item-text p {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.6;
}

/* Contact Form */
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 40px;
}

.contact-form-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-form-card > p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 28px;
}

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: var(--font-primary);
  color: var(--black);
  background: var(--gray-50);
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--black);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
}

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

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

.form-submit {
  width: 100%;
  padding: 14px 32px;
  background: var(--black);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-primary);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit:hover {
  background: var(--gray-800);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* ===== FOOTER ===== */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  height: 28px;
}

.footer-logo span {
  font-weight: 700;
  font-size: 0.95rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--gray-400);
}

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

.footer-links a {
  font-size: 0.85rem;
  color: var(--gray-500);
  transition: color 0.3s ease;
}

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

/* ===== CURSOR GLOW EFFECT ===== */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,0,0,0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

body:hover .cursor-glow {
  opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-card.reverse {
    direction: ltr;
  }

  .product-image {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transition: right 0.4s var(--ease-out-expo);
    border-left: 1px solid var(--gray-200);
    box-shadow: -20px 0 60px rgba(0,0,0,0.08);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .nav-toggle {
    display: flex;
  }

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

  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }

  .hero-actions {
    flex-direction: column;
  }

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

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

  .product-info {
    padding: 32px 24px;
  }

  .product-image {
    padding: 32px;
    min-height: 260px;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== MOBILE OVERLAY ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ===== LOADING ANIMATION ===== */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  height: 48px;
  animation: loader-pulse 1.2s ease-in-out infinite;
}

@keyframes loader-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1); }
}
