:root {
  --ink: #102a2a;
  --forest: #173f3e;
  --mint: #b9f7df;
  --paper: #f7f8f2;
  --line: rgba(16, 42, 42, .13);
  --ease: cubic-bezier(.2, .75, .2, 1);
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body {
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
::selection { color: var(--forest); background: var(--mint); }
:focus-visible { outline: 3px solid #4fae91; outline-offset: 4px; }

.skip-link { position: fixed; top: 10px; left: 10px; z-index: 20; padding: 10px 14px; color: white; background: var(--forest); border-radius: 9px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.gateway {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: 28px max(30px, calc((100vw - 1280px) / 2));
  background: var(--paper);
}
.gateway-grid { position: absolute; inset: 0; background: linear-gradient(rgba(16,42,42,.035) 1px,transparent 1px), linear-gradient(90deg,rgba(16,42,42,.035) 1px,transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom, black, transparent 85%); }
.gateway-glow { position: absolute; width: 720px; height: 720px; border-radius: 50%; pointer-events: none; }
.gateway-glow-one { top: -360px; right: -220px; background: radial-gradient(circle, rgba(122, 228, 190, .42), transparent 68%); }
.gateway-glow-two { bottom: -440px; left: -300px; background: radial-gradient(circle, rgba(117, 192, 238, .25), transparent 68%); }

.gateway-nav { position: relative; z-index: 2; display: flex; max-width: 1280px; margin: auto; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; width: 44px; height: 44px; place-items: center; color: var(--mint); background: var(--forest); border-radius: 14px; box-shadow: 0 12px 28px rgba(23,63,62,.18); }
.brand-mark svg { width: 25px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-size: 16px; letter-spacing: -.025em; }
.brand-copy small { margin-top: 5px; color: #70827f; font-size: 8px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.back-link { display: inline-flex; min-height: 42px; align-items: center; gap: 8px; padding: 10px 15px; color: #536a67; background: rgba(255,255,255,.64); border: 1px solid var(--line); border-radius: 100px; font-size: 12px; font-weight: 750; backdrop-filter: blur(12px); transition: color .25s, background .25s, transform .25s var(--ease); }
.back-link:hover { color: var(--ink); background: white; transform: translateY(-2px); }
.back-link svg { width: 17px; }

.gateway-content { position: relative; z-index: 2; max-width: 1280px; margin: clamp(55px, 7vh, 90px) auto 0; }
.gateway-heading { max-width: 820px; opacity: 0; transform: translateY(18px); animation: reveal .75s var(--ease) .1s forwards; }
.gateway-kicker { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; color: #47706c; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 100px; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.gateway-kicker span { width: 7px; height: 7px; background: #52ad8a; border-radius: 50%; box-shadow: 0 0 0 5px rgba(82,173,138,.12); }
.gateway-heading h1 { margin: 21px 0 15px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(50px, 6vw, 82px); font-weight: 400; line-height: .97; letter-spacing: -.058em; }
.gateway-heading h1 em { color: #397469; font-weight: 400; }
.gateway-heading p { max-width: 650px; margin: 0; color: #566d6a; font-size: 16px; line-height: 1.6; }

.choice-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(38px, 6vh, 64px); }
.choice-card { --x: 50%; --y: 50%; position: relative; display: flex; min-height: 330px; flex-direction: column; overflow: hidden; padding: 24px; background: rgba(255,255,255,.8); border: 1px solid var(--line); border-radius: 25px; box-shadow: 0 18px 55px rgba(17,50,49,.07); opacity: 0; transform: translateY(22px); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; animation: reveal .7s var(--ease) forwards; }
.choice-card:nth-child(1) { animation-delay: .25s; }
.choice-card:nth-child(2) { animation-delay: .34s; }
.choice-card:nth-child(3) { animation-delay: .43s; }
.choice-card::before { content: ""; position: absolute; inset: 0; opacity: 0; background: radial-gradient(300px circle at var(--x) var(--y), var(--card-glow), transparent 70%); transition: opacity .3s; }
.choice-card:hover { transform: translateY(-9px); border-color: var(--card-border); box-shadow: 0 28px 72px rgba(17,50,49,.14); }
.choice-card:hover::before { opacity: 1; }
.choice-telegram { --card-glow: rgba(72, 166, 232, .2); --card-border: rgba(46, 145, 210, .35); }
.choice-max { --card-glow: rgba(125, 102, 239, .19); --card-border: rgba(111, 88, 220, .34); }
.choice-web { --card-glow: rgba(88, 194, 154, .22); --card-border: rgba(62, 157, 121, .35); }
.choice-card-top, .choice-copy, .choice-action { position: relative; z-index: 2; }
.choice-card-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.choice-icon { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 17px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.42); }
.choice-icon svg { width: 27px; }
.telegram-icon { color: white; background: linear-gradient(145deg, #53b5ed, #198bd2); }
.telegram-icon svg { fill: currentColor; stroke: none; }
.max-icon { color: white; background: linear-gradient(145deg, #8977f5, #5443c5); }
.web-icon { color: white; background: linear-gradient(145deg, #65c99e, #28745b); }
.choice-tag { padding: 6px 9px; color: #667a77; background: rgba(255,255,255,.68); border: 1px solid var(--line); border-radius: 100px; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.choice-copy { margin-top: 42px; }
.choice-number { color: #96a5a2; font-family: Georgia, serif; font-size: 17px; font-style: italic; }
.choice-copy h2 { margin: 6px 0 9px; font-family: Georgia, "Times New Roman", serif; font-size: 29px; font-weight: 400; line-height: 1.06; letter-spacing: -.035em; }
.choice-copy p { max-width: 310px; margin: 0; color: #637774; font-size: 12px; line-height: 1.55; }
.choice-action { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: auto; padding-top: 27px; color: #334f4c; font-size: 11px; font-weight: 800; }
.choice-action i { display: grid; width: 34px; height: 34px; place-items: center; color: white; background: var(--ink); border-radius: 50%; font-style: normal; transition: transform .25s var(--ease); }
.choice-card:hover .choice-action i { transform: translateX(4px); }
.choice-action svg { width: 17px; }
.card-shine { position: absolute; top: -100px; right: -100px; width: 230px; height: 230px; background: radial-gradient(circle, rgba(255,255,255,.75), transparent 68%); border-radius: 50%; pointer-events: none; }

.gateway-footer { display: flex; min-height: 50px; align-items: center; justify-content: space-between; gap: 25px; margin-top: 22px; opacity: 0; animation: reveal .7s var(--ease) .56s forwards; }
.gateway-footer p { display: flex; align-items: center; gap: 9px; margin: 0; color: #6e817e; font-size: 10px; }
.gateway-footer p span { display: grid; width: 20px; height: 20px; place-items: center; color: #4e746d; border: 1px solid #91a5a1; border-radius: 50%; font-family: Georgia, serif; font-style: italic; }
.gateway-status { color: #397469; font-size: 10px; font-weight: 750; }
.gateway-signature { position: absolute; right: 28px; bottom: 18px; color: rgba(16,42,42,.27); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; writing-mode: vertical-rl; }

@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 860px) {
  .gateway { padding: 22px 18px 45px; overflow-y: auto; }
  .gateway-content { margin-top: 55px; }
  .gateway-heading { text-align: center; margin-inline: auto; }
  .gateway-heading p { margin-inline: auto; }
  .choice-cards { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .choice-card { min-height: 245px; }
  .choice-copy { margin-top: 28px; }
  .choice-copy p { max-width: 440px; }
  .gateway-footer { max-width: 620px; margin-inline: auto; align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .gateway { padding-inline: 12px; }
  .brand-mark { width: 40px; height: 40px; }
  .back-link { width: 43px; padding: 0; justify-content: center; }
  .back-link span, .back-link { font-size: 0; }
  .back-link svg { width: 19px; }
  .gateway-content { margin-top: 48px; }
  .gateway-heading h1 { font-size: clamp(45px, 13vw, 60px); }
  .gateway-heading p { font-size: 14px; }
  .choice-cards { margin-top: 34px; }
  .choice-card { min-height: 250px; padding: 20px; border-radius: 21px; }
  .choice-copy h2 { font-size: 27px; }
  .gateway-signature { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .gateway-heading, .choice-card, .gateway-footer { opacity: 1; transform: none; }
}
