:root {
  --navy: #0a1628; --deep-blue: #0f2847; --electric: #2d7ff9;
  --electric-light: #5a9fff; --teal: #00c9a7; --teal-dark: #00a88a;
  --coral: #ff6b5a; --gold: #f0b232; --slate: #8492a6;
  --light-gray: #f4f7fa; --white: #ffffff;
  --text-primary: #1a2332; --text-secondary: #5a6978;
  --card-shadow: 0 4px 24px rgba(10,22,40,0.08);
  --card-shadow-hover: 0 12px 40px rgba(10,22,40,0.15);
  --gradient-software: linear-gradient(135deg, #2d7ff9 0%, #0f2847 100%);
  --gradient-hardware: linear-gradient(135deg, #00c9a7 0%, #0a1628 100%);
  --red-accent: #c0392b;
}
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: 'Plus Jakarta Sans','Noto Sans SC',sans-serif;
  color: var(--text-primary); background: var(--white);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav { position:fixed; top:0; left:0; right:0; z-index:100; background:rgba(10,22,40,0.92); backdrop-filter:blur(16px); border-bottom:1px solid rgba(255,255,255,0.06); }
.nav-inner { max-width:1280px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; padding:0 2rem; height:72px; }
.nav-logo { display:flex; align-items:center; gap:0; text-decoration:none; color:var(--white); }
.nav-logo img.logo-icon { height:38px; }
.nav-logo img.logo-text { height:38px; filter: brightness(0) invert(1); }
.nav-links { display:flex; gap:2rem; list-style:none; }
.nav-links a { color:rgba(255,255,255,0.72); text-decoration:none; font-size:0.9rem; font-weight:500; transition:color 0.25s; }
.nav-links a:hover { color:var(--white); }
.nav-links a.active { color:var(--electric-light) !important; font-weight: 700; }
.nav-links a.active-sw { color:var(--electric-light); }
.nav-links a.active-hw { color:var(--teal); }
.hamburger { display:none; background:none; border:none; cursor:pointer; padding:4px; }
.hamburger span { display:block; width:24px; height:2px; background:var(--white); margin:5px 0; }

/* HERO */
.hero { position:relative; min-height:100vh; display:flex; align-items:center; background:var(--navy); overflow:hidden; }
.hero::before { content:''; position:absolute; inset:0; background: radial-gradient(ellipse 60% 50% at 25% 50%, rgba(45,127,249,0.12) 0%, transparent 70%), radial-gradient(ellipse 60% 50% at 75% 50%, rgba(0,201,167,0.10) 0%, transparent 70%); }
.hero-grid-bg { position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size:60px 60px; }
.hero-inner { position:relative; z-index:2; max-width:1280px; margin:0 auto; padding:120px 2rem 80px; width:100%; }
.hero-badge { display:inline-flex; align-items:center; gap:8px; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.1); border-radius:100px; padding:6px 18px 6px 12px; font-size:0.8rem; color:rgba(255,255,255,0.7); margin-bottom:2rem; animation:fadeUp 0.8s ease-out both; }
.hero-badge .dot { width:8px; height:8px; border-radius:50%; background:var(--teal); animation:pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:0.5;transform:scale(1.3);} }
.hero h1 { font-size:clamp(2.4rem,5vw,3.8rem); font-weight:800; color:var(--white); line-height:1.15; letter-spacing:-0.03em; max-width:800px; animation:fadeUp 0.8s 0.1s ease-out both; }
.hero h1 .text-electric { color:var(--electric-light); }
.hero h1 .text-teal { color:var(--teal); }
.hero-sub { font-size:1.1rem; color:rgba(255,255,255,0.6); max-width:680px; line-height:1.7; margin-top:1.5rem; animation:fadeUp 0.8s 0.2s ease-out both; }
.hero-actions { display:flex; gap:1rem; margin-top:2.5rem; animation:fadeUp 0.8s 0.3s ease-out both; }
.btn { display:inline-flex; align-items:center; gap:8px; padding:14px 28px; border-radius:10px; border:none; font-size:0.95rem; font-weight:600; cursor:pointer; text-decoration:none; transition:all 0.3s; font-family:inherit; }
.btn-software { background:var(--electric); color:var(--white); }
.btn-software:hover { background:var(--electric-light); transform:translateY(-2px); }
.btn-hardware { background:var(--teal); color:var(--navy); }
.btn-hardware:hover { background:var(--teal-dark); transform:translateY(-2px); color:var(--white); }
.hero-stats { display:flex; gap:3rem; margin-top:4rem; padding-top:2rem; border-top:1px solid rgba(255,255,255,0.08); animation:fadeUp 0.8s 0.4s ease-out both; }
.stat-item .stat-number { font-size:2rem; font-weight:800; color:var(--white); }
.stat-item .stat-number .accent-blue { color:var(--electric-light); }
.stat-item .stat-number .accent-teal { color:var(--teal); }
.stat-item .stat-label { font-size:0.82rem; color:rgba(255,255,255,0.45); margin-top:4px; font-weight:500; }
@keyframes fadeUp { from{opacity:0;transform:translateY(24px);} to{opacity:1;transform:translateY(0);} }

