:root {
  color-scheme: dark;
  --bg: #07141a;
  --surface: #0d2027;
  --ink: #e3f1ef;
  --muted: #a0bfc1;
  --teal: #54d6c5;
  --line: #27414a;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
}
:root[data-app='tide'] { --teal: #8ba1ff; }
:root[data-app='mail'] { --teal: #e8b45f; }
:root[data-app='ftp'] { --teal: #54d6c5; }
:root[data-app='dock'] { --teal: #5cbce6; }
:root[data-app='mailandroid'] { --teal: #7fd6a0; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.6; transition: background-color .8s ease; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--teal); outline-offset: 5px; }
.wrap { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 10px 18px; background: var(--teal); color: var(--bg); z-index: 100; }
.skip-link:focus { top: 12px; }
.site-header { position: relative; z-index: 2; min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 25px; font-weight: 600; letter-spacing: -1px; }
.brand img { width: 32px; height: auto; }
.brand-dot { color: var(--teal); }
.site-header nav { display: flex; gap: 34px; font: 12px var(--mono); color: var(--muted); }
.site-header .homepage-nav { flex-wrap: wrap; justify-content: flex-end; row-gap: 12px; }
.site-header nav a:hover { color: var(--teal); }
.hero { position: relative; padding: 54px max(48px, calc((100vw - 1320px) / 2)) 90px; isolation: isolate; }
.ocean { position: absolute; z-index: -2; inset: -108px 0 -80px; background: linear-gradient(180deg, #07141a55 0%, #07141a22 35%, #07141a 100%), url('assets/plate.webp') center 62% / cover; opacity: .6; }
.ocean-lines { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #54d6c508 1px, transparent 1px), linear-gradient(#54d6c508 1px, transparent 1px); background-size: 100px 100px; mask-image: linear-gradient(transparent, #000, transparent); }
.hero-copy { position: relative; text-align: center; max-width: 900px; margin-inline: auto; }
.eyebrow { display: flex; align-items: center; gap: 9px; font: 11px/1.6 var(--mono); letter-spacing: 1.3px; text-transform: uppercase; color: var(--teal); }
.hero .eyebrow { justify-content: center; }
.signal, .terminal-status i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
h1 { font-size: clamp(44px, 5.8vw, 82px); letter-spacing: -3px; line-height: 1.08; font-weight: 500; margin-top: 24px; text-shadow: 0 4px 30px #07141a; }
h1 span { color: var(--teal); }
.lede { max-width: 560px; margin: 26px auto 0; font-size: 18px; line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 46px; padding: 11px 20px; border: 1px solid var(--line); border-radius: 5px; font: 12px/1.5 var(--mono); transition: background .2s, border-color .2s; }
.primary { background: var(--teal); border-color: var(--teal); color: #062024; font-weight: 600; }
.primary:hover { background: color-mix(in oklab, var(--teal) 88%, white); }
.secondary:hover { border-color: var(--teal); background: var(--surface); }
.hero-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 20px; margin-top: 28px; font: 10px/1.6 var(--mono); color: var(--muted); }
.hero-facts span::before { content: '+'; color: var(--teal); margin-right: 7px; }
.hero-preview { width: min(980px, 100%); margin: 50px auto 0; }
.terminal { border: 1px solid #547c86; background: #061117; border-radius: 7px; overflow: hidden; box-shadow: 0 40px 90px #0007, 0 0 90px #54d6c519; }
.terminal-bar { min-height: 36px; padding: 8px 15px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #10232a; font: 10px/1.5 var(--mono); color: var(--muted); }
.terminal-title { color: var(--selected); }
.app-tabs { display: flex; border-bottom: 1px solid var(--line); background: #0a1920; }
.app-tabs button { flex: 1; min-width: 0; padding: 13px 6px; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: 10px/1.4 var(--mono); cursor: pointer; }
.app-tabs button:hover { color: var(--app-color); background: #ffffff05; }
.app-tabs button[aria-pressed='true'] { color: var(--app-color); border-bottom-color: var(--app-color); background: #ffffff04; }
.app-tabs button:focus-visible { outline-offset: -4px; }
.terminal-screen { background: #0a1418; aspect-ratio: 1261 / 688; }
.terminal-screen img { width: 100%; height: 100%; object-fit: contain; }
.terminal-status { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; border-top: 1px solid var(--line); color: var(--muted); font: 9px/1.5 var(--mono); }
.terminal-status i { background: var(--selected); width: 5px; height: 5px; margin-right: 4px; }
.terminal-status b { font-weight: 400; color: #779599; }
.screen-caption { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 16px; color: var(--muted); font: 10px var(--mono); }
.screen-caption span { color: var(--teal); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
h2 { font-size: clamp(27px, 3vw, 40px); line-height: 1.2; font-weight: 500; letter-spacing: -1.3px; }
.section-heading h2 { margin-top: 12px; }
.section-heading p:not(.eyebrow) { max-width: 650px; margin-top: 18px; color: var(--muted); font-size: 15px; }
.section-heading p a { color: var(--teal); text-decoration: underline; text-underline-offset: 4px; }
.section-index { flex-shrink: 0; font: 10px var(--mono); color: var(--muted); letter-spacing: 1px; }
.keys-section { position: relative; padding-block: 65px 76px; border-top: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #0d202780; }
.feature { padding: 24px 20px 28px; }
.feature + .feature { border-left: 1px solid var(--line); }
kbd { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 9px; border: 1px solid #35535b; border-bottom-width: 3px; border-radius: 4px; color: var(--teal); font: 12px var(--mono); }
kbd small { font-size: inherit; }
.kbd { display: inline-block; padding-inline: 4px; border: 1px solid var(--line); border-radius: 3px; font: .9em var(--mono); }
.feature h3 { margin-top: 21px; font-size: 15px; line-height: 1.35; font-weight: 500; }
.feature p { margin-top: 12px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.apps-section { padding-block: 30px 60px; }
.app-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 45px; padding: 35px 0 50px; border-top: 1px solid var(--line); }
.card-top { grid-column: 1 / -1; display: flex; justify-content: space-between; font: 10px var(--mono); color: var(--app-color); text-transform: uppercase; letter-spacing: 1px; }
.card-shot { margin: 0; align-self: center; border: 1px solid #304650; border-radius: 3px; overflow: hidden; background: #0a1418; box-shadow: 0 20px 50px #0004; }
.card-shot img { width: 100%; height: auto; }
.card-copy { padding-block: 15px; align-self: center; }
.card-copy h3 { font-size: 36px; line-height: 1.3; font-weight: 500; color: var(--app-color); letter-spacing: -.6px; }
.card-copy p { margin-top: 15px; max-width: 50ch; font-size: 14px; color: var(--muted); }
.card-copy .app-kind { font: 10px/1.8 var(--mono); }
.app-link { display: flex; justify-content: space-between; padding-top: 18px; margin-top: 26px; border-top: 1px solid var(--line); color: var(--app-color); font: 12px var(--mono); }
.app-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.app-card:nth-child(even) { grid-template-columns: 1fr 1.4fr; }
.app-card:nth-child(even) .card-shot { grid-column: 2; grid-row: 2; }
.app-card:nth-child(even) .card-copy { grid-column: 1; grid-row: 2; }
.coming { min-height: 180px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; padding: 24px; font: 12px/1.8 var(--mono); text-align: center; color: var(--muted); }
.coming > span { font-size: 10px; color: var(--app-color); text-transform: uppercase; letter-spacing: 2px; }
.coming b { color: var(--ink); font-weight: 500; }
.proof-section { display: grid; grid-template-columns: 1fr 1.4fr; align-items: center; gap: 45px; padding-block: 50px 80px; border-top: 1px solid var(--line); }
.proof-section h2 { margin-top: 12px; }
.proof-section p:not(.eyebrow) { margin-top: 20px; font-size: 14px; color: var(--muted); }
.proof-cols b { color: var(--ink); font-weight: 500; }
.close-section { padding-block: 70px 90px; border-top: 1px solid var(--line); text-align: center; }
.close-section .eyebrow { justify-content: center; }
.close-section h2 { margin-top: 14px; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 30px 40px; border-top: 1px solid var(--line); }
.footer p, .footer > a:last-child { font: 10px/1.7 var(--mono); color: var(--muted); }
.will-reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s, transform .65s; }
.will-reveal.visible { opacity: 1; transform: none; }
.family-nav { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: thin; border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.family-nav a { flex-shrink: 0; padding-block: 12px; border-bottom: 2px solid transparent; color: var(--muted); font: 11px/1.6 var(--mono); }
.family-nav a[aria-current], .family-nav a:hover { color: var(--teal); border-bottom-color: var(--teal); }
.detail-page .ocean { inset-block-start: -155px; }
.detail-page .hero h1 { max-width: 19ch; margin-inline: auto; font-size: clamp(42px, 5.3vw, 76px); }
.detail-page .hero .lede { max-width: 640px; color: var(--muted); }
.detail-page .hero .coming { min-height: 230px; font-size: 16px; }
.header-cta { color: var(--teal); }
.idea-section { padding-block: 50px 65px; border-top: 1px solid var(--line); }
.detail-lede { max-width: 42ch; font-size: clamp(23px, 2.4vw, 32px); line-height: 1.4; }
.detail-text { max-width: 75ch; margin-top: 20px; color: var(--muted); font-size: 15px; }
.detail-section { padding-block: 50px 65px; border-top: 1px solid var(--line); }
.detail-section > h2 { margin-top: 12px; }
.detail-page .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 60px; }
.detail-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.detail-group { padding: 28px; border: 1px solid var(--line); border-radius: 6px; background: #0d202780; }
.detail-group h3 { color: var(--teal); font-size: 21px; font-weight: 500; line-height: 1.4; }
.feat-list { display: grid; gap: 24px; margin: 24px 0 0; padding: 0; list-style: none; }
.feat-list li b { display: block; margin-bottom: 6px; font-size: 15px; line-height: 1.5; font-weight: 500; }
.feat-list li > span { color: var(--muted); font-size: 14px; line-height: 1.8; }
.detail-copy .detail-title { margin-bottom: 20px; }
.detail-copy .detail-title:not(:first-child) { margin-top: 30px; }
.detail-copy h3 { font-size: 25px; font-weight: 500; }
.detail-copy .eyebrow { margin-bottom: 12px; }
.detail-proof { display: grid; grid-template-columns: 1fr 1.4fr; gap: 45px; align-items: center; }
.detail-section .table-wrap { overflow-x: auto; margin-top: 28px; }
.cmp { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 13px; }
.cmp th, .cmp td { padding: 14px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.cmp th:first-child, .cmp td:first-child { text-align: left; }
.cmp th { font: 11px/1.6 var(--mono); color: var(--muted); }
.cmp .me { color: var(--teal); background: #ffffff03; }
.detail-section dl { max-width: 800px; color: var(--muted); }
.detail-section dd { margin: 0; }
.detail-section dt { min-width: 0; }
.honest-list { display: grid; gap: 18px; max-width: 850px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.honest-list li { padding-left: 18px; border-left: 2px solid var(--line); }
.honest-list b { color: var(--ink); font-weight: 500; }
.install-section .detail-text { margin-inline: auto; }
.install-commands { display: grid; gap: 12px; max-width: 820px; margin: 30px auto 0; text-align: left; }
.install-commands:empty { display: none; }
.cmd-label { margin-top: 10px; color: var(--muted); font: 11px/1.5 var(--mono); }
.cmd { display: flex; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #081419; }
.cmd code { flex: 1; min-width: 0; padding: 15px 18px; overflow-x: auto; scrollbar-width: thin; white-space: nowrap; font: 12px/1.8 var(--mono); }
.cmd code::before { content: '$ '; color: var(--teal); }
.cmd button { flex-shrink: 0; border: 0; border-left: 1px solid var(--line); padding: 12px 18px; color: var(--teal); background: transparent; font: 11px var(--mono); cursor: pointer; }
.cmd button:hover { background: #ffffff08; }
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .feature:nth-child(4) { border-left: 0; }
  .feature:nth-child(n+4) { border-top: 1px solid var(--line); }
  .detail-page .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-page .feature:nth-child(n) { border-left: 0; border-top: 0; }
  .detail-page .feature:nth-child(even) { border-left: 1px solid var(--line); }
  .detail-page .feature:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 86px; }
  .site-header nav { gap: 20px; font-size: 11px; }
  .hero { padding: 35px 20px 65px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(n) { border-left: 0; }
  .feature:nth-child(even) { border-left: 1px solid var(--line); }
  .feature:nth-child(n+3) { border-top: 1px solid var(--line); }
  .feature:last-child { grid-column: 1 / -1; }
  .section-index { display: none; }
  .app-card, .app-card:nth-child(even) { grid-template-columns: 1fr; gap: 22px; }
  .app-card:nth-child(even) .card-shot, .app-card:nth-child(even) .card-copy { grid-column: auto; grid-row: auto; }
  .card-copy { padding: 0; }
  .proof-section { grid-template-columns: 1fr; gap: 26px; }
  .footer { flex-wrap: wrap; }
  .footer p { order: 3; width: 100%; }
  .detail-page .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-page .feature:last-child { grid-column: auto; }
  .detail-groups { gap: 16px; }
  .detail-group { padding: 22px; }
  .detail-proof { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 520px) {
  .site-header nav { gap: 17px; }
  .site-header nav a:nth-child(2) { display: none; }
  .brand { font-size: 22px; }
  .brand img { width: 27px; }
  .ocean { background-image: linear-gradient(180deg, #07141a55 0%, #07141a22 35%, #07141a 100%), url('assets/plate-m.webp'); }
  .hero .eyebrow { font-size: 10px; letter-spacing: 1px; }
  h1 { font-size: 42px; letter-spacing: -1.9px; }
  .lede { font-size: 16px; margin-top: 20px; }
  .hero-facts { gap: 8px 14px; font-size: 9px; }
  .hero-preview { margin-top: 35px; }
  .terminal-bar { font-size: 9px; padding: 8px 10px; }
  .app-tabs button { font-size: 8px; padding: 11px 3px; }
  .terminal-status { font-size: 8px; padding: 8px; }
  .terminal-status > span:last-child b { display: none; }
  .screen-caption { font-size: 8px; gap: 10px; }
  .keys-section { padding-block: 34px 46px; }
  .section-heading { margin-bottom: 25px; }
  .section-heading h2 { font-size: 27px; }
  .feature { padding: 20px 16px; }
  .feature h3 { font-size: 14px; }
  .apps-section { padding-block: 10px 45px; }
  .card-copy h3 { font-size: 29px; }
  .proof-section { padding-bottom: 45px; }
  .close-section { padding-block: 45px 60px; }
  .family-nav { gap: 22px; }
  .family-nav a { font-size: 10px; }
  .detail-page .hero h1 { font-size: 40px; letter-spacing: -1.5px; }
  .detail-page .hero .eyebrow { flex-wrap: wrap; }
  .idea-section, .detail-section { padding-block: 35px 45px; }
  .detail-groups { grid-template-columns: 1fr; }
  .detail-group { padding: 24px; }
  .detail-page .feature-grid { margin-bottom: 40px; }
  .detail-text, .honest-list { font-size: 14px; }
  .detail-section dl { font-size: 13px; column-gap: 16px !important; }
  .cmd code { padding: 12px; font-size: 10px; }
  .cmd button { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .will-reveal { opacity: 1; transform: none; }
}
