/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; color: #333; line-height: 1.6; background: #fff; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Color Variables ===== */
:root {
  --orange: #FF6B00;
  --orange-dark: #E55A00;
  --dark: #1a1a2e;
  --gray-50: #f8f9fa;
  --gray-100: #e9ecef;
  --gray-200: #dee2e6;
  --gray-600: #6c757d;
  --white: #fff;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --radius: 8px;
}

/* ===== Container ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.header { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; max-width: 1200px; margin: 0 auto; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 700; color: var(--dark); }
.logo-icon { width: 40px; height: 40px; background: var(--orange); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 1.2rem; }

/* ===== Nav ===== */
.nav { display: flex; align-items: center; gap: 8px; }
.nav-item { position: relative; }
.nav-link { display: block; padding: 10px 16px; font-size: .95rem; font-weight: 500; color: var(--dark); border-radius: 6px; transition: all .2s; cursor: pointer; }
.nav-link:hover, .nav-link.active { color: var(--orange); background: rgba(255,107,0,.06); }

/* Dropdown */
.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 200px; padding: 8px 0; display: none; z-index: 100; }
.nav-item:hover .dropdown-menu { display: block; }
.dropdown-link { display: block; padding: 10px 20px; font-size: .9rem; color: var(--dark); transition: all .15s; }
.dropdown-link:hover { background: var(--gray-50); color: var(--orange); }

/* Mobile menu */
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: 8px; }
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .dropdown-menu { position: static; box-shadow: none; padding-left: 16px; }
}

/* ===== Hero ===== */
.hero { background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%); color: var(--white); padding: 80px 20px; text-align: center; }
.hero h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 16px; }
.hero h1 span { color: var(--orange); }
.hero p { font-size: 1.15rem; color: #c8d6e5; max-width: 700px; margin: 0 auto 32px; }
.hero-btn { display: inline-block; padding: 14px 36px; background: var(--orange); color: var(--white); border-radius: 6px; font-size: 1rem; font-weight: 600; transition: all .2s; }
.hero-btn:hover { background: var(--orange-dark); transform: translateY(-2px); }

/* ===== Sections ===== */
.section { padding: 60px 0; }
.section-title { text-align: center; font-size: 1.8rem; font-weight: 700; margin-bottom: 40px; color: var(--dark); }
.section-title span { color: var(--orange); }
.section-subtitle { text-align: center; color: var(--gray-600); margin-top: -30px; margin-bottom: 40px; font-size: .95rem; }

/* About Section */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-text h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--dark); }
.about-text p { color: var(--gray-600); margin-bottom: 16px; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.stat-box { text-align: center; padding: 20px; background: var(--gray-50); border-radius: var(--radius); }
.stat-num { font-size: 2rem; font-weight: 700; color: var(--orange); }
.stat-label { font-size: .85rem; color: var(--gray-600); margin-top: 4px; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }

/* Timeline */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 3px; background: var(--gray-200); border-radius: 2px; }
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-dot { position: absolute; left: -26px; top: 4px; width: 14px; height: 14px; background: var(--orange); border-radius: 50%; border: 3px solid var(--white); }
.timeline-year { font-weight: 700; color: var(--orange); font-size: .9rem; }
.timeline-desc { font-size: .9rem; color: var(--gray-600); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) { .card-grid { grid-template-columns: 1fr; } }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: all .25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-img { width: 100%; height: 220px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; color: var(--gray-600); font-size: .9rem; }
.card-body { padding: 20px; }
.card-body h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--dark); }
.card-body p { font-size: .9rem; color: var(--gray-600); margin-bottom: 12px; }
.card-link { color: var(--orange); font-weight: 600; font-size: .9rem; }

