@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --black: #0a0a0a;
  --black-2: #111111;
  --black-3: #1a1a1a;
  --surface: #151515;
  --surface-2: #1e1e1e;
  --border: #2a2a2a;
  --accent: #e63946;
  --accent-hover: #ff4d5a;
  --accent-dim: rgba(230, 57, 70, 0.15);
  --gold: #d4a853;
  --text: #f0f0f0;
  --text-2: #a0a0a0;
  --text-3: #666666;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  width: 2rem;
  height: 2px;
  background: var(--accent);
}

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
@media (max-width: 640px) {
  .section-title { font-size: 1.75rem; }
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 600px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(230, 57, 70, 0.3);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  padding: 0.85rem 1rem;
}
.btn-ghost:hover {
  color: var(--accent);
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  border-bottom-color: var(--border);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo .logo-icon span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #000;
  border-radius: 50%;
  transform: rotate(-45deg);
  font-size: 0.95rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.logo > span:last-child { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}
.nav-links .btn {
  margin-left: 1rem;
  padding: 0.5rem 1.25rem;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12,12,14,0.82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    gap: 0.5rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: var(--transition), visibility 0s linear 0.3s;
  }
  .nav-links.open { transform: translateX(0); visibility: visible; transition: var(--transition), visibility 0s; }
  .nav-links a { font-size: 1.1rem; padding: 0.75rem 1rem; width: 100%; }
  .nav-links .btn { margin-left: 0; margin-top: 1rem; width: 100%; justify-content: center; }
  .hamburger { display: flex; }
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.6) 50%, rgba(10,10,10,0.9) 100%);
  z-index: 1;
}
.hero-bg .particle-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(230,57,70,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(230,57,70,0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(212,168,83,0.05) 0%, transparent 50%);
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 4rem;
  align-items: center;
}
.hero-media {
  position: relative;
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: -8%;
  background: radial-gradient(circle at 60% 40%, rgba(230,57,70,0.18) 0%, transparent 65%);
  filter: blur(20px);
  z-index: -1;
}
.hero-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-media { max-width: 560px; margin: 0 auto; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--accent-dim);
  border: 1px solid rgba(230,57,70,0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .outline {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
}
.hero p {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.hero-stat h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
}
.hero-stat p {
  font-size: 0.8rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}
@media (max-width: 640px) {
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .hero-stat h3 { font-size: 1.25rem; }
}

/* Products Section */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
  z-index: 2;
}
.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.product-card:hover::before { transform: scaleX(1); }
.product-card .product-img {
  width: 100%;
  height: 200px;
  background: var(--black-3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.product-card .product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img img {
  transform: scale(1.08);
}
.product-card .product-body {
  padding: 2rem;
}
.product-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.product-card p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.product-card .specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.product-card .specs span {
  padding: 0.25rem 0.6rem;
  background: var(--black-2);
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--text-2);
  font-weight: 500;
}
.product-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.product-card .card-footer a {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Technology */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}
.tech-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}
.tech-visual .pulse-ring {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: pulse 2s ease-out infinite;
}
.tech-visual .pulse-ring:nth-child(2) { animation-delay: 0.5s; }
.tech-visual .pulse-ring:nth-child(3) { animation-delay: 1s; }
.tech-core {
  width: 80px;
  height: 80px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 60px rgba(230,57,70,0.3);
}
@keyframes pulse {
  0% { transform: scale(0.5); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}
.tech-benefits {
  list-style: none;
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.tech-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-2);
}
.tech-benefits li .check {
  width: 20px;
  height: 20px;
  background: var(--accent-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.7rem;
  color: var(--accent);
}
@media (max-width: 768px) {
  .tech-grid { grid-template-columns: 1fr; }
  .tech-visual { min-height: 280px; padding: 2rem; }
}

/* Stats Bar */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3rem 1.5rem;
  text-align: center;
}
.stat-item h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
}
.stat-item p {
  font-size: 0.8rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}
