/* Reset and base styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Cool Fog theme colors */
  --bg:            #eef2f7;
  --bg-surface:    #f4f7fb;
  --bg-card:       #e8edf4;
  --bg-card-hover: #e2e8f0;
  --border:        rgba(0,0,0,0.07);
  --border-hover:  rgba(0,0,0,0.13);
  --text:          #0f1929;
  --text-sub:      #4c6380;
  --text-muted:    #8da0b8;

  --accent:        #0284c7;
  --accent-light:  #0ea5e9;
  --accent-glow:   rgba(2,132,199,0.12);
  --accent-glow2:  rgba(2,132,199,0.07);
  --accent-border: rgba(2,132,199,0.22);

  --radius:    14px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.82em;
  background: rgba(0,0,0,0.06);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--accent);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
/* Background, shadow, and blur are controlled by script.js on scroll */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #eef2f7;
  transition: background 0.25s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  padding: 7px 14px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(0,0,0,0.05);
}

.nav-github {
  display: flex !important;
  align-items: center;
  gap: 6px;
  font-size: 14px !important;
  font-weight: 600 !important;
  background: var(--text) !important;
  color: var(--bg) !important;
  padding: 8px 16px !important;
  border-radius: 10px !important;
  transition: opacity 0.15s !important;
}
.nav-github:hover {
  opacity: 0.85 !important;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 11px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
  letter-spacing: -0.01em;
  font-family: inherit;
}
.btn-primary:hover {
  opacity: 0.87;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 11px;
  border: 1.5px solid var(--border-hover);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, transform 0.1s;
  font-family: inherit;
}
.btn-secondary:hover {
  color: var(--text);
  border-color: rgba(0,0,0,0.22);
  transform: translateY(-1px);
}

.btn-macos {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 11px;
  border: 1.5px solid var(--border-hover);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, transform 0.1s, opacity 0.2s;
  white-space: nowrap;
  font-family: inherit;
}
.btn-macos:hover {
  color: var(--text);
  border-color: rgba(0,0,0,0.22);
  transform: translateY(-1px);
}
.btn-macos.requested {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

/* Section labels and titles */
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

/* Hero */
.hero {
  padding-top: 148px;
  padding-bottom: 0;
  overflow: hidden;
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  background: rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
}

.hero-headline {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
  max-width: 820px;
}

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

.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-sub);
  max-width: 500px;
  margin-bottom: 36px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 64px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-screenshot {
  position: relative;
  width: 100%;
  max-width: 960px;
}

.screenshot-glow {
  position: absolute;
  top: -40px; left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: 140px;
  background: radial-gradient(ellipse at center, rgba(2,132,199,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.screenshot-img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 12px 12px 0 0;
  border: 1px solid rgba(0,0,0,0.09);
  border-bottom: none;
  display: block;
  box-shadow: 0 -4px 60px rgba(0,0,0,0.1);
  background: #0d0d10;
  min-height: 300px;
}

/* Features */
.features {
  padding: 100px 0 60px;
  border-top: 1px solid var(--border);
}

.features .section-title {
  margin-bottom: 56px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}

.feature-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.65;
}

/* "and more" divider between main features and the full list */
.and-more {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 52px;
}

.and-more-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.and-more-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Full feature list */
.all-features {
  padding: 52px 0 80px;
}

.all-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 36px 32px;
}

.af-group-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.af-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.af-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
}

.af-list li svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Download */
.download {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.download-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 52px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 360px; height: 360px;
  background: radial-gradient(ellipse at center, var(--accent-glow2) 0%, transparent 70%);
  pointer-events: none;
}

.download-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 12px;
}

.download-sub {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 28px;
  max-width: 400px;
}

.download-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.download-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
}

.platform-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 32px;
  font-size: 13px;
  color: var(--text-sub);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Contact */
.contact {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.contact-inner { max-width: 640px; }

.contact-sub {
  font-size: 15px;
  color: var(--text-sub);
  margin-top: 16px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  letter-spacing: 0.02em;
}

.form-field input,
.form-field textarea {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-muted); }

.form-field input:focus,
.form-field textarea:focus { border-color: var(--accent); }

.form-field input.invalid,
.form-field textarea.invalid {
  border-color: #5a7a9a;
  background: rgba(90,122,154,0.05);
}

.field-error {
  font-size: 12px;
  color: #4c6380;
  display: none;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.field-error.visible { display: flex; }

.form-footer {
  display: flex;
  align-items: center;
  gap: 14px;
}

.form-success {
  font-size: 13px;
  color: var(--accent);
  display: none;
}
.form-success.visible { display: block; }

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  color: var(--text);
}
.contact-card:hover {
  border-color: var(--border-hover);
  transform: translateX(3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.contact-card svg:first-child { color: var(--accent); flex-shrink: 0; }

.contact-card div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.contact-card strong { font-size: 14px; font-weight: 600; color: var(--text); }
.contact-card span   { font-size: 13px; color: var(--text-sub); }

.contact-arrow { color: var(--text-muted); flex-shrink: 0; transition: color 0.15s; }
.contact-card:hover .contact-arrow { color: var(--text-sub); }

/* Footer */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copy { font-size: 13px; color: var(--text-muted); }

.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text-sub); }

/* Mobile */
@media (max-width: 700px) {
  .nav-links a:not(.nav-github) { display: none; }
  .download-card { flex-direction: column; padding: 36px 28px; }
  .platform-badge { width: 100%; justify-content: center; flex-direction: row; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn-primary, .btn-secondary, .btn-macos { justify-content: center; width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .download-actions { flex-direction: column; }
  .download-actions .btn-primary,
  .download-actions .btn-macos { width: 100%; justify-content: center; }
}
