:root {
  --black: #000000;
  --prussian-blue: #14213d;
  --orange: #fca311;
  --alabaster-grey: #e5e5e5;
  --white: #ffffff;
  --ink: #14213d;
  --muted: #667085;
  --line: #e5e5e5;
  --soft: #f7f7f5;
  --orange-soft: #fff5e3;
  --shadow: 0 24px 70px rgba(20, 33, 61, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--white); color: var(--ink); font: 15px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.hidden { display: none !important; }

.public-header { position: sticky; top: 0; z-index: 40; height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 6vw, 88px); border-bottom: 1px solid rgba(229,229,229,.85); background: rgba(255,255,255,.88); backdrop-filter: blur(18px); }
.public-brand { display: flex; align-items: center; gap: 10px; letter-spacing: .18em; }
.public-brand img { width: 38px; height: 38px; border-radius: 10px; }
.public-brand span { color: var(--muted); font-size: 10px; }
.desktop-nav { display: flex; align-items: center; gap: 25px; }
.desktop-nav > a:not(.public-cta):hover, footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { width: 44px; height: 44px; display: grid; place-content: center; gap: 4px; cursor: pointer; list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { width: 22px; height: 2px; border-radius: 2px; background: var(--prussian-blue); }
.mobile-menu nav { position: absolute; top: 52px; right: 0; min-width: 230px; display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: var(--white); box-shadow: var(--shadow); }
.mobile-menu nav a { padding: 8px 10px; }

.public-cta, .secondary-cta { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 19px; border-radius: 12px; font-weight: 800; transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.public-cta { border: 1px solid var(--orange); background: var(--orange); color: var(--black); box-shadow: 0 10px 25px rgba(252,163,17,.23); }
.secondary-cta { border: 1px solid rgba(20,33,61,.2); background: var(--white); color: var(--prussian-blue); }
.public-cta:hover, .secondary-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(20,33,61,.13); }
.eyebrow { margin: 0 0 13px; color: #a96500; font-size: 11px; font-weight: 900; letter-spacing: .19em; }

.hero { min-height: min(800px, calc(100vh - 74px)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 590px); align-items: center; gap: clamp(35px, 6vw, 90px); padding: clamp(64px, 8vw, 112px) clamp(24px, 8vw, 126px); background: radial-gradient(circle at 79% 43%, rgba(252,163,17,.14), transparent 28%), linear-gradient(145deg, #fff 48%, #f5f5f1); }
.hero-copy { position: relative; z-index: 2; }
.hero h1, .content-page h1 { margin: 0; color: var(--prussian-blue); font-size: clamp(50px, 7.4vw, 94px); line-height: .98; letter-spacing: -.064em; }
.hero h1 span { color: var(--orange); }
.hero-lead { max-width: 680px; margin: 28px 0; color: #526079; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { max-width: 610px; margin: 24px 0 0; color: var(--muted); font-size: 13px; }
.hero-visual { position: relative; min-width: 0; isolation: isolate; }
.hero-visual > img { position: relative; z-index: 2; display: block; width: 100%; height: auto; filter: drop-shadow(0 32px 35px rgba(20,33,61,.18)); animation: hero-float 7s ease-in-out infinite; }
.hero-orbit { position: absolute; inset: 10% 4%; z-index: 0; border: 1px solid rgba(252,163,17,.2); border-radius: 50%; transform: rotate(-12deg); }
.hero-orbit::before, .hero-orbit::after { content: ""; position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 9px rgba(252,163,17,.12); }
.hero-orbit::before { top: 8%; left: 15%; }
.hero-orbit::after { right: 7%; bottom: 19%; }
.visual-chip { position: absolute; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.8); border-radius: 12px; background: rgba(255,255,255,.9); color: var(--prussian-blue); font-size: 12px; font-weight: 850; box-shadow: 0 16px 40px rgba(20,33,61,.16); backdrop-filter: blur(10px); }
.visual-chip i { width: 8px; height: 8px; border-radius: 50%; background: #20a36a; box-shadow: 0 0 0 5px rgba(32,163,106,.12); }
.chip-one { top: 18%; left: -3%; }
.chip-two { right: -3%; bottom: 18%; }

.trust-strip { display: flex; justify-content: center; flex-wrap: wrap; padding: 20px clamp(20px,7vw,100px); border-block: 1px solid var(--line); background: var(--white); color: #5c6574; font-size: 11px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.trust-strip span { padding: 3px 30px; border-right: 1px solid var(--line); }
.trust-strip span:last-child { border: 0; }
.section-block { padding: clamp(78px, 9vw, 126px) clamp(24px, 8vw, 126px); }
.section-intro { max-width: 790px; margin-bottom: 48px; }
.section-intro h2, .showcase-copy h2, .selfhost-band h2, .final-cta h2 { margin: 0; color: var(--prussian-blue); font-size: clamp(35px, 4.7vw, 62px); line-height: 1.08; letter-spacing: -.045em; }
.section-intro > p:last-child, .showcase-copy > p { color: var(--muted); font-size: 17px; }

.transfer-highlight { display: grid; grid-template-columns: minmax(0,.9fr) minmax(420px,1.1fr); align-items: center; gap: clamp(42px, 7vw, 105px); background: var(--white); }
.transfer-copy { max-width: 680px; }
.transfer-copy h2 { margin: 0; color: var(--prussian-blue); font-size: clamp(34px, 4.5vw, 58px); line-height: 1.08; letter-spacing: 0; }
.transfer-copy p { margin: 24px 0 30px; color: var(--muted); font-size: 17px; }
.transfer-route { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, var(--soft), var(--white)); box-shadow: var(--shadow); }
.transfer-route article { min-height: 190px; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 24px; border: 1px solid rgba(20,33,61,.09); border-radius: 18px; background: var(--white); }
.transfer-route article:last-child { background: var(--orange-soft); }
.transfer-route span { color: #a96500; font-size: 10px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.transfer-route b { color: var(--prussian-blue); font-size: clamp(20px, 2vw, 29px); line-height: 1.15; }
.transfer-route small { color: var(--muted); font-weight: 750; }
.transfer-route > i { min-width: 92px; padding: 9px 11px; border-radius: 999px; background: var(--prussian-blue); color: var(--white); font-size: 10px; font-style: normal; font-weight: 900; letter-spacing: .08em; text-align: center; }

.story-section { background: var(--white); }
.story-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 14px; }
.story-flow > article { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 17px; padding: 24px 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--soft); text-align: center; transition: transform 200ms ease, border-color 200ms ease; }
.story-flow > article:hover { transform: translateY(-4px); border-color: rgba(252,163,17,.6); }
.story-flow > article > span { align-self: flex-start; color: var(--muted); font-size: 10px; font-weight: 900; }
.story-flow > em { color: var(--orange); font-size: 27px; font-style: normal; }
.story-archive { background: var(--orange-soft) !important; }
.story-archive img { width: 65px; height: 65px; border-radius: 16px; }
.mail-stack { position: relative; width: 74px; height: 58px; }
.mail-stack i { position: absolute; inset: 0; border: 2px solid var(--prussian-blue); border-radius: 8px; background: var(--white); }
.mail-stack i::after { content: ""; position: absolute; inset: 11px 14px; border-top: 2px solid var(--orange); transform: skewY(-24deg); }
.mail-stack i:nth-child(2) { transform: translate(5px, -6px); opacity: .55; }
.mail-stack i:nth-child(3) { transform: translate(10px, -12px); opacity: .2; }
.backup-ring { width: 65px; height: 65px; padding: 7px; border-radius: 50%; background: conic-gradient(var(--orange) 86%, var(--line) 0); animation: ring-pulse 2.8s ease-in-out infinite; }
.backup-ring i { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--soft); }
.story-results { display: flex; gap: 7px; }
.story-results i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--prussian-blue); color: var(--white); font-style: normal; }

.how-section { background: var(--prussian-blue); color: var(--white); }
.how-section .eyebrow { color: var(--orange); }
.how-section .section-intro h2 { color: var(--white); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.steps article { min-height: 210px; padding: 27px; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(255,255,255,.055); }
.steps i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: var(--black); font-style: normal; font-weight: 900; }
.steps h3 { margin: 37px 0 7px; color: var(--white); font-size: 22px; }
.steps p { margin: 0; color: #b9c4d3; }

.showcase { display: grid; grid-template-columns: minmax(0,.8fr) minmax(480px,1.2fr); align-items: center; gap: clamp(50px, 8vw, 110px); background: var(--soft); }
.showcase-copy ul { display: grid; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.showcase-copy li { display: flex; align-items: center; gap: 10px; color: #435069; font-weight: 750; }
.showcase-copy li::before { content: "✓"; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: var(--black); font-size: 11px; }
.attachment-demo { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--white); box-shadow: var(--shadow); transform: rotate(1deg); }
.attachment-demo header { height: 60px; display: flex; align-items: center; gap: 7px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.attachment-demo header span { width: 9px; height: 9px; border-radius: 50%; background: var(--alabaster-grey); }
.attachment-demo header span:first-child { background: var(--orange); }
.attachment-demo header b { margin-left: 10px; }
.attachment-demo header small { margin-left: auto; color: var(--muted); }
.demo-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 18px; }
.demo-grid article { min-width: 0; display: grid; grid-template-columns: 48px 1fr; gap: 2px 11px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 14px; }
.demo-grid i { grid-row: 1/3; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 10px; background: var(--prussian-blue); color: var(--white); font-size: 10px; font-style: normal; font-weight: 900; }
.demo-grid .file-photo i { background: linear-gradient(145deg, #84b5d4, var(--prussian-blue)); }
.demo-grid .file-pdf i { background: #da4a37; }
.demo-grid .file-sheet i { background: #257a52; }
.demo-grid b, .demo-grid small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-grid small { color: var(--muted); font-size: 10px; }

.versions-section { display: grid; grid-template-columns: minmax(480px,1.15fr) minmax(0,.85fr); align-items: center; gap: clamp(50px,8vw,110px); }
.versions-visual { position: relative; min-height: 390px; display: grid; place-items: center; }
.versions-visual article { position: absolute; width: min(480px,90%); display: grid; grid-template-columns: 1fr auto; gap: 3px 20px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 18px 45px rgba(20,33,61,.11); }
.versions-visual article:nth-child(1) { z-index: 3; transform: translateY(-65px) rotate(-2deg); }
.versions-visual article:nth-child(2) { z-index: 2; transform: translateY(30px) rotate(1deg); }
.versions-visual article:nth-child(3) { z-index: 1; transform: translateY(120px) rotate(-1deg); }
.versions-visual span { color: var(--muted); }
.versions-visual b { grid-row: 1/3; grid-column: 2; align-self: center; color: var(--prussian-blue); }
.versions-visual small { color: #178757; font-weight: 800; }

.bento-section { background: var(--soft); }
.bento-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.bento-grid article { min-height: 220px; padding: 28px; border: 1px solid var(--line); border-radius: 19px; background: var(--white); }
.bento-grid .bento-wide { grid-column: span 2; }
.bento-grid .bento-dark { background: var(--prussian-blue); color: var(--white); }
.bento-grid article > span { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 12px; background: var(--orange-soft); color: var(--prussian-blue); font-weight: 900; }
.bento-dark > span { background: rgba(255,255,255,.1) !important; color: var(--orange) !important; }
.bento-grid h3 { margin: 34px 0 8px; color: var(--prussian-blue); font-size: 21px; }
.bento-dark h3 { color: var(--white); }
.bento-grid p { max-width: 560px; margin: 0; color: var(--muted); }
.bento-dark p { color: #b9c4d3; }

.selfhost-band { display: flex; align-items: center; justify-content: space-between; gap: 45px; margin: 90px clamp(24px,8vw,126px); padding: clamp(38px,6vw,70px); border-radius: 28px; background: var(--prussian-blue); color: var(--white); }
.selfhost-band h2 { color: var(--white); }
.selfhost-band p:last-child { max-width: 700px; margin-bottom: 0; color: #b9c4d3; font-size: 17px; }
.final-cta { padding: clamp(85px,10vw,130px) 24px; background: linear-gradient(140deg, #0d182e, var(--prussian-blue)); color: var(--white); text-align: center; }
.final-cta h2 { max-width: 870px; margin: 0 auto 32px; color: var(--white); }

.content-page { min-height: 650px; max-width: 1120px; margin: auto; padding: 100px 24px; }
.content-page h1 { max-width: 960px; font-size: clamp(46px,6vw,76px); }
.page-lead, .content-page > p { max-width: 820px; color: var(--muted); font-size: 18px; }
.detail-list { margin-top: 65px; border-top: 1px solid var(--line); }
.detail-list article { display: grid; grid-template-columns: 85px 1fr; gap: 22px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.detail-list article > span { color: var(--orange); font-size: 22px; font-weight: 900; }
.detail-list h2 { margin: 0 0 8px; color: var(--prussian-blue); font-size: 26px; }
.detail-list p { max-width: 760px; margin: 0; color: var(--muted); }
.inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 70px; padding: 36px; border-radius: 20px; background: var(--prussian-blue); }
.inline-cta h2 { margin: 0; color: var(--white); font-size: 32px; }
.quickstart-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 55px 0 22px; }
.quickstart-grid article { padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--soft); }
.quickstart-grid h2 { margin: 0 0 18px; }
.quickstart-grid ol { min-height: 155px; padding-left: 20px; color: var(--muted); }
.quickstart-grid li { margin: 8px 0; }
pre { overflow-x: auto; padding: 18px; border-radius: 13px; background: var(--prussian-blue); color: #f7f7f5; font: 13px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace; }
code { font-family: ui-monospace,SFMono-Regular,Consolas,monospace; }
.selfhost-notes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 18px 0 42px; }
.selfhost-notes article { padding: 23px; border: 1px solid var(--line); border-radius: 16px; }
.selfhost-notes code { display: block; margin-top: 10px; color: var(--muted); }
.notice { margin-top: 38px; padding: 24px 26px; border: 1px solid #f0d5a6; border-radius: 16px; background: var(--orange-soft); }
.notice p { color: #76501d; }
.legal { max-width: 900px; }
.legal h1 { font-size: clamp(42px,6vw,62px); }
.legal h2 { margin: 38px 0 8px; color: var(--prussian-blue); }
.legal p, .legal li { color: #526278; }
.legal a { text-decoration: underline; }
.legal dl { display: grid; grid-template-columns: 170px 1fr; gap: 9px 20px; margin-top: 35px; }
.legal dt { font-weight: 800; }
.legal dd { margin: 0; color: var(--muted); }

.public-footer { display: grid; grid-template-columns: minmax(220px,1fr) minmax(0,auto) auto; align-items: center; gap: 30px; padding: 36px clamp(20px,8vw,120px); border-top: 1px solid var(--line); background: var(--soft); }
.footer-brand, footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer nav { justify-content: center; }
footer button { padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.footer-language { display: inline-flex; align-items: center; gap: 5px; justify-self: end; padding: 4px; border: 1px solid rgba(20,33,61,.13); border-radius: 999px; background: var(--white); box-shadow: 0 12px 30px rgba(20,33,61,.08); }
.footer-language span { padding: 0 10px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.footer-language a { min-width: 40px; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: var(--prussian-blue); font-size: 12px; font-weight: 900; text-decoration: none; }
.footer-language a:hover { background: var(--orange-soft); }
.footer-language a.active { background: var(--prussian-blue); color: var(--white); box-shadow: 0 8px 18px rgba(20,33,61,.18); }
.cookie-banner { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: min(430px,calc(100% - 40px)); padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); box-shadow: var(--shadow); }
.cookie-banner p { color: var(--muted); }
.cookie-banner > div { display: flex; justify-content: flex-end; gap: 9px; }
.cookie-banner button { padding: 10px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); }
.cookie-banner .public-cta { background: var(--orange); border-color: var(--orange); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes hero-float { 0%,100% { transform: translateY(0) rotate(-.4deg); } 50% { transform: translateY(-10px) rotate(.4deg); } }
@keyframes ring-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { width: min(590px, 82vw); margin: auto; }
  .story-flow { grid-template-columns: 1fr 1fr; }
  .story-flow > em { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .showcase, .versions-section, .transfer-highlight { grid-template-columns: 1fr; }
  .transfer-route { grid-template-columns: 1fr; }
  .transfer-route > i { justify-self: start; }
  .versions-visual { order: 2; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-grid .bento-wide { grid-column: span 1; }
  .public-footer { grid-template-columns: 1fr; }
  footer nav { justify-content: flex-start; }
  .footer-language { justify-self: start; }
}

@media (max-width: 680px) {
  .public-header { height: 66px; padding-inline: 16px; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .public-brand span { display: none; }
  .hero { padding: 55px 21px 70px; gap: 44px; }
  .hero h1 { font-size: clamp(46px,14vw,62px); }
  .hero-lead { font-size: 17px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions a { width: 100%; }
  .hero-visual { width: 108%; margin-left: -4%; }
  .visual-chip { display: none; }
  .trust-strip { justify-content: flex-start; padding: 16px; }
  .trust-strip span { width: 50%; padding: 8px 7px; border: 0; }
  .section-block { padding: 72px 21px; }
  .transfer-route { padding: 14px; border-radius: 18px; }
  .transfer-route article { min-height: 150px; padding: 19px; }
  .story-flow, .steps, .bento-grid, .quickstart-grid, .selfhost-notes { grid-template-columns: 1fr; }
  .story-flow > article { min-height: 160px; }
  .steps article { min-height: 180px; }
  .attachment-demo { transform: none; }
  .demo-grid { grid-template-columns: 1fr; }
  .versions-visual { min-height: 365px; }
  .versions-visual article { width: 100%; padding: 18px; }
  .versions-visual b { font-size: 12px; }
  .selfhost-band { align-items: flex-start; flex-direction: column; margin: 45px 16px; padding: 34px 24px; border-radius: 22px; }
  .selfhost-band .public-cta { width: 100%; }
  .content-page { padding: 70px 21px; }
  .detail-list article { grid-template-columns: 45px 1fr; }
  .inline-cta { align-items: flex-start; flex-direction: column; padding: 25px; }
  .legal dl { grid-template-columns: 1fr; }
  .legal dd { margin-bottom: 12px; }
  .public-footer { padding: 32px 20px; }
  .footer-language { width: 100%; justify-content: space-between; }
  .footer-language a { flex: 1; }
  .cookie-banner { right: 12px; bottom: 12px; width: calc(100% - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
