/* =========================================================
   FileCura — site styles
   Premium Mac utility look: graphite/navy + violet/blue accents.
   ========================================================= */

:root {
  --bg:          #070914;
  --bg-2:        #0e1324;
  --card:        rgba(255,255,255,0.055);
  --card-strong: rgba(255,255,255,0.085);
  --line:        rgba(255,255,255,0.12);
  --line-strong: rgba(255,255,255,0.18);
  --text:        #f4f6fb;
  --muted:       #b6bdd2;
  --muted-2:     #8a92ad;
  --accent:      #8b5cf6;
  --accent-2:    #38bdf8;
  --accent-soft: rgba(139,92,246,0.18);
  --green:       #72e0a8;
  --amber:       #ffd166;
  --danger:      #ff6b6b;
  --shadow:      0 24px 80px rgba(0,0,0,0.38);
  --shadow-sm:   0 12px 36px rgba(0,0,0,0.22);
  --radius:      22px;
  --radius-lg:   28px;
  --max:         1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 8%,  rgba(139,92,246,0.30), transparent 32%),
    radial-gradient(circle at 86% 14%, rgba(56,189,248,0.20), transparent 30%),
    linear-gradient(180deg, #070914 0%, #0b1020 48%, #070914 100%);
  background-attachment: fixed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

/* ---------- Coming soon banner ---------- */
.top-banner {
  background: linear-gradient(90deg, rgba(139,92,246,0.18), rgba(56,189,248,0.12));
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: #e6eaf8;
}
.top-banner .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 0;
  text-align: center;
}
.top-banner .badge {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 11px;
  text-transform: uppercase;
}

/* ---------- Header / nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(7,9,20,0.78);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
}
.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img.logo-text {
  height: 150px;
  width: auto;
  filter: brightness(0) invert(1); /* Logo is dark by default; invert to read on dark backgrounds. */
  opacity: 0.96;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.07);
  color: var(--text);
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.26);
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 42px rgba(56,189,248,0.20);
}
.btn.primary:hover { box-shadow: 0 18px 48px rgba(56,189,248,0.28); }
.btn.secondary { background: rgba(255,255,255,0.05); }
.btn.disabled,
.btn[aria-disabled="true"] {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.14);
  color: var(--muted);
  box-shadow: none;
}
.btn .arrow { font-size: 16px; line-height: 1; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.04em; line-height: 1.06; }
h1 { font-size: clamp(40px, 6vw, 64px); max-width: 720px; letter-spacing: -0.045em; }
h2 { font-size: clamp(30px, 3.6vw, 42px); }
h3 { font-size: 20px; letter-spacing: -0.025em; }
h4 { font-size: 16px; }
p  { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #dce5ff;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  margin-bottom: 22px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(114,224,168,0.7);
}
.dot.amber { background: var(--amber); box-shadow: 0 0 16px rgba(255,209,102,0.65); }

.lead {
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 19.5px);
  max-width: 600px;
}
.fine-print {
  margin-top: 16px;
  color: var(--muted-2);
  font-size: 13px;
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 32px;
}
.section-head p {
  color: var(--muted);
  max-width: 580px;
  font-size: 17px;
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Hero visual (app icon) */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 20%, rgba(139,92,246,0.30), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(56,189,248,0.22), transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 420px;
}
.hero-visual:before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0) 40%);
  pointer-events: none;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1px;
}
.hero-icon {
  width: min(78%, 320px);
  filter: drop-shadow(0 30px 50px rgba(139,92,246,0.35))
          drop-shadow(0 10px 22px rgba(0,0,0,0.35));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-icon { animation: none; }
}

