@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Barlow:wght@300;400;500;600&family=Share+Tech+Mono:wght@400&display=swap');

:root {
  --bg:           #f0f2f5;
  --bg-card:      #ffffff;
  --bg-elevated:  #f7f8fa;
  --bg-sidebar:   #1a2332;
  --border:       #dde2ea;
  --border-strong:#c4ccd8;
  --accent:       #0a5c9e;
  --accent-light: #e8f1fa;
  --accent-hover: #084d87;
  --teal:         #0d9e7a;
  --teal-light:   #e6f7f3;
  --amber:        #d97706;
  --amber-light:  #fef3e0;
  --danger:       #c0392b;
  --text-primary: #0f1923;
  --text-secondary:#4a5568;
  --text-muted:   #8a94a6;
  --text-invert:  #ffffff;
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.12);
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    12px;
  --font-display: 'Rajdhani', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --font-mono:    'Share Tech Mono', monospace;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 15px;
}

.page-wrapper {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 28px 80px;
}

/* ─── TOP BAR ─── */
.topbar {
  background: var(--bg-sidebar);
  margin: 0 -28px;
  padding: 0 28px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--teal) 60%, #5bb8ff 100%);
}

/* ─── NAV ─── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}
.nav-name {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.nav-sub {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 1px;
}
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--teal-light);
  color: var(--teal);
  border: 1px solid #a7ddd0;
  border-radius: 20px;
  padding: 4px 14px;
}
.nav-req {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 14px;
  display: flex; align-items: center; gap: 5px;
}
.nav-req::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ─── HERO ─── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
}
/* Subtle grid watermark */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.3;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  padding: 4px 12px;
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--teal);
}
.hero-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 360px;
}
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600; font-size: 13px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.18s;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(10,92,158,0.25);
}
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(10,92,158,0.35); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 500; font-size: 13px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  text-decoration: none;
  transition: all 0.18s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; background: var(--accent-light); }

.hero-visual { position: relative; z-index: 1; }
.hero-img-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
  background: #1a2332;
}
.hero-img-wrap img { width: 100%; display: block; }
.hero-pill {
  position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%);
  background: var(--bg-sidebar);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 11px; font-weight: 500;
  color: #a0aec0;
  white-space: nowrap;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* ─── META ROW ─── */
.meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 56px;
}
.meta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow-sm);
}
.meta-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.meta-icon.blue { background: var(--accent-light); color: var(--accent); }
.meta-icon.teal { background: var(--teal-light); color: var(--teal); }
.meta-icon.amber { background: var(--amber-light); color: var(--amber); }
.meta-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 3px; font-weight: 600; }
.meta-value { font-family: var(--font-mono); font-size: 13px; font-weight: 400; color: var(--text-primary); }

/* ─── SECTION ─── */
.section { margin-bottom: 52px; }
.section-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 22px; padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}
.section-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-invert);
  background: var(--accent);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  letter-spacing: 0.05em;
}
.section-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-primary);
}
.section-rule { flex: 1; height: 1px; background: var(--border); }

/* ─── CHANGELOG ─── */
.changelog {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.changelog-item {
  display: grid; grid-template-columns: 80px 1fr;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.changelog-item:last-child { border-bottom: none; }
.changelog-item:hover { background: var(--bg-elevated); }
.cl-ver {
  padding: 13px 16px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 400;
  color: var(--accent);
  border-right: 1px solid var(--border);
  display: flex; align-items: center;
  background: var(--accent-light);
  letter-spacing: 0.04em;
}
.cl-ver.latest {
  color: #fff;
  background: var(--accent);
  font-weight: 600;
}
.cl-text {
  padding: 13px 20px;
  font-size: 13.5px;
  color: var(--text-secondary);
  display: flex; align-items: center;
}

/* ─── INSTALL STEPS ─── */
.install-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-bottom: 28px;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.step-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.step-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0; transition: opacity 0.2s;
}
.step-card:hover::before { opacity: 1; }
.step-num {
  font-family: var(--font-display);
  font-size: 42px; font-weight: 700;
  color: var(--border-strong);
  line-height: 1; margin-bottom: 12px;
  letter-spacing: 2px;
}
.step-title { font-weight: 600; font-size: 14px; color: var(--text-primary); margin-bottom: 6px; }
.step-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ─── VIDEO ─── */
.video-feature {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.video-feature iframe {
  display: block; width: 100%;
  aspect-ratio: 16/9; border: none;
}
.video-label {
  padding: 11px 18px;
  font-size: 12px; color: var(--text-secondary);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-elevated);
  font-weight: 500; letter-spacing: 0.02em;
}
.video-label-dot {
  width: 7px; height: 7px;
  border-radius: 50%; background: var(--teal);
}

/* ─── VIDEO GRID ─── */
.video-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.vcard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.vcard:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}
.vcard-thumb {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover; display: block;
  transition: opacity 0.18s;
}
.vcard:hover .vcard-thumb { opacity: 0.9; }
.vcard-body { padding: 10px 12px; border-top: 1px solid var(--border); }
.vcard-title { font-size: 12px; font-weight: 500; color: var(--text-secondary); line-height: 1.4; }
.vcard:hover .vcard-title { color: var(--accent); }

