/* ═══════════════════════════════════════
   BLACK DIAMOND THEME
   ═══════════════════════════════════════ */

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

:root {
  --bg-deep: #050508;
  --bg-surface: #08080e;
  --bg-card: #0b0b14;
  --border-diamond: #16162a;
  --text-primary: #e8e6e3;
  --text-muted: #7a7a96;
  --accent: #b8c0ff;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  line-height: 1.7;
}

/* ───── Crystal Canvas ───── */
#crystal-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ───── Mouse Glow ───── */
.mouse-glow {
  position: fixed;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 210, 255, 0.03), transparent 70%);
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
}

/* ───── Main ───── */
main { position: relative; z-index: 4; }

section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px;
  position: relative;
}

.container { max-width: 1100px; width: 100%; margin: 0 auto; }

/* ───── Navigation ───── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(5, 5, 8, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(180, 200, 255, 0.04);
  transition: all 0.4s ease;
}

nav.scrolled {
  padding: 12px 40px;
  background: rgba(5, 5, 8, 0.92);
  border-bottom-color: rgba(180, 200, 255, 0.08);
}

.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem; font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-decoration: none;
}

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.82rem; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--text-primary); }

/* ───── Hero ───── */
#hero {
  min-height: 100vh;
  padding-top: 100px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}

.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
}

.hero-video-wrap {
  width: 100%; max-width: 860px;
  aspect-ratio: 16 / 9;
  position: relative;
  margin-bottom: 56px;
  border: 1px solid rgba(180, 200, 255, 0.08);
  background: rgba(8, 8, 14, 0.8);
  overflow: hidden;
}

.hero-video-wrap::before,
.hero-video-wrap::after {
  content: ''; position: absolute;
  width: 40px; height: 40px;
  border: 1px solid rgba(180, 200, 255, 0.15); z-index: 2;
}
.hero-video-wrap::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.hero-video-wrap::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.video-corner-bl, .video-corner-tr {
  position: absolute; width: 40px; height: 40px;
  border: 1px solid rgba(180, 200, 255, 0.15);
  z-index: 2; pointer-events: none;
}
.video-corner-tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.video-corner-bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }

.video-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  color: var(--text-muted);
}
.video-placeholder svg { opacity: 0.3; }
.video-placeholder span { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.4; }


.hero-title {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900; line-height: 1;
  letter-spacing: -0.03em; margin-bottom: 12px;
  opacity: 0; transform: translateY(30px);
}

.hero-title .shine-word {
  display: inline-block;
  background: linear-gradient(135deg, #e8e6e3 0%, #b8c0ff 40%, #fff 50%, #b8c0ff 60%, #e8e6e3 100%);
  background-size: 300% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShine 5s linear infinite;
}
@keyframes textShine { 0% { background-position: 0% center; } 100% { background-position: 300% center; } }

.hero-fullname {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 28px;
  opacity: 0; transform: translateY(20px);
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 300;
  font-style: italic;
  color: var(--accent);
  max-width: 600px;
  margin-bottom: 16px;
  opacity: 0; transform: translateY(30px);
}

.hero-subtitle {
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  color: var(--text-muted); max-width: 640px;
  line-height: 1.8; margin-bottom: 40px; font-weight: 300;
  opacity: 0; transform: translateY(30px);
}

.hero-ctas {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  opacity: 0; transform: translateY(30px);
}

.hero-cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 32px;
  border: 1px solid rgba(180,200,255,0.15);
  color: var(--text-primary); text-decoration: none;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  position: relative; overflow: hidden;
  transition: all 0.4s ease; background: transparent;
}
.hero-cta:hover { border-color: var(--accent); box-shadow: 0 0 40px rgba(180,200,255,0.1); }

.hero-cta-secondary {
  border-color: rgba(180,200,255,0.08);
  color: var(--text-muted);
}
.hero-cta-secondary:hover { color: var(--text-primary); }

/* ═══════════════════════════════════════
   CARD SHINE
   ═══════════════════════════════════════ */

.card-shine {
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}

.card-shine::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 10;
}

.card-shine::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 30%,
    rgba(180, 200, 255, 0.04) 42%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(180, 200, 255, 0.04) 58%,
    rgba(255, 255, 255, 0) 70%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 10;
  transform: skewX(-15deg);
}

@media (hover: hover) {
  .card-shine:hover {
    border-color: rgba(180, 200, 255, 0.15);
    box-shadow: 0 0 40px rgba(180, 200, 255, 0.06), 0 0 80px rgba(180, 200, 255, 0.03);
  }
  .card-shine:hover::before { opacity: 1; }
  .card-shine:hover::after {
    animation: shineSweep 0.8s ease forwards;
  }
}

