/* Radivix Technology - Main Stylesheet */
:root {
  --primary: #0a1628;
  --accent: #0066ff;
  --accent2: #00c8ff;
  --text: #1a1a2e;
  --text-light: #6b7280;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e5e7eb;
  --success: #10b981;
  --card-bg: #ffffff;
  --hero-bg: linear-gradient(135deg, #0a1628 0%, #0d2149 50%, #0a1628 100%);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

/* NAV */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(10px);
  z-index: 100;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 3px;
}
.logo-sub {
  font-size: 9px;
  color: var(--accent2);
  letter-spacing: 4px;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.btn-nav {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600 !important;
}
.btn-nav:hover { background: #0052cc !important; }
.nav-toggle { display: none; color: #fff; font-size: 24px; cursor: pointer; }

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary:hover { background: #0052cc; color: #fff; transform: translateY(-1px); }
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: #fff; color: #fff; }

/* HERO */
.hero {
  background: var(--hero-bg);
  color: #fff;
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(0,102,255,0.1) 0%, transparent 60%);
}
.hero-badge {
  display: inline-block;
  background: rgba(0,200,255,0.15);
  border: 1px solid rgba(0,200,255,0.3);
  color: var(--accent2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  position: relative;
}
.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
  position: relative;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
  position: relative;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  position: relative;
}
.stat span {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--accent2);
}
.stat label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* SECTIONS */
section { padding: 80px 0; }
section h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--text-light);
  font-size: 17px;
  margin-bottom: 48px;
}

/* PRODUCT CARDS */
.products { background: var(--white); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.product-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.2s;
  color: var(--text);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,102,255,0.12);
  border-color: var(--accent);
  color: var(--text);
}
.product-icon { font-size: 32px; margin-bottom: 16px; }
.product-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.product-card p { color: var(--text-light); font-size: 14px; margin-bottom: 16px; }
.product-card ul { list-style: none; padding: 0; margin-bottom: 20px; }
.product-card ul li {
  font-size: 13px;
  color: var(--text-light);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}
.product-card ul li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }
.card-cta { color: var(--accent); font-weight: 600; font-size: 14px; }

/* ALTERNATIVES TABLE */
.alternatives { background: var(--bg); }
.table-wrap { overflow-x: auto; }
.cross-ref-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.cross-ref-table th {
  background: var(--primary);
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.cross-ref-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.highlight-row { background: rgba(0,102,255,0.03); }
.cross-ref-table tr:hover { background: rgba(0,102,255,0.05); }
.badge-stock {
  background: rgba(16,185,129,0.12);
  color: var(--success);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.badge-inquiry {
  background: rgba(0,102,255,0.1);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.table-note {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 16px;
  text-align: center;
}

/* WHY US */
.why-us { background: var(--white); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.why-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.why-card:hover {
  box-shadow: 0 8px 32px rgba(0,102,255,0.1);
  border-color: var(--accent);
}
.why-icon { font-size: 36px; margin-bottom: 16px; }
.why-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.why-card p { color: var(--text-light); font-size: 14px; }

/* APPLICATIONS */
.applications { background: var(--primary); }
.applications h2 { color: #fff; }
.app-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.app-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
}

/* FAQ */
.faq { background: var(--bg); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.faq-a {
  padding: 16px 24px;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
}

/* CONTACT */
.contact { background: var(--white); }
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 12px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form .btn-primary { width: 100%; margin-top: 4px; }
.contact-info h3 { font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.contact-info p { margin-bottom: 12px; font-size: 14px; }
.contact-info hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* FOOTER */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
footer .logo-text { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: 3px; margin-bottom: 12px; }
footer p { font-size: 14px; margin-bottom: 8px; }
.footer-small { font-size: 12px; color: rgba(255,255,255,0.4); }
footer h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer ul li a { color: rgba(255,255,255,0.6); font-size: 13px; transition: color 0.2s; }
footer ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--primary); padding: 20px; gap: 16px; }
  .nav-toggle { display: block; }
  .hero { padding: 60px 0 50px; }
  .hero-stats { gap: 24px; }
  .product-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: center; }
}
