:root {
  color-scheme: light;
  --page: #f5f7fb;
  --surface: #fff;
  --text: #172033;
  --muted: #647084;
  --line: #e2e8f0;
  --accent: #2563eb;
  --soft: #eff4ff;
  --danger: #b42318;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: clip; }
body { min-height: 100vh; margin: 0; background: var(--page); color: var(--text); }
a { color: var(--accent); }
button, input { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 3px;
}
.site-header { height: 68px; padding: 0 max(24px, calc((100vw - 1000px) / 2)); display: flex; align-items: center; justify-content: space-between; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 10px; align-items: center; color: var(--text); text-decoration: none; font-size: 17px; font-weight: 750; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--accent); color: white; font-size: 12px; }
nav { display: flex; gap: 20px; align-items: center; }
nav a, .site-footer a { color: var(--muted); text-decoration: none; font-size: 13px; }
nav a:hover, .site-footer a:hover { color: var(--accent); }
.theme-toggle, .text-button { padding: 7px 9px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.shell { width: min(100% - 32px, 760px); min-height: calc(100vh - 128px); margin: 0 auto; padding: 58px 0; }
.route-enter { animation: routeSlideLeft .38s cubic-bezier(.22, .68, 0, 1) both; }
@keyframes routeSlideLeft {
  from { opacity: 0; transform: translateX(36px); }
  to { opacity: 1; transform: translateX(0); }
}
.panel { padding: clamp(24px, 5vw, 48px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 30px rgb(25 40 70 / 5%); }
.welcome { max-width: 650px; margin: 28px auto; text-align: center; }
h1 { margin: 8px 0 14px; font-size: clamp(27px, 5vw, 38px); letter-spacing: -.035em; line-height: 1.15; }
.muted { color: var(--muted); line-height: 1.6; }
.eyebrow { margin: 0; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.welcome-actions { display: grid; gap: 10px; margin: 28px auto 16px; max-width: 320px; }
.data-notice { max-width: 520px; margin: 20px auto 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--page); text-align: left; }
.data-notice p { margin: 0 0 9px; font-size: 12px; line-height: 1.5; }
.data-notice label { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 12px; line-height: 1.4; }
.data-notice input { width: auto; min-height: 0; margin: 2px 0 0; accent-color: var(--accent); }
.button { min-height: 40px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); cursor: pointer; font-weight: 650; }
.button:hover { filter: brightness(.97); }
.button:disabled { opacity: .6; cursor: wait; }
.welcome-actions .button:disabled { cursor: not-allowed; }
.button.primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.button.secondary { border-color: #c9d8ff; background: var(--soft); color: var(--accent); }
.small { font-size: 12px; }
.auth-panel { width: min(100%, 430px); margin: 25px auto; }
.auth-panel h1 { font-size: 27px; }
label:not(.sr-only) { display: block; margin: 17px 0 7px; font-size: 13px; font-weight: 650; }
input { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: var(--surface); color: var(--text); }
input:focus { outline: 3px solid #2563eb2b; border-color: var(--accent); }
.full-width { width: 100%; margin-top: 6px; }
.error { min-height: 18px; color: var(--danger); font-size: 13px; }
.app-panel { padding: clamp(20px, 4vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.app-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.app-heading > div:first-child { min-width: 0; }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.account-actions .button { min-height: 40px; }
.danger-button { color: var(--danger); }
.app-heading h1 { margin: 5px 0; font-size: 28px; }
.app-heading p { margin: 4px 0; }
.add-form { display: grid; grid-template-columns: minmax(110px, .7fr) minmax(160px, 1.4fr) auto auto; gap: 8px; }
.add-form input { min-width: 0; }
.status { padding: 10px 12px; border-radius: 8px; background: var(--soft); color: var(--accent); font-size: 13px; overflow-wrap: anywhere; }
.status.error { background: #fff1f0; color: var(--danger); }
.empty { padding: 25px 0; text-align: center; }
.link-list { display: grid; min-width: 0; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.link-row { display: flex; min-width: 0; max-width: 100%; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.link-info { min-width: 0; flex: 1; }
.link-info strong, .link-info a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-info strong { margin-bottom: 3px; }
.link-info a { color: var(--muted); font-size: 12px; }
.web-favicon-wrap {
  position: relative; display: grid; width: 32px; height: 32px; flex: 0 0 32px;
  place-items: center; overflow: hidden; border-radius: 9px; background: var(--soft);
}
.web-favicon-wrap img {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 5px;
  object-fit: contain; background: var(--surface);
}
.web-favicon-wrap img[hidden], .web-favicon-fallback[hidden] { display: none; }
.web-favicon-fallback { color: var(--accent); font-size: 13px; font-weight: 750; }
.link-actions { display: flex; gap: 6px; }
.link-actions button { padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); cursor: pointer; }
.site-footer { display: flex; justify-content: space-between; width: min(100% - 32px, 760px); margin: auto; padding: 20px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.policy h2 { margin: 28px 0 8px; font-size: 19px; }
.policy p, .policy li { line-height: 1.7; }
.policy li { margin: 8px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .route-enter { animation: none; }
}

body[data-theme="dark"] {
  color-scheme: dark;
  --page: #11151e;
  --surface: #1b2230;
  --text: #f5f7fc;
  --muted: #a7b2c4;
  --line: #30394a;
  --accent: #7394ff;
  --soft: #222f4b;
}
body[data-theme="dark"] .button.secondary { color: #b4c6ff; }
body[data-theme="dark"] .status.error { background: #3a2024; }

@media (max-width: 650px) {
  .site-header { padding: 0 16px; }
  nav { gap: 12px; }
  nav a { font-size: 12px; }
  .shell { padding: 28px 0; }
  .add-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .add-form .button { grid-row: 3; }
}
@media (max-width: 420px) {
  nav { gap: 8px; }
  .theme-toggle { font-size: 12px; }
  .app-heading { align-items: flex-start; }
  .link-row { align-items: flex-start; }
  .link-actions { flex-direction: column; }
  .site-footer { gap: 12px; flex-wrap: wrap; }
}

body {
  --page: #f7f8fc;
  --surface: #fff;
  --text: #17213a;
  --muted: #68748b;
  --line: #e7eaf2;
  --accent: #315fe9;
  --soft: #eef2ff;
  background:
    radial-gradient(ellipse at 78% 12%, rgb(91 122 255 / 10%), transparent 34rem),
    var(--page);
  overflow-x: clip;
}
.site-header {
  position: sticky; z-index: 20; top: 0; height: 72px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  backdrop-filter: blur(16px); background: color-mix(in srgb, var(--surface) 88%, transparent);
}
.brand { gap: 9px; font-size: 17px; }
.brand-logo { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; }
.brand-accent { color: var(--accent); }
nav { gap: clamp(12px, 2vw, 26px); }
nav a { font-weight: 600; }
.shell { width: min(100% - 48px, 1120px); min-height: calc(100vh - 144px); padding: 52px 0 70px; }
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr);
  gap: clamp(36px, 7vw, 90px); align-items: center; min-height: 490px; padding: 24px 12px 50px;
}
.hero-copy { position: relative; z-index: 1; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: #27b988; box-shadow: 0 0 0 5px rgb(39 185 136 / 12%); }
.hero h1 { margin: 22px 0 18px; font-size: clamp(46px, 6.2vw, 72px); letter-spacing: -.065em; line-height: .99; }
.hero h1 span { color: var(--accent); }
.hero-description { max-width: 490px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-actions .button { min-height: 48px; padding: 12px 18px; }
.hero-note { margin: 15px 0 0; color: var(--muted); font-size: 12px; }
.hero-art { position: relative; display: grid; min-height: 390px; place-items: center; isolation: isolate; }
.hero-glow { position: absolute; z-index: -1; width: min(100%, 410px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(91 122 255 / 22%), rgb(91 122 255 / 5%) 56%, transparent 72%); animation: glowBreathe 5s ease-in-out infinite; }
@keyframes glowBreathe { 0%, 100% { transform: scale(.94); opacity: .7; } 50% { transform: scale(1.05); opacity: 1; } }
.hero-window { width: min(100%, 390px); overflow: hidden; border: 1px solid rgb(255 255 255 / 88%); border-radius: 22px; background: var(--surface); box-shadow: 0 34px 80px rgb(27 49 103 / 18%), 0 6px 20px rgb(27 49 103 / 8%); transform: rotate(2deg); animation: windowFloat 6s ease-in-out infinite; }
@keyframes windowFloat { 0%, 100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
.preview-topbar { display: flex; align-items: center; gap: 9px; min-height: 64px; padding: 12px 17px; border-bottom: 1px solid var(--line); }
.preview-logo { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; }
.preview-topbar strong { font-size: 14px; }
.preview-topbar strong span { color: var(--accent); }
.preview-status { margin-left: auto; color: #248b67; font-size: 10px; white-space: nowrap; }
.preview-content { display: grid; gap: 10px; padding: 17px; }
.preview-link { display: flex; align-items: center; gap: 12px; min-height: 61px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; animation: previewAppear .55s both; }
.preview-link:nth-child(2) { animation-delay: .12s; }
.preview-link:nth-child(3) { animation-delay: .24s; }
@keyframes previewAppear { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.preview-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 10px; font-size: 12px; font-weight: 800; }
.preview-icon-blue { background: #eef2ff; color: #4285f4; }
.preview-icon-dark { background: #20232c; color: #fff; font-size: 9px; }
.preview-icon-green { background: #e9f8f2; color: #14966b; }
.preview-link strong, .preview-link small { display: block; }
.preview-link strong { font-size: 13px; }
.preview-link small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.preview-arrow { margin-left: auto; color: var(--muted); }
.preview-add { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border-radius: 10px; background: var(--soft); color: var(--accent); font-size: 14px; font-weight: 750; }
.preview-add span { font-size: 12px; }
.hero-badge { position: absolute; right: -9px; bottom: 36px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); box-shadow: 0 12px 32px rgb(27 49 103 / 12%); font-size: 12px; font-weight: 700; animation: badgeFloat 4.5s ease-in-out infinite; }
.hero-badge span { margin-right: 5px; color: #ecaa3b; }
@keyframes badgeFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--surface) 78%, transparent); }
.trust-strip > div { display: flex; justify-content: center; align-items: center; gap: 11px; }
.trust-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: var(--soft); color: var(--accent); font-size: 17px; }
.trust-strip strong, .trust-strip small { display: block; }
.trust-strip strong { font-size: 12px; }
.trust-strip small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.welcome-panel { max-width: 100%; margin: 76px 0 104px; padding: clamp(22px, 4vw, 38px); text-align: left; }
.welcome-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.welcome-heading h2, .section-heading h2, .how-section h2, .privacy-cta h2 { margin: 9px 0; font-size: clamp(27px, 4vw, 38px); letter-spacing: -.045em; }
.welcome-heading .muted { max-width: 350px; margin: 0 0 10px; font-size: 13px; }
.data-notice { max-width: none; margin: 20px 0 0; padding: 15px 17px; }
.data-notice p { font-size: 12px; }
.data-notice p strong { color: var(--text); }
.data-notice label { cursor: pointer; }
.data-notice input { width: 15px; height: 15px; }
.welcome-actions { display: flex; gap: 10px; margin: 16px 0 0; }
.welcome-actions .button { min-width: 130px; }
.status { margin: 14px 0 0; }
.feature-section, .faq-section { margin: 0 0 100px; scroll-margin-top: 100px; }
.section-heading { max-width: 620px; margin-bottom: 30px; }
.section-heading h2 { margin-top: 10px; }
.section-heading > p:last-child { margin: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { min-height: 205px; padding: 25px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.feature-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: 0 18px 34px rgb(27 49 103 / 9%); }
.feature-number { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.feature-card h3, .faq-card h3 { margin: 22px 0 9px; font-size: 17px; letter-spacing: -.02em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.how-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: center; margin-bottom: 100px; padding: clamp(25px, 5vw, 48px); background: linear-gradient(135deg, var(--surface), var(--soft)); }
.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: flex-start; gap: 13px; }
.steps li > span { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; }
.steps strong { font-size: 13px; }
.steps p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.faq-card { padding: 24px 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.faq-card h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; }
.check-mark { color: #16835d; }
.minus-mark { color: var(--muted); }
.faq-card ul { display: grid; gap: 11px; margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.faq-card-muted { background: color-mix(in srgb, var(--surface) 60%, var(--page)); }
.privacy-cta { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin: 0 0 24px; padding: clamp(25px, 5vw, 42px); border-radius: 18px; background: #192b61; color: #fff; }
.privacy-cta .eyebrow { color: #a9bcff; }
.privacy-cta h2 { margin: 9px 0; }
.privacy-cta p:last-child { max-width: 520px; margin: 0; color: #d3dcf9; font-size: 13px; line-height: 1.6; }
.privacy-cta .button { flex: 0 0 auto; border: 0; background: #fff; color: #192b61; }
.contact-cta { display: flex; align-items: center; gap: 14px; margin: 0 0 28px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.contact-logo { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; }
.contact-cta strong { font-size: 13px; }
.contact-cta p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.contact-cta > a { margin-left: auto; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-footer { width: min(100% - 48px, 1120px); align-items: center; padding: 20px 0 26px; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; text-decoration: none; }
.footer-brand img { width: 25px; height: 25px; border-radius: 7px; }
.motion-ready .reveal-left { opacity: 0; transform: translateX(34px); transition: opacity .65s ease, transform .65s cubic-bezier(.22, .68, 0, 1); }
.motion-ready .reveal-left.is-visible { opacity: 1; transform: translateX(0); }
.feature-grid .feature-card:nth-child(2) { transition-delay: .08s; }
.feature-grid .feature-card:nth-child(3) { transition-delay: .16s; }
.faq-grid .faq-card:nth-child(2) { transition-delay: .08s; }
body[data-theme="dark"] { background: radial-gradient(ellipse at 78% 12%, rgb(100 139 255 / 12%), transparent 34rem), var(--page); }
body[data-theme="dark"] .hero-window { border-color: #30394a; }
body[data-theme="dark"] .preview-icon-blue { background: #252f4b; }
body[data-theme="dark"] .preview-icon-green { background: #20372f; }
body[data-theme="dark"] .privacy-cta { background: #17234a; }
body[data-theme="dark"] .privacy-cta .button { background: #f5f7fc; color: #17234a; }
@media (max-width: 850px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); gap: 24px; }
  .hero h1 { font-size: clamp(43px, 7vw, 58px); }
  .hero-art { min-height: 330px; }
  .hero-window { max-width: 340px; }
  .feature-grid { gap: 11px; }
  .feature-card { padding: 19px; }
  .how-section { grid-template-columns: 1fr 1.2fr; gap: 28px; }
}
@media (max-width: 650px) {
  .site-header { height: 62px; padding: 0 15px; }
  .brand-logo { width: 33px; height: 33px; }
  nav { gap: 11px; }
  nav a { font-size: 11px; }
  nav a[href="#features"], nav a[href="#faq"] { display: none; }
  .shell { width: min(100% - 32px, 520px); padding: 26px 0 48px; }
  .hero { grid-template-columns: 1fr; gap: 14px; min-height: 0; padding: 25px 3px 35px; }
  .hero h1 { margin: 18px 0 13px; font-size: clamp(46px, 12vw, 62px); }
  .hero-description { font-size: 15px; }
  .hero-art { min-height: 320px; margin: 0 6px; }
  .hero-window { width: min(90%, 350px); }
  .hero-badge { right: 0; bottom: 16px; }
  .trust-strip { grid-template-columns: 1fr; gap: 13px; padding: 16px; }
  .trust-strip > div { justify-content: flex-start; }
  .welcome-panel { margin: 56px 0 72px; padding: 20px; }
  .welcome-heading { display: block; }
  .welcome-heading .muted { margin-top: 10px; }
  .welcome-actions { flex-wrap: wrap; }
  .welcome-actions .button { flex: 1; }
  .feature-section, .faq-section { margin-bottom: 72px; }
  .feature-grid, .faq-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .feature-card h3 { margin-top: 14px; }
  .how-section { grid-template-columns: 1fr; gap: 22px; margin-bottom: 72px; }
  .privacy-cta { align-items: flex-start; flex-direction: column; gap: 19px; }
  .contact-cta { flex-wrap: wrap; }
  .contact-cta > a { width: 100%; margin: 4px 0 0 52px; }
  .site-footer { width: calc(100% - 32px); align-items: flex-start; flex-direction: column; gap: 11px; }
  .app-panel { padding: 18px; }
  .app-heading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .app-heading h1 { font-size: clamp(25px, 7vw, 30px); }
  .app-heading p { font-size: 13px; overflow-wrap: anywhere; }
  .account-actions { width: 100%; }
  .account-actions .button { flex: 1 1 0; min-height: 44px; }
  .add-form { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .add-form input, .add-form .button { grid-column: 1; grid-row: auto; width: 100%; min-height: 44px; }
  .link-row { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 8px 10px; width: 100%; padding: 10px; }
  .web-favicon-wrap { width: 28px; height: 28px; }
  .link-info { grid-column: 2; grid-row: 1; }
  .link-info strong, .link-info a { min-width: 0; }
  .link-info a { font-size: 11px; }
  .link-actions { grid-column: 1 / -1; display: flex; flex-direction: row; gap: 8px; }
  .link-actions button { flex: 1 1 0; min-width: 0; min-height: 40px; }
}
@media (max-width: 390px) {
  .site-header { padding: 0 11px; }
  .brand { gap: 6px; font-size: 14px; }
  .brand-logo { width: 30px; height: 30px; }
  nav { gap: 8px; }
  .theme-toggle { padding-inline: 5px; font-size: 11px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .preview-status { font-size: 9px; }
  .shell { width: calc(100% - 24px); }
  .app-panel { padding: 14px; }
  .link-row { padding: 9px; }
  .link-actions button { padding: 6px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .motion-ready .reveal-left { opacity: 1; transform: none; }
}
