/* ============================================================
   Cardnation - Static Site Styles
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.6; color: #1a1a2e; background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Navigation --- */
#main-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0,0,0,0.06); }
.nav-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; height: 72px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; }
.logo-img { height: 70px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 8px 14px; font-size: 14px; font-weight: 500; color: #555; border-radius: 8px; transition: all 0.2s ease; cursor: pointer; }
.nav-link:hover { color: #0d9488; background: rgba(13,148,136,0.06); }
.nav-link.active { color: #0d9488; background: rgba(13,148,136,0.1); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; background: #f3f4f6; border-radius: 8px; padding: 3px; }
.lang-btn { padding: 6px 12px; font-size: 13px; font-weight: 600; border: none; border-radius: 6px; cursor: pointer; background: transparent; color: #666; transition: all 0.2s ease; }
.lang-btn.active { background: #0d9488; color: white; box-shadow: 0 2px 4px rgba(13,148,136,0.3); }
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: #333; border-radius: 2px; transition: all 0.3s ease; }

/* --- Page Sections --- */
.page-section { display: none; min-height: calc(100vh - 72px); padding-top: 72px; }
.page-section.active { display: block; }

/* --- Hero (Home) --- */
.hero-section { padding: 100px 0 60px; background: linear-gradient(135deg, #f8fffe 0%, #f0fdfa 50%, #ecfdf5 100%); }
.hero-content { max-width: 720px; }
.hero-label { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: #0d9488; margin-bottom: 20px; }
.hero-title { font-size: 56px; font-weight: 800; line-height: 1.1; color: #1a1a2e; margin-bottom: 24px; }
.text-accent { color: #0d9488; }
.hero-desc { font-size: 18px; line-height: 1.7; color: #555; margin-bottom: 36px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-buttons.center { justify-content: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; font-size: 15px; font-weight: 600; border-radius: 10px; cursor: pointer; transition: all 0.2s ease; border: 2px solid transparent; }
.btn-primary { background: #0d9488; color: white; border-color: #0d9488; }
.btn-primary:hover { background: #0f766e; border-color: #0f766e; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(13,148,136,0.3); }
.btn-outline { background: transparent; color: #0d9488; border-color: #0d9488; }
.btn-outline:hover { background: #0d9488; color: white; transform: translateY(-1px); }

/* Tags */
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tag { padding: 6px 14px; font-size: 13px; font-weight: 500; background: rgba(13,148,136,0.08); color: #0d9488; border: 1px solid rgba(13,148,136,0.2); border-radius: 20px; }

/* --- Stats --- */
.stats-section { padding: 60px 0; background: white; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card { text-align: center; padding: 32px 20px; background: #f8fffe; border: 1px solid rgba(13,148,136,0.1); border-radius: 16px; transition: all 0.2s ease; }
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(13,148,136,0.1); }
.stat-number { font-size: 42px; font-weight: 800; color: #0d9488; line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 4px; }
.stat-sub { font-size: 12px; color: #888; }

/* --- Content Sections --- */
.content-section { padding: 80px 0; }
.content-section.alt-bg { background: #f8fffe; }
.section-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: #0d9488; margin-bottom: 12px; }
.section-label.light { color: rgba(255,255,255,0.8); }
.section-title { font-size: 36px; font-weight: 700; color: #1a1a2e; margin-bottom: 20px; line-height: 1.2; }
.section-desc { font-size: 17px; color: #555; max-width: 700px; margin-bottom: 40px; }
.body-text { font-size: 16px; line-height: 1.8; color: #555; margin-bottom: 16px; }
.highlight-quote { font-size: 20px; font-style: italic; color: #0d9488; border-left: 3px solid #0d9488; padding-left: 20px; margin: 24px 0; }

/* Two column */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.rounded-image { border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.1); width: 100%; }

/* --- Tech Grid --- */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.tech-card { padding: 28px; background: white; border: 1px solid rgba(13,148,136,0.1); border-radius: 16px; transition: all 0.2s ease; }
.tech-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(13,148,136,0.1); border-color: rgba(13,148,136,0.3); }
.tech-icon { font-size: 32px; margin-bottom: 12px; }
.tech-card h4 { font-size: 16px; font-weight: 600; color: #1a1a2e; margin-bottom: 8px; }
.tech-card p { font-size: 14px; color: #666; line-height: 1.5; }
.center-cta { text-align: center; margin-top: 20px; }

/* --- Page Hero --- */
.page-hero { padding: 100px 0 60px; background: linear-gradient(135deg, #f8fffe 0%, #f0fdfa 50%, #ecfdf5 100%); }
.page-hero.dark-hero { background: linear-gradient(135deg, #0f2027 0%, #1a3a4a 50%, #203a43 100%); position: relative; }
.page-hero.dark-hero .container { position: relative; z-index: 1; }
.page-title { font-size: 48px; font-weight: 800; line-height: 1.1; color: #1a1a2e; margin-bottom: 20px; }
.page-title.light { color: white; }
.page-desc { font-size: 18px; line-height: 1.7; color: #555; max-width: 700px; }
.page-desc.light { color: rgba(255,255,255,0.85); }

/* --- Technology Detail --- */
.tech-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.tech-detail-card { padding: 32px; background: #f8fffe; border: 1px solid rgba(13,148,136,0.1); border-radius: 16px; transition: all 0.2s ease; }
.tech-detail-card:hover { border-color: rgba(13,148,136,0.3); box-shadow: 0 4px 16px rgba(13,148,136,0.08); }
.tech-detail-icon { font-size: 36px; margin-bottom: 16px; }
.tech-detail-card h3 { font-size: 20px; font-weight: 700; color: #1a1a2e; margin-bottom: 12px; }
.tech-detail-card p { font-size: 15px; color: #555; line-height: 1.7; margin-bottom: 16px; }
.tech-detail-card ul { list-style: disc; padding-left: 20px; }
.tech-detail-card li { font-size: 14px; color: #666; margin-bottom: 6px; }
.spec-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.spec-item { padding: 16px; background: rgba(13,148,136,0.05); border-radius: 10px; font-size: 14px; color: #555; }
.spec-item strong { display: block; font-size: 22px; font-weight: 700; color: #0d9488; margin-bottom: 4px; }

/* --- CaaS --- */
.definition-box { padding: 48px; background: white; border: 2px solid rgba(13,148,136,0.15); border-radius: 20px; box-shadow: 0 4px 24px rgba(13,148,136,0.05); }
.definition-box h2 { font-size: 32px; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; }
.mono-label { font-family: 'JetBrains Mono', monospace; font-size: 14px; color: #0d9488; margin-bottom: 20px; }
.caas-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; padding-top: 32px; border-top: 1px solid rgba(13,148,136,0.1); }
.caas-stat { text-align: center; }
.caas-stat strong { display: block; font-size: 28px; font-weight: 800; color: #0d9488; margin-bottom: 4px; }
.caas-stat span { font-size: 13px; color: #666; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card { padding: 28px; background: white; border: 1px solid rgba(13,148,136,0.1); border-radius: 14px; transition: all 0.2s ease; }
.service-card:hover { border-color: rgba(13,148,136,0.3); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(13,148,136,0.08); }
.service-card h4 { font-size: 17px; font-weight: 600; color: #1a1a2e; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: #666; line-height: 1.6; }

/* --- Info Grid (About) --- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-card { padding: 28px; background: white; border: 1px solid rgba(0,0,0,0.06); border-radius: 14px; }
.info-card h4 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: #0d9488; margin-bottom: 8px; }
.info-card p { font-size: 15px; color: #333; font-weight: 500; }

/* --- Problem Grid (Why IoT Cards) --- */
.problem-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.problem-card { padding: 36px; background: #f8fffe; border: 1px solid rgba(13,148,136,0.1); border-radius: 16px; }
.problem-number { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; color: #0d9488; margin-bottom: 16px; }
.problem-stat { font-size: 36px; font-weight: 800; color: #0d9488; line-height: 1; margin-bottom: 4px; }
.problem-stat-label { font-size: 13px; color: #888; margin-bottom: 16px; }
.problem-card h3 { font-size: 18px; font-weight: 700; color: #1a1a2e; margin-bottom: 12px; }
.problem-card p { font-size: 14px; color: #666; line-height: 1.7; }

/* --- Application Grid (Products) --- */
.application-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.application-card { padding: 36px; background: #f8fffe; border: 1px solid rgba(13,148,136,0.1); border-radius: 16px; transition: all 0.2s ease; }
.application-card:hover { border-color: rgba(13,148,136,0.3); transform: translateY(-2px); }
.app-number { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; color: #0d9488; margin-bottom: 12px; }
.application-card h3 { font-size: 20px; font-weight: 700; color: #1a1a2e; margin-bottom: 6px; }
.app-subtitle { font-size: 13px; color: #0d9488; font-weight: 500; margin-bottom: 12px; }
.application-card > p:last-child { font-size: 14px; color: #666; line-height: 1.7; }

/* --- Patent Grid --- */
.patent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.patent-grid.two-col-grid { grid-template-columns: repeat(2, 1fr); }
.patent-card { padding: 28px; background: white; border: 1px solid rgba(0,0,0,0.06); border-radius: 14px; transition: all 0.2s ease; }
.patent-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.patent-image { width: 100%; height: 180px; object-fit: contain; background: #f9fafb; border-radius: 10px; margin-bottom: 16px; cursor: pointer; padding: 12px; }
.patent-card h4 { font-size: 16px; font-weight: 600; color: #1a1a2e; margin-bottom: 6px; }
.patent-id { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #0d9488; margin-bottom: 10px; }
.patent-card > p:last-child { font-size: 13px; color: #666; line-height: 1.6; }

/* --- Certification Grid --- */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert-card { padding: 24px; background: white; border: 1px solid rgba(0,0,0,0.06); border-radius: 12px; text-align: center; }
.cert-card h4 { font-size: 15px; font-weight: 600; color: #1a1a2e; margin-bottom: 4px; }
.cert-id { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #0d9488; margin-bottom: 8px; }
.cert-card > p:last-child { font-size: 12px; color: #666; line-height: 1.5; }

/* --- Awards (Recognition) --- */
.awards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.award-card { padding: 28px; background: white; border: 1px solid rgba(0,0,0,0.06); border-radius: 14px; }
.award-image { width: 50%; height: auto; object-fit: contain; background: #f9fafb; border-radius: 10px; margin-bottom: 16px; cursor: pointer; padding: 12px; }
.award-card h4 { font-size: 17px; font-weight: 600; color: #1a1a2e; margin-bottom: 6px; }
.award-category { font-size: 13px; color: #0d9488; font-weight: 500; margin-bottom: 10px; }
.award-card > p:last-child { font-size: 14px; color: #666; line-height: 1.6; }
.collab-box { padding: 36px; background: #f8fffe; border: 1px solid rgba(13,148,136,0.15); border-radius: 16px; }
.collab-box h4 { font-size: 20px; font-weight: 700; color: #1a1a2e; margin-bottom: 12px; }
.collab-box > p { font-size: 15px; color: #555; line-height: 1.7; margin-bottom: 16px; }
.collab-box ul { list-style: disc; padding-left: 20px; }
.collab-box li { font-size: 14px; color: #555; margin-bottom: 8px; line-height: 1.5; }
.exhibition-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.exhibition-card { padding: 28px; background: white; border: 1px solid rgba(0,0,0,0.06); border-radius: 14px; }
.exhibition-card h4 { font-size: 18px; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.exhibition-sub { font-size: 13px; color: #0d9488; margin-bottom: 10px; }
.exhibition-card > p:last-child { font-size: 14px; color: #666; line-height: 1.6; }

/* --- CTA Section --- */
.cta-section { padding: 80px 0; background: linear-gradient(135deg, #0f2027 0%, #1a3a4a 50%, #203a43 100%); text-align: center; }
.cta-section h2 { font-size: 36px; font-weight: 700; color: white; margin-bottom: 16px; }
.cta-section p { font-size: 17px; color: rgba(255,255,255,0.8); margin-bottom: 32px; }
.cta-section .btn-primary { background: #0d9488; border-color: #0d9488; }
.cta-section .btn-outline { color: white; border-color: rgba(255,255,255,0.4); }
.cta-section .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; color: white; }

/* --- Notices --- */
#notices-container { min-height: 400px; }
.notice-list { display: flex; flex-direction: column; gap: 12px; }
.notice-item { padding: 20px 24px; background: white; border: 1px solid rgba(0,0,0,0.06); border-radius: 12px; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; gap: 16px; }
.notice-item:hover { border-color: rgba(13,148,136,0.3); box-shadow: 0 2px 8px rgba(13,148,136,0.08); }
.notice-item.pinned { border-left: 3px solid #0d9488; background: #f8fffe; }
.notice-category { font-size: 11px; font-weight: 600; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; background: rgba(13,148,136,0.1); color: #0d9488; white-space: nowrap; }
.notice-title { flex: 1; font-size: 15px; font-weight: 500; color: #1a1a2e; }
.notice-date { font-size: 13px; color: #888; white-space: nowrap; }
.notice-pin { color: #0d9488; font-size: 14px; }
.notice-detail { max-width: 800px; margin: 0 auto; }
.notice-back-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #0d9488; font-weight: 500; cursor: pointer; margin-bottom: 24px; background: none; border: none; padding: 8px 0; }
.notice-back-btn:hover { color: #0f766e; }
.notice-detail-card { background: white; border: 1px solid rgba(13,148,136,0.1); border-radius: 16px; padding: 36px; }
.notice-detail-header { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.notice-detail-title { font-size: 24px; font-weight: 700; color: #1a1a2e; margin-bottom: 12px; }
.notice-detail-meta { display: flex; gap: 16px; font-size: 13px; color: #888; }
.notice-detail-content { font-size: 15px; line-height: 1.8; color: #444; white-space: pre-line; }
.notice-detail-image { width: 100%; border-radius: 12px; margin: 20px 0; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.notice-detail-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; padding: 10px 20px; background: #0d9488; color: white; border-radius: 8px; font-size: 14px; font-weight: 500; transition: all 0.2s ease; }
.notice-detail-link:hover { background: #0f766e; transform: translateY(-1px); }
.notice-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.notice-pagination button { padding: 8px 14px; font-size: 14px; border: 1px solid rgba(0,0,0,0.1); border-radius: 8px; background: white; cursor: pointer; transition: all 0.2s ease; }
.notice-pagination button.active { background: #0d9488; color: white; border-color: #0d9488; }
.notice-pagination button:hover:not(.active) { border-color: #0d9488; color: #0d9488; }

/* --- Footer --- */
#main-footer { background: #1a1a2e; color: rgba(255,255,255,0.7); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-logo { height: 70px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; line-height: 1.6; margin-bottom: 12px; }
.footer-tags { font-size: 12px; color: rgba(255,255,255,0.4); }
.footer-links h4, .footer-contact h4 { font-size: 14px; font-weight: 600; color: white; margin-bottom: 16px; }
.footer-links a { display: block; font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 10px; transition: color 0.2s ease; }
.footer-links a:hover { color: #0d9488; }
.footer-contact p { font-size: 14px; margin-bottom: 8px; }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.4); }

/* --- Lightbox --- */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 9999; cursor: pointer; align-items: center; justify-content: center; padding: 40px; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 90vh; object-fit: contain; border-radius: 8px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: white; flex-direction: column; padding: 16px; border-bottom: 1px solid rgba(0,0,0,0.06); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
  .nav-links.open { display: flex; }
  .mobile-menu-btn { display: flex; }
  .hero-title { font-size: 40px; }
  .page-title { font-size: 36px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-detail-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-grid { grid-template-columns: 1fr; }
  .application-grid { grid-template-columns: 1fr; }
  .patent-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .awards-grid { grid-template-columns: 1fr; }
  .exhibition-grid { grid-template-columns: 1fr; }
  .caas-stats { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* --- CES Awards Grid --- */
.ces-awards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 32px; }
.ces-award-item { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); padding: 24px; display: flex; align-items: center; justify-content: center; }
.ces-award-item img { max-width: 100%; height: auto; cursor: pointer; transition: transform 0.2s ease; }
.ces-award-item img:hover { transform: scale(1.02); }

/* --- Language Image --- */
.lang-image { transition: opacity 0.2s ease; }
.clickable-image { cursor: pointer; }

@media (max-width: 640px) {
  .hero-title { font-size: 32px; }
  .page-title { font-size: 28px; }
  .section-title { font-size: 28px; }
  .stats-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .patent-grid, .patent-grid.two-col-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .ces-awards-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .definition-box { padding: 28px; }
  .spec-list { grid-template-columns: 1fr; }
  .notice-item { flex-direction: column; align-items: flex-start; gap: 8px; }
}

.milestones-section {
  padding: 80px 0;
}

.milestones-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.milestone-item {
  background: #ffffff;
  border: 1px solid #e5eeee;
  border-radius: 18px;
  padding: 28px;
}

.milestone-item h3 {
  color: #0f766e;
  margin-bottom: 12px;
  font-size: 22px;
}

.milestone-item p {
  line-height: 1.8;
  color: #1a1a2e;
}

