/* Homepage. The real desktop workspace stays the focal point. Tokens come from site.css. */
#main{outline:none}

/* Hero */
.home-hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:48px;align-items:center;margin-top:28px;padding:56px 52px;border:1px solid var(--accent-border);border-radius:24px;overflow:hidden;background:radial-gradient(80% 120% at 100% 0,#d9e6fb 0,transparent 60%),radial-gradient(60% 80% at 0 100%,#eaf1fd 0,transparent 70%),linear-gradient(180deg,#f7faff,#fff);isolation:isolate}
.home-hero::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:linear-gradient(#2457a70b 1px,transparent 1px),linear-gradient(90deg,#2457a70b 1px,transparent 1px);background-size:32px 32px;mask-image:radial-gradient(90% 90% at 70% 30%,#000,transparent)}
.home-intro h1{font-size:clamp(32px,3vw,44px);font-weight:750;line-height:1.3;letter-spacing:-.03em}
@media(min-width:851px){.home-intro h1>span{white-space:nowrap}}
.home-intro h1>span:last-of-type{background:linear-gradient(90deg,#2457a7,#4a7fd6);-webkit-background-clip:text;background-clip:text;color:transparent}
.intro-lead{max-width:440px;margin-top:22px;color:var(--ink);font-size:18px;font-weight:600;line-height:1.7}
.intro-description{max-width:460px;margin-top:12px;font-size:16px;line-height:1.9}
.intro-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;margin-top:30px}
.home-hero .button,.home-start .button{min-height:52px;padding:12px 24px;font-size:15px}
.plain-link{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:6px 0;color:var(--blue);font-size:15px;font-weight:600;line-height:1.6}
.plain-link::after{content:"→";transition:transform .15s}
.plain-link:hover::after{transform:translateX(3px)}
.intro-platform{margin-top:16px;color:var(--muted);font-size:13px;line-height:1.9}
.intro-platform>span[aria-hidden]{padding:0 6px;color:var(--line-strong)}
.intro-release{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:44px;margin-top:12px;padding:4px 12px 4px 4px;border:1px solid var(--line);border-radius:999px;background:#fffc;color:var(--muted);font-size:13px;transition:border-color .15s,color .15s}
.intro-release>span:first-child{padding:2px 10px;border-radius:999px;background:var(--blue);color:#fff;font-weight:600}
.intro-release svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8}
.intro-release:hover{border-color:var(--accent-border);color:var(--blue)}

/* Product screenshot gallery */
.product-screens{min-width:0;padding:14px;border:1px solid #fff;border-radius:18px;background:#ffffffb3;box-shadow:var(--shadow-lg);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.screen-selector{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.scene-tabs{display:flex;align-items:stretch;gap:2px;min-width:0;padding:3px;border-radius:12px;background:var(--surface)}
.scene-tabs button{position:relative;min-height:44px;padding:8px 14px;border:0;border-radius:9px;background:none;color:var(--muted);font-size:13px;font-weight:550;line-height:1.5;transition:background-color .15s,color .15s,box-shadow .15s}
.scene-tabs button:hover{color:var(--ink)}
.scene-tabs button[aria-pressed=true]{background:#fff;color:var(--blue);box-shadow:0 1px 3px rgb(15 23 42/.12)}
.screenshot-open{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;gap:6px;min-width:44px;min-height:44px;padding:0 10px;border-radius:10px;color:var(--muted);font-size:13px;font-weight:500}
.screenshot-open svg{width:15px;height:15px}
.screenshot-open:hover{background:var(--surface);color:var(--blue)}
.product-screens figure{margin:0}
.screenshot-frame{display:block;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--surface);cursor:zoom-in}
.product-screens img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;transition:transform .4s ease}
.screenshot-frame:hover img{transform:scale(1.015)}
.product-screens figcaption{padding:16px 6px 0}
.product-screens figcaption strong{display:block;font-size:15px;font-weight:650;line-height:1.6}
.product-screens figcaption p{margin-top:4px;font-size:14px;line-height:1.8}
.scene-details{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 4px;padding:0 6px;list-style:none;font-size:12px;line-height:1.7}
.scene-details li{padding:2px 10px;border-radius:999px;background:var(--accent-soft);color:var(--blue);font-weight:550}

/* Section headings */
.section-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;margin-bottom:28px}
.section-intro h2,.home-boundaries h2,.resource-intro h2,.home-start h2{font-size:32px;font-weight:750;line-height:1.4;letter-spacing:-.03em;text-wrap:balance}
.section-intro>p{max-width:440px;font-size:15px;line-height:1.85}

/* Features */
.home-features{padding-top:80px;scroll-margin-top:96px}
.feature-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.feature-list article{position:relative;min-width:0;padding:28px 28px 30px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--paper);box-shadow:var(--shadow-sm);overflow:hidden;transition:transform .2s,box-shadow .2s,border-color .2s}
.feature-list article::after{content:"";position:absolute;right:-60px;top:-60px;width:160px;height:160px;border-radius:50%;background:radial-gradient(circle,#edf3fd,transparent 70%);pointer-events:none}
.feature-list article:hover{transform:translateY(-3px);border-color:var(--accent-border);box-shadow:var(--shadow)}
.feature-icon{display:grid;place-items:center;width:48px;height:48px;margin-bottom:22px;border-radius:14px;background:linear-gradient(135deg,#2457a7,#4a7fd6);color:#fff;box-shadow:0 10px 20px -10px rgb(36 87 167/.8)}
.feature-icon svg{width:24px;height:24px}
.feature-list h3{font-size:20px;font-weight:700;line-height:1.5}
.feature-list .feature-summary{margin-top:6px;color:var(--ink-2);font-size:15px;font-weight:600;line-height:1.8}
.feature-list p{max-width:360px;margin-top:10px;font-size:15px;line-height:1.9}
.supporting-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:20px 0 0}
.supporting-features article{padding:22px 24px;border-radius:var(--radius);background:var(--surface)}
.supporting-features h3{font-size:16px;font-weight:650}
.supporting-features p{margin-top:8px;font-size:14px;line-height:1.85}

/* Privacy boundaries */
.home-boundaries{display:grid;grid-template-columns:.9fr 1.35fr;gap:56px;margin-top:80px;padding:44px 48px;border-radius:24px;background:linear-gradient(135deg,#172a4d,#2457a7);color:#fff;overflow:hidden;position:relative}
.home-boundaries::after{content:"";position:absolute;right:-120px;bottom:-120px;width:360px;height:360px;border-radius:50%;background:radial-gradient(circle,#ffffff1f,transparent 70%);pointer-events:none}
.home-boundaries h2{color:#fff}
.home-boundaries .plain-link{margin-top:14px;color:#cfe0fb}
.home-boundaries .plain-link:hover{color:#fff}
.boundary-copy{position:relative;z-index:1;display:grid;gap:14px}
.boundary-copy>div{padding:20px 22px;border:1px solid #ffffff26;border-radius:var(--radius);background:#ffffff12}
.boundary-copy h3{color:#fff;font-size:16px;font-weight:650;line-height:1.7}
.boundary-copy p{margin-top:6px;color:#d6e2f7;font-size:14px;line-height:1.9}

/* Extensions */
.home-resources{display:grid;grid-template-columns:.9fr 1.35fr;gap:56px;padding-top:80px}
.resource-intro h2{max-width:380px}
.resource-intro p{max-width:400px;margin-top:14px;font-size:15px;line-height:1.9}
.resource-intro .plain-link{margin-top:16px}
.resource-list{display:grid;gap:12px}
.resource-list>a{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px 22px;border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);box-shadow:var(--shadow-sm);transition:transform .2s,border-color .2s,box-shadow .2s}
.resource-list>a:hover{transform:translateX(4px);border-color:var(--accent-border);box-shadow:var(--shadow)}
.resource-list h3{font-size:17px;font-weight:650;line-height:1.6;letter-spacing:0}
.resource-list p{margin-top:4px;font-size:14px;line-height:1.85}
.resource-type{flex-shrink:0;padding:2px 10px;border-radius:999px;background:var(--accent-soft);color:var(--blue);font-size:12px;font-weight:600;line-height:1.6}
.resource-list>a:hover h3{color:var(--blue)}

/* Getting started */
.home-start{margin-top:80px;padding:40px 44px;border:1px solid var(--accent-border);border-radius:24px;background:radial-gradient(80% 120% at 0 0,#dfe9fb,transparent 60%),#fff}
.start-heading{display:flex;align-items:center;justify-content:space-between;gap:24px}
.start-links{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px}
.start-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:32px 0 0;padding:0;list-style:none;counter-reset:steps}
.start-steps li{position:relative;padding:22px 22px 22px 70px;border-radius:var(--radius);background:var(--surface);counter-increment:steps}
.start-steps li:before{content:counter(steps);position:absolute;left:22px;top:22px;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--blue);color:#fff;font-size:14px;font-weight:700}
.start-steps h3{font-size:16px;font-weight:650;line-height:1.6}
.start-steps p{margin-top:6px;font-size:14px;line-height:1.85}

/* Compact footer */
.compact-footer{margin-top:80px;padding:24px 0}
.compact-footer>.site-container{display:flex;align-items:center;gap:30px}
.compact-footer .brand{font-size:17px}
.compact-footer .brand img{width:25px;height:25px}
.compact-footer nav{display:flex;gap:24px;margin-left:auto;color:var(--muted);font-size:13px}
.compact-footer nav a{display:flex;align-items:center;min-height:44px}
.compact-footer .site-container>span{color:var(--muted);font-size:13px}

/* Screenshot dialog */
.screenshot-dialog{width:min(1500px,calc(100% - 48px));max-width:none;max-height:calc(100dvh - 48px);padding:0;border:0;border-radius:18px;background:#fff;color:var(--ink);box-shadow:var(--shadow-lg);overflow:hidden}
.screenshot-dialog::backdrop{background:rgb(15 23 42/.6);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.screenshot-dialog[open]{display:flex;flex-direction:column}
.screenshot-dialog-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;gap:20px;padding:16px 20px 16px 24px;border-bottom:1px solid var(--line)}
.screenshot-dialog-header h2{font-size:18px;line-height:1.5}
.screenshot-dialog-header p{margin-top:2px;font-size:13px;line-height:1.7}
.screenshot-dialog-header button{display:grid;flex-shrink:0;place-items:center;width:44px;height:44px;border:0;border-radius:10px;background:var(--surface);color:var(--ink)}
.screenshot-dialog-header button:hover{background:var(--line)}
.screenshot-dialog-header button svg{width:20px;height:20px}
.screenshot-viewport{min-height:0;overflow:auto;overscroll-behavior:contain;background:var(--surface);scrollbar-gutter:stable}
.screenshot-viewport img{display:block;width:100%;min-width:1000px;max-width:none;height:auto}
.screenshot-viewport:focus-visible{outline:3px solid var(--blue);outline-offset:-3px}

@media(min-width:1101px){html[lang=en] .home-intro h1{font-size:46px;line-height:1.22}html[lang=en] .home-intro h1 br{display:none}}
@media(max-width:1100px){
  .home-hero{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:32px;padding:44px 36px}
  .home-intro h1{font-size:34px}.home-intro h1 br{display:none}
  .intro-lead{font-size:16px}.intro-description{font-size:15px}
  .product-screens{padding:10px}.scene-tabs button{padding:8px 10px;font-size:12px}.screen-selector{gap:6px}.screenshot-open{gap:5px}
  .feature-list,.supporting-features{gap:14px}.feature-list article{padding:24px}
  .home-boundaries,.home-resources{gap:36px}.home-boundaries{padding:36px}
  .section-intro{align-items:flex-start}.section-intro>p{max-width:380px}
  .section-intro h2,.home-boundaries h2,.resource-intro h2,.home-start h2{font-size:28px}
  .start-heading{flex-direction:column;align-items:flex-start;gap:15px}
}
@media(max-width:850px){
  .home-hero{grid-template-columns:1fr;gap:32px;padding:40px 32px}
  .home-intro h1{max-width:650px;font-size:38px}.home-intro h1 br{display:block}
  .intro-lead,.intro-description{max-width:600px}
  .product-screens{width:100%;max-width:680px;justify-self:center;padding:12px}
  .scene-tabs button{padding:8px 16px;font-size:14px}
  .feature-list{grid-template-columns:1fr 1fr}.feature-list article:last-child{grid-column:1/-1}
  .supporting-features{grid-template-columns:1fr}
  .section-intro{display:block;margin-bottom:24px}.section-intro>p{max-width:580px;margin-top:10px}
  .home-boundaries,.home-resources{grid-template-columns:1fr;gap:24px}
  .home-start{padding:32px 28px}.start-steps{grid-template-columns:1fr;gap:12px}
}
@media(max-width:600px){
  .home-hero{margin-top:16px;padding:28px 20px 22px;gap:26px;border-radius:18px}
  .home-intro h1{font-size:32px;line-height:1.4;letter-spacing:-.04em}
  .intro-lead{max-width:340px;margin-top:16px;font-size:16px}.intro-description{font-size:15px;line-height:1.85}
  .intro-actions{gap:10px 20px;margin-top:22px}.intro-platform{max-width:340px}
  .product-screens{padding:8px;border-radius:14px}
  .screen-selector{flex-wrap:wrap;align-items:stretch;gap:4px;margin-bottom:8px}
  .scene-tabs{flex:1 1 100%}
  .scene-tabs button{flex:1 1 0;min-width:0;padding:8px 4px;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .screenshot-open{margin-left:auto;gap:4px;padding-inline:8px;font-size:12px}.screenshot-open svg{width:14px;height:14px}
  .product-screens figcaption{padding:12px 4px 0}
  .scene-details{padding:0 4px}
  .home-features{padding-top:52px}
  .section-intro h2,.home-boundaries h2,.resource-intro h2,.home-start h2{font-size:25px}
  .feature-list{grid-template-columns:1fr;gap:12px}
  .feature-list article{padding:22px}
  .feature-icon{width:40px;height:40px;margin-bottom:16px;border-radius:12px}.feature-icon svg{width:20px;height:20px}
  .feature-list h3{font-size:18px}.feature-list .feature-summary{display:none}
  .feature-list p{max-width:none;font-size:15px;line-height:1.85}
  .supporting-features{gap:10px;padding-top:12px}.supporting-features article{padding:18px 20px}.supporting-features p{font-size:15px}
  .home-boundaries{margin-top:52px;padding:28px 20px;border-radius:18px}
  .boundary-copy>div{padding:16px 18px}.boundary-copy p{font-size:15px}
  .home-resources{padding-top:52px}.resource-intro h2,.resource-intro p{max-width:none}
  .resource-list>a{gap:12px;padding:16px 18px}
  .home-start{margin-top:52px;padding:26px 20px;border-radius:18px}
  .start-steps{margin-top:22px}.start-steps li{padding:18px 18px 18px 62px}.start-steps li:before{left:18px;top:18px}
  .start-steps p{font-size:15px}
  .compact-footer{margin-top:48px;padding:18px 0}
  .compact-footer>.site-container{flex-wrap:wrap;gap:8px 20px}
  .compact-footer nav{gap:18px;margin-left:0}
  .compact-footer .site-container>span{width:100%}
  .screenshot-dialog{width:calc(100% - 20px);max-height:calc(100dvh - 20px);border-radius:12px}
  .screenshot-dialog-header{gap:10px;padding:12px}.screenshot-dialog-header h2{font-size:16px}.screenshot-dialog-header p{font-size:12px}
}
@media(max-width:360px){
  .home-intro h1{font-size:28px}
  .home-hero{padding:24px 16px 18px}
  .home-hero .button{padding:12px 16px;font-size:14px}
  .intro-actions{gap:10px 15px}
  .product-screens{padding:6px}
  .scene-tabs{gap:0}.scene-tabs button{padding:8px 2px;font-size:12px}
  .feature-list article{padding:20px}
  .section-intro h2,.home-boundaries h2,.resource-intro h2,.home-start h2{font-size:23px}
  .home-start{padding:22px 16px}
  .compact-footer nav{gap:16px}
}
@media(prefers-reduced-motion:reduce){.scene-tabs button,.feature-list article,.resource-list>a,.product-screens img{transition:none}}
