/* ============================================================
   RealTime eLab — Shared Stylesheet
   ============================================================ */

:root {
  --bg: #03070f;
  --bg2: #060d1a;
  --bg3: #0a1628;
  --surface: #0e1f35;
  --surface2: #142840;
  --accent: #00d4ff;
  --accent2: #0099cc;
  --text: #e8f4ff;
  --text2: #8ab3d4;
  --text3: #4a7a9b;
  --border: rgba(0, 212, 255, 0.15);
  --border2: rgba(0, 212, 255, 0.35);
  --grid: rgba(0, 212, 255, 0.04);
  --mono: 'Space Mono', monospace;
  --sans: 'DM Sans', sans-serif;
  --display: 'Orbitron', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(3, 7, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  line-height: 1;
}

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

.nav-links a {
  display: block;
  padding: 8px 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.2s;
  border-radius: 4px;
}

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

.nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--bg);
  background: var(--accent);
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-cta:hover { background: #00b8e0; }

/* ---- PAGE WRAPPER ---- */
.page-wrap {
  padding-top: 104px;
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ---- SECTION ---- */
section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

h1 {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}

h1 span { color: var(--accent); }

h2 {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-intro {
  font-size: 16px;
  color: var(--text2);
  max-width: 560px;
  margin-bottom: 56px;
}

/* ---- BUTTONS ---- */
.btn-primary {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--bg);
  background: var(--accent);
  border: none;
  padding: 14px 28px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  background: #00b8e0;
  transform: translateY(-1px);
}

.btn-outline {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--border2);
  padding: 14px 28px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}

.btn-outline:hover {
  background: rgba(0, 212, 255, 0.08);
  transform: translateY(-1px);
}

/* ---- TAGS ---- */
.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--accent2);
  background: rgba(0, 153, 204, 0.12);
  border: 1px solid rgba(0, 153, 204, 0.25);
  border-radius: 3px;
  padding: 3px 8px;
}

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  background: var(--bg);
}

.footer-logo {
  display: flex;
  align-items: center;
  line-height: 1;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
}

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

.footer-links a {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ---- HOME: HERO ---- */
.hero {
  min-height: calc(100vh - 104px);
  display: flex;
  align-items: center;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}

.hero-bg-circle {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.08);
  right: -150px;
  top: 50%;
  transform: translateY(-50%);
}

.hero-bg-circle::before {
  content: '';
  position: absolute;
  inset: 60px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.12);
}

.hero-bg-circle::after {
  content: '';
  position: absolute;
  inset: 140px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.18);
  animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.05); }
}

.hero-content { max-width: 680px; }

.hero-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-tag::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero-desc {
  font-size: 17px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 560px;
}

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

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text3);
  text-transform: uppercase;
  margin-top: 4px;
}

.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
  animation: scan 6s linear infinite;
}

@keyframes scan {
  from { top: 0; }
  to   { top: 100%; }
}

/* ---- HOME: FEATURES STRIP ---- */
.features-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 0 40px 80px;
}

.feature-cell {
  background: var(--bg2);
  padding: 32px 28px;
  transition: background 0.2s;
}

.feature-cell:hover { background: var(--surface); }

.feature-num {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 900;
  color: rgba(0, 212, 255, 0.15);
  margin-bottom: 8px;
  line-height: 1;
}

.feature-title {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
}

/* ---- ABOUT ---- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  filter: saturate(0.7) contrast(1.1);
}

.ip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.ip-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s;
}

.ip-chip:hover { border-color: var(--border2); }

.ip-num {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  min-width: 24px;
}

.ip-name {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text2);
  line-height: 1.4;
}

.timeline {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: flex;
  gap: 24px;
  padding-bottom: 36px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50px;
  top: 36px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item:last-child::before { display: none; }

.timeline-year {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  min-width: 42px;
  padding-top: 4px;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
}

.timeline-text { font-size: 14px; color: var(--text2); padding-top: 2px; }

/* ---- PRODUCTS ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s;
  display: block;
  position: relative;
  overflow: hidden;
}

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

.product-card:hover {
  border-color: var(--border2);
  background: var(--surface2);
  transform: translateY(-3px);
}

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

.product-category {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.product-name {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.product-sub {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 20px;
  line-height: 1.6;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.product-link {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-link::after { content: '→'; transition: transform 0.2s; }
.product-card:hover .product-link::after { transform: translateX(4px); }

/* ---- TECH COLUMN ---- */
.articles-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.article-row {
  background: var(--surface);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 28px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.article-row:hover { background: var(--surface2); }

.article-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
}

.article-title {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 6px;
}

.article-desc { font-size: 13px; color: var(--text2); }

.article-arrow {
  font-size: 18px;
  color: var(--text3);
  transition: color 0.2s, transform 0.2s;
}

.article-row:hover .article-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* ---- CONTACT ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

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

.contact-item {
  display: flex;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text3);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-value { font-size: 14px; color: var(--text); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px;
}

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

.form-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text3);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus { border-color: var(--border2); }
textarea.form-control { min-height: 120px; resize: vertical; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { padding: 40px 20px; }
  section { padding: 60px 20px; }
  .about-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .features-strip { grid-template-columns: repeat(2, 1fr); margin: 0 20px 60px; }
  .article-row { grid-template-columns: 1fr auto; }
  .article-date { display: none; }
  footer { flex-direction: column; gap: 16px; padding: 30px 20px; }
}
