@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --navy-1000: #030817;
  --navy-950: #050d1d;
  --navy-900: #071329;
  --navy-850: #0a1934;
  --navy-800: #0c1a39;
  --navy-700: #132b54;
  --green: #3ce569;
  --green-bright: #5dff9d;
  --blue: #2e67e1;
  --blue-bright: #6e9cff;
  --white: #f5f9ff;
  --muted: #9cacbf;
  --line: rgba(180, 207, 244, 0.18);
  font-family: "Inter", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--navy-1000);
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  padding: clamp(18px, 3vw, 42px);
  display: grid;
  place-items: center;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% -10%, rgba(60, 229, 105, 0.08), transparent 30rem),
    radial-gradient(circle at 94% 18%, rgba(46, 103, 225, 0.12), transparent 34rem),
    var(--navy-1000);
  color: var(--white);
}

button, a { -webkit-tap-highlight-color: transparent; }

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  display: block;
  width: 34rem;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.12;
  animation: orb-drift 14s ease-in-out infinite alternate;
}

.orb-green { top: -18rem; left: -10rem; background: var(--green); }
.orb-blue { right: -15rem; bottom: -19rem; background: var(--blue); animation-delay: -7s; }

.grid-plane {
  position: absolute;
  left: -25%;
  right: -25%;
  bottom: -28%;
  height: 64%;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(109, 144, 193, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 144, 193, 0.18) 1px, transparent 1px);
  background-size: 54px 54px;
  transform: perspective(620px) rotateX(63deg);
  transform-origin: center bottom;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 36%, black 72%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 36%, black 72%, transparent);
}

.device {
  --deck-x: 50%;
  --deck-y: 50%;
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: min(1280px, 100%);
  min-height: min(830px, calc(100svh - clamp(36px, 6vw, 84px)));
  padding: clamp(30px, 4vw, 58px);
  overflow: hidden;
  border: 1px solid rgba(198, 219, 248, 0.2);
  border-radius: clamp(26px, 3vw, 42px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(60, 229, 105, 0.075), transparent 32rem),
    linear-gradient(150deg, rgba(9, 24, 50, 0.98), rgba(4, 12, 29, 0.985));
  box-shadow:
    0 44px 100px rgba(0, 0, 0, 0.5),
    0 0 0 7px rgba(255, 255, 255, 0.018),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
  animation: device-arrive 800ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.device::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, black, transparent 76%);
  mask-image: radial-gradient(circle at 50% 45%, black, transparent 76%);
}

.device::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background: radial-gradient(420px circle at var(--deck-x) var(--deck-y), rgba(93, 255, 157, 0.055), transparent 68%);
  pointer-events: none;
}

.device-sensor {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: rgba(185, 207, 235, 0.2);
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.06);
}

.device-content { min-height: 100%; display: flex; flex-direction: column; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(22px, 2.6vw, 34px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; min-width: 0; }

.brand img {
  display: block;
  width: clamp(104px, 10vw, 138px);
  height: auto;
  filter: brightness(0) invert(1);
}

.brand-divider {
  width: 1px;
  height: 30px;
  margin: 0 clamp(14px, 2vw, 24px);
  background: rgba(255, 255, 255, 0.2);
}

.brand-product {
  color: #dbe7f7;
  font-size: clamp(0.67rem, 1vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.deck-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-light {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(60, 229, 105, 0.1), 0 0 14px rgba(60, 229, 105, 0.7);
  animation: status-pulse 2.4s ease-in-out infinite;
}

.deck-status time {
  min-width: 3.1rem;
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  color: #d8e3f2;
  text-align: right;
}

.intro { padding-top: clamp(34px, 5vw, 66px); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: #afbdd0;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow span:first-child { color: var(--green-bright); }

.intro h1 {
  max-width: 900px;
  margin: 0;
  color: var(--white);
  font-size: clamp(2.75rem, 6vw, 5.65rem);
  font-weight: 690;
  letter-spacing: -0.067em;
  line-height: 0.95;
}

.intro h1 em { color: #8fa0b7; font-style: normal; font-weight: 520; }
.intro-copy { margin: 18px 0 0; color: var(--muted); font-size: clamp(0.88rem, 1.2vw, 1rem); }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
  margin-top: clamp(30px, 4.5vw, 56px);
  perspective: 1200px;
}

.tool-card {
  --spot-x: 50%;
  --spot-y: 50%;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --arrow-x: 0px;
  --arrow-y: 0px;
  --accent: var(--green);
  --accent-rgb: 60, 229, 105;
  position: relative;
  min-height: clamp(300px, 27vw, 360px);
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(175, 202, 238, 0.17);
  border-radius: clamp(20px, 2.4vw, 29px);
  background:
    linear-gradient(145deg, rgba(var(--accent-rgb), 0.055), transparent 36%),
    linear-gradient(160deg, rgba(18, 40, 76, 0.74), rgba(7, 20, 43, 0.9));
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(0);
  transform-style: preserve-3d;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 220ms ease, box-shadow 220ms ease, opacity 180ms ease;
  animation: card-arrive 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  will-change: transform;
}

.tool-card:nth-child(1) { animation-delay: 150ms; }
.tool-card:nth-child(2) { animation-delay: 250ms; }
.tool-card-leads { --accent: var(--blue-bright); --accent-rgb: 46, 103, 225; }

.tool-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  padding: 1px;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(260px circle at var(--spot-x) var(--spot-y), rgba(var(--accent-rgb), 0.95), transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.tool-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(400px circle at var(--spot-x) var(--spot-y), rgba(var(--accent-rgb), 0.12), transparent 60%);
  transition: opacity 260ms ease;
  pointer-events: none;
}

.tool-card:hover {
  border-color: rgba(var(--accent-rgb), 0.34);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.36), 0 0 50px rgba(var(--accent-rgb), 0.075), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-7px);
}

.tool-card:hover::before,
.tool-card:hover::after,
.tool-card:focus-visible::before,
.tool-card:focus-visible::after { opacity: 1; }

.tool-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.tool-card.is-launching { opacity: 0.78; transform: perspective(1000px) scale(0.975); }

.card-sheen {
  position: absolute;
  top: -60%;
  left: -45%;
  z-index: 0;
  width: 52%;
  height: 210%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  transform: rotate(24deg) translateX(-180%);
  transition: transform 750ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease;
  pointer-events: none;
}

.tool-card:hover .card-sheen { opacity: 1; transform: rotate(24deg) translateX(420%); }

.card-index {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 1;
  color: rgba(224, 235, 249, 0.12);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1;
  pointer-events: none;
}

.card-topline, .card-copy, .card-footer { position: relative; z-index: 2; transform: translateZ(28px); }
.card-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }

.app-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  border-radius: 17px;
  background: rgba(var(--accent-rgb), 0.09);
  color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 28px rgba(0, 0, 0, 0.18);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 240ms ease;
}

