:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --violet: #7c3aed;
  --cyan: #06b6d4;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-tint: #eff6ff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.2; letter-spacing: -0.015em; font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: var(--bg-tint); border: 1px solid #dbeafe; padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: .95rem; border-radius: 10px; padding: 10px 20px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, .35); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(37, 99, 235, .45); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { color: var(--ink); padding: 10px 12px; }
.btn-light { background: #fff; color: var(--blue-dark); }
.btn-lg { padding: 14px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 1.18rem; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; fill: var(--blue); }
.logo-text strong { font-weight: 800; }
.main-nav { display: flex; gap: 26px; margin-left: 12px; }
.main-nav a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.main-nav a:hover { color: var(--ink); text-decoration: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #eef4ff 0%, #ffffff 78%); }
.hero-bg { position: absolute; inset: 0; background:
  radial-gradient(560px 300px at 12% -10%, rgba(124, 58, 237, .22), transparent 65%),
  radial-gradient(640px 340px at 95% 8%, rgba(6, 182, 212, .20), transparent 65%),
  radial-gradient(420px 260px at 60% 110%, rgba(37, 99, 235, .14), transparent 65%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; padding: 84px 24px 96px; align-items: center; }
.hero-copy h1 { margin: 10px 0 18px; }
.hero-copy .lead { margin-bottom: 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hero-note { font-size: .88rem; color: var(--muted); }
.hero-stats { display: flex; gap: 34px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-stats strong { display: block; font-size: 1.35rem; }
.hero-stats span { font-size: .85rem; color: var(--muted); }

/* App mock */
.app-mock { position: relative; }
.app-window { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.app-titlebar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red { background: #f87171; } .dot-amber { background: #fbbf24; } .dot-green { background: #34d399; }
.app-title { font-size: .85rem; font-weight: 600; margin-left: 8px; }
.app-search { margin-left: auto; font-size: .8rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; }
.app-body { display: grid; grid-template-columns: 168px 1fr; min-height: 340px; }
.app-side { border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; background: #fbfdff; }
.side-item { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 12px; border-radius: 8px; font-size: .88rem; color: var(--muted); cursor: pointer; font-family: inherit; }
.side-item:hover { background: var(--bg-tint); color: var(--ink); }
.side-item.active { background: #dbeafe; color: var(--blue-dark); font-weight: 600; }
.storage-card { margin-top: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; font-size: .8rem; color: var(--muted); }
.storage-card p { margin-top: 4px; }
.storage-card a { font-size: .8rem; }
.ring { width: 64px; height: 64px; margin: 0 auto; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring-bg { stroke: var(--line); }
.ring-fg { stroke: url(#ringGrad); stroke: var(--blue); stroke-dasharray: 214; stroke-dashoffset: 21; stroke-linecap: round; }
.app-main { padding: 16px 18px; }
.app-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-weight: 700; }
.pill { font-size: .75rem; font-weight: 600; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.file-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.file-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 12px; background: #fff; transition: box-shadow .15s ease, transform .15s ease; }
.file-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.file-icon { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .02em; margin-bottom: 10px; }
.file-card p { font-size: .86rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-card span { font-size: .76rem; color: var(--muted); }
.file-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 44px 0; font-size: .92rem; }
.float-chip { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 10px 14px; font-size: .82rem; font-weight: 600; animation: float 5s ease-in-out infinite; }
.float-chip span { display: block; font-weight: 400; color: var(--muted); font-size: .74rem; }
.chip-1 { left: -14px; bottom: 44px; }
.chip-2 { right: -8px; top: -16px; animation-delay: 2.2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Logos */
.logos { padding: 34px 0 10px; text-align: center; }
.logos-label { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 44px; font-size: 1.18rem; font-weight: 800; color: #94a3b8; letter-spacing: .01em; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.section-head p { color: var(--muted); margin-top: 12px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; transition: box-shadow .2s ease, transform .2s ease; }
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-icon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sync { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.icon-share { background: linear-gradient(135deg, #7c3aed, #2563eb); }
.icon-collab { background: linear-gradient(135deg, #0891b2, #22c55e); }
.icon-lock { background: linear-gradient(135deg, #0f172a, #334155); }
.icon-admin { background: linear-gradient(135deg, #db2777, #f97316); }
.icon-history { background: linear-gradient(135deg, #4f46e5, #06b6d4); }
.feature-card p { color: var(--muted); font-size: .94rem; margin-top: 8px; }

/* Plans */
.billing-toggle { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-top: 22px; }
.toggle-btn { border: 0; background: none; font: inherit; font-size: .9rem; font-weight: 600; padding: 8px 18px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.toggle-btn.active { background: var(--ink); color: #fff; }
.save-tag { color: #4ade80; font-size: .78rem; margin-left: 2px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; display: flex; flex-direction: column; }
.plan-popular { border: 2px solid var(--blue); box-shadow: var(--shadow-lg); }
.popular-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff; font-size: .76rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.plan-price { margin: 14px 0 6px; font-size: 1rem; }
.plan-price .currency { font-size: 1.3rem; font-weight: 700; vertical-align: top; }
.plan-price .amount { font-size: 2.7rem; font-weight: 800; letter-spacing: -0.02em; }
.plan-price .per { color: var(--muted); font-size: .9rem; }
.plan-desc { color: var(--muted); font-size: .94rem; margin-bottom: 20px; }
.plan-features { list-style: none; margin-bottom: 26px; flex: 1; }
.plan-features li { padding: 7px 0 7px 28px; position: relative; font-size: .94rem; }
.plan-features li::before { content: ""; position: absolute; left: 0; top: 12px; width: 16px; height: 16px; border-radius: 50%; background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2316a34a' stroke-width='2' d='M3 8.5 6.5 12 13 4.5'/%3E%3C/svg%3E") center/11px no-repeat; }
.plans-note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 26px; }

/* Security */
.security-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.security-copy h2 { margin-bottom: 14px; }
.security-copy > p { color: var(--muted); margin-bottom: 22px; }
.check-list { list-style: none; margin-bottom: 26px; }
.check-list li { padding: 8px 0 8px 30px; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%; background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2316a34a' stroke-width='2' d='M3 8.5 6.5 12 13 4.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.security-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.badge-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px; text-align: center; }
.badge-icon { display: inline-block; font-size: 1.5rem; font-weight: 800; color: var(--blue); margin-bottom: 6px; }
.badge-card p { font-size: .9rem; color: var(--muted); line-height: 1.4; }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.testimonial blockquote { font-size: 1.02rem; line-height: 1.55; margin-bottom: 20px; }
.testimonial figcaption { display: flex; gap: 12px; align-items: center; font-size: .88rem; color: var(--muted); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--av, #2563eb); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; flex: none; }

/* FAQ */
.faq-inner { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; font: inherit; font-size: 1rem; font-weight: 600; padding: 18px 22px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--blue); flex: none; transition: transform .2s ease; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--muted); font-size: .95rem; }
.faq-item.open .faq-a { max-height: 220px; }

/* CTA */
.cta { background: linear-gradient(135deg, #1d4ed8, #7c3aed 60%, #4f46e5); color: #fff; padding: 76px 0; text-align: center; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: rgba(255, 255, 255, .85); margin: 12px 0 26px; }
.cta-note { font-size: .85rem; opacity: .75; margin: 14px 0 0 !important; }

/* Footer */
.site-footer { background: #0f172a; color: #94a3b8; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; }
.footer-brand .logo { color: #fff; }
.footer-brand p { margin-top: 14px; font-size: .92rem; }
.footer-status { display: flex; align-items: center; gap: 8px; font-size: .86rem; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); }
.site-footer h4 { color: #fff; font-size: .92rem; margin-bottom: 14px; }
.site-footer nav a { display: block; color: #94a3b8; font-size: .9rem; padding: 5px 0; }
.site-footer nav a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid #1e293b; padding: 20px 24px 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; }

/* Auth pages */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(180deg, #eef4ff, #fff 60%); }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 38px 36px; }
.auth-card .logo { margin-bottom: 8px; }
.auth-card h1 { font-size: 1.55rem; margin: 14px 0 6px; }
.auth-sub { color: var(--muted); font-size: .94rem; margin-bottom: 24px; }
.auth-sub a { font-weight: 600; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.field input { width: 100%; font: inherit; font-size: .95rem; padding: 11px 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; }
.field input:focus { outline: 2px solid #bfdbfe; border-color: var(--blue); }
.field input.error { border-color: #dc2626; outline-color: #fecaca; }
.field-hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.field-error { display: none; font-size: .82rem; color: #dc2626; margin-top: 6px; }
.field.invalid .field-error { display: block; }
.form-error { display: none; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: .88rem; border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; }
.form-error.show { display: block; }
.form-ok { display: none; background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; font-size: .88rem; border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; }
.form-ok.show { display: block; }
.auth-card .btn { width: 100%; margin-top: 6px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; margin: 22px 0 16px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sso-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; }
.sso-btn:hover { border-color: var(--blue); color: var(--blue); }
.auth-links { display: flex; justify-content: space-between; margin-top: 18px; font-size: .88rem; }
.auth-foot { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 22px; }
.notice-box { background: var(--bg-tint); border: 1px solid #dbeafe; border-radius: 12px; padding: 14px 16px; font-size: .86rem; color: #1e3a5f; margin-bottom: 20px; }
.notice-box strong { color: var(--blue-dark); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-chip { animation: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding-top: 56px; }
  .feature-grid, .plan-grid, .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .security-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .main-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 24px 16px; border-bottom: 1px solid var(--line); margin: 0; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-top: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .header-actions .btn-ghost { display: none; }
  .feature-grid, .plan-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .file-grid { grid-template-columns: repeat(2, 1fr); }
  .app-body { grid-template-columns: 132px 1fr; }
  .float-chip { display: none; }
  .hero-stats { gap: 20px; }
  .section { padding: 60px 0; }
}
