/* ============================================================
   goPanel 2 — Website Stylesheet
   Dark theme matching the app aesthetic
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-deep:    #07080c;
  --bg-body:    #0d0f14;
  --bg-card:    #13151c;
  --bg-card-hover: #1a1c25;
  --bg-surface: #1e2029;
  --border:     rgba(255,255,255,0.07);
  --border-light: rgba(255,255,255,0.12);
  --text-primary:   #f0f0f5;
  --text-secondary: #8b8d9a;
  --text-muted:     #5a5c6a;
  --accent-blue:    #5b9cf6;
  --accent-green:   #4ade80;
  --accent-amber:   #f59e0b;
  --accent-red:     #f87171;
  --accent-purple:  #a78bfa;
  --gradient-hero:  linear-gradient(160deg, #0d0f14 0%, #111827 50%, #0f172a 100%);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 2px 24px rgba(0,0,0,0.3), 0 0 0 1px var(--border);
  --shadow-glow: 0 0 60px rgba(91,156,246,0.08);
  --max-width: 1200px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Menlo', 'Consolas', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-blue); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.85; }

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

/* --- Typography --- */
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; line-height: 1.3; }
.subhead { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--text-secondary); line-height: 1.5; max-width: 600px; }
.section-label {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent-blue); margin-bottom: 12px; display: block;
}

/* --- Navigation --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,15,20,0.82);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.navbar-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.navbar-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--text-primary); }
.navbar-brand svg { width: 28px; height: 28px; }
.navbar-links { display: flex; gap: 32px; list-style: none; }
.navbar-links a { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.navbar-links a:hover { color: var(--text-primary); opacity: 1; }
.navbar-cta {
  background: var(--accent-blue); color: #fff; padding: 8px 20px; border-radius: 8px;
  font-size: 0.85rem; font-weight: 600; transition: transform 0.15s, box-shadow 0.15s;
}
.navbar-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(91,156,246,0.3); opacity: 1; }

.mobile-toggle { display: none; background: none; border: none; color: var(--text-primary); cursor: pointer; }

/* --- Hero --- */
.hero {
  padding: 140px 0 80px;
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg-body));
  pointer-events: none;
}
.hero h1 { margin-bottom: 16px; }
.hero .subhead { margin: 0 auto 40px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-blue); color: #fff; padding: 14px 28px; border-radius: 12px;
  font-size: 1rem; font-weight: 600; border: none; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(91,156,246,0.3); opacity: 1; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-surface); color: var(--text-primary); padding: 14px 28px; border-radius: 12px;
  font-size: 1rem; font-weight: 600; border: 1px solid var(--border-light);
  transition: transform 0.15s, background 0.15s;
}
.btn-secondary:hover { transform: translateY(-2px); background: var(--bg-card-hover); opacity: 1; }

.hero-screenshot {
  max-width: 960px; margin: 0 auto; position: relative; z-index: 1;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5), 0 0 0 1px var(--border);
}
.hero-screenshot img { width: 100%; border-radius: var(--radius-lg); }

/* --- Platforms Strip --- */
.platforms {
  padding: 80px 0 60px; text-align: center;
}
.platform-badges {
  display: flex; gap: 40px; justify-content: center; align-items: center; flex-wrap: wrap;
  margin-top: 32px;
}
.platform-badge {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card); padding: 16px 28px; border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.platform-badge svg { width: 28px; height: 28px; opacity: 0.9; }
.platform-badge span { font-weight: 600; font-size: 0.95rem; }

/* --- AI Terminal Section --- */
.ai-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-body) 0%, #0c1120 50%, var(--bg-body) 100%);
}
.ai-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.ai-content h2 { margin-bottom: 20px; }
.ai-content .subhead { margin-bottom: 28px; }
.ai-feature-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.ai-feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.95rem; color: var(--text-secondary);
}
.ai-feature-list li svg { flex-shrink: 0; margin-top: 3px; color: var(--accent-green); }
.ai-screenshot {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.ai-screenshot img { width: 100%; }

/* --- Multi-Device Section --- */
.multidevice {
  padding: 100px 0; text-align: center;
}
.device-showcase {
  display: flex; justify-content: center; align-items: flex-end; gap: 30px;
  margin-top: 50px; position: relative;
}
.device-frame { position: relative; }
.device-frame--mac { max-width: 600px; flex-shrink: 0; }
.device-frame--iphone { max-width: 180px; flex-shrink: 0; }
.device-frame img {
  width: 100%; border-radius: var(--radius-md);
  box-shadow: 0 12px 50px rgba(0,0,0,0.4), 0 0 0 1px var(--border);
}
.device-label {
  margin-top: 12px; font-size: 0.8rem; color: var(--text-muted);
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em;
}

/* --- Features Grid --- */
.features {
  padding: 100px 0;
}
.features-header { text-align: center; margin-bottom: 60px; }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 28px; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px); border-color: var(--border-light);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.feature-icon--blue   { background: rgba(91,156,246,0.15); color: var(--accent-blue); }
.feature-icon--green  { background: rgba(74,222,128,0.15); color: var(--accent-green); }
.feature-icon--amber  { background: rgba(245,158,11,0.15); color: var(--accent-amber); }
.feature-icon--red    { background: rgba(248,113,113,0.15); color: var(--accent-red); }
.feature-icon--purple { background: rgba(167,139,250,0.15); color: var(--accent-purple); }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; }