/* ─── PROPERTIES ─── */
.props-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.prop-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.prop-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.prop-card a { display: block; }
.prop-card img { width: 100%; display: block; transition: opacity 0.18s; }
.prop-card:hover img { opacity: 0.85; }
.prop-card-label {
  padding: 8px 11px;
  font-size: 10px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  font-weight: 600;
}

/* ─── COMMUNITY ─── */
.community-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.comm-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex; align-items: center; gap: 16px;
  text-decoration: none;
  transition: all 0.18s;
  box-shadow: var(--shadow-sm);
}
.comm-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transform: translateY(-1px);
}
.comm-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.comm-icon.fb { background: #e8f0fd; }
.comm-icon.line { background: var(--teal-light); }
.comm-name { font-weight: 600; font-size: 14px; color: var(--text-primary); margin-bottom: 2px; }
.comm-desc { font-size: 12px; color: var(--text-muted); }
.comm-arrow { margin-left: auto; font-size: 18px; color: var(--text-muted); transition: all 0.18s; }
.comm-card:hover .comm-arrow { color: var(--accent); transform: translateX(3px); }

.line-qr {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex; gap: 16px; align-items: center;
  margin-top: 14px;
  box-shadow: var(--shadow-sm);
}
.line-qr img { width: 72px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; border: 1px solid var(--border); }
.line-qr-text { font-size: 13px; color: var(--text-secondary); }
.line-qr-text strong { display: block; font-size: 14px; color: var(--text-primary); font-weight: 600; margin-bottom: 4px; }

/* ─── FOOTER ─── */
.footer {
  margin-top: 64px; padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 12px; color: var(--text-muted); }
.footer-req { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.footer-req::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
}

.changelog-btn { padding: 6px 14px; font-size: 12px; white-space: nowrap; }

/* ─── TWO VIDEO GRID ─── */
.two-video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

/* ─── RESPONSIVE ─── */

/* Tablet */
@media (max-width: 900px) {
  .props-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid  { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 600px) {
  /* Wrapper */
  .page-wrapper { padding: 0 16px 60px; }

  /* Topbar — cancel negative margins */
  .topbar { margin: 0 -16px; }

  /* Nav — keep it all on one row, shrink elements */
  .nav { padding: 14px 0 12px; margin-bottom: 28px; flex-wrap: nowrap; gap: 8px; }
  .nav-brand { gap: 8px; min-width: 0; }
  .nav-logo  { width: 30px; height: 30px; font-size: 11px; flex-shrink: 0; }
  .nav-name  { font-size: 14px; letter-spacing: 0.8px; }
  .nav-sub   { display: none; }
  .nav-right { gap: 6px; flex-shrink: 0; }
  .nav-req   { display: none; }        /* hide "Requires MT4" pill — saves space */
  .nav-badge { font-size: 10px; padding: 3px 10px; white-space: nowrap; }

  /* Hero — single column, tighter padding */
  .hero {
    grid-template-columns: 1fr;
    padding: 24px 20px 28px;
    margin-bottom: 24px;
    gap: 20px;
  }
  .hero-visual { display: none; }      /* hide screenshot on small screens */
  .hero h1 {
    font-size: clamp(32px, 10vw, 44px);
    letter-spacing: 0.5px;
    margin-bottom: 14px;
  }
  .hero-tag   { font-size: 9px; letter-spacing: 0.16em; margin-bottom: 12px; }
  .hero-desc  { font-size: 13.5px; margin-bottom: 20px; max-width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn-primary,
  .btn-secondary { justify-content: center; width: 100%; padding: 12px 20px; font-size: 14px; }

  /* Meta row — stack vertically */
  .meta-row { grid-template-columns: 1fr; gap: 10px; margin-bottom: 36px; }
  .meta-card { padding: 13px 16px; }

  /* Section headers */
  .section { margin-bottom: 36px; }
  .section-title { font-size: 16px; letter-spacing: 1px; }

  /* Changelog */
  .changelog-item { grid-template-columns: 64px 1fr; }
  .cl-ver  { font-size: 11px; padding: 12px 10px; }
  .cl-text { font-size: 13px; padding: 12px 14px; }

  /* Install steps — single column */
  .install-steps { grid-template-columns: 1fr; gap: 10px; margin-bottom: 20px; }
  .step-card { padding: 18px; }
  .step-num  { font-size: 32px; }

  /* Videos — single column on very small, 2-col otherwise kept */
  .video-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .video-label { font-size: 11px; padding: 9px 14px; }

  /* Two inline embeds — stack them */
  .two-video-grid { grid-template-columns: 1fr !important; }

  /* Properties grid — 2 columns */
  .props-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .prop-card-label { font-size: 9px; padding: 7px 10px; }

  /* Community */
  .community-grid { grid-template-columns: 1fr; gap: 10px; }
  .comm-card { padding: 16px 18px; }
  .comm-name { font-size: 13px; }

  /* Line QR */
  .line-qr { padding: 16px; gap: 12px; }
  .line-qr img { width: 60px; height: 60px; }
  .line-qr-text { font-size: 12px; }
  .line-qr-text strong { font-size: 13px; }

  /* Footer */
  .footer { flex-direction: column; align-items: flex-start; margin-top: 48px; gap: 6px; }
}

/* Very small phones */
@media (max-width: 380px) {
  .video-grid { grid-template-columns: 1fr; }
  .props-grid { grid-template-columns: 1fr; }
  .nav-badge  { display: none; }
}
