:root {
  --ink-soft:   #141A20;
  --paper:      #F7F9FB;
  --ink:        #101820;
  --line:       #DCE3EA;
  --slate:      #4E5C6A;
  --slate-l:    #78868F;

  --brand:      #35A7DB;
  --brand-2:    #62D0E8;
  --brand-solid: #006494;
  --brand-solid-h: #0F74A3;
  --brand-text: #0B5E86;

  --on-dark:      #FFFFFF;
  --on-dark-sub:  rgba(255, 255, 255, 0.78);
  --on-dark-mute: rgba(255, 255, 255, 0.56);
  --on-dark-line: rgba(255, 255, 255, 0.09);

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --radius:      12px;
  --radius-lg:   20px;
  --radius-pill: 50px;

  --shadow-card: 0 24px 64px rgba(0, 0, 0, 0.38), 0 2px 8px rgba(0, 0, 0, 0.22);

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { height: 100%; }

body {
  min-height: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--on-dark);
  background: var(--ink-soft);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2 { font-family: var(--font-display); letter-spacing: -0.02em; }

.stage {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 48px 24px;
  overflow: clip;
}

.stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 22% 45%, rgba(53, 167, 219, 0.11) 0%, transparent 55%),
    radial-gradient(ellipse at 82% 15%, rgba(98, 208, 232, 0.05) 0%, transparent 45%);
  pointer-events: none;
}

.stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at 28% 35%, black 0%, transparent 55%);
  mask-image: radial-gradient(ellipse at 28% 35%, black 0%, transparent 55%);
}

.stage__inner {
  position: relative;
  z-index: 2;
  width: min(100%, 1200px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(360px, 420px);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.brand { max-width: 34rem; }

.brand__mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: clamp(32px, 6vh, 56px);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand__mark-os {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--brand);
  border: 1px solid rgba(53, 167, 219, 0.32);
  border-radius: 6px;
  padding: 4px 7px 3px;
}

.brand__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-2);
  background: rgba(53, 167, 219, 0.07);
  border: 1px solid rgba(53, 167, 219, 0.2);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  margin-bottom: 20px;
}

.brand__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

.brand__title {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin-bottom: 16px;
}

.brand__title em { font-style: normal; color: var(--brand); }

.brand__lead {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.65;
  color: var(--on-dark-sub);
  max-width: 30rem;
  margin-bottom: 36px;
}

.brand__modules {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid var(--on-dark-line);
}

.module {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--on-dark-mute);
}

.module__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(53, 167, 219, 0.1);
  border: 1px solid rgba(53, 167, 219, 0.18);
}

.module__icon svg {
  width: 15px;
  height: 15px;
  stroke: var(--brand);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.module__text { padding-top: 5px; }
.module__text strong { color: var(--on-dark); font-weight: 600; }

.signature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
}

.signature__chart { width: 200px; height: 34px; overflow: visible; }

.signature__line {
  stroke: url(#trendGradient);
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: draw 1.6s var(--ease) 0.4s forwards;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

.signature__ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: ripple 2.4s var(--ease) 1.6s infinite;
}

@keyframes ripple {
  0%   { transform: scale(1);   opacity: 0.5; }
  100% { transform: scale(3.4); opacity: 0; }
}

.signature__copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(28px, 4vw, 40px);
}

.card__tenant {
  display: flex;
  align-items: center;
  min-height: 30px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.card__tenant img {
  max-height: 30px;
  max-width: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.card__brand {
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.card__brand-os {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--brand-text);
  border: 1px solid rgba(11, 94, 134, 0.26);
  border-radius: 5px;
  padding: 3px 6px 2px;
}

.card__title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.card__sub {
  font-size: 14px;
  line-height: 1.55;
  color: var(--slate);
  margin-bottom: 28px;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #FEF3F2;
  border: 1px solid rgba(180, 35, 24, 0.24);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #8E2119;
  margin-bottom: 22px;
}

.alert svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.field { margin-bottom: 18px; }

.field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}

.field__wrap { position: relative; }

.field__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  stroke: var(--slate-l);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: stroke 150ms ease;
}

.field__wrap:focus-within .field__icon { stroke: var(--brand-text); }

.field__input {
  width: 100%;
  padding: 13px 14px 13px 42px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: #FFFFFF;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field__input::placeholder { color: #6E7B86; }

.field__input:focus {
  border-color: var(--brand-solid);
  box-shadow: 0 0 0 3px rgba(0, 100, 148, 0.16);
}

.field__input--password { padding-right: 46px; }

.field__toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #5F6D78;
  transition: color 150ms ease, background 150ms ease;
}

.field__toggle:hover { color: var(--ink); background: #EDF1F5; }

.field__toggle svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.submit {
  position: relative;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--brand-solid);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 100, 148, 0.26);
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.submit::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  animation: shine 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine {
  0%, 70%, 100% { left: -100%; }
  85%           { left: 150%; }
}

.submit:hover {
  background: var(--brand-solid-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 100, 148, 0.4);
}

.submit:active { transform: translateY(0); }

.submit svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #5F6D78;
}

.field__input:focus-visible,
.field__toggle:focus-visible,
.submit:focus-visible {
  outline: 2px solid var(--brand-text);
  outline-offset: 2px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.brand { animation: rise 600ms var(--ease) both; }
.card  { animation: rise 600ms var(--ease) 80ms both; }

@media (max-width: 1024px) {
  .stage {
    align-items: flex-start;
    padding: 40px 20px;
  }

  .stage__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 560px;
  }

  .brand { max-width: none; }
  .brand__mark { margin-bottom: 28px; }
  .brand__modules { display: none; }
  .signature { display: none; }
}

@media (max-width: 600px) {
  .stage { padding: 0; }

  .stage__inner {
    gap: 0;
    max-width: none;
  }

  .brand { display: none; }

  .card {
    min-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    padding: 40px 22px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .card__brand { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .signature__line { stroke-dashoffset: 0; }
  .signature__ring { opacity: 0; }
}
