/* iFiles website — shared styles */
:root {
  --accent: #2e8bf0;
  --accent-soft: #e8f3fe;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --card: #ffffff;
  --text: #17222e;
  --text-2: #55677a;
  --border: #e3eaf2;
  --shadow: 0 8px 30px rgba(23, 61, 101, 0.08);
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #4fa6f7;
    --accent-soft: #16283b;
    --bg: #0d1117;
    --bg-alt: #10161f;
    --card: #161d27;
    --text: #e8eef5;
    --text-2: #93a4b6;
    --border: #232d3a;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans", "Noto Sans", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; gap: 20px; height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.site-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.site-nav a { color: var(--text-2); font-size: 15px; }
.site-nav a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff !important;
  padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(46, 139, 240, 0.35); }
.btn-lg { padding: 14px 28px; font-size: 17px; }
.btn-ghost { background: transparent; color: var(--text-2) !important; border: 1px solid var(--border); }
.btn-ghost:hover { box-shadow: none; color: var(--text) !important; }

/* Language picker */
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; color: var(--text-2); font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px;
}
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary { color: var(--text); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); padding: 6px; z-index: 60;
}
.lang-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); font-size: 14px; }
.lang-menu a:hover { background: var(--accent-soft); }
.lang-menu a.current { color: var(--accent); font-weight: 600; }

/* Hero */
.hero { padding: 72px 0 64px; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero-icon { width: 76px; height: 76px; border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 24px; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub { font-size: 19px; color: var(--text-2); margin-bottom: 30px; max-width: 34em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.trust { margin-top: 22px; color: var(--text-2); font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.trust .dot { opacity: 0.5; }

/* Phone mockup */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 280px; border-radius: 44px; padding: 14px;
  background: linear-gradient(160deg, #34424f, #10161d);
  box-shadow: 0 30px 60px rgba(10, 40, 80, 0.35);
}
.phone-screen {
  background: var(--bg); border-radius: 32px; overflow: hidden;
  border: 1px solid var(--border);
}
.phone-shot { display: block; width: 100%; height: auto; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -0.01em; margin-bottom: 12px; }
.section-head p { color: var(--text-2); font-size: 17px; }

/* Features grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px;
}
.feature .ico {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px;
}
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature h3 .tag {
  font-size: 11px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent);
  border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: 2px;
}
.feature p { font-size: 14px; color: var(--text-2); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; position: relative;
}
.step .num {
  width: 34px; height: 34px; border-radius: 999px; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 14px;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-2); }
.step code {
  background: var(--accent-soft); color: var(--accent); border-radius: 6px;
  padding: 1px 7px; font-size: 13px;
}

/* Pro */
.pro-box {
  background: linear-gradient(135deg, var(--accent) 0%, #6db4f8 100%);
  border-radius: 24px; padding: 48px 40px; color: #fff; text-align: center;
}
.pro-box h2 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 12px; }
.pro-box .sub { font-size: 17px; opacity: 0.92; max-width: 40em; margin: 0 auto 28px; }
.plans { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.plan {
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px; padding: 12px 22px; font-weight: 600; font-size: 15px;
}
.pro-box .btn { background: #fff; color: var(--accent) !important; }
.pro-box .btn:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 48px; color: var(--text-2); font-size: 14px; }
.site-footer .container { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.site-footer .links { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--text); }

/* Prose pages (privacy / support) */
.prose { max-width: 720px; margin: 0 auto; padding: 56px 24px 80px; }
.prose h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 8px; letter-spacing: -0.01em; }
.prose .updated { color: var(--text-2); font-size: 14px; margin-bottom: 36px; }
.prose h2 { font-size: 20px; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--text-2); font-size: 16px; }
.prose ul { padding-left: 22px; margin: 8px 0; }
.prose .card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; margin: 14px 0;
}
.prose .card h2 { margin: 0 0 8px; font-size: 17px; color: var(--text); }
.prose .card p { font-size: 15px; }

/* Responsive */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .phone-wrap { order: -1; }
  .phone { width: 240px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .site-nav a.nav-link { display: none; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  section { padding: 56px 0; }
}
