@font-face {
  font-family: "Fraunces";
  src: url("./assets/fonts/fraunces-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("./assets/fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/manrope-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/manrope-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/manrope-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #10233a;
  --ink-soft: #3a5166;
  --mist: #e8eef3;
  --stone: #f5f7f9;
  --paper: #fbfcfd;
  --harbour: #1a4a5c;
  --harbour-deep: #0f3140;
  --gold: #b08d57;
  --gold-soft: #d4bc8e;
  --line: rgba(16, 35, 58, 0.12);
  --shadow: 0 24px 60px rgba(16, 35, 58, 0.12);
  --radius: 4px;
  --font-display: "Fraunces", "Noto Serif SC", "Songti SC", "Hiragino Mincho ProN",
    "Noto Naskh Arabic", "Noto Serif Devanagari", Georgia, serif;
  --font-body: "Manrope", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
    "Hiragino Kaku Gothic ProN", "Noto Sans Arabic", "Noto Sans Devanagari",
    "Noto Sans Bengali", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(176, 141, 87, 0.14), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(26, 74, 92, 0.1), transparent 50%),
    var(--stone);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

#app {
  min-height: 100vh;
  min-height: 100dvh;
}

.container {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top);
  background: rgba(251, 252, 253, 0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(251, 252, 253, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand-mark svg {
  width: 28px;
  height: 28px;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 22px;
}

.nav-desktop a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-desktop a:hover,
.nav-desktop a:focus-visible {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-wrap {
  position: relative;
}

.lang-btn,
.menu-btn,
.btn {
  min-height: 44px;
  min-width: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 0 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.lang-btn:hover,
.menu-btn:hover,
.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(176, 141, 87, 0.45);
}

.lang-btn:focus-visible,
.menu-btn:focus-visible,
.btn:focus-visible,
.struct-tab:focus-visible,
.juri-tab:focus-visible,
.faq-q:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--harbour);
  border-color: var(--harbour);
  color: #f7fafb;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--harbour-deep);
  border-color: var(--harbour-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

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

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  width: min(280px, 78vw);
  max-height: 60vh;
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
}

.lang-menu.is-open {
  display: grid;
  gap: 2px;
}

.lang-option {
  border: 0;
  background: transparent;
  text-align: start;
  padding: 12px 14px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
  min-height: 44px;
}

.lang-option[aria-selected="true"],
.lang-option:hover {
  background: var(--mist);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 16px 18px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-nav a {
  text-decoration: none;
  padding: 12px 8px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 500;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: #f4f7f9;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 28s var(--ease) infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 24, 36, 0.22) 0%, rgba(10, 24, 36, 0.42) 38%, rgba(8, 18, 28, 0.88) 100%),
    linear-gradient(90deg, rgba(8, 20, 30, 0.62), transparent 58%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 96px 0 40px;
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.6vw, 3.8rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  max-width: 14ch;
  text-shadow: 0 8px 28px rgba(8, 18, 28, 0.35);
  animation: riseIn 0.7s var(--ease) both;
}

.hero h1 {
  margin: 0 0 12px;
  max-width: 20ch;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  font-weight: 400;
  line-height: 1.28;
  color: rgba(244, 247, 249, 0.96);
  text-shadow: 0 6px 20px rgba(8, 18, 28, 0.4);
  animation: riseIn 0.75s 0.05s var(--ease) both;
}

.hero-sub {
  margin: 0 0 22px;
  max-width: 40ch;
  color: rgba(232, 238, 243, 0.9);
  font-size: 1rem;
  text-shadow: 0 4px 16px rgba(8, 18, 28, 0.35);
  animation: riseIn 0.75s 0.1s var(--ease) both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: riseIn 1s 0.24s var(--ease) both;
}

.hero-cta .btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a140c;
}

.hero-cta .btn-primary:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: #1a140c;
}

.proof-bar {
  display: grid;
  gap: 10px;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 28px;
  animation: riseIn 0.75s 0.18s var(--ease) both;
}

.proof-bar span {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(232, 238, 243, 0.78);
}

section {
  padding: 88px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.why-grid {
  display: grid;
  gap: 28px;
}

.why-item {
  padding-block: 8px;
  border-top: 1px solid var(--line);
}

.why-item h3 {
  margin: 18px 0 8px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}

.why-item p {
  margin: 0;
  color: var(--ink-soft);
}

.compare-shell {
  display: grid;
  gap: 20px;
}

.juri-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  background: var(--mist);
  border-radius: 999px;
}

.juri-tab {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 600;
  cursor: pointer;
}

.juri-tab[aria-selected="true"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(16, 35, 58, 0.08);
}

.compare-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.compare-row {
  display: grid;
  gap: 8px;
  padding: 22px 22px;
  border-bottom: 1px solid var(--line);
}

.compare-row:last-child {
  border-bottom: 0;
}

.compare-row strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.compare-row p {
  margin: 0;
  color: var(--ink-soft);
}

.compare-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.structures {
  background:
    linear-gradient(180deg, transparent, rgba(26, 74, 92, 0.04)),
    var(--stone);
}

.struct-layout {
  display: grid;
  gap: 24px;
}

.struct-tabs {
  display: grid;
  gap: 8px;
}

.struct-tab {
  text-align: start;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  min-height: 56px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.struct-tab[aria-selected="true"] {
  border-color: var(--gold);
  transform: translateX(4px);
}

html[dir="rtl"] .struct-tab[aria-selected="true"] {
  transform: translateX(-4px);
}

.struct-tab .tag {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.struct-tab .name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.struct-detail {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  min-width: 0;
}

.struct-detail img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.struct-body {
  padding: 24px;
}

.struct-body h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.struct-body p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.struct-body ul {
  margin: 0;
  padding-inline-start: 1.1em;
  color: var(--ink);
}

.struct-body li + li {
  margin-top: 8px;
}

.planner {
  background: var(--harbour-deep);
  color: #eef4f6;
}

.planner .section-head p {
  color: rgba(232, 238, 243, 0.78);
}

.planner-grid {
  display: grid;
  gap: 24px;
}

.control {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.control label {
  font-weight: 500;
}

.control output {
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.control input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
  min-height: 44px;
}

.result-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 24px;
}

.result-card h3 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.meter {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.meter-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transition: width 0.5s var(--ease);
}

.planner-disclaimer {
  margin: 18px 0 0;
  font-size: 0.9rem;
  color: rgba(232, 238, 243, 0.65);
}

.journey-list {
  display: grid;
  gap: 0;
  counter-reset: step;
}

.journey-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}

.journey-item::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 600;
}

.journey-item h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.journey-item p {
  margin: 0;
  color: var(--ink-soft);
}

.gallery-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 360px;
}

.gallery-frame img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.gallery-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 28px;
  background: linear-gradient(transparent, rgba(8, 18, 28, 0.78));
  color: #f4f7f9;
}

