/* ============================================
   LOADLINK — Landing page
   Aesthetic: refined minimalism + premium tech
   ============================================ */

:root {
  /* Colors — Dark base, single accent */
  --bg: #0A0A0B;
  --bg-elevated: #131316;
  --bg-card: #1A1A1F;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #F5F5F7;
  --text-muted: #8E8E93;
  --text-faint: #5E5E64;

  --accent: #0A84FF;
  --accent-hover: #0974E0;
  --accent-glow: rgba(10, 132, 255, 0.4);

  /* Typography */
  --font-display: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Spacing rhythm */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-8: 48px;
  --space-10: 64px;
  --space-12: 96px;
  --space-16: 128px;
}

/* ============================================
   RESET + BASE
   ============================================ */
*,
*::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);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text);
}

/* ============================================
   AMBIENT BACKGROUND
   ============================================ */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient-bg::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.18) 0%, transparent 60%);
  transform: translateX(-50%);
  filter: blur(60px);
}

.ambient-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.04) 1px, transparent 0);
  background-size: 32px 32px;
  opacity: 0.6;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: var(--space-4) 0;
  background: rgba(10, 10, 11, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.logo-mark {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-link {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text);
}

.nav-cta {
  background: var(--accent);
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: var(--space-12) 0 var(--space-8);
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  font-weight: 500;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34C759;
  box-shadow: 0 0 8px rgba(52, 199, 89, 0.5);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-5);
  color: var(--text);
}

.hero-title-accent {
  background: linear-gradient(180deg, var(--accent) 0%, #4D9FFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto var(--space-6);
  line-height: 1.6;
}

.hero-subtitle strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--accent);
  color: white;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.2s;
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px 0 var(--accent-glow);
}

.btn-primary.btn-large {
  padding: 18px 32px;
  font-size: 16px;
  border-radius: 12px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  color: var(--text);
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--border-strong);
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
  font-size: 13px;
  color: var(--text-faint);
  flex-wrap: wrap;
}

.hero-meta .dot {
  color: var(--text-faint);
  opacity: 0.5;
}

/* ============================================
   HERO MOCKUP
   ============================================ */
.hero-mockup {
  margin-top: var(--space-10);
  max-width: 480px;
  position: relative;
}

.hero-mockup::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.5;
  filter: blur(40px);
  z-index: -1;
}

.mockup-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(10, 132, 255, 0.1);
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mockup-dot.red { background: #FF5F57; }
.mockup-dot.yellow { background: #FEBC2E; }
.mockup-dot.green { background: #28C840; }

.mockup-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.mockup-content {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.mockup-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mockup-icon {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}

.mockup-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}

.mockup-tab {
  flex: 1;
  padding: 8px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  border-radius: 7px;
}

.mockup-tab.selected {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mockup-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-4);
}

.mockup-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: var(--space-2);
}

.mockup-input {
  font-size: 13px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup-formats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.mockup-format {
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: var(--space-4) var(--space-3);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.mockup-format.selected {
  border-color: var(--accent);
  background: rgba(10, 132, 255, 0.08);
}

.mockup-format-icon {
  font-size: 18px;
  margin-bottom: 4px;
  color: var(--text-muted);
}

.mockup-format.selected .mockup-format-icon {
  color: var(--accent);
}

.mockup-format-meta {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.mockup-format.selected .mockup-format-meta {
  color: var(--accent);
}

.mockup-btn {
  background: var(--accent);
  color: white;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

/* ============================================
   SECTIONS
   ============================================ */
section {
  padding: var(--space-12) 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-3);
  color: var(--text);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: var(--space-8);
  max-width: 540px;
}

.section-subtitle a {
  color: var(--accent);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.section-subtitle a:hover {
  border-bottom-color: var(--accent);
}

/* ============================================
   FEATURES GRID
   ============================================ */
.features {
  padding-top: var(--space-16);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: var(--space-6) var(--space-5);
  transition: all 0.3s;
}

.feature:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.025);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(10, 132, 255, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-2);
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================
   SITES GRID
   ============================================ */
.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-8);
}

.site-card {
  padding: 18px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
}

.site-card:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}

.site-card:last-child {
  background: rgba(10, 132, 255, 0.08);
  color: var(--accent);
  border-color: rgba(10, 132, 255, 0.3);
  font-weight: 600;
  font-family: var(--font-mono);
}

/* ============================================
   DOWNLOAD CTA
   ============================================ */
.download-cta {
  padding: var(--space-10) 0;
}

.download-card {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: var(--space-12) var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 20px 60px rgba(0, 0, 0, 0.3);
}

.download-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(10, 132, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.download-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(10, 132, 255, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  position: relative;
  z-index: 1;
}

.download-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 1;
}

.download-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.download-info {
  margin-top: var(--space-5);
  font-size: 13px;
  color: var(--text-faint);
  position: relative;
  z-index: 1;
}

.download-mac-note {
  margin-top: var(--space-3);
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  position: relative;
  z-index: 1;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.how-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-6);
}

.how-step {
  position: relative;
}

.how-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--space-3);
  letter-spacing: 1px;
}

.how-title {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-2);
}

.how-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-8) 0 var(--space-6);
  margin-top: var(--space-10);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 360px;
}

.footer-links {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-faint);
}

.footer-bottom a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--accent);
}

.footer-bottom .dot {
  opacity: 0.4;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-bottom {
    border-top: none;
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .nav .nav-link {
    display: none;
  }

  .hero {
    padding: var(--space-8) 0 var(--space-6);
  }

  section {
    padding: var(--space-8) 0;
  }

  .download-card {
    padding: var(--space-8) var(--space-4);
  }
}

/* ============================================
   ENTRANCE ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge,
.hero-title,
.hero-subtitle,
.hero-actions,
.hero-meta {
  animation: fadeInUp 0.6s ease-out backwards;
}

.hero-badge { animation-delay: 0s; }
.hero-title { animation-delay: 0.1s; }
.hero-subtitle { animation-delay: 0.2s; }
.hero-actions { animation-delay: 0.3s; }
.hero-meta { animation-delay: 0.4s; }
.hero-mockup {
  animation: fadeInUp 0.8s ease-out 0.5s backwards;
}
