/* Shared styles for the public Sekai website served by Express. */
:root {
  color-scheme: dark;
  --bg: #06111f;
  --bg-soft: #0a1b2e;
  --surface: rgba(13, 31, 51, 0.82);
  --surface-strong: #102941;
  --line: rgba(140, 218, 255, 0.18);
  --text: #f5fbff;
  --muted: #a9bed0;
  --blue: #43b5ff;
  --blue-light: #a8e9ff;
  --blue-deep: #176dd8;
  --gold: #ffca58;
  --danger: #ff7777;
  --shadow: 0 24px 70px rgba(0, 15, 35, 0.4);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 16% -5%, rgba(67, 181, 255, 0.24), transparent 34rem),
    radial-gradient(circle at 92% 22%, rgba(93, 224, 217, 0.1), transparent 28rem),
    var(--bg);
  line-height: 1.6;
}

a {
  color: var(--blue-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #fff;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: #06111f;
  background: #fff;
  border-radius: 10px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: rgba(6, 17, 31, 0.78);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  width: min(1120px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

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

.brand-icon-frame {
  width: 48px;
  height: 48px;
  overflow: hidden;
  flex: 0 0 48px;
  border: 1px solid rgba(168, 233, 255, 0.34);
  border-radius: 14px;
  background: #eafcff;
  box-shadow: 0 8px 22px rgba(37, 145, 255, 0.16);
}

.brand-mark {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  color: var(--text);
  font-size: 1.24rem;
  font-weight: 850;
  letter-spacing: 0.015em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: 680px;
  padding: 92px 0 80px;
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 64px;
}

.hero-copy {
  position: relative;
}

.hero-logo {
  width: 132px;
  height: 132px;
  margin-bottom: 26px;
  border: 1px solid rgba(168, 233, 255, 0.34);
  border-radius: 30px;
  background: #eafcff;
  box-shadow:
    0 22px 60px rgba(30, 132, 255, 0.22),
    0 0 0 7px rgba(67, 181, 255, 0.06);
  object-fit: cover;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 7px 12px;
  color: var(--blue-light);
  border: 1px solid rgba(67, 181, 255, 0.3);
  border-radius: 999px;
  background: rgba(67, 181, 255, 0.09);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.1;
}

h1 {
  max-width: 790px;
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 7vw, 5.7rem);
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(115deg, var(--blue-light), var(--blue), #67e3db);
  background-clip: text;
}

.lead {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.25rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 21px;
  align-items: center;
  justify-content: center;
  color: #04101f;
  border: 1px solid var(--blue);
  border-radius: 15px;
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
  box-shadow: 0 12px 34px rgba(38, 142, 255, 0.24);
  font-weight: 850;
  text-decoration: none;
}

.button:hover {
  color: #04101f;
  filter: brightness(1.08);
}

.button.secondary {
  color: var(--text);
  border-color: var(--line);
  background: var(--surface);
  box-shadow: none;
}

.globe-card {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 42px;
  background:
    linear-gradient(155deg, rgba(104, 214, 255, 0.11), transparent 50%),
    var(--surface);
  box-shadow: var(--shadow);
}

.globe {
  position: absolute;
  right: -7%;
  bottom: -21%;
  width: 115%;
  aspect-ratio: 1;
  border: 2px solid rgba(168, 233, 255, 0.4);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 27%, rgba(255, 255, 255, 0.2), transparent 16%),
    radial-gradient(ellipse at 32% 43%, rgba(99, 218, 207, 0.36) 0 9%, transparent 9.5%),
    radial-gradient(ellipse at 61% 33%, rgba(99, 218, 207, 0.3) 0 14%, transparent 14.5%),
    radial-gradient(ellipse at 60% 64%, rgba(99, 218, 207, 0.28) 0 11%, transparent 11.5%),
    repeating-radial-gradient(circle, transparent 0 53px, rgba(168, 233, 255, 0.13) 54px 56px),
    linear-gradient(145deg, #174e82, #092542 68%);
  box-shadow:
    inset -30px -28px 70px rgba(0, 7, 22, 0.55),
    0 0 80px rgba(67, 181, 255, 0.17);
}

.globe::before,
.globe::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(168, 233, 255, 0.18);
  border-radius: 50%;
  inset: 9% 34%;
}

.globe::after {
  inset: 34% 7%;
}

.map-pin {
  position: absolute;
  z-index: 2;
  top: 30%;
  left: 26%;
  width: 58px;
  height: 58px;
  border: 8px solid rgba(6, 17, 31, 0.72);
  border-radius: 50% 50% 50% 8px;
  background: var(--blue);
  box-shadow: 0 0 0 2px var(--blue-light), 0 16px 34px rgba(0, 0, 0, 0.35);
  transform: rotate(-45deg);
}

.map-pin::after {
  position: absolute;
  width: 12px;
  height: 12px;
  content: "";
  border-radius: 50%;
  background: #fff;
  inset: 15px;
}

.floating-card {
  position: absolute;
  z-index: 3;
  top: 50px;
  left: 34px;
  padding: 17px 20px;
  border: 1px solid rgba(168, 233, 255, 0.2);
  border-radius: 18px;
  background: rgba(5, 17, 31, 0.82);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.floating-card strong {
  display: block;
  font-size: 1.6rem;
}

.floating-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  padding: 86px 0;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 36px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 18px 46px rgba(0, 10, 25, 0.17);
}

.card p,
.prose p,
.prose li {
  color: var(--muted);
}

.card p:last-child {
  margin-bottom: 0;
}

.icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  place-items: center;
  color: var(--blue-light);
  border-radius: 15px;
  background: rgba(67, 181, 255, 0.13);
  font-size: 1.35rem;
  font-weight: 900;
}

.cta {
  display: flex;
  margin: 42px 0 86px;
  padding: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid rgba(67, 181, 255, 0.28);
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(67, 181, 255, 0.16), rgba(20, 67, 117, 0.09)),
    var(--surface);
}