/* SECTION COMMON */
.section { padding:100px 2rem; }
.section-inner { max-width:1280px; margin:0 auto; }
.section-header { text-align:center; margin-bottom:4rem; }
.section-tag { display:inline-flex; align-items:center; gap:6px; font-size:0.78rem; font-weight:700; text-transform:uppercase; letter-spacing:0.12em; margin-bottom:1rem; padding:6px 16px; border-radius:100px; }
.tag-software { background:rgba(45,127,249,0.1); color:var(--electric); }
.tag-hardware { background:rgba(0,201,167,0.1); color:var(--teal-dark); }
.tag-chip { background:rgba(192,57,43,0.08); color:var(--red-accent); }
.section-header h2 { font-size:clamp(1.8rem,3vw,2.6rem); font-weight:800; letter-spacing:-0.03em; line-height:1.2; }
.section-header p { font-size:1.05rem; color:var(--text-secondary); max-width:640px; margin:1rem auto 0; line-height:1.7; }

/* PILLARS */
.pillars { background:var(--light-gray); }
.pillars-grid { display:grid; grid-template-columns:1fr 1fr; gap:2rem; }
.pillar { border-radius:20px; overflow:hidden; transition:transform 0.4s; }
.pillar:hover { transform:translateY(-4px); }
.pillar-header { padding:3rem 2.5rem 2rem; color:var(--white); }
.pillar-sw .pillar-header { background:var(--gradient-software); }
.pillar-hw .pillar-header { background:var(--gradient-hardware); }
.pillar-icon { width:56px; height:56px; border-radius:14px; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,0.15); margin-bottom:1.2rem; font-size:1.5rem; }
.pillar-header h3 { font-size:1.6rem; font-weight:700; margin-bottom:0.4rem; }
.pillar-header .subtitle { font-size:1rem; font-weight:500; opacity:0.85; }
.pillar-header p.desc { font-size:0.92rem; opacity:0.75; margin-top:0.8rem; line-height:1.6; }
.pillar-body { background:var(--white); padding:2rem 2.5rem 2.5rem; }
.pillar-body h4 { font-size:0.78rem; text-transform:uppercase; letter-spacing:0.1em; color:var(--slate); font-weight:700; margin-bottom:1.2rem; }
.pillar-list { list-style:none; }
.pillar-list li { display:flex; align-items:flex-start; gap:12px; padding:12px 0; border-bottom:1px solid rgba(0,0,0,0.05); font-size:0.92rem; line-height:1.5; }
.pillar-list li:last-child { border-bottom:none; }
.pillar-list .icon-dot { width:8px; height:8px; min-width:8px; border-radius:50%; margin-top:6px; }
.pillar-sw .icon-dot { background:var(--electric); }
.pillar-hw .icon-dot { background:var(--teal); }
.pillar-cta { display:inline-flex; align-items:center; gap:6px; margin-top:1.5rem; font-weight:600; font-size:0.9rem; text-decoration:none; transition:gap 0.3s; }
.pillar-sw .pillar-cta { color:var(--electric); }
.pillar-hw .pillar-cta { color:var(--teal-dark); }
.pillar-cta:hover { gap:12px; }

