:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: oklch(97% .012 70);
  color: oklch(26% .03 47);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; }

.layout { min-height: 100vh; display: flex; flex-direction: column; }
.header, .footer, .main { width: min(1120px, calc(100% - 48px)); margin-right: auto; margin-left: auto; }

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 17px; font-weight: 750; letter-spacing: -.025em; }
.brand-icon { display: block; flex: none; }
.brand-mark { display: block; width: 42px; height: 42px; flex: none; }
.brand-muted { color: oklch(51% .035 55); font-weight: 550; }
.header-label { color: oklch(51% .035 55); font-size: 13px; }

.main { flex: 1; padding: 12px 0 88px; }
.hero {
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
  min-height: 420px;
  overflow: hidden;
  border-radius: 24px;
  background: #140c0c;
  color: oklch(98% .008 70);
}
.hero-image { position: absolute; z-index: -2; top: 0; right: 0; width: 74%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #140c0c 0%, #2f211f 29%, rgb(47 33 31 / .75) 43%, transparent 74%); content: ""; }
.hero-content { max-width: 610px; padding: clamp(34px, 6vw, 72px); }
.eyebrow { color: oklch(78% .13 70); font-size: 12px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
h1 { max-width: 11ch; margin: 18px 0 16px; font-size: clamp(40px, 5.3vw, 67px); letter-spacing: -.055em; line-height: 1.05; }
.intro { max-width: 47ch; margin: 0; color: oklch(87% .014 70); font-size: 17px; line-height: 1.6; }
.hero-link { display: inline-flex; align-items: center; gap: 20px; margin-top: 32px; padding-bottom: 7px; border-bottom: 1px solid oklch(76% .11 66); color: oklch(96% .025 75); font-size: 14px; font-weight: 700; text-decoration: none; }
.hero-link:hover { color: oklch(85% .11 72); }

.section-heading { margin: 64px 0 24px; scroll-margin-top: 24px; }
.section-heading h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.04em; line-height: 1.15; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 18px;
  row-gap: 8px;
  min-height: 176px;
  padding: 27px;
  border: 1px solid oklch(88% .02 65);
  border-radius: 16px;
  background: oklch(99% .006 75);
  text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover, .card:focus-visible { border-color: oklch(68% .1 65); transform: translateY(-3px); box-shadow: 0 14px 32px oklch(35% .03 45 / .1); }
.card-icon { display: grid; grid-row: 1 / 4; place-items: center; align-self: start; width: 48px; height: 48px; border-radius: 12px; color: oklch(42% .11 50); background: oklch(94% .06 70); font-size: 12px; font-weight: 800; }
.card-icon-pro { color: oklch(43% .1 290); background: oklch(94% .04 295); }
.card-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 19px; font-weight: 700; letter-spacing: -.025em; }
.card-title span { color: oklch(60% .04 55); }
.card-description { color: oklch(50% .03 55); font-size: 14px; }
.card-path { align-self: end; margin-top: 10px; color: oklch(43% .09 52); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

.more { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 6vw, 88px); margin-top: 76px; padding-top: 42px; border-top: 1px solid oklch(88% .02 65); }
.more-intro h2 { max-width: 14ch; margin: 0; font-size: clamp(28px, 3.5vw, 42px); letter-spacing: -.04em; line-height: 1.12; }
.more-intro p { max-width: 35ch; margin: 16px 0 0; color: oklch(51% .035 55); font-size: 15px; line-height: 1.55; }
.more-links { display: grid; }
.more-link { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 5px 20px; padding: 18px 4px 20px 0; border-bottom: 1px solid oklch(88% .02 65); text-decoration: none; }
.more-link:first-child { padding-top: 0; }
.more-link-title { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.more-link-description { grid-column: 1; color: oklch(51% .035 55); font-size: 14px; line-height: 1.5; }
.more-link-arrow { grid-column: 2; grid-row: 1 / 3; align-self: center; justify-self: end; color: oklch(43% .09 52); font-size: 20px; transition: transform .2s cubic-bezier(.22, 1, .36, 1); }
.more-link:hover .more-link-title, .more-link:focus-visible .more-link-title { color: oklch(43% .09 52); }
.more-link:hover .more-link-arrow, .more-link:focus-visible .more-link-arrow { transform: translate(3px, -3px); }

.ecosystem { margin-top: 96px; padding-top: 76px; border-top: 1px solid oklch(88% .02 65); text-align: center; }
.ecosystem h2 { max-width: 19ch; margin: 0 auto; font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.045em; line-height: 1.12; }
.ecosystem-intro { margin: 18px auto 0; color: oklch(51% .035 55); font-size: 16px; line-height: 1.55; }
.discovery-terminal { width: min(780px, 100%); margin: 42px auto 0; overflow: hidden; border: 1px solid #4c3733; border-radius: 18px; background: #181110; box-shadow: 0 22px 55px rgb(47 33 31 / 20%); color: #e9e5e3; text-align: left; }
.terminal-topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 50px; padding: 0 20px; border-bottom: 1px solid #3e2c29; background: #231918; }
.terminal-lights { display: flex; gap: 7px; }
.terminal-lights span { width: 9px; height: 9px; border-radius: 50%; background: #644c48; }
.terminal-lights span:first-child { background: #e84c22; }
.terminal-lights span:nth-child(2) { background: #d99747; }
.terminal-title { color: #8e7d79; font: 500 12px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.terminal-screen { position: relative; min-height: 233px; padding: 24px 28px 22px; font: 500 14px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; }
.terminal-screen::before { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 3px, rgb(255 255 255 / 4%) 4px); opacity: .16; pointer-events: none; content: ""; }
.terminal-log { min-height: 168px; }
.terminal-log.is-resetting { opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; }
.terminal-line { min-height: 28px; color: #c8bfbc; white-space: pre-wrap; }
.terminal-line::before { content: "> "; color: #8a7772; }
.terminal-line.terminal-alert { color: #ff9a77; }
.terminal-line.terminal-alert::before { content: "! "; color: #e84c22; }
.terminal-line.terminal-success { color: #a9d3a5; font-weight: 700; }
.terminal-line.terminal-success::before { content: "✓ "; color: #75bd72; }
.terminal-line.is-new { animation: terminal-line-in .28s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes terminal-line-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.terminal-line.is-typing::after { display: inline-block; width: 8px; height: 16px; margin-left: 3px; vertical-align: -3px; background: #e84c22; animation: terminal-caret 1s steps(1, end) infinite; content: ""; }
@keyframes terminal-caret { 0%, 48% { opacity: 1; } 49%, 100% { opacity: 0; } }
.database-cloud { position: relative; width: min(800px, 100%); height: 390px; margin: 46px auto 0; }
.database-cloud::before, .database-cloud::after { position: absolute; top: 50%; left: 50%; border: 1px dashed oklch(84% .025 65); border-radius: 50%; content: ""; transform: translate(-50%, -50%); }
.database-cloud::before { width: 62%; height: 70%; }
.database-cloud::after { width: 95%; height: 98%; }
.cloud-core { position: absolute; z-index: 1; top: 50%; left: 50%; display: flex; width: 164px; height: 164px; flex-direction: column; align-items: center; justify-content: center; border: 8px solid oklch(97% .012 70); border-radius: 50%; background: #2f211f; box-shadow: 0 18px 38px rgb(47 33 31 / 16%); color: #fff; transform: translate(-50%, -50%); }
.cloud-core strong { font-size: 43px; line-height: 1; letter-spacing: -.05em; }
.cloud-core span { max-width: 100px; margin-top: 8px; color: #d6c8c4; font-size: 12px; line-height: 1.25; }
.db-badge { position: absolute; z-index: 2; display: grid; width: 72px; height: 72px; place-items: center; border: 1px solid #dce4f0; border-radius: 50%; background: #fcfdff; box-shadow: 0 12px 28px rgb(18 30 52 / 12%); animation: database-float var(--float-duration) ease-in-out var(--float-delay) infinite alternate; }
@keyframes database-float { to { transform: translate3d(var(--float-x), var(--float-y), 0) rotate(var(--float-rotate)); } }
.db-badge img { display: block; max-width: 48px; max-height: 46px; width: auto; height: auto; }
.db-1 { left: 12%; top: 9%; --float-x: 5px; --float-y: -7px; --float-rotate: 2deg; --float-duration: 4.7s; --float-delay: -1.3s; }
.db-2 { left: 3%; top: 44%; --float-x: -6px; --float-y: 4px; --float-rotate: -2deg; --float-duration: 5.9s; --float-delay: -3.8s; }
.db-3 { left: 19%; bottom: 6%; --float-x: 4px; --float-y: 6px; --float-rotate: -1deg; --float-duration: 5.2s; --float-delay: -2.4s; }
.db-4 { left: 39%; top: 1%; --float-x: -3px; --float-y: -6px; --float-rotate: 1deg; --float-duration: 6.1s; --float-delay: -4.6s; }
.db-5 { right: 25%; top: 6%; --float-x: 6px; --float-y: 3px; --float-rotate: -2deg; --float-duration: 5.5s; --float-delay: -2.9s; }
.db-6 { right: 8%; top: 25%; --float-x: -5px; --float-y: -5px; --float-rotate: 2deg; --float-duration: 4.9s; --float-delay: -3.2s; }
.db-7 { right: 5%; bottom: 15%; --float-x: 4px; --float-y: 7px; --float-rotate: 1deg; --float-duration: 6.3s; --float-delay: -1.7s; }
.db-8 { right: 28%; bottom: 0; --float-x: -5px; --float-y: 5px; --float-rotate: -1deg; --float-duration: 5.7s; --float-delay: -4.1s; }
.ecosystem-link { display: inline-flex; align-items: center; gap: 16px; margin-top: 32px; padding-bottom: 6px; border-bottom: 1px solid currentColor; color: oklch(43% .09 52); font-size: 15px; font-weight: 700; text-decoration: none; }
.ecosystem-link:hover { color: oklch(35% .1 52); }

.error-main { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; max-width: 900px; padding: 80px 0 140px; }
.error-main .eyebrow { color: oklch(47% .1 55); }
.error-main h1 { max-width: none; }
.error-main .intro { color: oklch(50% .03 55); }
.button { display: inline-flex; align-items: center; gap: 16px; margin-top: 36px; padding: 14px 20px; border-radius: 10px; color: oklch(98% .008 70); background: oklch(40% .08 48); font-weight: 600; text-decoration: none; }
.button:hover { background: oklch(33% .08 48); }
:is(.brand, .hero-link, .card, .more-link, .ecosystem-link, .button):focus-visible { outline: 3px solid oklch(68% .14 72); outline-offset: 4px; }
.footer { padding: 26px 0; border-top: 1px solid oklch(88% .02 65); color: oklch(53% .025 55); font-size: 13px; }

@media (min-width: 1024px) {
  .hero-image { right: -32px; width: calc(80% + 64px); }
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-image { transform: translate3d(var(--hero-parallax-x, 0px), 0, 0); transition: transform .55s cubic-bezier(.22, 1, .36, 1); will-change: transform; }
}

@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; background: #101827; color: #f2f5fb; }
  .hero { background: oklch(0.19 0.02 266.52); }
  .hero::after { background: linear-gradient(90deg, oklch(0.19 0.02 266.52) 0%, oklch(0.21 0.03 266.14) 29%, oklch(0.21 0.03 266.14 / 0.75) 43%, transparent 74%); }
  .discovery-terminal { border-color: #33435c; background: #111a2a; box-shadow: 0 22px 55px rgb(18 30 52 / 16%); color: #dbe5f4; }
  .terminal-topbar { border-bottom-color: #33435c; background: #19243a; }
  .terminal-lights span { background: #6a7891; }
  .terminal-lights span:first-child { background: #e68766; }
  .terminal-lights span:nth-child(2) { background: #e0bb72; }
  .terminal-title { color: #a6b4c9; }
  .terminal-line { color: #becce0; }
  .terminal-line::before { color: #8298bb; }
  .terminal-line.terminal-alert { color: #ffad8f; }
  .terminal-line.terminal-alert::before { color: #e68766; }
  .terminal-line.terminal-success { color: #a9d7b0; }
  .terminal-line.terminal-success::before { color: #8cc99b; }
  .terminal-line.is-typing::after { background: #e6a477; }
  .brand-muted, .header-label, .card-description, .error-main .intro, .footer { color: #a6b4c9; }
  .card { background: #19243a; border-color: #33435c; }
  .card:hover, .card:focus-visible { border-color: #8db6ff; box-shadow: 0 14px 32px rgb(0 0 0 / 18%); }
  .card-icon { color: #a4c5ff; background: #273e65; }
  .card-icon-pro { color: #d3b8ff; background: #44305f; }
  .card-title span { color: #a6b4c9; }
  .card-path, .error-main .eyebrow { color: #8db6ff; }
  .more { border-color: #33435c; }
  .more-intro p, .more-link-description { color: #a6b4c9; }
  .more-link { border-color: #33435c; }
  .more-link-arrow, .more-link:hover .more-link-title, .more-link:focus-visible .more-link-title { color: #8db6ff; }
  .ecosystem { border-color: #33435c; }
  .ecosystem-intro { color: #a6b4c9; }
  .database-cloud::before, .database-cloud::after { border-color: #33435c; }
  .cloud-core { border-color: #101827; background: #19243a; box-shadow: 0 18px 38px rgb(18 30 52 / 16%); color: #f2f5fb; }
  .cloud-core span { color: #b4c2d7; }
  .ecosystem-link { color: #8db6ff; }
  .ecosystem-link:hover { color: #b6d2ff; }
  .button { background: #245edb; }
  .button:hover { background: #174cb9; }
  :is(.brand, .hero-link, .card, .more-link, .ecosystem-link, .button):focus-visible { outline-color: #8db6ff; }
  .footer { border-color: #33435c; }
}

@media (max-width: 760px) {
  .header, .footer, .main { width: min(100% - 32px, 1120px); }
  .header { padding: 18px 0; }
  .header-label { display: none; }
  .main { padding-top: 8px; padding-bottom: 56px; }
  .hero { display: block; min-height: 0; padding-top: 275px; }
  .hero-image { top: 0; width: 100%; height: 340px; object-position: 65% center; }
  .hero::after { background: linear-gradient(180deg, transparent 0, rgb(47 33 31 / .2) 140px, #2f211f 275px); }
  .hero-content { max-width: none; padding: 0 28px 36px; }
  h1 { max-width: 14ch; font-size: clamp(36px, 8vw, 54px); }
  .section-heading { margin-top: 36px; }
  .cards { grid-template-columns: 1fr; }
  .more { display: block; margin-top: 52px; padding-top: 34px; }
  .more-intro h2 { max-width: none; }
  .more-links { margin-top: 28px; }
  .more-link:first-child { padding-top: 18px; border-top: 1px solid oklch(88% .02 65); }
  .ecosystem { margin-top: 72px; padding-top: 56px; }
  .ecosystem h2 { max-width: 18ch; }
  .discovery-terminal { margin-top: 34px; }
  .database-cloud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); justify-items: center; gap: 14px 6px; height: auto; margin-top: 34px; }
  .database-cloud::before, .database-cloud::after { display: none; }
  .cloud-core { position: relative; top: auto; left: auto; grid-column: 1 / -1; width: 150px; height: 150px; margin-bottom: 10px; transform: none; }
  .db-badge { position: static; width: 64px; height: 64px; }
  .db-badge img { max-width: 43px; max-height: 42px; }
  .ecosystem-link { margin-top: 32px; }
  .error-main { padding: 64px 0 100px; }
}

@media (max-width: 420px) {
  .brand { font-size: 15px; }
  .brand-mark { width: 36px; height: 36px; }
  .hero { padding-top: 230px; border-radius: 18px; }
  .hero-image { height: 295px; }
  .hero::after { background: linear-gradient(180deg, transparent 0, rgb(47 33 31 / .2) 110px, #2f211f 230px); }
  .hero-content { padding: 0 22px 30px; }
  .card { padding: 22px; }
  .card-title { font-size: 17px; }
  .ecosystem h2 { font-size: 34px; }
  .terminal-topbar { grid-template-columns: auto 1fr; gap: 15px; padding: 0 14px; }
  .terminal-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .terminal-screen { min-height: 224px; padding: 22px 16px; font-size: 12px; }
}

@media (max-width: 760px) and (prefers-color-scheme: dark) {
  .hero::after { background: linear-gradient(180deg, transparent 0, oklch(0.21 0.03 266.14 / .2) 140px, oklch(0.21 0.03 266.14) 275px); }
  .more-link:first-child { border-top-color: #33435c; }
}

@media (max-width: 420px) and (prefers-color-scheme: dark) {
  .hero::after { background: linear-gradient(180deg, transparent 0, oklch(0.21 0.03 266.14 / .2) 110px, oklch(0.21 0.03 266.14) 230px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .more-link-arrow { transition: none; }
  .db-badge { animation: none; }
  .terminal-line.is-typing::after { animation: none; }
  .terminal-line.is-new { animation: none; }
  .terminal-log.is-resetting { transition: none; }
}
