:root {
  color-scheme: dark;
  --background: #09090b;
  --foreground: #fafafa;
  --card: #101014;
  --card-foreground: #fafafa;
  --muted: #18181b;
  --muted-foreground: #a1a1aa;
  --border: rgba(255, 255, 255, 0.1);
  --primary: #3b9eff;
  --primary-foreground: #03111f;
  --ring: #60a5fa;
  --radius: 0.75rem;
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.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; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; transform: translateY(-160%); border-radius: 8px; background: white; color: black; padding: 10px 14px; }
.skip-link:focus { transform: none; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.brand img { object-fit: contain; }
.footer-links a, .footer-inner > p a { transition: color .2s ease; }
.footer-links a:hover, .footer-inner > p a:hover { color: white; }

.hero { position: relative; min-height: 1000px; overflow: hidden; padding: 76px 0 0; background: radial-gradient(ellipse 75% 48% at 50% 4%, rgba(31, 111, 235, .18), transparent 72%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .15; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom, black, transparent 72%); }
.hero-glow { position: absolute; top: 480px; left: 50%; width: 800px; height: 420px; transform: translateX(-50%); border-radius: 50%; background: rgba(37, 99, 235, .25); filter: blur(120px); opacity: .45; }
.hero-inner { width: min(1366px, calc(100% - 40px)); position: relative; z-index: 1; text-align: center; }
.hero-logo { width: 112px; height: 112px; margin: 0 auto 30px; object-fit: contain; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.035); color: #b6b6bf; font-size: 13px; box-shadow: 0 1px rgba(255,255,255,.04) inset; }
.eyebrow:hover { border-color: rgba(255,255,255,.18); color: white; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 12px rgba(74,222,128,.9); }

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(56px, 7.4vw, 92px); line-height: 1; letter-spacing: 0em; font-weight: 720; }
h1 span { color: #8b8b95; }
.hero-copy { max-width: 720px; margin: 0 auto; color: #a7a7b0; font-size: clamp(19px, 2vw, 21px); line-height: 1.6; letter-spacing: 0; }

.typing-stage { display: flex; justify-content: center; align-items: center; height: 62px; margin: 22px 0 10px; overflow: hidden; }
.typing-url { display: inline-block; font-family: var(--font-mono); font-size: clamp(17px, 2.5vw, 25px); letter-spacing: -.02em; white-space: nowrap; }
.typing-fixed { color: #85858f; }
.typing-service { color: #f59e0b; text-shadow: 0 0 24px currentColor; transition: color .25s ease; }
.typing-cursor { display: inline-block; width: 2px; height: 1.05em; margin: 0 1px -0.15em 2px; background: currentColor; animation: cursor-blink .85s steps(1) infinite; }
@keyframes cursor-blink { 0%, 45% { opacity: 1; } 46%, 100% { opacity: 0; } }

.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.store-badges { display: flex; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 12px 4px; margin: 24px 0 0; }
.store-badges a { flex: 0 0 auto; }
.store-badges img { width: auto; height: 48px; }
/* Google's artwork includes clear space around the badge. */
.store-badges .google-play-badge { height: 72px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 0 19px; font-size: 15px; font-weight: 560; transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
.button-primary { background: #f4f4f5; color: #111114; box-shadow: 0 1px rgba(255,255,255,.55) inset, 0 12px 30px rgba(0,0,0,.3); }
.button-primary:hover { background: white; }
.button-outline { border-color: var(--border); background: rgba(255,255,255,.035); color: #e8e8eb; box-shadow: 0 1px rgba(255,255,255,.04) inset; }
.button-outline:hover { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.07); }

.product-showcase { position: relative; width: 100%; margin: 94px auto 0; text-align: left; }
.browser-frame { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: #111; box-shadow: 0 50px 120px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.03) inset, 0 0 120px rgba(59,130,246,.08); }
.browser-bar { height: 45px; display: grid; grid-template-columns: 1fr minmax(200px, 360px) 1fr; align-items: center; padding: 0 14px; border-bottom: 1px solid #29292d; background: linear-gradient(#222226, #18181b); color: #777780; font-size: 11px; }
.window-dots { display: flex; gap: 6px; }
.window-dots i { display: block; width: 9px; height: 9px; border-radius: 50%; background: #46464d; }
.window-dots i:first-child { background: #ff5f57; }
.window-dots i:nth-child(2) { background: #febc2e; }
.window-dots i:last-child { background: #28c840; }
.browser-address { display: flex; justify-content: center; align-items: center; gap: 7px; height: 27px; border: 1px solid #303035; border-radius: 7px; background: #101012; }
.browser-menu { justify-self: end; letter-spacing: 2px; }
.browser-frame > img { width: 100%; height: auto; transition: opacity .25s ease; }
.showcase-nav { position: absolute; top: 0; bottom: 0; z-index: 1; width: 50%; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer; }
.showcase-prev { left: 0; }
.showcase-next { right: 0; }
.showcase-nav:focus-visible { outline-offset: -3px; }

.showcase-image-changing { opacity: .35; }
.showcase-pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 30px; padding-bottom: 32px; }
.pager-dot { width: 10px; height: 10px; padding: 0; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: rgba(255,255,255,.08); cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.pager-dot:hover { border-color: rgba(255,255,255,.6); }
.pager-dot.active { border-color: #73b7ff; background: #73b7ff; box-shadow: 0 0 12px rgba(115,183,255,.5); transform: scale(1.18); }

.section { padding: 150px 0; }
.section-muted { position: relative; border-top: 1px solid var(--border); background: #0c0c0f; }
.section.native-app-section { padding: 64px 0 88px; }
.native-app-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 80px; }
.native-app-copy > p { max-width: 460px; color: var(--muted-foreground); font-size: 19px; line-height: 1.65; }
.native-app-screenshots { display: grid; isolation: isolate; width: 100%; max-width: 540px; margin-inline: auto; }
.native-app-screen { grid-area: 1 / 1; align-self: start; padding: 6px; border: 1px solid rgba(255,255,255,.2); border-radius: 32px; background: #09090b; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.native-app-screen img { width: 100%; height: auto; border-radius: 26px; }
.native-app-android { width: 54%; justify-self: end; }
.native-app-ios { z-index: 1; width: 60%; margin-top: 56px; }
.section-heading { max-width: 720px; margin-bottom: 64px; }
.kicker { margin-bottom: 14px; color: #61aefa; font-size: 13px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.section h2 { margin-bottom: 20px; font-size: clamp(40px, 5vw, 64px); line-height: 1.08; letter-spacing: -.032em; }
.section-heading > p:last-child, .install-intro > p { max-width: 600px; color: var(--muted-foreground); font-size: 19px; line-height: 1.65; }

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature-card { display: flex; flex-direction: column; position: relative; overflow: hidden; padding: 30px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(145deg, rgba(255,255,255,.025), transparent 62%), var(--card); box-shadow: 0 1px rgba(255,255,255,.03) inset; }
.feature-card-wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: auto 1fr; column-gap: 56px; grid-column: 1 / -1; }
.feature-card-wide > h3, .feature-card-wide > p { grid-column: 1; }
.feature-card h3 { margin-bottom: 10px; font-size: 22px; letter-spacing: -.01em; }
.feature-card > p { max-width: 500px; margin-bottom: 24px; color: var(--muted-foreground); font-size: 16px; line-height: 1.65; }
.feature-card-wide > p { margin-bottom: 0; }
.domain-stack { grid-column: 2; grid-row: 1 / 3; align-self: start; display: grid; gap: 10px; }
.domain-stack > div { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #151519; box-shadow: 0 16px 30px rgba(0,0,0,.25); color: #d7d7dc; font-family: var(--font-mono); font-size: 13px; }
.domain-stack > div > span { min-width: 0; overflow-wrap: anywhere; }
.domain-protocol { opacity: .5; }
.domain-stack img { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; }
.domain-plex img { padding: 4px; background: #000; }
.domain-plex .domain-app { color: #fbbf24; }
.domain-sonarr .domain-app { color: #38bdf8; }
.domain-homey .domain-app { color: #c4b5fd; }
.domain-stack b { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid #008f6a; border-radius: 999px; color: #34d399; font-family: var(--font-sans); font-size: 12px; font-weight: 550; }
.domain-stack b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #20d99a; }
.domain-stack .domain-provisioning b { border-color: #a16207; color: #fbbf24; white-space: nowrap; }
.domain-stack .domain-provisioning b::before { flex: 0 0 7px; background: #fbbf24; }
.mini-status, .dns-record, .update-row { margin-top: auto; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 15px; border: 1px solid var(--border); border-radius: 11px; background: #151519; color: #a1a1aa; font-size: 13px; }
.mini-status span, .update-row span { display: flex; align-items: center; gap: 8px; color: #e4e4e7; }
.mini-status i, .update-row i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 9px #34d399; }
.mini-status strong { color: #34d399; font-size: 12px; font-weight: 550; }
.dns-record { flex-wrap: wrap; justify-content: flex-start; gap: 8px 12px; padding: 12px 15px; font-family: var(--font-mono); }
.dns-record span { color: #60a5fa; }
.dns-record code { min-width: 0; max-width: 100%; overflow-wrap: anywhere; color: #d4d4d8; }
.dns-record b { margin-left: auto; color: #34d399; }
.access-pills { margin-top: auto; display: flex; gap: 7px; }
.access-pills span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border: 1px solid var(--border); border-radius: 8px; color: #7d7d87; font-size: 13px; }
.access-pills svg { width: 14px; height: 14px; flex: 0 0 auto; }
.access-pills .active { border-color: rgba(96,165,250,.35); background: rgba(59,130,246,.13); color: #8ec5ff; }
.update-row b { color: #73737d; font-family: var(--font-mono); font-size: 12px; font-weight: 500; }

.install-section { background: #09090b; }
.install-layout { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); gap: 100px; align-items: start; }
.install-intro { position: sticky; top: 60px; }
.install-intro h2 { max-width: 520px; }
.text-link { display: inline-flex; gap: 7px; margin-top: 16px; color: #d5d5da; font-size: 16px; }
.steps { margin: 0; padding: 0; list-style: none; }
.step-card { position: relative; display: grid; grid-template-columns: 42px 1fr; gap: 18px; padding-bottom: 54px; }
.step-card::before { content: ""; position: absolute; left: 20px; top: 42px; bottom: 0; width: 1px; background: var(--border); }
.step-card-last { padding-bottom: 0; }
.step-card-last::before { display: none; }
.step-number { position: relative; z-index: 1; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(96,165,250,.35); border-radius: 50%; background: #0e1622; color: #76b8ff; font-family: var(--font-mono); font-size: 13px; }
.step-content { min-width: 0; padding-top: 7px; }
.step-content h3 { margin-bottom: 9px; font-size: 22px; letter-spacing: -.01em; }
.step-content > p { color: var(--muted-foreground); font-size: 16px; line-height: 1.65; }
.step-content code { font-family: var(--font-mono); }
.step-content a code { color: #7dbbff; }
.step-note { margin: 11px 0 0; font-size: 14px !important; }
.code-block { position: relative; overflow-x: auto; margin-top: 18px; border: 1px solid var(--border); border-radius: 12px; background: #0e0e11; box-shadow: 0 1px rgba(255,255,255,.025) inset; }
.code-block pre { margin: 0; padding: 21px 78px 21px 21px; color: #d7d7dc; font-family: var(--font-mono); font-size: 13px; line-height: 1.75; }
.bash-command { color: #7dd3fc; }
.bash-option { color: #c4b5fd; }
.bash-value { color: #86efac; }
.bash-operator { color: #fbbf24; }
.copy-button { position: absolute; z-index: 2; top: 10px; right: 10px; min-height: 29px; border: 1px solid var(--border); border-radius: 7px; background: #1a1a1f; color: #a7a7b0; padding: 0 9px; font: 11px var(--font-sans); cursor: pointer; }
.copy-button:hover { background: #232329; color: white; }


.footer { border-top: 1px solid var(--border); background: #08080a; }
.footer-inner { min-height: 92px; display: flex; align-items: center; gap: 28px; }
.footer-inner > p { margin: 0; color: #696974; font-size: 14px; }
.footer-links { display: flex; gap: 24px; margin-left: auto; color: #8b8b94; font-size: 14px; }

@media (max-width: 1100px) {
  .domain-stack .domain-provisioning b { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 900px) {
  .native-app-layout { grid-template-columns: 1fr; gap: 40px; }
  .native-app-copy { text-align: center; }
  .native-app-copy > p { margin-inline: auto; }
  .native-app-copy .store-badges { justify-content: center; }
  .hero { min-height: 900px; }
  .section { padding: 110px 0; }
  .install-layout { grid-template-columns: 1fr; gap: 64px; }
  .install-intro { position: static; }
}

@media (max-width: 700px) {
  .section.native-app-section { padding: 48px 0 64px; }
  .native-app-screen { padding: 4px; border-radius: 22px; }
  .native-app-screen img { border-radius: 18px; }
  .native-app-ios { margin-top: 36px; }
  .shell { width: min(100% - 28px, 1160px); }
  .brand img { width: 34px; height: 34px; }
  .hero { min-height: 780px; padding-top: 60px; }
  .hero::before { background-size: 46px 46px; }
  .hero-logo { width: 88px; height: 88px; margin-bottom: 24px; }
  .eyebrow { margin-bottom: 24px; }
  h1 { font-size: clamp(46px, 14.8vw, 68px); line-height: 1.03; letter-spacing: -.035em; }
  .hero-copy { font-size: 18px; line-height: 1.6; }
  .typing-stage { height: 52px; margin-top: 13px; }
  .typing-url { font-size: clamp(13px, 4vw, 18px); letter-spacing: -.025em; }
  .hero-actions .button { flex: 1 1 160px; }
  .product-showcase { margin-top: 70px; }
  .browser-frame { border-radius: 12px; }
  .browser-bar { height: 34px; grid-template-columns: 1fr 2fr 1fr; padding: 0 9px; }
  .browser-address { height: 22px; font-size: 8px; }
  .window-dots { gap: 4px; }
  .window-dots i { width: 6px; height: 6px; }
  .section { padding: 88px 0; }
  .section-heading { margin-bottom: 42px; }
  .section h2 { font-size: 40px; line-height: 1.1; letter-spacing: -.025em; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card, .feature-card-wide { display: flex; flex-direction: column; grid-column: auto; padding: 24px; }
  .feature-card > p { margin-bottom: 24px; }
  .domain-stack, .mini-status, .dns-record, .update-row, .access-pills { position: static; width: auto; margin-top: auto; }
  .domain-stack { align-self: stretch; }
  .domain-stack > div { grid-template-columns: 34px minmax(0, 1fr) auto; padding: 11px; font-size: 11px; }
  .domain-stack .domain-provisioning b { max-width: 100%; white-space: normal; }
  .domain-stack img { width: 29px; height: 29px; }
  .mini-status, .update-row { flex-wrap: wrap; gap: 8px 15px; padding: 12px 15px; }
  .dns-record { min-height: 76px; display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 10px 15px; }
  .dns-record b { margin-left: 0; justify-self: end; }
  .access-pills { flex-wrap: wrap; }
  .install-layout { gap: 48px; }
  .step-card { grid-template-columns: 38px minmax(0, 1fr); gap: 13px; }
  .step-card::before { left: 18px; }
  .step-number { width: 38px; height: 38px; }
  .code-block { margin-left: -51px; margin-top: 20px; }
  .code-block pre { padding: 53px 18px 18px; font-size: 12px; }
  .step-note { margin-left: -51px; }
  .footer-inner { padding: 28px 0; flex-wrap: wrap; gap: 16px 24px; }
  .footer-inner > p { order: 3; width: 100%; }
  .footer-links { margin-left: auto; }
}

@media (max-width: 400px) {
  .access-pills { gap: 6px; }
  .access-pills span { gap: 5px; padding: 7px 8px; font-size: 12px; }
  .access-pills svg { width: 13px; height: 13px; }
}

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