@media (hover: none) {
  .card-shine.in-view {
    border-color: rgba(180, 200, 255, 0.15);
    box-shadow: 0 0 40px rgba(180, 200, 255, 0.06), 0 0 80px rgba(180, 200, 255, 0.03);
  }
  .card-shine.in-view::before { opacity: 1; }
  .card-shine.in-view::after {
    animation: shineSweep 0.8s ease forwards;
  }
}

@keyframes shineSweep {
  0% { left: -100%; }
  100% { left: 180%; }
}

/* ───── Section Headers ───── */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.section-desc {
  color: var(--text-muted); font-size: 1.05rem;
  max-width: 600px; font-weight: 300; line-height: 1.8;
}

/* ───── Vision ───── */
#vision { min-height: auto; padding: 80px 24px; }

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

.vision-card {
  background: var(--bg-card);
  border: 1px solid var(--border-diamond);
  padding: 40px 32px;
  display: flex;
  align-items: center;
}

.vision-quote {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 300;
  line-height: 1.8;
  font-style: italic;
  color: var(--text-primary);
  border: none;
  margin: 0;
  padding: 0;
}

.vision-quote::before {
  content: '\201C';
  display: block;
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
  font-style: normal;
}

/* ───── Products ───── */
#products { min-height: auto; padding: 100px 24px; }

.product-group {
  margin-top: 48px;
}

.product-group-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-diamond);
}

.product-group-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 700px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-diamond);
  padding: 32px 28px;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), border-color 0.5s ease, box-shadow 0.5s ease;
}
.product-card:hover { transform: translateY(-3px); }

.product-image {
  width: calc(100% + 56px);
  height: 160px;
  object-fit: contain;
  border-bottom: 1px solid var(--border-diamond);
  margin: -32px -28px 20px -28px;
  border-radius: 0;
}

.product-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-short-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 16px;
}

.product-expand-btn {
  background: none;
  border: 1px solid rgba(180, 200, 255, 0.1);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 20;
}
.product-expand-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.product-expand-icon {
  transition: transform 0.3s ease;
}

.product-card.expanded .product-expand-icon {
  transform: rotate(180deg);
}

.product-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin-top 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  margin-top: 0;
}

.product-card.expanded .product-details {
  max-height: 200px;
  opacity: 1;
  margin-top: 16px;
}

.product-details p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  padding-top: 16px;
  border-top: 1px solid var(--border-diamond);
}

/* ───── About ───── */
#about { min-height: auto; padding: 100px 24px; }

.about-prose {
  margin-top: 48px;
  max-width: 800px;
}

.about-prose p {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
  margin-bottom: 24px;
}

.about-prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ───── CTA ───── */
#cta {
  min-height: auto;
  padding: 100px 24px;
  background: var(--bg-surface);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.cta-block {
  background: var(--bg-card);
  border: 1px solid var(--border-diamond);
  padding: 48px 40px;
}

.cta-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 24px;
}

.cta-list {
  list-style: none;
  margin-bottom: 32px;
}

.cta-list li {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  padding: 10px 0;
  border-bottom: 1px solid rgba(180, 200, 255, 0.04);
  padding-left: 16px;
  position: relative;
}

.cta-list li::before {
  content: '\2666';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.6rem;
  top: 13px;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.cta-link:hover { color: var(--text-primary); }

/* ───── Contact ───── */
#contact { text-align: center; min-height: auto; padding: 100px 24px; }

.contact-grid {
  display: flex; justify-content: center;
  gap: 24px; margin-top: 50px; flex-wrap: wrap;
}

.contact-link {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  border: 1px solid var(--border-diamond);
  color: var(--text-muted); text-decoration: none;
  font-size: 0.9rem;
  transition: transform 0.4s ease, color 0.3s ease;
}
.contact-link:hover { color: var(--text-primary); transform: translateY(-2px); }
.contact-link svg { color: var(--accent); flex-shrink: 0; }

.contact-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.social-link {
  padding: 12px 24px;
  border: 1px solid var(--border-diamond);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.4s ease, color 0.3s ease;
}
.social-link:hover { color: var(--text-primary); transform: translateY(-2px); }

.contact-company {
  margin-top: 32px;
}
.contact-company a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}
.contact-company a:hover { color: var(--accent); }

/* ───── Footer ───── */
footer {
  padding: 40px; text-align: center;
  border-top: 1px solid rgba(180,200,255,0.04);
  position: relative; z-index: 4;
}
.footer-text { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.1em; }

/* ───── Responsive ───── */
@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .vision-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .cta-block { padding: 32px 24px; }
  .contact-grid { flex-direction: column; align-items: center; }
  section { padding: 60px 20px; }
  .hero-ctas { flex-direction: column; align-items: center; }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .vision-grid { grid-template-columns: 1fr 1fr; }
}