/* PRODUCT CARDS */
.products-sw { background:var(--white); }
.products-hw { background:var(--light-gray); }
.products-chip { background:var(--white); }
.product-grid { display:grid; gap:1.5rem; }
.product-grid.cols-3 { grid-template-columns:repeat(3,1fr); }
.product-grid.cols-2 { grid-template-columns:repeat(2,1fr); }
.product-card { background:var(--white); border-radius:16px; padding:0; border:1px solid rgba(0,0,0,0.06); transition:all 0.35s; position:relative; overflow:hidden; }
.products-hw .product-card { background:var(--white); }
.product-card:hover { transform:translateY(-4px); box-shadow:var(--card-shadow-hover); }
.product-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; }
.products-sw .product-card::before { background:var(--gradient-software); }
.products-hw .product-card::before { background:var(--gradient-hardware); }
.products-chip .product-card::before { background:linear-gradient(135deg, var(--red-accent), var(--navy)); }

.card-img { width:100%; height:180px; object-fit:contain; background:#f0f2f5; padding:16px; border-bottom:1px solid rgba(0,0,0,0.04); }
.card-body { padding:1.5rem 2rem 2rem; }
.card-icon-inline { display:inline-block; font-size:1.1rem; margin-right:6px; vertical-align:middle; }
.product-card h3 { font-size:1.05rem; font-weight:700; margin-bottom:0.3rem; }
.product-card .card-en { font-size:0.78rem; color:var(--slate); font-weight:500; margin-bottom:0.7rem; }
.product-card p { font-size:0.85rem; color:var(--text-secondary); line-height:1.6; }
.spec-tag { display:inline-block; font-size:0.7rem; font-weight:600; padding:3px 9px; border-radius:6px; margin-top:0.7rem; margin-right:4px; background:rgba(0,0,0,0.04); color:var(--text-secondary); }

/* no-image cards (software) */
.product-card.no-img .card-body { padding:2rem; }
.card-icon { width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:1.3rem; margin-bottom:1.2rem; }
.products-sw .card-icon { background:rgba(45,127,249,0.08); }

/* CHIP BANNER */
.chip-banner { width:100%; border-radius:16px; overflow:hidden; margin-bottom:2.5rem; }
.chip-banner img { width:100%; display:block; }

/* CASES */
.cases { background:var(--light-gray); }
.case-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:1.5rem; }
.case-card { background:var(--white); border-radius:16px; padding:2rem; border:1px solid rgba(0,0,0,0.06); transition:all 0.35s; }
.case-card:hover { transform:translateY(-3px); box-shadow:var(--card-shadow-hover); }
.case-card h4 { font-size:1.05rem; font-weight:700; margin-bottom:0.3rem; }
.case-card .case-en { font-size:0.8rem; color:var(--slate); margin-bottom:0.8rem; }
.case-card p { font-size:0.88rem; color:var(--text-secondary); line-height:1.6; }
.case-badge { display:inline-block; font-size:0.72rem; font-weight:700; padding:4px 12px; border-radius:100px; margin-bottom:1rem; background:rgba(0,201,167,0.1); color:var(--teal-dark); }

/* WHY US */
.why-us { background:var(--navy); color:var(--white); }
.why-us .section-header h2 { color:var(--white); }
.why-us .section-header p { color:rgba(255,255,255,0.55); }
.why-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }
.why-card { background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); border-radius:16px; padding:2rem; transition:all 0.3s; }
.why-card:hover { background:rgba(255,255,255,0.07); transform:translateY(-3px); }
.why-card .why-icon { font-size:1.6rem; margin-bottom:1rem; }
.why-card h4 { font-size:1rem; font-weight:700; margin-bottom:0.3rem; }
.why-card .why-en { font-size:0.78rem; color:rgba(255,255,255,0.4); margin-bottom:0.7rem; }
.why-card p { font-size:0.85rem; color:rgba(255,255,255,0.55); line-height:1.6; }

/* CERTS */
.certs { background:var(--white); }
.cert-bar { display:flex; gap:1.5rem; justify-content:center; flex-wrap:wrap; }
.cert-badge { display:flex; align-items:center; gap:10px; padding:12px 24px; border-radius:12px; background:var(--light-gray); border:1px solid rgba(0,0,0,0.05); font-size:0.85rem; font-weight:600; }

