/* Foundation and page tokens */
:root {
  color-scheme: dark;
  --page: #07080d;
  --surface: #0c0e15;
  --ink: #f2efe8;
  --muted: #b4b7c5;
  --slate: #505678;
  --silver: #adcced;
  --line: #ffffff1c;
  font-family: var(--rs-font-ui);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible, button:focus-visible, video:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 5px;
}

.skip-link {
  position: absolute;
  left: 20px;
  top: -100px;
  padding: 12px 18px;
  background: var(--silver);
  color: var(--page);
  z-index: 5;
}

.skip-link:focus {
  top: 12px;
}

/* Header and primary link */
.site-header {
  height: 86px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 24px;
  font-weight: 550;
  letter-spacing: -1px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: var(--slate);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.6px;
}

.brand-name span {
  color: var(--silver);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 42px;
  padding: 11px 18px;
  border-radius: 11px;
  background: var(--silver);
  color: #141b29;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.button:hover {
  background: #c8dff5;
}

/* Hero and neon background */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 90% 0%, #ff414c30, transparent 52%), radial-gradient(ellipse at 65% 95%, #ffab302d, transparent 50%), radial-gradient(ellipse at 65% 25%, #7252ff40, transparent 65%), var(--page);
}

.neon {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.neon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #07080ddd, #07080d44 38%, transparent 68%);
}

.neon svg {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: .85;
}

.hero-inner {
  max-width: 1680px;
  margin: auto;
  min-height: 550px;
  padding: 68px 5% 72px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 5%;
  align-items: center;
}

.eyebrow {
  margin: 0 0 23px;
  color: var(--silver);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(42px, 4.6vw, 72px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -3px;
}

h1 span {
  color: var(--silver);
}

.description {
  max-width: 390px;
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.hero-media {
  margin: 0;
  min-width: 0;
  filter: drop-shadow(0 18px 50px #07080d99);
}

video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #121522;
  border: 1px solid #ffffff24;
  border-radius: 12px;
}

.hero-media figcaption {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

/* Product overview and tabs */
.workspace {
  max-width: 1680px;
  margin: auto;
  padding: 44px 5% 48px;
  border-top: 1px solid var(--line);
}

.section-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 27px;
}

h2 {
  margin: 0;
  font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1.2;
  font-weight: 550;
  letter-spacing: -1px;
}

.section-top p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 11px 0 0;
}

button {
  font: inherit;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.tabs {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.tabs button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
  padding: 10px 19px;
  border-radius: 11px;
  min-height: 40px;
}

.tabs button:hover {
  background: #adcced0d;
  color: var(--ink);
}

.tabs button[aria-selected=true] {
  background: #adcced1c;
  color: var(--silver);
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 24px;
  align-items: stretch;
}

.product {
  min-height: 304px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.product-main {
  padding: 24px;
}

.product-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 17px;
}

.product-title h3 {
  font-size: 17px;
  font-weight: 550;
  margin: 0;
  letter-spacing: -.3px;
}

.demo {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.row-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.step {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #ff536521;
  color: #ff8c99;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #ff536534;
}

.row:nth-of-type(3) .step {
  background: #ff923321;
  color: #ffb36d;
  border-color: #ff923334;
}

.row:nth-of-type(4) .step {
  background: #ffd65a21;
  color: #ffdc78;
  border-color: #ffd65a34;
}

.detail {
  color: var(--muted);
  line-height: 1.5;
  padding-left: 42px;
  font-size: 12px;
}

/* Photography carousel */
.photo-carousel {
  min-width: 0;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.photo-slide {
  margin: 0;
  position: relative;
  height: 100%;
  min-height: 330px;
}

.photo-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-slide::after {
  content: '';
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, #07080df5);
  pointer-events: none;
}

.photo-slide figcaption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 68px;
  z-index: 1;
}

.photo-slide figcaption small {
  display: block;
  color: #ffd68b;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 1.8px;
  margin-bottom: 8px;
}

.photo-slide figcaption strong {
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.5px;
}

.carousel-controls {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.carousel-controls button {
  width: 36px;
  height: 36px;
  border: 1px solid #ffffff40;
  background: #07080dbb;
  color: #fff;
  border-radius: 50%;
  font-size: 18px;
}

.carousel-controls button:hover {
  background: var(--slate);
}

.carousel-count {
  margin-right: auto;
  font-size: 11px;
  letter-spacing: 2px;
  color: #eee;
}

/* Footer */
.site-footer {
  margin: 0 5%;
  padding: 24px 0 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.site-footer strong {
  color: var(--ink);
  font-weight: 550;
}

/* Login dialog — shared by / and /admin/ */
#login {
  border: 1px solid #fff4df66;
  border-radius: 12px;
  padding: 0;
  background: #ffffff;
  color: #303331;
  width: min(440px,calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  box-shadow: 0 30px 100px #25100870;
  color-scheme: light;
}

#login::backdrop {
  background: #30333155;
  backdrop-filter: blur(7px);
}

.login-card button:focus-visible {
  outline-color: var(--slate);
}

.login-card {
  padding: 35px;
}

.close {
  position: absolute;
  right: 17px;
  top: 15px;
  background: none;
  border: 0;
  font-size: 26px;
  color: #303331;
  width: 34px;
  height: 34px;
}

.login-card h2 {
  font: 600 34px/1.1 var(--rs-font-ui);
  letter-spacing: -1px;
  margin: 17px 0 10px;
}

.login-card p {
  font-size: 14px;
  line-height: 1.5;
  color: #656c67;
}

.login-card label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 22px 0 8px;
}

.login-card input {
  width: 100%;
  background: #ffffff;
  border: 1px solid #d8dfd9;
  border-radius: 12px;
  padding: 13px 12px;
  color: #303331;
  font-size: 16px;
  font-family: inherit;
}

.login-card input:focus {
  outline: 1px solid var(--slate);
  outline-offset: 2px;
}

.password {
  position: relative;
}

.password input {
  padding-right: 75px;
}

.reveal {
  position: absolute;
  right: 9px;
  top: 12px;
  border: 0;
  background: none;
  padding: 3px;
  font-size: 12px;
  color: #656c67;
}

.login-submit {
  width: 100%;
  margin-top: 26px;
  background: var(--slate);
  border: 0;
  border-radius: 11px;
  min-height: 42px;
  color: #ffffff;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.back {
  display: block;
  border: 0;
  background: none;
  margin: 17px auto 0;
  color: #303331;
  font-size: 13px;
  text-decoration: underline;
}

#login-status {
  color: #a4433c;
  margin-bottom: 0;
}

.login-card form {
  margin: 0;
}

.login-submit:hover {
  background: #62698d;
}

.login-brand .brand-logo {
  display: block;
  width: 180px;
  height: 65px;
  margin-left: -8px;
}

.login-card .remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
  margin: 18px 0 0;
  color: #656c67;
}

.login-card .remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--slate);
}

