/* ============================================================
   GoDeploy — Website Stylesheet
   Dark theme matching the app aesthetic
   Based on goPanel design system, adapted for GoDeploy
   ============================================================ */

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

:root {
  --bg-deep:    #050508;
  --bg-body:    #0a0a0e;
  --bg-card:    #131316;
  --bg-card-hover: #1a1a1e;
  --bg-surface: #1e1e22;
  --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:    #0a84ff;
  --accent-green:   #4db876;
  --accent-amber:   #c8882a;
  --accent-red:     #d96060;
  --accent-purple:  #9060d0;
  --gradient-hero:  linear-gradient(160deg, #0a0a0e 0%, #0e1220 50%, #0a0e1a 100%);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 2px 24px rgba(0,0,0,0.4), 0 0 0 1px var(--border);
  --shadow-glow: 0 0 80px rgba(10,132,255,0.06);
  --max-width: 1100px;
  --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;
  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; }

h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }

/* Price superscript decimals */
.price sup, p sup {
  font-size: 0.5em; font-weight: 700; vertical-align: super;
  position: relative; top: -0.15em;
}
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 600; line-height: 1.3; }
.subhead { font-size: clamp(1rem, 2vw, 1.15rem); color: var(--text-secondary); line-height: 1.6; max-width: 580px; }
.section-label {
  font-size: 0.78rem; 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(10,10,14,0.82);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.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.15rem; color: var(--text-primary); }
.navbar-links { display: flex; gap: 28px; list-style: none; }
.navbar-links a { color: var(--text-secondary); font-size: 0.88rem; 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(10,132,255,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(10,132,255,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: 900px; 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 — crop from bottom if too tall, show top of the app */
.hero-screenshot img {
  width: 100%; border-radius: var(--radius-lg); background: var(--bg-card);
  max-height: 540px; object-fit: cover; object-position: top;
}

/* --- Platforms --- */
.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; }

/* --- How It Works --- */
.how-it-works { padding: 100px 0; }
.how-it-works-header { text-align: center; margin-bottom: 60px; }
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px;
  max-width: 860px; margin: 0 auto;
}
.step-card { text-align: center; padding: 20px; }
.step-number {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(10,132,255,0.12); color: var(--accent-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; margin: 0 auto 16px;
}
.step-card h3 { margin-bottom: 8px; font-size: 1rem; }
.step-card p { font-size: 0.88rem; color: var(--text-secondary); }

/* --- Features Section (with screenshot) --- */
.feature-section {
  padding: 100px 0;
}
.feature-section--alt {
  background: linear-gradient(180deg, var(--bg-body) 0%, #0c0e18 50%, var(--bg-body) 100%);
}
.feature-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
.feature-layout--reverse .feature-screenshot { order: -1; }
.feature-content .subhead { margin-bottom: 24px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.92rem; color: var(--text-secondary);
}
.feature-list li svg { flex-shrink: 0; margin-top: 3px; color: var(--accent-green); }
.feature-screenshot {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
/* Feature screenshots — match text column height, crop bottom if taller */
.feature-screenshot img {
  width: 100%; background: var(--bg-card);
  max-height: 420px; object-fit: cover; object-position: top left;
}

/* --- Features Grid (cards) --- */
.features { padding: 100px 0; }
.features-header { text-align: center; margin-bottom: 60px; }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 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(10,132,255,0.12); color: var(--accent-blue); }
.feature-icon--green  { background: rgba(77,184,118,0.12); color: var(--accent-green); }
.feature-icon--amber  { background: rgba(200,136,42,0.12); color: var(--accent-amber); }
.feature-icon--red    { background: rgba(217,96,96,0.12); color: var(--accent-red); }
.feature-icon--purple { background: rgba(144,96,208,0.12); color: var(--accent-purple); }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; }

/* --- Pricing --- */
.pricing {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-body), #0c0e16, var(--bg-body));
}
.pricing-header { text-align: center; margin-bottom: 60px; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 720px; 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(10,132,255,0.1);
}
.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.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.pricing-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.pricing-card .price { font-size: 2.2rem; font-weight: 800; margin: 16px 0 4px; letter-spacing: -0.03em; }
.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: 7px 0;
  font-size: 0.86rem; 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(10,132,255,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; }

/* --- 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); }

/* --- Privacy / Guide Pages --- */
.guide-hero { padding: 120px 0 60px; text-align: center; background: var(--gradient-hero); }
.guide-content { padding: 60px 0; }
.guide-section { margin-bottom: 60px; }
.guide-section h2 { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.guide-section p { color: var(--text-secondary); margin-bottom: 14px; max-width: 720px; font-size: 0.95rem; }
.guide-section ul { list-style: none; padding: 0; }
.guide-section ul li {
  padding: 7px 0 7px 24px; position: relative;
  color: var(--text-secondary); font-size: 0.92rem;
}
.guide-section ul li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent-blue);
}
.guide-section h3 { margin-bottom: 8px; margin-top: 20px; font-size: 1.05rem; }
.guide-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.86rem; }
.guide-table th, .guide-table td { padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.guide-table th { color: var(--text-muted); font-weight: 600; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; }
.guide-table td { color: var(--text-secondary); }
.guide-table code { font-family: var(--font-mono); font-size: 0.82rem; color: var(--accent-amber); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .feature-layout { grid-template-columns: 1fr; gap: 40px; }
  .feature-screenshot, .feature-layout--reverse .feature-screenshot { order: -1; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}
@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; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
}
.navbar-links.show { display: flex !important; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: rgba(10,10,14,0.97); padding: 16px 24px; gap: 12px; border-bottom: 1px solid var(--border); }