/* Commitment */
.commitment { background: var(--gray-50); }
.commitment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
@media (max-width: 768px) { .commitment-grid { grid-template-columns: 1fr 1fr; } }
.commitment-item { padding: 24px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.commitment-num { font-size: 2.2rem; font-weight: 700; color: var(--orange); }
.commitment-label { font-size: .85rem; color: var(--gray-600); margin-top: 8px; }

/* ===== Product Page ===== */
.product-hero { background: var(--dark); color: var(--white); padding: 50px 20px; text-align: center; }
.product-hero h1 { font-size: 2rem; margin-bottom: 12px; }
.product-hero p { color: #c8d6e5; }

.product-tabs { display: flex; justify-content: center; gap: 8px; padding: 24px 0; background: var(--white); border-bottom: 1px solid var(--gray-200); }
.product-tab { padding: 10px 24px; border-radius: 6px; font-weight: 500; cursor: pointer; transition: all .2s; font-size: .95rem; }
.product-tab:hover { background: var(--gray-50); }
.product-tab.active { background: var(--orange); color: var(--white); }

.product-section { display: none; padding: 40px 0; }
.product-section.active { display: block; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.product-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; transition: all .2s; }
.product-card:hover { border-color: var(--orange); box-shadow: var(--shadow); }
.product-card-img { width: 100%; height: 200px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; color: var(--gray-600); }
.product-card-body { padding: 16px; }
.product-card-body h4 { font-size: 1rem; margin-bottom: 6px; }
.product-card-body .spec { font-size: .85rem; color: var(--gray-600); }

/* Param Table */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .85rem; }
.spec-table th, .spec-table td { padding: 10px 12px; border: 1px solid var(--gray-200); text-align: center; }
.spec-table th { background: var(--dark); color: var(--white); font-weight: 600; }
.spec-table tr:nth-child(even) { background: var(--gray-50); }

/* Showcase Layouts */
.product-showcase { display: flex; flex-direction: column; gap: 30px; background: var(--white); padding: 24px; border-radius: var(--radius); border: 1px solid var(--gray-200); }
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; margin-bottom: 20px; }
.showcase-img-sm { width: 100%; height: 140px; object-fit: cover; border-radius: 6px; border: 1px solid var(--gray-100); }
.showcase-img-md { width: 100%; height: 260px; object-fit: contain; background: #fff; border-radius: 6px; }
.platform-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }

.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 15px; }

/* Existing legacy param-table for backward compatibility if needed */
.param-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: .9rem; }

/* ===== FAQ Page ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-question { padding: 16px 20px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: var(--white); transition: all .15s; }
.faq-question:hover { background: var(--gray-50); }
.faq-question::after { content: '+'; font-size: 1.2rem; color: var(--orange); font-weight: 700; transition: transform .2s; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer-inner { padding: 16px 20px; color: var(--gray-600); font-size: .9rem; line-height: 1.7; border-top: 1px solid var(--gray-200); }

/* ===== Forms ===== */
.form-section { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.form-input, .form-textarea, .form-select { width: 100%; padding: 12px 16px; border: 1px solid var(--gray-200); border-radius: 6px; font-size: .95rem; transition: border-color .2s; font-family: inherit; }
.form-input:focus, .form-textarea:focus, .form-select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,107,0,.1); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-submit { display: inline-block; padding: 14px 36px; background: var(--orange); color: var(--white); border: none; border-radius: 6px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.form-submit:hover { background: var(--orange-dark); }

/* ===== Contact Page ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { padding: 24px; background: var(--gray-50); border-radius: var(--radius); }
.contact-info h3 { margin-bottom: 16px; color: var(--dark); }
.contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.contact-icon { width: 36px; height: 36px; background: var(--orange); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); flex-shrink: 0; font-size: .9rem; }
.contact-item-text .label { font-size: .8rem; color: var(--gray-600); }
.contact-item-text .value { font-weight: 600; color: var(--dark); }

/* ===== Footer ===== */
.footer { background: var(--dark); color: #c8d6e5; padding: 40px 20px 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: var(--white); margin-bottom: 16px; font-size: 1rem; }
.footer p, .footer a { font-size: .85rem; color: #95a5a6; }
.footer a:hover { color: var(--orange); }
.footer-bottom { text-align: center; padding-top: 24px; margin-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; color: #7f8c8d; }

/* ===== Page Header ===== */
.page-header { background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%); color: var(--white); padding: 50px 20px; text-align: center; }
.page-header h1 { font-size: 2rem; margin-bottom: 8px; }
.page-header p { color: #c8d6e5; }

/* ===== Video placeholder ===== */
.video-placeholder { width: 100%; height: 360px; background: #222; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: #888; font-size: 1.1rem; margin-bottom: 24px; }
.video-placeholder span { font-size: 2.5rem; margin-bottom: 8px; }

/* ===== Image placeholder ===== */
.img-placeholder { width: 100%; height: 200px; background: var(--gray-100); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--gray-600); font-size: .9rem; margin-bottom: 20px; }

/* ===== Breadcrumb ===== */
.breadcrumb { padding: 12px 0; font-size: .85rem; color: var(--gray-600); }
.breadcrumb a { color: var(--orange); }