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

:root {
  --bg: #06060a;
  --yellow: #facf43;
  --yellow2: #f4b035;
  --red: #ec3a43;
  --orange: #ff8c1a;
  --w: #f2f0eb;
  --muted: #8a867c;
  --card: #0c0c10;
  --font: 'Montserrat', "Noto Sans SC", "Noto Sans JP", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", system-ui, sans-serif;
}

html { height: 100%; }
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--w);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
body.home {
  height: 100%;
  overflow: hidden;
}
body.legal {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
}
html[dir="rtl"] body { direction: rtl; }

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 55% at 50% 40%, transparent 12%, rgba(0,0,0,.75) 100%),
    radial-gradient(ellipse 30% 25% at 50% 38%, rgba(250,207,67,.035), transparent 70%);
}

/* HEADER */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  background: linear-gradient(to bottom, rgba(6,6,10,.97) 45%, transparent);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.brand {
  display: block;
  text-decoration: none;
  line-height: 0;
}
.brand img {
  height: 48px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 12px rgba(250,207,67,.3));
}

/* LANG */
.lang { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(250,207,67,.2);
  color: var(--w);
  font-family: var(--font);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .4rem .65rem;
  border-radius: 8px;
  cursor: pointer;
  transition: .2s;
}
.lang-btn:hover, .lang.open .lang-btn {
  background: rgba(250,207,67,.12);
  border-color: rgba(250,207,67,.45);
  color: var(--yellow);
}
.lang-btn svg { width: 9px; height: 9px; opacity: .7; transition: transform .2s; }
.lang.open .lang-btn svg { transform: rotate(180deg); }
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 148px;
  background: #121216;
  border: 1px solid rgba(250,207,67,.18);
  border-radius: 10px;
  padding: .3rem;
  box-shadow: 0 14px 40px rgba(0,0,0,.6);
  z-index: 90;
  max-height: 50vh;
  overflow-y: auto;
}
.lang.open .lang-menu { display: block; animation: dropIn .15s ease-out; }
.lang-menu a {
  display: block;
  padding: .45rem .65rem;
  color: var(--muted);
  text-decoration: none;
  font-size: .76rem;
  font-weight: 500;
  border-radius: 6px;
  transition: .15s;
}
.lang-menu a:hover { background: rgba(250,207,67,.1); color: var(--yellow); }
.lang-menu a.active { color: var(--yellow); background: rgba(250,207,67,.08); }

/* STAGE */
.stage {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.2rem 5.5rem;
}

.hero { margin-bottom: .8rem; animation: rise .9s cubic-bezier(.16,1,.3,1) both; }
.hero h1 { font-weight: 900; line-height: .94; letter-spacing: -0.03em; }
.hero .line1, .hero .line2 {
  display: block;
  font-size: clamp(2.4rem, 10vw, 5.5rem);
}
.hero .line1 { color: var(--w); }
.hero .line2 {
  background: linear-gradient(110deg, var(--yellow) 0%, var(--orange) 45%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 36px rgba(255,140,0,.28));
}

.tagline {
  font-size: .84rem;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.55;
  margin-bottom: 1.8rem;
  animation: rise .9s cubic-bezier(.16,1,.3,1) .1s both;
}

/* FORM */
.form {
  width: min(380px, 92vw);
  animation: rise .9s cubic-bezier(.16,1,.3,1) .2s both;
}
.fields { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .65rem; }
.field {
  border-radius: 11px;
  padding: 1.5px;
  background: linear-gradient(120deg, var(--yellow), var(--orange), var(--red), var(--yellow));
  background-size: 300% 300%;
  animation: shift 7s ease infinite;
}
.field:focus-within { filter: brightness(1.12); animation-duration: 2s; }
.field input {
  width: 100%;
  background: var(--card);
  border: none;
  border-radius: 10px;
  padding: .88rem 1rem;
  color: var(--w);
  font-size: .9rem;
  font-family: var(--font);
  font-weight: 500;
  outline: none;
}
.field input::placeholder { color: var(--muted); font-weight: 400; }

.cta {
  width: 100%;
  border: none;
  border-radius: 11px;
  padding: .88rem;
  font-family: var(--font);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  color: #0a0a0c;
  background: linear-gradient(135deg, var(--yellow), var(--red));
  box-shadow: 0 4px 24px rgba(236,58,67,.3);
  transition: .2s;
}
.cta:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 8px 32px rgba(236,58,67,.4); }
.cta:disabled { opacity: .5; transform: none; cursor: default; }

.ack { display: none; flex-direction: column; align-items: center; gap: .3rem; animation: rise .45s ease-out; }
.ack.show { display: flex; }
.ack-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--yellow);
  margin-bottom: .35rem;
  animation: ping 1.8s ease-out infinite;
}
.ack p { font-size: .92rem; font-weight: 600; }
.ack span { font-size: .68rem; color: var(--muted); }

/* FOOTER — clean 2 rows */
.foot {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 40;
  padding: .55rem 1rem .85rem;
  background: linear-gradient(to top, rgba(6,6,10,.98) 55%, transparent);
  text-align: center;
  pointer-events: none;
}
.foot a { pointer-events: auto; color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--yellow); }

.sectors {
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .75;
  margin-bottom: .35rem;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .2rem .5rem;
  font-size: .58rem;
  color: var(--muted);
  font-weight: 500;
}
.foot-row .st {
  color: var(--yellow);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.foot-row .sep { opacity: .35; }
.foot-row .by strong { color: var(--yellow2); font-weight: 600; }

/* LEGAL / PRIVACY */
.legal-wrap {
  position: relative;
  z-index: 10;
  max-width: 680px;
  margin: 0 auto;
  padding: 5.5rem 1.4rem 4rem;
}
.legal-wrap h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: .75rem;
  letter-spacing: -0.02em;
}
.legal-wrap h2 {
  font-size: .95rem;
  font-weight: 700;
  margin: 1.5rem 0 .45rem;
  color: var(--yellow);
}
.legal-wrap p, .legal-wrap li {
  font-size: .86rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: .65rem;
}
.legal-wrap ul { padding-left: 1.15rem; margin-bottom: .65rem; }
.legal-wrap a { color: var(--yellow); }
.legal-wrap .back {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: .85rem;
  font-weight: 600;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(250,207,67,.45); }
  70% { box-shadow: 0 0 0 12px rgba(250,207,67,0); }
  100% { box-shadow: 0 0 0 0 rgba(250,207,67,0); }
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .site-header { padding: .8rem 1rem; }
  .brand img { height: 38px; }
  .stage { padding: 4.5rem 1rem 5.2rem; }
  .hero .line1, .hero .line2 { font-size: clamp(2rem, 11vw, 3.2rem); }
  .foot-row { font-size: .52rem; gap: .15rem .35rem; }
  .sectors { font-size: .5rem; }
}
@media (max-height: 680px) {
  .hero .line1, .hero .line2 { font-size: clamp(1.7rem, 8vw, 2.8rem); }
  .tagline { margin-bottom: 1.1rem; font-size: .78rem; }
}