/* --- Install Section --- */
.install {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-body), #0f1420, var(--bg-body));
}
.install-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.install-content .subhead { margin-bottom: 24px; }
.install-steps { list-style: none; counter-reset: step; }
.install-steps li {
  counter-increment: step; display: flex; gap: 16px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  font-size: 0.95rem; color: var(--text-secondary);
}
.install-steps li::before {
  content: counter(step); flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(91,156,246,0.15); color: var(--accent-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
}
.install-screenshot {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card);
}
.install-screenshot img { width: 100%; }

/* --- Distros --- */
.distros {
  padding: 80px 0; text-align: center;
}
.distro-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 32px;
}
.distro-badge {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 20px; font-size: 0.85rem; font-weight: 500; color: var(--text-secondary);
}
.provider-text { margin-top: 24px; font-size: 0.9rem; color: var(--text-muted); }

/* --- Pricing --- */
.pricing {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-body), #0c1018, var(--bg-body));
}
.pricing-header { text-align: center; margin-bottom: 60px; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 960px; margin: 0 auto;
}
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px 28px; display: flex; flex-direction: column; position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 12px 48px rgba(0,0,0,0.3); }
.pricing-card--featured {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 1px var(--accent-blue), 0 8px 40px rgba(91,156,246,0.12);
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent-blue); color: #fff; padding: 4px 16px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.pricing-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.pricing-card .price {
  font-size: 2.4rem; font-weight: 800; margin: 16px 0 4px; letter-spacing: -0.03em;
}
.pricing-card .price-old {
  font-size: 1.1rem; color: var(--text-muted); text-decoration: line-through; margin-right: 8px;
}
.pricing-card .price-note { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 24px; }
.pricing-features { list-style: none; flex: 1; margin-bottom: 28px; }
.pricing-features li {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  font-size: 0.88rem; color: var(--text-secondary);
}
.pricing-features li svg { flex-shrink: 0; color: var(--accent-green); }
.pricing-btn {
  display: block; text-align: center; padding: 14px; border-radius: 12px;
  font-weight: 600; font-size: 0.95rem; transition: transform 0.15s, box-shadow 0.15s;
  border: none; cursor: pointer; text-decoration: none;
}
.pricing-btn--primary { background: var(--accent-blue); color: #fff; }
.pricing-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(91,156,246,0.3); opacity: 1; }
.pricing-btn--secondary { background: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--border-light); }
.pricing-btn--secondary:hover { background: var(--bg-card-hover); opacity: 1; }

/* --- Privacy --- */
.privacy-section {
  padding: 80px 0; text-align: center;
}
.privacy-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px;
  margin-top: 40px;
}
.privacy-item { padding: 24px; }
.privacy-item svg { margin: 0 auto 12px; opacity: 0.7; }
.privacy-item h3 { font-size: 1rem; margin-bottom: 6px; }
.privacy-item p { font-size: 0.85rem; color: var(--text-secondary); }

/* --- Footer --- */
.footer {
  padding: 48px 0; border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-copy { font-size: 0.82rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { color: var(--text-muted); font-size: 0.82rem; }
.footer-links a:hover { color: var(--text-secondary); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .ai-layout, .install-layout { grid-template-columns: 1fr; gap: 40px; }
  .ai-screenshot, .install-screenshot { order: -1; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .device-showcase { flex-direction: column; align-items: center; }
  .device-frame--mac { max-width: 100%; }
  .device-frame--iphone { max-width: 200px; }
}

@media (max-width: 640px) {
  .navbar-links { display: none; }
  .mobile-toggle { display: block; }
  .hero { padding: 120px 0 60px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .platform-badges { flex-direction: column; gap: 16px; }
  .features-grid { grid-template-columns: 1fr; }
}

/* --- User Guide Page --- */
.guide-hero { padding: 120px 0 60px; text-align: center; background: var(--gradient-hero); }
.guide-content { padding: 60px 0; }
.guide-section { margin-bottom: 80px; }
.guide-section h2 { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.guide-section p { color: var(--text-secondary); margin-bottom: 16px; max-width: 720px; }
.guide-section ul { list-style: none; padding: 0; }
.guide-section ul li {
  padding: 8px 0; padding-left: 24px; position: relative;
  color: var(--text-secondary); font-size: 0.95rem;
}
.guide-section ul li::before {
  content: ''; position: absolute; left: 0; top: 16px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-blue);
}
.guide-screenshot {
  margin: 24px 0; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-card); max-width: 800px;
}
.guide-screenshot img { width: 100%; }
.guide-note {
  background: rgba(91,156,246,0.08); border: 1px solid rgba(91,156,246,0.2);
  border-radius: var(--radius-sm); padding: 16px 20px; margin: 16px 0;
  font-size: 0.9rem; color: var(--text-secondary);
}
.guide-distro-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.88rem; }
.guide-distro-table th, .guide-distro-table td {
  padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--border);
}
.guide-distro-table th { color: var(--text-muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.guide-distro-table td { color: var(--text-secondary); }

/* --- Image Placeholders (shown when image files are missing) --- */
.hero-screenshot img,
.ai-screenshot img,
.device-frame img,
.install-screenshot img,
.guide-screenshot img {
  background: var(--bg-card);
  min-height: 200px;
  object-fit: cover;
}
.hero-screenshot img[src*="mac-"] { min-height: 400px; }
.device-frame--iphone img { min-height: 380px; border-radius: 24px !important; }
.device-frame--mac img { min-height: 320px; }