/* FOOTER */
.footer { background:var(--navy); color:var(--white); padding:60px 2rem 30px; }
.footer-inner { max-width:1280px; margin:0 auto; display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:3rem; }
.footer-brand p { font-size:0.88rem; color:rgba(255,255,255,0.5); line-height:1.7; margin-top:1rem; }
.footer h5 { font-size:0.82rem; text-transform:uppercase; letter-spacing:0.1em; color:rgba(255,255,255,0.35); font-weight:700; margin-bottom:1.2rem; }
.footer-links { list-style:none; }
.footer-links li { margin-bottom:0.7rem; }
.footer-links a { color:rgba(255,255,255,0.6); text-decoration:none; font-size:0.85rem; transition:color 0.25s; }
.footer-links a:hover { color:var(--white); }
.footer-bottom { max-width:1280px; margin:3rem auto 0; padding-top:1.5rem; border-top:1px solid rgba(255,255,255,0.08); display:flex; justify-content:space-between; font-size:0.8rem; color:rgba(255,255,255,0.3); }
.footer-bottom a { color:inherit; text-decoration:none; transition:color 0.25s; }
.footer-bottom a:hover { color:var(--white); }

.reveal { opacity:0; transform:translateY(32px); transition:opacity 0.7s ease-out, transform 0.7s ease-out; }
.reveal.visible { opacity:1; transform:translateY(0); }

@media (max-width:1024px) {
  .pillars-grid { grid-template-columns:1fr; }
  .product-grid.cols-3 { grid-template-columns:repeat(2,1fr); }
  .why-grid { grid-template-columns:repeat(2,1fr); }
  .case-grid { grid-template-columns:1fr; }
  .footer-inner { grid-template-columns:1fr 1fr; }
}
@media (max-width:768px) {
  .nav-links { display:none; }
  .hamburger { display:block; }
  .nav-links.open { display:flex; flex-direction:column; position:absolute; top:72px; left:0; right:0; background:rgba(10,22,40,0.98); padding:1.5rem 2rem; gap:1rem; }
  .hero-stats { flex-wrap:wrap; gap:1.5rem; }
  .product-grid.cols-3,.product-grid.cols-2 { grid-template-columns:1fr; }
  .why-grid { grid-template-columns:1fr; }
  .hero-actions { flex-direction:column; }
  .footer-inner { grid-template-columns:1fr; gap:2rem; }
  .footer-bottom { flex-direction:column; gap:0.8rem; text-align:center; }
}

/* CERT LIGHTBOX */
.cert-link { cursor:pointer; transition:all 0.3s; }
.cert-link:hover { transform:translateY(-3px); box-shadow:0 6px 20px rgba(0,0,0,0.12); background:var(--white); }
.cert-modal { display:none; position:fixed; inset:0; z-index:1000; align-items:center; justify-content:center; }
.cert-modal.active { display:flex; }
.cert-modal-overlay { position:absolute; inset:0; background:rgba(10,22,40,0.85); backdrop-filter:blur(8px); }
.cert-modal-content { position:relative; z-index:1; max-width:800px; max-height:90vh; display:flex; align-items:center; justify-content:center; flex-direction:column; animation:certFadeIn 0.3s ease-out; }
.cert-modal-img { max-width:90vw; max-height:80vh; border-radius:12px; box-shadow:0 20px 60px rgba(0,0,0,0.4); object-fit:contain; background:white; }
.cert-modal-close { position:absolute; top:-40px; right:-10px; background:none; border:none; color:white; font-size:2rem; cursor:pointer; width:40px; height:40px; display:flex; align-items:center; justify-content:center; border-radius:50%; transition:background 0.2s; z-index:2; }
.cert-modal-close:hover { background:rgba(255,255,255,0.15); }
.cert-nav { position:absolute; top:50%; transform:translateY(-50%); background:rgba(255,255,255,0.12); border:1px solid rgba(255,255,255,0.2); color:white; font-size:2rem; cursor:pointer; width:48px; height:48px; display:flex; align-items:center; justify-content:center; border-radius:50%; transition:all 0.2s; z-index:2; }
.cert-nav:hover { background:rgba(255,255,255,0.25); }
.cert-prev { left:-70px; }
.cert-next { right:-70px; }
.cert-modal-caption { color:rgba(255,255,255,0.8); font-size:0.9rem; margin-top:1rem; font-weight:500; text-align:center; }
@keyframes certFadeIn { from{opacity:0;transform:scale(0.95);} to{opacity:1;transform:scale(1);} }
@media(max-width:768px) {
  .cert-prev { left:10px; } .cert-next { right:10px; }
  .cert-modal-close { top:-35px; right:5px; }
}

