:root {
  --primary: #00a8f3;
  --primary-dark: #008fce;
  --primary-light: #43c6ff;
  --primary-glow: rgba(36, 59, 90, 0.08);
  --accent: #2f5b8f;
  --dark: #1a1a2e;
  --text: #444;
  --text-light: #888;
  --heading: #1a1a2e;
  --bg-white: #fff;
  --bg-light: #f5f7fb;
  --bg-warm: #f6f8fb;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.10);
  --shadow-color: 0 8px 32px rgba(36, 59, 90, 0.10);
  --max-width: 1180px;
  --transition: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background: #fff;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== FADE-IN ANIMATION ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-in {
  animation: fadeInUp 0.7s var(--transition-slow) both;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  height: 64px;
  transition: box-shadow var(--transition);
}
.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--primary); }
.nav .nav-logo span { color: var(--heading); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
  position: relative;
}
.nav-support {
  position: relative;
}
.nav-support > a {
  display: inline-block;
}
.nav-support-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 170px;
  background: #1f1f1f;
  border: 1px solid #333;
  border-radius: 2px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.22);
  z-index: 1200;
  overflow: hidden;
}
.nav-support-menu li {
  margin: 0;
}
.nav-support-menu li a {
  display: block;
  padding: 8px 12px;
  color: #e8e8e8 !important;
  font-size: 14px;
  line-height: 1.2;
}
.nav-support-menu li a:hover {
  background: #2b2b2b;
  color: #fff !important;
}
.nav-support:hover .nav-support-menu {
  display: block;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--primary); }

.nav-cta {
  padding: 9px 22px;
  background: var(--primary);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 12px rgba(47, 111, 179, 0.28);
}
.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(47, 111, 179, 0.38);
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--heading); border-radius: 2px; transition: var(--transition); }

.nav-original {
  background: #262626;
  border-bottom: 1px solid #1e1e1e;
  height: 56px;
}
.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* ===== HERO ===== */
.hero {
  padding: 120px 0 80px;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: transparent;
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: transparent;
  border-radius: 50%;
  pointer-events: none;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 56px;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-badge-unused {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--primary-glow);
  color: var(--primary);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 40px;
  font-weight: 800;
  color: var(--heading);
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.hero h1 .highlight {
  color: #233b5d;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 480px;
}

.hero-image {
  flex: 1;
  min-width: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(47, 111, 179, 0.32);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(47, 111, 179, 0.42);
}
.btn-primary svg { flex-shrink: 0; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Hero cover image with play button */
.hero-video-cover {
  position: relative;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: none;
}
.hero-video-cover img { transition: transform var(--transition-slow); }
.hero-video-cover:hover img { transform: scale(1.03); }

.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: transform var(--transition);
}
.play-btn svg circle { transition: fill var(--transition); }
.hero-video-cover:hover .play-btn { transform: translate(-50%, -50%) scale(1.1); }
.hero-video-cover:hover .play-btn svg circle { fill: rgba(255, 79, 100, 0.85); }

/* ===== VIDEO MODAL ===== */
.video-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.video-modal.active { display: flex; }

.video-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 860px;
  z-index: 1;
  animation: fadeInUp 0.3s ease both;
}

.video-modal-close {
  position: absolute;
  top: -40px; right: 0;
  background: none; border: none;
  color: #fff; font-size: 32px;
  cursor: pointer; opacity: 0.7;
  transition: opacity var(--transition), transform var(--transition);
}
.video-modal-close:hover { opacity: 1; transform: scale(1.1); }

.video-modal-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.video-modal-frame iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ===== KEYWORD TAGS ===== */
.keyword-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 20px 0 0;
}
.keyword-bar span,
.keyword-bar a {
  padding: 6px 18px;
  background: var(--bg-light);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
  text-decoration: none;
  transition: all .25s ease;
  border: 1px solid transparent;
}
.keyword-bar span.active,
.keyword-bar a.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(47, 111, 179, 0.30);
}
.keyword-bar a:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 3px 10px rgba(47, 111, 179, 0.30);
}

/* ===== SECTION ===== */
.section { padding: 90px 0; }
.section-alt { background: #fff; }
.section-warm {
  background: #fff;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--heading);
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== FEATURE ROW ===== */
.feature-row {
  display: flex;
  align-items: center;
  gap: 72px;
  padding: 52px 0;
}
.feature-row.reverse { flex-direction: row-reverse; }

.feature-text { flex: 1; min-width: 0; }
.feature-image { flex: 1; min-width: 0; }

.feature-label {
  display: inline-block;
  padding: 5px 14px;
  background: var(--primary-glow);
  color: var(--primary);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.intro-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: -0.2px;
}

.feature-text h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}

.feature-text p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 16px;
}

.feature-text p a {
  color: var(--primary);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.feature-text p a:hover { border-bottom-color: var(--primary); }

.feature-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}
.feature-image:hover img {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ===== SHOWCASE GRID ===== */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.showcase-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}
.showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.showcase-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  background: #f7f9fc;
  transition: transform var(--transition-slow);
}
.showcase-card:hover img {
  transform: scale(1.05);
}

.showcase-card-body {
  padding: 16px 18px;
}
.showcase-card-body h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
  text-align: center;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 90px 0;
  background: #f2f6fb;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: transparent;
  border-radius: 50%;
  pointer-events: none;
}

.cta-section h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 14px;
  letter-spacing: -0.3px;
  position: relative;
}

.cta-section p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-section .btn-primary {
  position: relative;
}

.cta-section .next-paper {
  color: #00a8f3;
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}
.cta-section .next-paper:hover {
  color: #008fce;
}

/* ===== FOOTER ===== */
.footer {
  background: #2d4765;
  color: rgba(255,255,255,0.72);
  padding: 36px 0 0;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px;
  margin-bottom: 20px;
}

.footer h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a {
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: #fff; }

.footer-language {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #00a8f3;
  border-radius: 2px;
  color: #fff;
  font-size: 0;
  font-weight: 600;
  position: relative;
}
.footer-social-btn::before {
  content: "t";
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.footer-products {
  color: rgba(255,255,255,0.82);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
  margin-bottom: 8px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.footer-products a { color: rgba(255,255,255,0.9); }
.footer-products a:hover { color: #fff; }

.footer-bottom {
  background: transparent;
  border-top: none;
  min-height: 32px;
  padding: 7px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  line-height: 1;
  position: relative;
  z-index: 1;
}
.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  border-top: 1px solid rgba(255,255,255,0.14);
}
.footer-bottom::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #243b57;
  z-index: -1;
}

.footer-bottom-links { display: flex; align-items: center; gap: 8px; }
.footer-bottom-links a { transition: color var(--transition); color: rgba(255,255,255,0.85); }
.footer-bottom-links a:hover { color: #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 32px; }
  .feature-row { gap: 48px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 90px 0 50px; }
  .hero .container { flex-direction: column; }
  .hero h1 { font-size: 28px; }
  .hero-desc { max-width: 100%; }
  .hero-video-cover { animation: none; }

  .feature-row,
  .feature-row.reverse { flex-direction: column; gap: 32px; padding: 36px 0; }

  .section { padding: 64px 0; }
  .section-header h2 { font-size: 26px; }
  .section-header { margin-bottom: 40px; }

  .showcase-grid { grid-template-columns: repeat(2, 1fr); }

  .cta-section { padding: 64px 0; }
  .cta-section h2 { font-size: 26px; }

  .footer-main { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .hero-actions { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 24px; }
  .showcase-grid { grid-template-columns: 1fr; }
}
