/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f8f9fa; color: #202124; line-height: 1.6; font-size: 16px;
}
a { color: #1a73e8; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== TOP HEADER / NAV ===== */
.top-header {
  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 #e8eaed; transition: box-shadow 0.3s;
}
.top-header.scrolled { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: #202124; }
.logo-icon { width: 36px; height: 36px; background: #1a73e8; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; }
.logo span { color: #1a73e8; }
nav { display: flex; align-items: center; gap: 8px; }
nav a {
  padding: 8px 14px; border-radius: 8px; font-size: 0.875rem; font-weight: 500;
  color: #5f6368; transition: all 0.2s; white-space: nowrap;
}
nav a:hover { background: #e8f0fe; color: #1a73e8; text-decoration: none; }
.lang-switch {
  display: flex; align-items: center; gap: 4px; margin-left: 8px;
  padding: 6px 12px; border: 1px solid #dadce0; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 0.875rem; font-weight: 500;
  color: #5f6368; transition: all 0.2s;
}
.lang-switch:hover { background: #f1f3f4; border-color: #bdc1c6; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #5f6368; padding: 4px 8px; touch-action: manipulation; }
.header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

/* ===== HERO ===== */
.hero {
  padding: 140px 0 80px; background: linear-gradient(135deg, #e8f0fe 0%, #f8f9fa 50%, #e6f4ea 100%);
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(26,115,232,0.04) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(52,168,83,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 16px; color: #202124; letter-spacing: -0.5px; }
.hero h1 span { color: #1a73e8; }
.hero p { font-size: 1.2rem; color: #5f6368; max-width: 640px; margin: 0 auto 32px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #e6f4ea; color: #137333; padding: 8px 20px; border-radius: 100px;
  font-size: 0.875rem; font-weight: 600; margin-bottom: 20px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px;
  border-radius: 10px; font-weight: 600; font-size: 1rem; cursor: pointer;
  border: none; transition: all 0.2s; text-decoration: none;
}
.btn-primary { background: #1a73e8; color: #fff; }
.btn-primary:hover { background: #1557b0; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,115,232,0.3); text-decoration: none; }
.btn-outline { background: transparent; color: #1a73e8; border: 2px solid #1a73e8; }
.btn-outline:hover { background: #e8f0fe; transform: translateY(-1px); text-decoration: none; }
.btn-white { background: #fff; color: #1a73e8; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.btn-white:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); transform: translateY(-1px); text-decoration: none; }

/* ===== SECTIONS ===== */
section { padding: 80px 0; }
.section-title {
  text-align: center; margin-bottom: 48px;
}
.section-title h2 { font-size: 2rem; font-weight: 700; color: #202124; margin-bottom: 12px; }
.section-title p { color: #5f6368; max-width: 600px; margin: 0 auto; font-size: 1.05rem; }
.section-alt { background: #fff; }
.section-divider { border: none; height: 1px; background: linear-gradient(to right, transparent, #e8eaed, transparent); margin: 0; }

/* ===== FEATURE CARDS GRID ===== */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
}
.feature-card {
  background: #fff; border-radius: 16px; padding: 32px; border: 1px solid #e8eaed;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); border-color: transparent; }
.feature-card .icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 16px; color: #fff;
}
.feature-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; color: #202124; }
.feature-card p { color: #5f6368; font-size: 0.925rem; line-height: 1.5; }

/* ===== RESOLUTION GRID ===== */
.res-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px;
}
.res-card {
  background: #fff; border: 1px solid #e8eaed; border-radius: 12px; padding: 20px 16px;
  text-align: center; transition: all 0.2s; cursor: default;
}
.res-card:hover { border-color: #1a73e8; box-shadow: 0 4px 12px rgba(26,115,232,0.1); }
.res-card .label { font-weight: 700; font-size: 1.1rem; color: #202124; }
.res-card .sub { font-size: 0.8rem; color: #5f6368; margin-top: 4px; }
.res-card .badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 600; margin-top: 8px; }
.badge-new { background: #e8f0fe; color: #1a73e8; }
.badge-hot { background: #fce8e6; color: #c5221f; }
.badge-soon { background: #fef7e0; color: #ea8600; }

/* ===== FORMAT LIST ===== */
.format-list {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 24px;
}
.format-tag {
  padding: 8px 16px; background: #fff; border: 1px solid #dadce0; border-radius: 20px;
  font-size: 0.85rem; font-weight: 500; color: #5f6368; transition: all 0.2s;
}
.format-tag:hover { border-color: #1a73e8; color: #1a73e8; background: #e8f0fe; }

/* ===== TWO COLUMN LAYOUT ===== */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.two-col-reverse { direction: rtl; }
.two-col-reverse > * { direction: ltr; }

/* ===== ICON COLOR VARIATIONS ===== */
.icon-blue { background: #e8f0fe; color: #1a73e8; }
.icon-green { background: #e6f4ea; color: #137333; }
.icon-orange { background: #fef7e0; color: #ea8600; }
.icon-purple { background: #f3e8fd; color: #9334e6; }
.icon-red { background: #fce8e6; color: #c5221f; }
.icon-teal { background: #e0f2f1; color: #00796b; }

/* ===== SCENARIO BOX ===== */
.scenario {
  background: #fff; border: 1px solid #e8eaed; border-radius: 16px; padding: 28px; margin-bottom: 20px;
  transition: all 0.2s;
}
.scenario:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.scenario h4 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 12px; color: #202124; }
.scenario h4 .num {
  width: 28px; height: 28px; border-radius: 50%; background: #1a73e8; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; flex-shrink: 0;
}
.scenario ol { padding-left: 20px; color: #5f6368; font-size: 0.925rem; line-height: 1.8; }
.scenario ol li::marker { color: #1a73e8; font-weight: 600; }

/* ===== STATS / QUOTE ===== */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; text-align: center;
}
.stat-item h3 { font-size: 2.2rem; font-weight: 800; color: #1a73e8; }
.stat-item p { color: #5f6368; font-size: 0.925rem; }

/* ===== FEATURE LIST WITH ICONS ===== */
.icon-list { display: flex; flex-direction: column; gap: 16px; }
.icon-list li {
  display: flex; align-items: flex-start; gap: 14px; font-size: 0.95rem; color: #3c4043;
}
.icon-list li .li-icon {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: #fff; flex-shrink: 0; margin-top: 2px;
}

/* ===== TABS ===== */
.tabs { display: flex; gap: 4px; margin-bottom: 32px; flex-wrap: wrap; justify-content: center; }
.tab-btn {
  padding: 10px 20px; border: 1px solid #dadce0; border-radius: 8px; background: #fff;
  font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all 0.2s; color: #5f6368;
}
.tab-btn:hover { background: #f1f3f4; }
.tab-btn.active { background: #1a73e8; color: #fff; border-color: #1a73e8; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px;
  width: 2px; background: #e8eaed;
}
.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-item::before {
  content: ''; position: absolute; left: -26px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%; background: #1a73e8; border: 2px solid #fff;
  box-shadow: 0 0 0 2px #1a73e8;
}
.timeline-item h4 { font-size: 1rem; font-weight: 600; color: #202124; }
.timeline-item p { color: #5f6368; font-size: 0.9rem; }

/* ===== FOOTER ===== */
footer {
  background: #202124; color: #9aa0a6; padding: 48px 0 32px;
}
footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
footer h4 { color: #e8eaed; font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
footer a { color: #9aa0a6; font-size: 0.9rem; display: block; margin-bottom: 8px; }
footer a:hover { color: #fff; text-decoration: none; }
footer p { font-size: 0.85rem; line-height: 1.6; }
.footer-bottom { border-top: 1px solid #3c4043; margin-top: 32px; padding-top: 24px; text-align: center; font-size: 0.85rem; color: #70757a; }

/* ===== SCREENSHOT TEASER ON INDEX ===== */
.ss-teaser { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.ss-teaser-item {
  border-radius: 12px; overflow: hidden; border: 1px solid #e8eaed; transition: all 0.3s; cursor: pointer;
}
.ss-teaser-item:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); border-color: transparent; }
.ss-teaser-item img { width: 100%; height: 130px; object-fit: cover; display: block; }
@media (max-width: 768px) { .ss-teaser { grid-template-columns: repeat(2, 1fr); gap: 10px; } .ss-teaser-item img { height: 100px; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col-reverse { direction: ltr; }
  footer .container { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .section-title h2 { font-size: 1.5rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .res-grid { grid-template-columns: repeat(3, 1fr); }
  footer .container { grid-template-columns: 1fr; gap: 24px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .lang-switch span { display: none; }
  .logo > span { font-size: 0.8rem; max-width: 100px; }
  .logo-icon { width: 26px; height: 26px; font-size: 0.75rem; }
  nav#mainNav, nav#ssNav, nav#appsNav, nav#ataNav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    padding: 8px 20px 16px;
    gap: 2px;
    border-bottom: 1px solid #e8eaed;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 999;
  }
  nav#mainNav.open, nav#ssNav.open, nav#appsNav.open, nav#ataNav.open {
    display: flex !important;
  }
  nav#mainNav a, nav#ssNav a, nav#appsNav a, nav#ataNav a {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
  }
  nav#mainNav a:hover, nav#ssNav a:hover, nav#appsNav a:hover, nav#ataNav a:hover {
    background: #e8f0fe;
  }
  .header-inner { gap: 4px; }
  .logo { gap: 6px; min-width: 0; overflow: hidden; }
  .logo > span { font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .logo-icon { width: 30px; height: 30px; font-size: 0.9rem; flex-shrink: 0; }
  .top-header { overflow: visible; }
  .mobile-menu-btn { display: block; }
  .lang-switch { margin-left: 0; }
}
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .section-title h2 { font-size: 1.5rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .res-grid { grid-template-columns: repeat(3, 1fr); }
  footer .container { grid-template-columns: 1fr; gap: 24px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .lang-switch span { display: none; }
}
@media (max-width: 640px) {
  .logo > span { font-size: 0.8rem; max-width: 100px; }
  .logo-icon { width: 26px; height: 26px; font-size: 0.75rem; }
}
@media (max-width: 480px) {
  .res-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 1.5rem; }
  .btn { padding: 10px 20px; font-size: 0.9rem; }
  .logo > span { max-width: 70px; font-size: 0.75rem; }
  .logo-icon { width: 24px; height: 24px; font-size: 0.7rem; }
}

/* ===== HERO LIGHTBOX ===== */
#heroLightbox {
  display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.92); align-items: center; justify-content: center; cursor: zoom-out;
}
#heroLightbox.show { display: flex; }
#heroLightbox img {
  max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5); cursor: default;
}
#heroLightbox .hl-close {
  position: fixed; top: 20px; right: 24px; color: #fff; font-size: 1.8rem;
  cursor: pointer; opacity: 0.7; transition: opacity 0.2s; z-index: 10000;
}
#heroLightbox .hl-close:hover { opacity: 1; }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-8 { gap: 8px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
