/* ==========================================================
   index.css — Homepage (index.html) only
   Loaded AFTER main.css. Only defines classes the homepage
   body uses that main.css does not (header/footer come from main.css).
   ========================================================== */

/* ===== Variables (extend main.css) ===== */
:root {
  --ink: #0F1923;
  --txt-invert-soft: rgba(255,255,255,0.65);
}

/* ===== Wrap container (homepage body uses .wrap; main.css uses .container) ===== */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons (extra variants the homepage uses) ===== */
.btn-dark {
  background: var(--ink);
  color: #fff;
  border: 2px solid var(--ink);
}
.btn-dark:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(15,25,35,0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--primary);
  background: rgba(27,47,78,0.04);
}
.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline-dark:hover {
  background: var(--primary);
  color: #fff;
}
.ar { font-size: 14px; margin-left: 2px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  padding: 56px 0 72px;
  overflow: hidden;
}
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(27,47,78,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,47,78,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 56px;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 8px;
}
.h-lg {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--primary);
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.h-lg em {
  font-style: normal;
  color: var(--accent);
}
.lead {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.hero-media { position: relative; }
.frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-light);
  box-shadow: var(--shadow-lg);
}
.frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.frame .tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(15,25,35,0.92);
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}
.corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
  z-index: 3;
}
.corner.tr {
  top: 12px; right: 12px;
  border-top-width: 3px;
  border-right-width: 3px;
}
.corner.bl {
  bottom: 12px; left: 12px;
  border-bottom-width: 3px;
  border-left-width: 3px;
}

/* ===== Hero stats ===== */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
@media (max-width: 768px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
.st { text-align: left; }
.st .num {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1;
}
.st .num span { color: var(--accent); }
.lb {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* ===== Marquee ===== */
.marquee {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
}
.track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.track span { display: inline-block; }
.track span::before {
  content: '◆';
  color: var(--accent);
  margin-right: 12px;
  font-size: 8px;
  vertical-align: middle;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Sections ===== */
.sec {
  padding: clamp(56px, 8vw, 96px) 0;
  position: relative;
}
.sec.dark {
  background: var(--ink);
  color: #fff;
}
.sec.dark .h-lg { color: #fff; }
.sec.dark .lead { color: rgba(255,255,255,0.65); }
.sec.dark .head-block .eyebrow { color: var(--accent); }
.sec.dark .more { color: var(--accent); }
.sec.dark .cat-tag {
  background: rgba(232,76,30,0.2);
  color: var(--accent);
}
.head-block {
  margin-bottom: 48px;
  text-align: left;
  max-width: 720px;
}

/* ===== Category Grid ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cat-grid { grid-template-columns: 1fr; } }
.cat {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.cat:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  border-color: var(--accent);
}
.cat .ph {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-light);
}
.cat .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.cat:hover .ph img { transform: scale(1.05); }
.cat .bd {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.idx {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}
.cat h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}
.cat p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.more {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
  padding-top: 4px;
}

/* ===== Product Grid ===== */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 1100px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .prod-grid { grid-template-columns: 1fr; } }
.prod {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), background var(--transition);
}
.prod:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.08);
}
.prod .ph {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.prod .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.prod:hover .ph img { transform: scale(1.05); }
.cat-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15,25,35,0.85);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  text-transform: uppercase;
}
.prod .bd {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.prod h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}
.spec {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  margin: 0;
}
.ln {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
  padding-top: 6px;
}
.ln span { transition: transform var(--transition); display: inline-block; }
.prod:hover .ln span { transform: translateX(3px); }

/* ===== Application Grid ===== */
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 900px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .app-grid { grid-template-columns: 1fr; } }
.app {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  margin: 0;
  cursor: pointer;
}
.app img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.app:hover img { transform: scale(1.08); }
.cap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(15,25,35,0.92), transparent);
  color: #fff;
}
.cap span {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 4px;
}
.cap b {
  font-size: 14px;
  font-weight: 700;
  display: block;
}

/* ===== Process Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: background var(--transition);
}
.step:hover { background: rgba(255,255,255,0.08); }
.step .n {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 4px 10px;
  background: rgba(232,76,30,0.12);
  border-radius: 4px;
}
.step h3 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.3;
}
.step p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  margin: 0;
}

/* ===== About / Split ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(232,76,30,0.4);
}
.badge .bn {
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}
.badge .bl {
  color: rgba(255,255,255,0.9);
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
  letter-spacing: 0.05em;
}

/* ===== Feat list ===== */
.feat-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feat-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feat-list .ic {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(232,76,30,0.1);
  color: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}
.feat-list b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}
.feat-list p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ===== Line solutions (animation only — base card style is inline) ===== */
.line-grid {
  display: grid;
}
.line-card {
  transition: transform var(--transition), box-shadow var(--transition);
}
.line-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1) !important;
}

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(135deg, var(--ink) 0%, var(--primary) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band .grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
}
.cta-band .h-lg { color: #fff; }
.cta-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.cta-inner h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}
.cta-inner p {
  color: rgba(255,255,255,0.7);
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
}
@media (max-width: 768px) {
  .cta-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
