/* ===========================
   Joe'sSync — joessync.com
   =========================== */

:root {
  --bg:         #090B10;
  --bg-raised:  #11151C;
  --bg-panel:   #151926;
  --bg-input:   #1C222F;
  --border:     #30374A;
  --border-focus: #5B8DEF;

  --text:       #EEF1F7;
  --text-muted: #9AA3B8;

  --accent:     #4D8CFF;
  --accent-hover: #6FA3FF;
  --accent-deep:  #3566C9;

  --danger:     #E85D5D;

  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  14px;

  --font: 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-w: 1080px;
}

/* Reset */
*, *::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);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* ===== Layout ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 11, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
  border: none;
  white-space: nowrap;
}
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 13px 26px; font-size: 15px; font-weight: 600; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: rgba(77, 140, 255, 0.08); }

/* ===== Accent text ===== */
.accent { color: var(--accent); }

/* ===== Hero ===== */
.hero {
  padding: 96px 0 80px;
  text-align: center;
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  color: var(--text);
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== Sections ===== */
.section {
  padding: 88px 0;
}
.section-alt {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ===== Sync Mode Cards ===== */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.mode-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color 0.2s;
}
.mode-card:hover { border-color: var(--border-focus); }

.mode-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.icon-backup  { background: rgba(77, 140, 255, 0.12); color: var(--accent); }
.icon-mirror  { background: rgba(255, 199, 138, 0.12); color: #FFC78A; }
.icon-twoway  { background: rgba(93, 200, 138, 0.12);  color: #5DC88A; }
.icon-move    { background: rgba(232, 93, 93, 0.12);   color: var(--danger); }

.mode-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.mode-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Feature Blocks ===== */
.features-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px 48px;
}
.feature-block {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.feature-block h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.feature-block p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Platforms ===== */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.platform-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.2s;
}
.platform-card:hover { border-color: var(--border-focus); }

.platform-windows .platform-logo { color: #57A8FF; }
.platform-android .platform-logo { color: #5DC88A; }

.platform-header {
  display: flex;
  align-items: center;
  gap: 16px;
}
.platform-header h3 { font-size: 20px; font-weight: 700; }
.platform-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.platform-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.platform-features li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}
.platform-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-focus);
}
.platform-btn { width: 100%; justify-content: center; }

/* ===== CTA section ===== */
.section-cta {
  text-align: center;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-cta h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}
.download-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 32px 0 20px;
}
.download-note {
  font-size: 12px;
  color: var(--text-muted);
}
.download-note a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.download-note a:hover { color: var(--text); }

/* ===== Footer ===== */
.footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 64px 0 56px; }
  .hero-title { letter-spacing: -1px; }
  .section { padding: 60px 0; }
  .features-layout { gap: 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