.gallery-caption h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.gallery-caption p {
  margin: 0;
  max-width: 42ch;
  color: rgba(232, 238, 243, 0.86);
}

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

.faq-item {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 14px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: start;
  border: 0;
  background: transparent;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 600;
}

.faq-q span:last-child {
  color: var(--gold);
  font-size: 1.4rem;
  line-height: 1;
}

.faq-a {
  display: none;
  padding: 0 18px 18px;
  color: var(--ink-soft);
  margin: 0;
}

.faq-item.is-open .faq-a {
  display: block;
}

.consult {
  background:
    linear-gradient(135deg, rgba(26, 74, 92, 0.08), transparent 40%),
    var(--paper);
}

.consult-form {
  display: grid;
  gap: 16px;
  max-width: 720px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--stone);
  color: var(--ink);
  font-size: 16px;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-msg {
  min-height: 1.4em;
  margin: 0;
  color: var(--harbour);
  font-weight: 500;
}

.form-msg.is-error {
  color: #8a2f2f;
}

.privacy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.site-footer {
  padding: 36px 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0 0 8px;
}

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

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media img,
  .reveal,
  .hero-brand,
  .hero h1,
  .hero-sub,
  .hero-cta,
  .proof-bar {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (min-width: 768px) {
  .proof-bar {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .why-item {
    border-top: 0;
    border-inline-start: 1px solid var(--line);
    padding-inline-start: 22px;
    padding-block: 0;
  }

  .why-item:first-child {
    border-inline-start: 0;
    padding-inline-start: 0;
  }

  .struct-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .planner-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }

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

  .menu-btn {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    padding: 110px 0 56px;
  }

  .struct-detail img {
    height: 280px;
  }
}

@media (max-height: 760px) {
  .hero-content {
    padding: 88px 0 28px;
  }

  .hero-brand {
    font-size: clamp(1.9rem, 5vw, 3rem);
  }

  .proof-bar {
    margin-top: 18px;
  }
}
