/* ============================================
   FilerFrog — Site Styles
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-elevated: #f8f9fc;
  --bg-card: #f0f2f8;
  --text: #1e293b;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --accent: #16a34a;
  --accent-bright: #15803d;
  --accent-glow: rgba(22, 163, 74, 0.2);
  --surface-border: rgba(0, 0, 0, 0.08);
  --radius: 16px;
  --radius-sm: 8px;
  --nav-height: 72px;
  --container: 1000px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

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

/* ── Navigation ─────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.nav__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}
.nav__logo-img {
  height: 36px;
  width: auto;
  border-radius: 6px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav__link:hover { color: var(--text); }
.nav__link--cta {
  background: var(--accent);
  color: white !important;
  padding: 8px 20px;
  border-radius: 100px;
  transition: background 0.2s, transform 0.2s;
}
.nav__link--cta:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
}
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  gap: 10px;
}
.btn--primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 24px var(--accent-glow);
}
.btn--primary:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}
.btn--secondary {
  background: var(--bg-elevated);
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  padding: 14px 32px;
}
.btn--secondary:hover {
  background: var(--bg-card);
  color: var(--text);
}
.btn-icon { flex-shrink: 0; }

/* ── Hero ───────────────────────────────── */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--surface-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--surface-border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}
.hero__glow--1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -200px;
  right: -100px;
  opacity: 0.07;
}
.hero__glow--2 {
  width: 500px;
  height: 500px;
  background: #4ade80;
  bottom: -200px;
  left: -100px;
  opacity: 0.05;
}
.hero__content {
  text-align: center;
  max-width: 700px;
  position: relative;
  z-index: 1;
}
.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero__highlight {
  background: linear-gradient(135deg, var(--accent), #4ade80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Section Header ─────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header__tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-header__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── Features ───────────────────────────── */
.features {
  padding: 80px 0 100px;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(22, 163, 74, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}
.feature-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ── Screenshot ─────────────────────────── */
.screenshot {
  padding: 0 0 100px;
}
.screenshot__img {
  border-radius: var(--radius);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--surface-border);
  margin: 0 auto;
  max-width: 800px;
}

/* ── Download Section ───────────────────── */
.download {
  padding: 80px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}
.download__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.download-card {
  background: white;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.download-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
.download-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(22, 163, 74, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--accent);
}
.download-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.download-card p {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-bottom: 20px;
}
.download-card .btn {
  padding: 12px 28px;
  font-size: 0.9rem;
}

/* ── Team Section ───────────────────────── */
.team {
  padding: 80px 0;
}
.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.team-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
}
.team-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: var(--accent);
}
.team-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  margin-bottom: 2px;
}
.team-card p {
  color: var(--text-dim);
  font-size: 0.82rem;
}
.team-card__link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  transition: color 0.2s;
}
.team-card__link:hover { color: var(--accent-bright); }

/* ── Support Section ────────────────────── */
.support {
  padding: 80px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}
.support__content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.support__content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
  line-height: 1.7;
}
.support__email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: white;
  border: 1px solid var(--surface-border);
  border-radius: 100px;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.95rem;
  margin-top: 16px;
  transition: all 0.2s;
}
.support__email:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* ── Footer ─────────────────────────────── */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--surface-border);
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__bottom p {
  color: var(--text-dim);
  font-size: 0.8rem;
}
.footer__link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.8rem;
}
.footer__link:hover { color: var(--accent-bright); }
.footer__links {
  display: flex;
  gap: 16px;
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 700px) {
  .nav__links { display: none; }
  .nav__links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--surface-border);
  }
  .nav__toggle { display: flex; }
  .features__grid { grid-template-columns: 1fr; }
  .download__cards { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr 1fr; }
}