body:has(#login[open]) {
  overflow: hidden;
}

/* Responsive layouts */
@media (max-width: 1100px) {
  .section-top {
    align-items: flex-start;
    flex-direction: column;
  }

}

@media (max-width: 800px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .photo-slide {
    min-height: 310px;
  }

}

@media (min-width: 1600px) {
  .hero-inner {
    min-height: 610px;
  }

}

@media (max-width: 1000px) {
  .hero-inner {
    gap: 32px;
    min-height: 470px;
  }

  h1 {
    font-size: clamp(38px, 5vw, 48px);
    letter-spacing: -2px;
  }

  .description {
    font-size: 14px;
  }

  .hero-media figcaption {
    font-size: 9px;
    letter-spacing: .5px;
  }

}

@media (max-width: 700px) {
  .site-header {
    height: 72px;
  }

  .brand {
    font-size: 21px;
    gap: 9px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .button {
    padding: 12px 17px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 46px;
    padding-bottom: 35px;
    gap: 30px;
  }

  h1 {
    font-size: clamp(40px, 9vw, 60px);
    letter-spacing: -2px;
  }

  .eyebrow {
    font-size: 9px;
    margin-bottom: 20px;
  }

  .description {
    max-width: 420px;
  }

  .workspace {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .section-top {
    display: block;
  }

  .tabs {
    margin-top: 21px;
    width: fit-content;
    max-width: 100%;
  }

  .tabs button {
    padding: 9px 15px;
  }

  .product-main {
    padding: 20px 18px;
  }

  .product-title {
    align-items: flex-start;
  }

  .row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 0;
  }

  .detail {
    padding-left: 42px;
    font-size: 12px;
  }

  .site-footer {
    flex-direction: column;
    gap: 5px;
  }

}

@media(max-width:650px) {
  .login-card {
    padding: 29px;
  }

  .login-card h2 {
    font-size: 32px;
  }

}