/* BLOG SECTION (index) */
.blog-section { background:var(--light-gray); }
.blog-index { max-width:680px; margin:0 auto; display:flex; flex-direction:column; gap:0.7rem; }
.blog-index-item { display:flex; align-items:center; gap:1.5rem; padding:1.4rem 1.8rem; background:var(--white); border:1px solid rgba(0,0,0,0.08); border-radius:14px; cursor:pointer; transition:all 0.3s; text-decoration:none; color:inherit; }
.blog-index-item:hover { transform:translateX(4px); border-color:var(--electric); box-shadow:var(--card-shadow-hover); }
.blog-index-num { font-size:1.15rem; font-weight:800; color:var(--electric); min-width:38px; font-variant-numeric:tabular-nums; }
.blog-index-text { flex:1; }
.blog-index-title { font-size:1.02rem; font-weight:700; line-height:1.35; color:var(--text-primary); }
.blog-index-subtitle { font-size:0.83rem; color:var(--text-secondary); margin-top:0.25rem; }
.blog-index-arrow { font-size:1.4rem; color:var(--electric); opacity:0.5; transition:all 0.3s; }
.blog-index-item:hover .blog-index-arrow { opacity:1; transform:translateX(4px); }
@media(max-width:768px) { .blog-index-item { padding:1.1rem 1.2rem; gap:1rem; } .blog-index-num { font-size:1rem; min-width:30px; } }

/* BLOG MODAL */
.blog-modal { display:none; position:fixed; inset:0; z-index:1100; align-items:center; justify-content:center; }
.blog-modal.active { display:flex; }
.blog-modal-overlay { position:absolute; inset:0; background:rgba(10,22,40,0.88); backdrop-filter:blur(8px); }
.blog-modal-content { position:relative; z-index:1; max-width:880px; width:92vw; max-height:90vh; overflow-y:auto; background:var(--white); border-radius:18px; padding:2.5rem 2.8rem 2.2rem; box-shadow:0 30px 80px rgba(0,0,0,0.4); animation:certFadeIn 0.3s ease-out; }
.blog-modal-tag { display:inline-block; font-size:0.72rem; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; padding:5px 14px; border-radius:100px; background:rgba(45,127,249,0.1); color:var(--electric); margin-bottom:1rem; }
.blog-modal-title { font-size:1.7rem; font-weight:800; line-height:1.25; letter-spacing:-0.02em; color:var(--text-primary); margin-bottom:0.3rem; }
.blog-modal-subtitle { font-size:0.95rem; font-weight:500; color:var(--text-secondary); margin-bottom:1.4rem; }
.blog-modal-img { display:block; width:100%; border-radius:12px; margin-bottom:1.6rem; border:1px solid rgba(0,0,0,0.05); }
.blog-modal-body p { font-size:0.97rem; line-height:1.78; color:var(--text-secondary); margin-bottom:1.1rem; }
.blog-modal-body p:last-child { margin-bottom:0; }
.blog-modal-body em { color:var(--text-primary); font-style:italic; }
.blog-modal-body strong { color:var(--text-primary); }
.blog-modal-close { position:fixed; top:24px; right:32px; background:rgba(255,255,255,0.12); border:1px solid rgba(255,255,255,0.2); color:white; font-size:2rem; cursor:pointer; width:44px; height:44px; display:flex; align-items:center; justify-content:center; border-radius:50%; transition:background 0.2s; z-index:2; }
.blog-modal-close:hover { background:rgba(255,255,255,0.25); }
.blog-modal-nav { position:fixed; top:50%; transform:translateY(-50%); background:rgba(255,255,255,0.12); border:1px solid rgba(255,255,255,0.2); color:white; font-size:2rem; line-height:1; cursor:pointer; width:48px; height:48px; display:flex; align-items:center; justify-content:center; border-radius:50%; transition:all 0.2s; z-index:2; }
.blog-modal-nav:hover { background:rgba(255,255,255,0.25); }
.blog-prev { left:24px; }
.blog-next { right:24px; }
@media(max-width:768px) {
  .blog-modal-content { padding:1.8rem 1.6rem; width:94vw; }
  .blog-modal-title { font-size:1.3rem; }
  .blog-modal-close { top:12px; right:12px; }
  .blog-prev { left:8px; } .blog-next { right:8px; }
}
