:root {
  --bg: #050817;
  --surface: rgba(13, 20, 48, 0.72);
  --surface-strong: rgba(18, 24, 58, 0.92);
  --line: rgba(148, 167, 255, 0.2);
  --text: #f8f9ff;
  --muted: #aeb6d8;
  --cyan: #3de7ff;
  --violet: #8057ff;
  --pink: #f05cff;
  --green: #55e3a4;
  --warning: #ffd889;
  --shadow: 0 24px 80px rgba(11, 5, 49, 0.5);
  --radius: 28px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(47, 200, 255, 0.12), transparent 26rem),
    radial-gradient(circle at 88% 10%, rgba(221, 76, 255, 0.13), transparent 30rem),
    linear-gradient(180deg, #060918 0%, #050817 45%, #080818 100%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

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

.skip-link:focus { transform: none; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(132, 155, 255, 0.12);
  background: rgba(5, 8, 23, 0.74);
  backdrop-filter: blur(20px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(119, 104, 255, 0.45));
}

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

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

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

.nav-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(150, 128, 255, 0.55);
  border-radius: 15px;
  text-decoration: none;
  font-weight: 750;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.nav-button,
.button.primary {
  background: linear-gradient(120deg, #3e79ff, #7e4bff 52%, #ca52ff);
  box-shadow: 0 12px 32px rgba(87, 73, 255, 0.3);
}

.button.secondary {
  background: rgba(10, 15, 39, 0.74);
  color: var(--text);
}

.button:hover,
.button:focus-visible,
.nav-button:hover,
.nav-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(103, 81, 255, 0.36);
  border-color: rgba(197, 177, 255, 0.9);
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 8, 23, 0.97) 0%, rgba(5, 8, 23, 0.78) 44%, rgba(5, 8, 23, 0.2) 77%),
    linear-gradient(0deg, var(--bg) 0%, transparent 28%),
    url("pinam-splash-background.png") center 30% / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -170px;
  top: 40px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 96, 255, 0.2), transparent 68%);
  filter: blur(8px);
}

.hero-grid {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.65fr);
  align-items: center;
  gap: 60px;
  padding: 76px 0 108px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: #cbd4ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
}

h1, h2, h3 { line-height: 1.12; }
h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(52px, 8vw, 94px);
  letter-spacing: -0.055em;
}

.gradient-text {
  background: linear-gradient(100deg, #ffffff 6%, #90dfff 40%, #a982ff 68%, #ff9af4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 660px;
  margin: 25px 0 0;
  color: #c7cdea;
  font-size: clamp(18px, 2.1vw, 23px);
}

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

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
  color: #9fa8ce;
  font-size: 13px;
}

.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(85, 227, 164, 0.6);
}

.hero-card {
  justify-self: end;
  width: min(390px, 100%);
  padding: 30px;
  border: 1px solid rgba(167, 181, 255, 0.24);
  border-radius: 36px;
  background: linear-gradient(145deg, rgba(20, 27, 66, 0.84), rgba(10, 14, 39, 0.6));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-mark {
  width: 170px;
  margin: 0 auto 18px;
  filter: drop-shadow(0 0 28px rgba(107, 100, 255, 0.52));
  animation: float 5.5s ease-in-out infinite;
}

.hero-card h2 { margin: 0; text-align: center; font-size: 36px; }
.hero-card p { margin: 10px 0 0; text-align: center; color: var(--muted); }

.map-status {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 24px;
}

.map-status div {
  padding: 14px 9px;
  border: 1px solid rgba(158, 164, 255, 0.15);
  border-radius: 16px;
  background: rgba(6, 10, 28, 0.66);
  text-align: center;
}

.map-status strong { display: block; font-size: 16px; }
.map-status small { color: var(--muted); }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-11px) rotate(1deg); }
}

.section { padding: 92px 0; }
.section.compact { padding: 72px 0; }
.section-heading { max-width: 720px; margin-bottom: 38px; }
.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.04em;
}
.section-heading p { margin: 16px 0 0; color: var(--muted); font-size: 18px; }

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

.card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(18, 24, 58, 0.8), rgba(8, 12, 33, 0.68));
  box-shadow: 0 18px 54px rgba(2, 5, 19, 0.25);
}

.card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -60px;
  top: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 99, 255, 0.28), transparent 70%);
}

.number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 30px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(61, 231, 255, 0.18), rgba(167, 75, 255, 0.3));
  color: #dffbff;
  font-weight: 900;
}

.card h3 { margin: 0; font-size: 23px; }
.card p { margin: 12px 0 0; color: var(--muted); }