@media (max-width: 640px) {
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .stat-item h2 { font-size: 1.75rem; }
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.testimonial-card .stars {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}
.testimonial-card blockquote {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-card .author .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
}
.testimonial-card .author .name {
  font-size: 0.85rem;
  font-weight: 600;
}
.testimonial-card .author .title {
  font-size: 0.75rem;
  color: var(--text-3);
}

/* Application Finder */
.finder-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.finder-box {
  max-width: 700px;
  margin: 2rem auto 0;
  text-align: center;
}
.finder-form {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.finder-form select {
  flex: 1;
  padding: 0.85rem 1rem;
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0a0a0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.finder-form select:focus {
  outline: none;
  border-color: var(--accent);
}
@media (max-width: 640px) {
  .finder-form { flex-direction: column; }
}

/* CTA Banner */
.cta-banner {
  text-align: center;
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--accent-dim) 0%, transparent 100%);
  border-top: 1px solid var(--border);
}
.cta-banner h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.cta-banner p {
  color: var(--text-2);
  max-width: 500px;
  margin: 0 auto;
}

/* Footer */
.footer {
  background: var(--black-2);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-3);
  max-width: 300px;
  margin-top: 1rem;
  line-height: 1.7;
}
.footer h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 1rem;
}
.footer ul {
  list-style: none;
}
.footer ul li { margin-bottom: 0.5rem; }
.footer ul a {
  font-size: 0.85rem;
  color: var(--text-2);
  text-decoration: none;
}
.footer ul a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-3);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Products Page */
.page-header {
  padding: 8rem 0 4rem;
  text-align: center;
  background: linear-gradient(180deg, var(--black-2) 0%, var(--black) 100%);
}
.page-header h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.page-header p {
  color: var(--text-2);
  margin-top: 0.75rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.filter-bar {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* Product Detail Page */
.product-detail {
  padding: 8rem 0 4rem;
}
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.product-image-area {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-info h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.product-info .subtitle {
  font-size: 1rem;
  color: var(--text-3);
  margin-bottom: 1.5rem;
}
.product-info .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.product-info .description {
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.product-info .feature-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.product-info .feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-2);
}
.product-info .feature-list li::before {
  content: 'âœ“';
  color: var(--accent);
  font-weight: 700;
}
@media (max-width: 768px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .product-image-area { min-height: 250px; }
}

/* About Page */
.about-header {
  padding: 8rem 0 4rem;
  text-align: center;
}
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}
.about-story p {
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.about-image {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.records-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.record-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
}
.record-card .year {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.record-card h4 {
  font-size: 1rem;
  margin: 0.5rem 0;
}
.record-card p {
  font-size: 0.8rem;
  color: var(--text-3);
}
@media (max-width: 768px) {
  .about-story { grid-template-columns: 1fr; gap: 2rem; }
}

/* Applications Page */
.applications-page {
  padding: 8rem 0 4rem;
}
.app-finder-card {
  max-width: 640px;
  margin: 2rem auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
}
.app-finder-card .form-group {
  margin-bottom: 1.25rem;
}
.app-finder-card label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.app-finder-card select,
.app-finder-card input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: var(--transition);
}
.app-finder-card select:focus,
.app-finder-card input:focus {
  outline: none;
  border-color: var(--accent);
}
.app-finder-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Spark line decoration */
.spark-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 2rem 0;
  position: relative;
}
.spark-divider::after {
  content: 'âš¡';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.8rem;
  background: var(--black);
  padding: 0 1rem;
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Social Icons */
.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: var(--transition);
  text-decoration: none;
}
.social-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}
.social-links svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* AI Assistant */
.ai-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
  transition: var(--transition);
  color: #fff;
}
.ai-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(230, 57, 70, 0.5);
}
.ai-toggle svg { width: 24px; height: 24px; fill: currentColor; }

.ai-chat {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 998;
  width: 360px;
  max-height: 520px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}
.ai-chat.open { display: flex; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--black-2);
  border-bottom: 1px solid var(--border);
}
.ai-header .ai-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  color: #fff;
}
.ai-header h4 {
  font-size: 0.9rem;
  font-weight: 600;
}
.ai-header p {
  font-size: 0.7rem;
  color: var(--text-3);
}
.ai-header .ai-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  transition: var(--transition);
}
.ai-header .ai-close:hover { color: var(--text); }

.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 280px;
  max-height: 340px;
}
.ai-messages::-webkit-scrollbar { width: 4px; }
.ai-messages::-webkit-scrollbar-track { background: transparent; }
.ai-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.ai-msg {
  max-width: 85%;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  animation: msgIn 0.3s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.ai-msg.bot {
  align-self: flex-start;
  background: var(--black-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  border-bottom-left-radius: 4px;
}
.ai-msg.user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ai-msg .typing {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}
.ai-msg .typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  animation: typing 1s infinite;
}
.ai-msg .typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-msg .typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; }
  30% { opacity: 1; }
}

.ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.5rem;
}
.ai-suggestions button {
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-3);
  font-family: var(--font);
  font-size: 0.72rem;
  cursor: pointer;
  transition: var(--transition);
}
.ai-suggestions button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.ai-input {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--black-2);
}
.ai-input input {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}
.ai-input input:focus { border-color: var(--accent); }
.ai-input input::placeholder { color: var(--text-3); }
.ai-input button {
  padding: 0.6rem 1rem;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.ai-input button:hover { background: var(--accent-hover); }

@media (max-width: 480px) {
  .ai-chat {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 5rem;
    width: auto;
    max-height: 60vh;
  }
}

/* ===== COMPREHENSIVE MOBILE OPTIMIZATION ===== */

/* Fluid spacing */
@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .page-header { padding: 5.5rem 0 2.5rem; }
  .page-header h1 { font-size: 2rem; }
  .page-header p { font-size: 0.85rem; max-width: 90%; }
  .cta-banner { padding: 3rem 1rem; }
  .cta-banner h2 { font-size: 1.6rem; }
  .product-detail { padding: 5.5rem 0 2.5rem; }
  .product-info h1 { font-size: 1.6rem; }
  .product-info .price { font-size: 1.5rem; }
  .about-header { padding: 5.5rem 0 2.5rem; }
  .applications-page { padding: 5.5rem 0 2.5rem; }
  .app-finder-card { padding: 1.5rem; }
  .app-finder-card select { font-size: 16px; }
  .container { padding: 0 1rem; }
  .hero { min-height: 92vh; }
  .hero p { font-size: 1rem; }
  .hero h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .products-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .records-grid { grid-template-columns: 1fr 1fr; }
  .filter-bar { gap: 0.35rem; }
  .filter-btn { font-size: 0.72rem; padding: 0.4rem 0.8rem; }
  .product-card .product-body { padding: 1.25rem; }
  .product-card .product-img { height: 160px; }
  .product-card .product-img img { padding: 1rem; }
  .product-image-area { padding: 1.5rem; }
  .stat-item h2 { font-size: 1.5rem; }
  .section-sub { font-size: 0.9rem; }
  .btn { padding: 0.7rem 1.25rem; font-size: 0.82rem; }
  .hero-stats { gap: 1rem; }
  .hero-stat h3 { font-size: 1.1rem; }
  .hero-stat p { font-size: 0.65rem; }
  .finder-form select { font-size: 16px; }
  .navbar .container { height: 60px; }
  .nav-links { top: 60px; }
  .badge { font-size: 0.55rem; padding: 0.15rem 0.4rem; }
  .section-label { font-size: 0.65rem; }
  .tech-visual { min-height: 200px; padding: 1.5rem; }
  .tech-visual .pulse-ring { width: 120px; height: 120px; }
  .tech-core { width: 56px; height: 56px; font-size: 1.4rem; }
  .about-image { padding: 1.5rem; min-height: 200px; }
  .social-links a { width: 40px; height: 40px; }
  .social-links svg { width: 18px; height: 18px; }
}

@media (max-width: 480px) {
  .section { padding: 2.5rem 0; }
  .page-header { padding: 5rem 0 2rem; }
  .page-header h1 { font-size: 1.6rem; }
  .hero { min-height: 85vh; }
  .hero .btn-group { flex-direction: column; align-items: center; }
  .hero .btn-group .btn { width: 100%; max-width: 280px; justify-content: center; }
  .stats-bar .container { padding: 2rem 1rem; gap: 1rem; }
  .records-grid { grid-template-columns: 1fr; }
  .tech-benefits li { font-size: 0.82rem; }
  .footer { padding: 2.5rem 0 1.5rem; }
  .ai-toggle { width: 48px; height: 48px; bottom: 1rem; right: 1rem; }
  .ai-toggle svg { width: 20px; height: 20px; }
  .product-card .card-footer { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
  .cta-banner .btn-group { flex-direction: column; align-items: center; }
  .cta-banner .btn-group .btn { width: 100%; max-width: 280px; justify-content: center; }
}

/* Landscape mobile */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { min-height: 120vh; padding-top: 60px; }
  .hero h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .hero-stats { margin-top: 1.5rem; }
  .hero-stat h3 { font-size: 0.9rem; }
  .nav-links { padding: 1rem; }
  .nav-links a { font-size: 0.85rem; padding: 0.4rem 0.75rem; }
}

/* Touch optimization */
@media (hover: none) and (pointer: coarse) {
  .nav-links a { padding: 0.75rem 1rem; min-height: 44px; }
  .filter-btn { min-height: 44px; }
  .btn { min-height: 44px; }
  .hamburger { min-height: 44px; min-width: 44px; padding: 10px; }
  .ai-suggestions button { min-height: 36px; padding: 0.4rem 0.8rem; }
  .product-card { cursor: default; }
  .product-card:hover { transform: none; box-shadow: none; }
  .product-card:hover::before { transform: scaleX(0); }
  .product-card:active { transform: translateY(-2px); }
  .product-card:active::before { transform: scaleX(1); }
  .social-links a { min-width: 44px; min-height: 44px; }
}

/* Smooth scrollbar on mobile */
@media (max-width: 768px) {
  ::-webkit-scrollbar { width: 3px; }
}

/* Prevent text size adjustment on landscape */
html { -webkit-text-size-adjust: 100%; }

/* Improve tap highlight */
a, button, .filter-btn, .hamburger, .ai-toggle {
  -webkit-tap-highlight-color: rgba(230, 57, 70, 0.2);
}
