:root {
  --bg: #120e0b;
  --bg-elevated: rgba(32, 22, 16, 0.78);
  --ink: #fff4eb;
  --muted: #c4a894;
  --line: rgba(255, 244, 235, 0.12);
  --accent: #ff8a3d;
  --accent-deep: #e35a12;
  --danger: #ff8f8f;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --font-display: "Roboto", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--bg);
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(255, 138, 61, 0.2), transparent 55%),
    radial-gradient(900px 600px at 90% 10%, rgba(227, 90, 18, 0.14), transparent 50%),
    linear-gradient(160deg, #120e0b 0%, #1a120e 48%, #100c09 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: drift 14s ease-in-out infinite;
}

.orb-a {
  width: 280px;
  height: 280px;
  left: -40px;
  bottom: 8%;
  background: rgba(255, 138, 61, 0.24);
}

.orb-b {
  width: 220px;
  height: 220px;
  right: -30px;
  top: 18%;
  background: rgba(255, 170, 100, 0.16);
  animation-delay: -4s;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 2.5rem;
  padding: 1.75rem 0 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  animation: rise 0.8s ease both;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.brand-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero,
.preview {
  align-self: center;
  animation: rise 0.9s ease 0.08s both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(255, 138, 61, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}

h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 7vw, 4.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.lede {
  margin: 1.15rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.65;
}

.access {
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  animation: rise 1s ease 0.16s both;
}

.access-label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink);
}

.access-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
}

input,
button {
  font: inherit;
}

input {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 8, 6, 0.7);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder {
  color: rgba(196, 168, 148, 0.75);
}

input:focus {
  border-color: rgba(255, 138, 61, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 138, 61, 0.14);
}

button {
  min-height: 3.1rem;
  padding: 0.85rem 1.2rem;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #ff9b55 0%, var(--accent-deep) 100%);
  color: #2a1104;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

button:hover {
  filter: brightness(1.05);
}

button:active {
  transform: translateY(1px);
}

.ghost {
  margin-top: 1.25rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.access-hint,
.access-error {
  margin: 0.75rem 0 0;
  font-size: 0.84rem;
}

.access-hint {
  color: var(--muted);
}

.access-error {
  color: var(--danger);
}

.preview-card {
  margin-top: 1.75rem;
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.preview-card h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.preview-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.7;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  animation: rise 1s ease 0.22s both;
}

.foot a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 244, 235, 0.28);
}

.foot a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(18px, -22px, 0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.86);
    opacity: 0.7;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 1.25rem, 920px);
    gap: 2rem;
    padding-top: 1.25rem;
  }

  .access-row {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }

  .foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