/* Status pills under the hero icon */
.status-pills {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.pill {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 6px 12px;
  color: #dce4f8;
  font-size: 12.5px;
}
.pill.green {
  border-color: rgba(114,224,168,0.30);
  background: rgba(114,224,168,0.08);
  color: #c8f4dc;
}

/* ---------- Status panel ---------- */
.status-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 40px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
}
.status-panel .item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
}
.status-panel .item .k {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
}
.status-panel .item .v {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

/* ---------- Grid cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.card:hover {
  border-color: var(--line-strong);
  background: var(--card-strong);
  transform: translateY(-2px);
}
.card .kicker {
  color: var(--accent-2);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 800;
}
.card h3 { margin-top: 10px; }
.card p  { color: var(--muted); margin-top: 10px; }

.icon {
  width: 42px; height: 42px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: #dccfff;
  display: grid; place-items: center;
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.10);
}

/* ---------- Steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
}
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
}
.step:before {
  counter-increment: step;
  content: counter(step);
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 900;
  font-size: 16px;
  color: #fff;
}
.step p { color: var(--muted); margin-top: 6px; }

/* ---------- Download panel ---------- */
.download-panel {
  border: 1px solid rgba(255,255,255,0.16);
  background:
    radial-gradient(circle at 12% 10%, rgba(139,92,246,0.22), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(56,189,248,0.16), transparent 45%),
    linear-gradient(135deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border-radius: var(--radius-lg);
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  box-shadow: var(--shadow);
}
.download-panel p { color: var(--muted); margin-top: 10px; }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

/* ---------- FAQ / details ---------- */
details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  padding: 16px 20px;
  transition: background .18s ease, border-color .18s ease;
}
details + details { margin-top: 10px; }
details[open] { background: rgba(255,255,255,0.06); border-color: var(--line-strong); }
summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary:after {
  content: "+";
  font-weight: 700;
  font-size: 18px;
  color: var(--muted);
  transition: transform .18s ease;
}
details[open] summary:after { content: "–"; }
details p { color: var(--muted); margin-top: 10px; font-size: 14.5px; }
details ol, details ul { color: var(--muted); margin: 10px 0 0 18px; padding: 0; font-size: 14.5px; }
details ol li, details ul li { margin: 4px 0; }

/* ---------- Doc pages (privacy / terms / support / release notes) ---------- */
.doc {
  padding-top: 56px;
  padding-bottom: 80px;
}
.doc .doc-head {
  margin-bottom: 32px;
}
.doc h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  margin-bottom: 12px;
}
.doc p.lead { margin-top: 8px; }
.doc-meta {
  color: var(--muted-2);
  font-size: 13px;
  margin-top: 8px;
}
.doc-body {
  display: grid;
  gap: 18px;
}
.doc-section {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.doc-section h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.doc-section h3 {
  font-size: 17px;
  margin-top: 18px;
  margin-bottom: 8px;
}
.doc-section p,
.doc-section li {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}
.doc-section ul, .doc-section ol {
  margin: 8px 0 0 18px;
  padding: 0;
}
.doc-section ul li, .doc-section ol li { margin: 6px 0; }
.doc-section code {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 13.5px;
  color: #ecedf3;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}
.doc-section strong { color: var(--text); }

.callout {
  border: 1px solid rgba(139,92,246,0.30);
  background: linear-gradient(135deg, rgba(139,92,246,0.10), rgba(56,189,248,0.05));
  border-radius: var(--radius);
  padding: 18px 22px;
}
.callout strong { color: var(--text); }
.callout p { color: var(--muted); margin-top: 6px; font-size: 14.5px; }

/* ---------- Footer ---------- */
footer.site {
  padding: 40px 0 60px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--muted-2);
  margin-top: 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
}
.footer-brand img {
  height: 22px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: 14px;
}
.footer-brand p { color: var(--muted-2); font-size: 13.5px; max-width: 360px; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  font-size: 14px;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  section { padding: 56px 0; }
  .hero { padding-top: 48px; }
  .hero-grid,
  .download-panel,
  .grid-3,
  .grid-2,
  .footer-grid { grid-template-columns: 1fr; }
  .status-panel { grid-template-columns: repeat(2, 1fr); }
  .section-head { display: block; }
  .section-head p { margin-top: 12px; }
  .nav-links { display: none; }
  .hero-visual { min-height: 320px; padding: 20px; }
  .download-panel { padding: 26px; }
}

@media (max-width: 480px) {
  .status-panel { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
}
