:root {
  --bg: #050a14;
  --bg-soft: #0b1326;
  --text: #ecf2ff;
  --muted: #95a3c4;
  --line: rgba(134, 167, 255, 0.18);
  --brand: #6de0ff;
  --brand-2: #4b7dff;
  --card: rgba(9, 19, 42, 0.62);
  --radius: 18px;
  --shadow: 0 20px 60px rgba(3, 11, 31, 0.65);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", "Noto Sans", "Noto Sans Arabic", "Noto Sans SC", "Noto Sans KR", "Noto Sans JP", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1000px 500px at 15% -5%, rgba(61, 104, 255, 0.25), transparent 60%),
    radial-gradient(900px 460px at 90% 12%, rgba(87, 228, 255, 0.19), transparent 65%),
    linear-gradient(160deg, #020611 0%, #070f21 45%, #050912 100%);
  overflow-x: hidden;
}

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .hero-actions {
  justify-content: flex-start;
}

.noise-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(transparent 97%, rgba(255, 255, 255, 0.06) 100%),
    linear-gradient(90deg, transparent 97%, rgba(255, 255, 255, 0.04) 100%);
  background-size: 5px 5px, 5px 5px;
  z-index: -3;
}

.orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(30px);
  pointer-events: none;
  z-index: -2;
  animation: drift 9s ease-in-out infinite alternate;
}

.orb-a {
  width: 340px;
  height: 340px;
  top: 12%;
  left: -110px;
  background: rgba(78, 165, 255, 0.26);
}

.orb-b {
  width: 300px;
  height: 300px;
  bottom: 8%;
  right: -90px;
  animation-delay: 1.5s;
  background: rgba(76, 234, 255, 0.22);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  background: rgba(4, 9, 20, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(133, 168, 255, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background:
    conic-gradient(from 180deg at 50% 50%, #5ee4ff 0deg, #477aff 110deg, #69d5ff 240deg, #5ee4ff 360deg);
  box-shadow: 0 0 30px rgba(88, 213, 255, 0.4);
}

.brand-text em {
  font-style: normal;
  color: var(--brand);
  margin-left: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: rgba(235, 243, 255, 0.88);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--brand);
}

.nav-cta {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(132, 188, 255, 0.45);
  background: rgba(17, 33, 70, 0.5);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(132, 188, 255, 0.32);
  background: rgba(16, 29, 60, 0.58);
}

.lang-switch-icon {
  width: 18px;
  height: 18px;
  color: #9bb3e0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-switch-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#langSelect {
  width: 140px;
  max-width: 32vw;
  border: none;
  background: transparent;
  color: #e7f1ff;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

#langSelect:focus {
  outline: none;
}

#langSelect:disabled {
  opacity: 0.65;
  cursor: wait;
}

#langSelect option {
  color: #091225;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(136, 171, 255, 0.35);
  border-radius: 12px;
  background: rgba(11, 20, 44, 0.8);
  padding: 0;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 6px auto;
  background: #e6eeff;
}

main {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.hero {
  position: relative;
  padding: 92px 0 66px;
}

.hero-kicker {
  color: var(--brand);
  letter-spacing: 0.2em;
  font-size: 12px;
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 8vw, 5rem);
  line-height: 1.08;
  max-width: 900px;
}

.hero-line,
.hero-highlight {
  display: block;
}