.safety-panel {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 48px;
  align-items: center;
  padding: 46px;
  border: 1px solid rgba(125, 144, 255, 0.23);
  border-radius: 36px;
  background:
    radial-gradient(circle at 5% 0%, rgba(62, 175, 255, 0.14), transparent 38%),
    radial-gradient(circle at 100% 100%, rgba(211, 81, 255, 0.14), transparent 35%),
    rgba(12, 17, 44, 0.82);
}

.safety-panel h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); letter-spacing: -0.04em; }
.safety-panel > div > p { color: var(--muted); }
.check-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.check-list li {
  position: relative;
  padding: 15px 18px 15px 48px;
  border: 1px solid rgba(142, 157, 255, 0.16);
  border-radius: 17px;
  background: rgba(4, 8, 27, 0.45);
  color: #dce1fa;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 17px;
  top: 13px;
  color: var(--green);
  font-weight: 900;
}

.legal-cards a {
  display: block;
  height: 100%;
  text-decoration: none;
}
.legal-cards a:hover h3,
.legal-cards a:focus-visible h3 { color: #b6dfff; }
.card-link { display: inline-block; margin-top: 20px; color: #bdc8ff; font-weight: 800; }

.cta {
  padding: 42px;
  border: 1px solid rgba(145, 156, 255, 0.25);
  border-radius: 34px;
  background: linear-gradient(120deg, rgba(49, 104, 255, 0.23), rgba(129, 70, 255, 0.28), rgba(229, 74, 255, 0.18));
  text-align: center;
}
.cta h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); }
.cta p { max-width: 700px; margin: 15px auto 25px; color: #c8ceed; }

.site-footer {
  padding: 48px 0 34px;
  border-top: 1px solid rgba(139, 156, 255, 0.13);
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
}
.footer-grid h3 { color: var(--text); margin: 0 0 14px; font-size: 16px; }
.footer-grid p { margin: 6px 0; font-size: 14px; }
.footer-grid a { color: #c4cbef; text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(139, 156, 255, 0.11);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #818aaa;
  font-size: 13px;
}

.page-hero { padding: 76px 0 46px; }
.page-hero h1 { max-width: 900px; font-size: clamp(42px, 7vw, 74px); }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 19px; }
.badge {
  display: inline-flex;
  padding: 6px 11px;
  border: 1px solid rgba(255, 216, 137, 0.35);
  border-radius: 999px;
  background: rgba(255, 188, 71, 0.08);
  color: var(--warning);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  padding-bottom: 90px;
}
.legal-nav {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(10, 15, 40, 0.72);
}
.legal-nav a {
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.legal-nav a:hover,
.legal-nav a.active { background: rgba(108, 92, 255, 0.14); color: var(--text); }
.legal-copy {
  max-width: 820px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(9, 13, 35, 0.74);
}
.legal-copy.wide-copy { max-width: none; margin-top: 24px; }
.legal-copy section + section { margin-top: 42px; }
.legal-copy h2 { margin: 0 0 13px; font-size: 28px; }
.legal-copy h3 { margin: 28px 0 10px; font-size: 20px; }
.legal-copy p { color: #c3cae7; }
.legal-copy li { margin: 8px 0; color: #c3cae7; }
.legal-copy a { color: #9edcff; }
.notice {
  padding: 16px 18px;
  border-left: 3px solid var(--warning);
  border-radius: 4px 14px 14px 4px;
  background: rgba(255, 197, 92, 0.08);
  color: #f1ddba;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.contact-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(12, 18, 46, 0.7);
}
.contact-card strong { display: block; margin-bottom: 8px; }
.contact-card a { color: #9edcff; word-break: break-word; }

@media (max-width: 900px) {
  .nav a:not(.nav-button) { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 12px; padding-top: 60px; }
  .hero-card { justify-self: start; margin-top: 14px; }
  .grid-3, .contact-grid { grid-template-columns: 1fr; }
  .safety-panel { grid-template-columns: 1fr; padding: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .shell { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 68px; }
  .nav-button { min-height: 40px; padding-inline: 14px; }
  .hero { min-height: 0; }
  .hero::before { background-position: 62% 20%; }
  .hero-grid { min-height: 0; padding: 72px 0 86px; }
  h1 { font-size: clamp(48px, 17vw, 68px); }
  .hero-copy { font-size: 18px; }
  .hero-card { padding: 23px; border-radius: 28px; }
  .hero-mark { width: 140px; }
  .section { padding: 68px 0; }
  .card, .legal-copy { padding: 24px; }
  .safety-panel, .cta { padding: 25px; border-radius: 27px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .legal-nav { grid-template-columns: 1fr; }
  .page-hero { padding-top: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
