/* Galaxy Z Fold8 presale — dark tech landing */

.page-presale {
  --ps-bg: #070b14;
  --ps-panel: #111827;
  --ps-ink: #f4f7fb;
  --ps-muted: rgba(244, 247, 251, 0.68);
  --ps-accent: #3b9eff;
  --ps-accent-2: #22d3ee;
  --ps-line: rgba(255, 255, 255, 0.1);
  background: var(--ps-bg);
  color: var(--ps-ink);
}

.page-presale main {
  background: transparent;
}

.page-presale .tl-header__top {
  background: #05080f;
  color: rgba(255, 255, 255, 0.7);
}

.page-presale .ss-footer {
  background: #05080f;
}

.ps {
  width: min(1180px, calc(100% - 1.25rem));
  margin-inline: auto;
  padding: 0.75rem 0 3rem;
}

.ps-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--ps-line);
  background:
    radial-gradient(ellipse 55% 50% at 85% 20%, rgba(59, 158, 255, 0.28), transparent 60%),
    radial-gradient(ellipse 40% 45% at 10% 80%, rgba(34, 211, 238, 0.16), transparent 55%),
    linear-gradient(145deg, #0d1528 0%, #070b14 55%, #0a1220 100%);
  padding: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
  animation: ps-fade-up 0.7s ease both;
}

.ps-hero__glow {
  position: absolute;
  inset: -20% auto auto 40%;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle, rgba(59, 158, 255, 0.22), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.ps-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}

.ps-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .ps-hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.ps-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(59, 158, 255, 0.14);
  border: 1px solid rgba(59, 158, 255, 0.35);
  color: #9dd0ff;
  font-size: 0.8rem;
  font-weight: 700;
}

.ps-kicker--dark {
  background: rgba(11, 107, 203, 0.1);
  border-color: rgba(11, 107, 203, 0.25);
  color: #0b6bcb;
}

.ps-title {
  margin: 0 0 1rem;
}

.ps-title__en {
  display: block;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(120deg, #fff 20%, #8ec8ff 55%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ps-title__fa {
  display: block;
  margin-top: 0.65rem;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  font-weight: 700;
  color: rgba(244, 247, 251, 0.9);
}

.ps-lead {
  margin: 0 0 1.35rem;
  max-width: 36rem;
  color: var(--ps-muted);
  line-height: 1.85;
  font-size: 1.02rem;
}

.ps-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}

.ps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.ps-btn--primary {
  background: linear-gradient(135deg, #1a8cff, #0b6bcb);
  color: #fff;
  box-shadow: 0 10px 28px rgba(11, 107, 203, 0.35);
}

.ps-btn--primary:hover {
  transform: translateY(-1px);
  color: #fff;
  box-shadow: 0 14px 32px rgba(11, 107, 203, 0.45);
}

.ps-btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.ps-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.ps-btn--block {
  width: 100%;
}

.ps-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.ps-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
  color: rgba(244, 247, 251, 0.72);
  font-size: 0.9rem;
}

.ps-trust i {
  color: var(--ps-accent-2);
  margin-inline-end: 0.3rem;
}

.ps-hero__visual {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
}

.ps-device {
  position: relative;
  width: min(220px, 70%);
  aspect-ratio: 0.72;
  border-radius: 22px;
  background: linear-gradient(160deg, #1c273d, #0b1220);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: rotate(-8deg);
  animation: ps-float 5s ease-in-out infinite;
}

.ps-device__hinge {
  position: absolute;
  inset: 8% auto 8% 48%;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05));
}

.ps-device__screen {
  position: absolute;
  inset: 10%;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 20%, rgba(59, 158, 255, 0.45), transparent 45%),
    linear-gradient(160deg, #12203a, #071018);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ps-device__screen small {
  font-size: 0.7rem;
  font-weight: 600;
  color: #9dd0ff;
  letter-spacing: 0.18em;
}

.ps-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  animation: ps-pulse 4s ease-in-out infinite;
}

.ps-orb--1 {
  width: 120px;
  height: 120px;
  inset-inline-end: 8%;
  top: 12%;
  background: rgba(34, 211, 238, 0.22);
}

.ps-orb--2 {
  width: 90px;
  height: 90px;
  inset-inline-start: 10%;
  bottom: 10%;
  background: rgba(59, 158, 255, 0.2);
  animation-delay: 1.2s;
}

.ps-steps {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  animation: ps-fade-up 0.7s ease 0.12s both;
}

@media (min-width: 800px) {
  .ps-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ps-step {
  position: relative;
  overflow: hidden;
  padding: 1.2rem 1.25rem;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid var(--ps-line);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.ps-step:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 158, 255, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.ps-step__num {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ps-accent-2);
}

.ps-step h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: #fff;
}

.ps-step p {
  margin: 0;
  color: var(--ps-muted);
  line-height: 1.7;
  font-size: 0.94rem;
}

.ps-form-section {
  animation: ps-fade-up 0.7s ease 0.2s both;
}

.ps-form-card {
  border-radius: 22px;
  border: 1px solid rgba(12, 18, 34, 0.08);
  background: #fff;
  color: #0c1222;
  padding: clamp(1.25rem, 3vw, 1.85rem);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.ps-form-card__head h2 {
  margin: 0.35rem 0 0.45rem;
  font-size: 1.45rem;
}

.ps-form-card__head p:last-child {
  margin: 0 0 1.2rem;
  color: rgba(12, 18, 34, 0.62);
}

.ps-alert {
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: #eff6ff;
  color: #1e3a8a;
}

.ps-alert--success {
  background: #ecfdf5;
  color: #065f46;
}

.ps-alert--error {
  background: #fef2f2;
  color: #991b1b;
}

.ps-otp {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(12, 18, 34, 0.08);
}

.ps-otp__step {
  display: none;
  flex-direction: column;
  gap: 0.65rem;
}

.ps-otp__step.is-active {
  display: flex;
}

.ps-otp__resend {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ps-otp__msg {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.9rem;
}

.ps-otp__msg.is-ok { color: #15803d; }
.ps-otp__msg.is-err { color: #b91c1c; }

.ps-form.is-locked {
  opacity: 0.55;
  pointer-events: none;
}

.ps-field {
  margin-bottom: 1rem;
}

.ps-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.ps-input,
.ps-form .care-input,
.ps-form input,
.ps-form textarea {
  width: 100%;
  border: 1px solid rgba(12, 18, 34, 0.12);
  border-radius: 12px;
  background: #f5f7fb;
  padding: 0.8rem 0.95rem;
  color: #0c1222;
  font: inherit;
}

.ps-input:focus,
.ps-form input:focus,
.ps-form textarea:focus {
  outline: none;
  border-color: #0b6bcb;
  box-shadow: 0 0 0 3px rgba(11, 107, 203, 0.15);
}

.ps-deposit-note {
  margin: 0 0 1rem;
  color: rgba(12, 18, 34, 0.62);
  font-size: 0.9rem;
  line-height: 1.7;
}

.ps-form-card .ps-btn--ghost {
  color: #0c1222;
  border-color: rgba(12, 18, 34, 0.15);
  background: #fff;
}

.ps-success {
  text-align: center;
  padding: 3rem 1rem;
  color: #fff;
}

.ps-success .ps-title__en {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

@keyframes ps-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes ps-float {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(-6deg) translateY(-10px); }
}

@keyframes ps-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