.hero-highlight {
  background: linear-gradient(90deg, #c8deff 0%, #8ce3ff 45%, #6c88ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  max-width: 760px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.8;
}

.hero-story {
  margin-top: 16px;
  max-width: 760px;
  color: #bfd4ff;
  line-height: 1.8;
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  text-decoration: none;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.btn-primary {
  color: #041023;
  background: linear-gradient(90deg, #66defe 0%, #6b88ff 100%);
  box-shadow: 0 12px 30px rgba(95, 174, 255, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(95, 174, 255, 0.56);
}

.btn-ghost {
  border-color: rgba(132, 169, 255, 0.35);
  color: #d9e5ff;
  background: rgba(18, 30, 59, 0.45);
}

.btn-ghost:hover {
  border-color: rgba(132, 169, 255, 0.65);
  background: rgba(18, 30, 59, 0.7);
}

.hero-grid {
  position: absolute;
  right: -40px;
  top: 38px;
  width: min(420px, 45vw);
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(rgba(130, 160, 245, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 160, 245, 0.2) 1px, transparent 1px);
  background-size: 26px 26px;
  border: 1px solid rgba(124, 162, 255, 0.25);
  border-radius: 24px;
  transform: rotate(6deg);
  mask-image: radial-gradient(circle at 40% 40%, #000 30%, transparent 78%);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 26px 0 70px;
}

.stats article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
}

.stats h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #9de9ff;
}

.stats p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.stats-note {
  margin: -48px 0 30px;
  color: #8ea6cf;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.section {
  padding: 54px 0;
}

.section-head {
  margin-bottom: 24px;
}

.label {
  margin: 0 0 10px;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: #88d8ff;
}

.section h3 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.story {
  padding-top: 26px;
}

.story-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.story-card {
  padding: 24px;
  background: linear-gradient(165deg, rgba(16, 31, 66, 0.8), rgba(8, 17, 37, 0.72));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.story-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.story-card p + p {
  margin-top: 12px;
}

.story-quote {
  margin: 0;
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(120, 173, 255, 0.36);
  background:
    linear-gradient(160deg, rgba(16, 31, 63, 0.88), rgba(11, 21, 43, 0.74));
  color: #d8e8ff;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  line-height: 1.6;
  box-shadow: var(--shadow);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.metric-card {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(132, 170, 255, 0.24);
  background:
    linear-gradient(160deg, rgba(10, 21, 44, 0.84), rgba(9, 16, 33, 0.8));
}

.metric-card h4 {
  margin: 0;
  font-size: 1.04rem;
  color: #bfe3ff;
}

.metric-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.blueprint-steps {
  position: relative;
  display: grid;
  gap: 12px;
  padding-left: 22px;
}

.blueprint-steps::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 6px;
  width: 2px;
  background: linear-gradient(180deg, rgba(120, 196, 255, 0.8), rgba(120, 196, 255, 0.08));
}

.blueprint-step {
  position: relative;
  padding: 18px 18px 18px 22px;
  border-radius: 14px;
  border: 1px solid rgba(125, 166, 255, 0.26);
  background: rgba(8, 18, 38, 0.74);
}

.blueprint-step::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -21px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid #88dcff;
  background: #0b1a34;
}

.blueprint-step h4 {
  margin: 0;
  color: #cae4ff;
  font-size: 1rem;
}

.blueprint-step p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.case-card {
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(130, 170, 255, 0.24);
  background: rgba(9, 18, 38, 0.78);
}

.case-card h4 {
  margin: 0;
  color: #b4dbff;
  font-size: 1.05rem;
}

.case-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid rgba(130, 170, 255, 0.26);
  border-radius: 12px;
  background: rgba(10, 21, 44, 0.72);
  padding: 12px 14px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: #c6e0ff;
}

.faq-list p {
  margin: 10px 0 2px;
  color: var(--muted);
  line-height: 1.7;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  padding: 24px;
  background: linear-gradient(170deg, rgba(19, 36, 73, 0.78), rgba(10, 21, 45, 0.72));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card h4 {
  margin: 0;
  font-size: 1.12rem;
}

.card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.product-list {
  display: grid;
  gap: 14px;
}

.product-list article {
  padding: 20px 22px;
  background: rgba(10, 20, 42, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  gap: 18px;
}

.product-list h4 {
  margin: 0;
  font-size: 1.14rem;
  color: #9fd4ff;
}

.product-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.scenario-grid article {
  padding: 22px;
  border-radius: 16px;
  border: 1px solid rgba(132, 170, 255, 0.24);
  background: rgba(7, 17, 35, 0.78);
}

.scenario-grid h4 {
  margin: 0;
}

.scenario-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.about p {
  max-width: 880px;
  color: var(--muted);
  line-height: 1.8;
  margin: 14px 0 0;
}

.about-manifesto {
  margin-top: 20px;
  color: #9ce8ff;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
}

.contact {
  margin: 34px 0 72px;
  padding: 36px;
  background:
    linear-gradient(145deg, rgba(12, 24, 52, 0.9), rgba(16, 33, 67, 0.72));
  border: 1px solid rgba(127, 167, 255, 0.33);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.contact h3 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.contact p {
  color: var(--muted);
  margin: 12px 0 20px;
}

.site-footer {
  padding: 22px 4vw 44px;
  color: #8d9dbd;
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.footer-motto {
  margin-top: 8px !important;
  color: #9ec7ff;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(18px, -12px);
  }
}

@media (max-width: 980px) {
  .hero-grid {
    display: none;
  }

  .story-layout {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .product-list article {
    grid-template-columns: 1fr;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .scenario-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu-btn {
    display: inline-block;
  }

  .nav {
    position: absolute;
    top: 76px;
    left: 4vw;
    right: 4vw;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: rgba(6, 13, 28, 0.95);
    border: 1px solid rgba(127, 165, 255, 0.28);
    border-radius: 14px;
  }

  .nav.open {
    display: flex;
  }

  .lang-switch {
    width: 100%;
    justify-content: space-between;
    border-radius: 10px;
  }

  #langSelect {
    width: 55%;
    max-width: none;
  }

  .hero {
    padding-top: 62px;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .contact {
    padding: 28px;
  }
}