.cta h2,
.cta p {
  margin-bottom: 0;
}

.page-hero {
  padding: 86px 0 50px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
}

.prose {
  width: min(800px, 100%);
  padding: 64px 0 100px;
}

.prose section {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.prose h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.prose h3 {
  margin-top: 24px;
}

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

.notice {
  padding: 18px 20px;
  margin: 24px 0;
  color: var(--text);
  border: 1px solid rgba(255, 202, 88, 0.35);
  border-radius: 16px;
  background: rgba(255, 202, 88, 0.08);
}

.contact-card {
  display: flex;
  padding: 24px;
  margin: 30px 0;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(67, 181, 255, 0.28);
  border-radius: 22px;
  background: var(--surface);
}

.contact-card p {
  margin: 5px 0 0;
}

.faq {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

details {
  padding: 19px 21px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
}

summary {
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin-bottom: 0;
}

.placeholder {
  padding: 2px 6px;
  color: #fff3c3;
  border: 1px dashed rgba(255, 202, 88, 0.65);
  border-radius: 6px;
  background: rgba(255, 202, 88, 0.11);
  font-weight: 750;
}

.site-footer {
  padding: 42px 0;
  border-top: 1px solid var(--line);
  background: rgba(3, 10, 20, 0.45);
}

.footer-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
}

.footer-layout p {
  max-width: 480px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 9px 24px;
  align-content: start;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .nav {
    min-height: 68px;
  }

  .nav-links a:not(.nav-support) {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 62px;
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .globe-card {
    min-height: 400px;
  }

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

  .cta,
  .contact-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .shell,
  .nav {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    padding-top: 44px;
  }

  .section {
    padding: 64px 0;
  }

  .page-hero {
    padding-top: 58px;
  }

  .globe-card {
    min-height: 340px;
    border-radius: 28px;
  }

  .floating-card {
    top: 24px;
    left: 22px;
  }

  .card,
  .cta {
    padding: 22px;
  }

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

  .footer-links {
    grid-template-columns: 1fr;
  }
}

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