.tool-card:hover .app-icon { background: rgba(var(--accent-rgb), 0.15); transform: translateY(-3px) rotate(-2deg) scale(1.04); }

.app-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(190, 211, 240, 0.13);
  border-radius: 999px;
  background: rgba(4, 13, 31, 0.38);
  color: #b5c2d4;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.61rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.availability i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.8); }
.card-copy { margin-top: auto; padding-top: 28px; }

.card-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.card-copy strong {
  display: block;
  color: var(--white);
  font-size: clamp(2rem, 3.1vw, 3.05rem);
  font-weight: 670;
  letter-spacing: -0.055em;
  line-height: 0.91;
}

.card-description {
  display: block;
  max-width: 31rem;
  margin-top: 15px;
  color: #a9b8cb;
  font-size: clamp(0.76rem, 1vw, 0.88rem);
  line-height: 1.55;
}

.card-footer {
  margin-top: 25px;
  padding-top: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(183, 207, 239, 0.13);
}

.card-url {
  min-width: 0;
  overflow: hidden;
  color: #c5d1e1;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.66rem, 1vw, 0.76rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-arrow {
  flex: 0 0 auto;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  transform: translate(var(--arrow-x), var(--arrow-y));
  transition: color 180ms ease, background-color 180ms ease, transform 90ms linear, box-shadow 180ms ease;
}

.tool-card:hover .launch-arrow { background: var(--accent); color: var(--navy-1000); box-shadow: 0 0 28px rgba(var(--accent-rgb), 0.25); }

.launch-arrow svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.device-footer {
  margin-top: auto;
  padding-top: clamp(26px, 3.4vw, 42px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #6f8096;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.device-footer span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.device-footer i { width: 5px; height: 5px; border-radius: 50%; background: #566a83; }

@keyframes device-arrive {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes card-arrive {
  from { opacity: 0; transform: perspective(1000px) translateY(24px) scale(0.98); }
  to { opacity: 1; transform: perspective(1000px) translateY(0) scale(1); }
}

@keyframes status-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.48; } }
@keyframes orb-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(26px, 18px, 0) scale(1.08); } }

@media (max-width: 860px) {
  body { place-items: start center; }
  .device { min-height: auto; }
  .intro h1 { max-width: 680px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 300px; }
  .card-copy strong br { display: none; }
  .device-footer { margin-top: 28px; }
}

@media (max-width: 560px) {
  body { padding: 0; }
  .device { width: 100%; min-height: 100svh; padding: 26px 16px 24px; border: 0; border-radius: 0; box-shadow: none; }
  .device-sensor { display: none; }
  .topbar { gap: 12px; padding-bottom: 21px; }
  .brand img { width: 94px; }
  .brand-divider { height: 23px; margin: 0 11px; }
  .brand-product { font-size: 0.59rem; letter-spacing: 0.11em; }
  .deck-status > span:not(.status-light), .deck-status time { display: none; }
  .intro { padding-top: 33px; }
  .intro h1 { font-size: clamp(2.55rem, 14vw, 3.7rem); }
  .intro-copy { margin-top: 14px; }
  .tool-grid { margin-top: 29px; }
  .tool-card { min-height: 280px; padding: 21px; border-radius: 22px; }
  .card-index { top: 18px; right: 20px; }
  .app-icon { width: 52px; height: 52px; border-radius: 15px; }
  .app-icon svg { width: 27px; height: 27px; }
  .card-copy { padding-top: 24px; }
  .card-copy strong { font-size: 2.15rem; }
  .card-description { font-size: 0.77rem; }
  .card-footer { margin-top: 20px; }
  .device-footer { padding-top: 28px; }
  .device-footer span:last-child { display: none; }
}

@media (hover: none), (pointer: coarse) {
  .tool-card, .tool-card:hover { transform: none; }
  .tool-card:active { transform: scale(0.985); }
  .tool-card::before, .tool-card::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .tool-card, .tool-card:hover { transform: none; }
}
