/* ============================================================
   style.css - TrustGeo Space Theme
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg:         #060d1f;
  --bg-card:    rgba(255, 255, 255, 0.03);
  --text-main:  #f0f4ff;
  --text-muted: #7a8db5;
  --accent:     #ffffff;
  --border:     rgba(255, 255, 255, 0.09);
  --font:       'Inter', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
}

/* -- Stars Canvas -- */
#stars-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* -- Header -- */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2.5rem;
  background: rgba(6, 13, 31, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.logo span { color: rgba(160, 190, 255, 0.9); }

.nav-links {
  display: flex;
  gap: 2.2rem;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-main); }

.nav-cta {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-shrink: 0;
}

/* -- Buttons -- */
.btn {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: #ffffff;
  color: #060d1f;
}
.btn-primary:hover {
  background: #d8e2ff;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}
.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 0.65rem 0;
  font-size: 1rem;
}
.btn-ghost:hover { color: var(--text-main); }
.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
  border-radius: 10px;
}

/* -- Hero -- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
  text-align: center;
  padding: 9rem 2rem 6rem;
}

/* Subtle radial depth vignette */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(60, 80, 160, 0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#moon-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -56%);
  z-index: 1;
  pointer-events: none;
}

#moon {
  width: 500px;
  height: 500px;
  border-radius: 0;
  object-fit: contain;
  display: block;
  transform-origin: center center;
  opacity: 0.88;
  box-shadow: none;
  /* transform and box-shadow controlled by JS */
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(160, 190, 255, 0.75);
  margin-bottom: 1.6rem;
  border: 1px solid rgba(160, 190, 255, 0.2);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  background: rgba(160, 190, 255, 0.07);
}

h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: #ffffff;
  margin-bottom: 1.6rem;
  text-shadow: 0 2px 24px rgba(6, 13, 31, 0.95), 0 1px 4px rgba(0,0,0,0.8);
}

.hero-accent { color: #a8c8ff; }

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(220, 230, 255, 0.92);
  max-width: 560px;
  margin: 0 auto 2.8rem;
  line-height: 1.75;
  text-shadow: 0 1px 12px rgba(6, 13, 31, 0.9);
}

.hero-cta {
  display: flex;
  gap: 1.1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* -- Container -- */
.container {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* -- Section Reveal -- */
.section-reveal {
  padding: 6rem 0;
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-eyebrow {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(160, 190, 255, 0.65);
  margin-bottom: 0.65rem;
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.5px;
  color: var(--text-main);
  margin-bottom: 0;
}

/* -- Grid -- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin-top: 3rem;
}

/* -- Cards -- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem 1.75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
}

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  opacity: 0.85;
}

.step-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: rgba(160, 190, 255, 0.75);
  display: block;
  margin-bottom: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.55rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.6;
}

.badge {
  font-size: 0.6rem;
  font-weight: 700;
  background: rgba(160, 190, 255, 0.12);
  color: rgba(160, 190, 255, 0.85);
  border: 1px solid rgba(160, 190, 255, 0.22);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  vertical-align: middle;
  letter-spacing: 0.5px;
}

/* -- Pricing -- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem auto 0;
  max-width: 740px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 3rem 2.25rem;
  text-align: center;
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s ease;
}
.pricing-card:hover { transform: translateY(-7px); }

.pricing-card.pro {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 50px rgba(180, 200, 255, 0.06);
}

.pro-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #060d1f;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.28rem 1.1rem;
  border-radius: 100px;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.price {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 1rem 0;
  letter-spacing: -2px;
  line-height: 1;
}
.price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
}

.features-list {
  list-style: none;
  margin: 1.8rem 0 2rem;
  text-align: left;
}
.features-list li {
  padding: 0.55rem 0 0.55rem 1.6rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.features-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: rgba(160, 190, 255, 0.8);
  font-weight: 700;
}

/* -- Footer -- */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-main); }
footer p {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 0;
}

/* -- Blog / Hub page -- */
.blog-container {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 7rem 2rem 4rem;
}

.blog-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.blog-header h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: #ffffff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 24px rgba(6, 13, 31, 0.95);
}

.blog-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem 1.75rem;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
}

.blog-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(160, 190, 255, 0.85);
  margin-bottom: 0.85rem;
  opacity: 0.85;
}

.blog-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.65rem;
  text-align: left;
  line-height: 1.35;
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 1.2rem;
  flex-grow: 1;
}

.blog-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(168, 200, 255, 0.9);
  transition: color 0.2s;
}

.blog-card:hover .blog-card-link {
  color: #ffffff;
}

@media (max-width: 640px) {
  .blog-container { padding: 6rem 1.2rem 3rem; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* -- Article / SEO pages -- */
.article-container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 7rem 2rem 4rem;
}

.article-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: #ffffff;
  margin-bottom: 1.8rem;
  text-align: left;
  text-shadow: 0 2px 24px rgba(6, 13, 31, 0.95);
}

.article-content h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 700;
  text-align: left;
  color: var(--text-main);
  margin: 2.8rem 0 1rem;
}

.article-content p {
  color: rgba(200, 215, 245, 0.88);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.15rem;
}

.article-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
}

.article-content ul li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.6rem;
  color: rgba(200, 215, 245, 0.88);
  font-size: 0.95rem;
  line-height: 1.7;
}

.article-content ul li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: rgba(160, 190, 255, 0.7);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.5;
}

.article-content a {
  color: rgba(168, 200, 255, 0.95);
  text-decoration: underline;
  text-decoration-color: rgba(168, 200, 255, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.article-content a:hover {
  text-decoration-color: rgba(168, 200, 255, 0.8);
}

.article-content strong {
  color: var(--text-main);
  font-weight: 600;
}

.article-cta {
  text-align: center;
  margin: 2.2rem 0;
}

.btn-cta-red {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  background: #c0392b;
  color: #ffffff;
  transition: all 0.2s ease;
  box-shadow: 0 2px 16px rgba(192, 57, 43, 0.25);
}
.btn-cta-red:hover {
  background: #a93226;
  transform: translateY(-1px);
  box-shadow: 0 4px 22px rgba(192, 57, 43, 0.35);
}

.btn-cta-red .chrome-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* -- New CTA Button Style -- */
.btn-cta {
  display: inline-block;
  padding: 0.95rem 2.4rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  color: #ffffff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
  letter-spacing: 0.3px;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(99, 102, 241, 0.5);
  background: linear-gradient(135deg, #5558e6, #7c4fe0);
}
.btn-cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
}

@media (max-width: 640px) {
  .article-container { padding: 6rem 1.2rem 3rem; }
}

/* -- Simple pages (welcome, success, cancel, uninstall) -- */
.simple-page-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  position: relative;
  z-index: 1;
}
.simple-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 3rem;
  text-align: center;
  max-width: 500px;
  width: 100%;
  backdrop-filter: blur(12px);
}

/* -- Forms (uninstall page) -- */
.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.radio-group label { font-weight: 400; display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 1rem;
  border-radius: 10px;
  font-family: var(--font);
  resize: vertical;
  min-height: 100px;
}
textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
}

/* -- Responsive -- */
@media (max-width: 900px) {
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  header { padding: 1rem 1.2rem; }
  .hero { padding: 7rem 1.5rem 5rem; text-align: center; }
  #moon-container { right: 50%; transform: translateX(50%); bottom: -40px; }
  #moon { width: 200px; height: 200px; }
  .container { padding: 0 1.2rem; }
  .section-reveal { padding: 4rem 0; }
  h1 { letter-spacing: -1px; }
}
