:root {
  --bg-night: #09111c;
  --bg-ink: #101c2c;
  --bg-panel: rgba(10, 19, 32, 0.72);
  --line: rgba(203, 217, 255, 0.16);
  --line-strong: rgba(241, 248, 255, 0.3);
  --text: #edf4ff;
  --muted: #9fb1ca;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  --hero-glow: radial-gradient(circle at top, rgba(119, 185, 255, 0.28), transparent 48%);
  --surface: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-body: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(56, 138, 255, 0.24), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(255, 163, 87, 0.18), transparent 24%),
    radial-gradient(circle at 76% 78%, rgba(88, 226, 193, 0.18), transparent 23%),
    linear-gradient(180deg, #050b12 0%, var(--bg-night) 48%, #060e17 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.hero,
.portal-section {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface), rgba(7, 13, 22, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  padding: 42px;
  animation: rise-in 680ms ease both;
}

.hero::after,
.portal-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-glow);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: #a9d0ff;
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
}

.hero-text,
.section-text,
.portal-description,
.portal-url {
  color: var(--muted);
  line-height: 1.65;
}

.hero-text {
  max-width: 62ch;
  margin: 18px 0 0;
  font-size: 1.05rem;
}

.hero-panel {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(9, 18, 30, 0.82);
}

.hero-panel strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  color: #fbfdff;
}

.panel-label {
  color: #8fa8c8;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portal-section {
  margin-top: 28px;
  padding: 34px;
}

.section-heading {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 26px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-text {
  max-width: 44ch;
  margin: 0;
}

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

.portal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  min-height: 255px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(9, 17, 29, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
  animation: rise-in 680ms ease both;
}

.portal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), transparent 48%);
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.portal-card:hover,
.portal-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 40px rgba(0, 0, 0, 0.28);
}

.portal-card:hover::before,
.portal-card:focus-visible::before {
  opacity: 1;
}

.portal-card:focus-visible {
  outline: 3px solid rgba(183, 223, 255, 0.78);
  outline-offset: 3px;
}

.portal-card:nth-child(1),
.portal-card:nth-child(2),
.portal-card:nth-child(3) {
  grid-column: span 4;
}

.portal-card:nth-child(4),
.portal-card:nth-child(5),
.portal-card:nth-child(6),
.portal-card:nth-child(7) {
  grid-column: span 3;
}

.portal-card:nth-child(1) {
  animation-delay: 40ms;
}

.portal-card:nth-child(2) {
  animation-delay: 90ms;
}

.portal-card:nth-child(3) {
  animation-delay: 140ms;
}

.portal-card:nth-child(4) {
  animation-delay: 190ms;
}

.portal-card:nth-child(5) {
  animation-delay: 240ms;
}

.portal-card:nth-child(6) {
  animation-delay: 290ms;
}

.portal-card:nth-child(7) {
  animation-delay: 340ms;
}

.portal-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #09111d;
  background: rgba(255, 255, 255, 0.88);
}

.portal-body {
  display: grid;
  gap: 10px;
}

.portal-name,
.portal-url,
.portal-description,
.portal-cta {
  margin: 0;
}

.portal-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: #f6fbff;
}

.portal-url {
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-description {
  font-size: 0.98rem;
}

.portal-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 600;
}

.portal-cta::after {
  content: "->";
  color: inherit;
}

.tone-life {
  background:
    linear-gradient(160deg, rgba(137, 204, 255, 0.22), transparent 55%),
    rgba(10, 20, 35, 0.88);
}

.tone-makler {
  background:
    linear-gradient(160deg, rgba(255, 190, 120, 0.2), transparent 55%),
    rgba(18, 18, 28, 0.88);
}

.tone-drive {
  background:
    linear-gradient(160deg, rgba(129, 232, 218, 0.2), transparent 55%),
    rgba(8, 18, 25, 0.88);
}

.tone-invest {
  background:
    linear-gradient(160deg, rgba(255, 158, 145, 0.22), transparent 55%),
    rgba(23, 17, 25, 0.88);
}

.tone-commerce {
  background:
    linear-gradient(160deg, rgba(213, 182, 255, 0.2), transparent 55%),
    rgba(16, 15, 29, 0.88);
}

.tone-pizza {
  background:
    linear-gradient(160deg, rgba(255, 121, 85, 0.24), transparent 55%),
    rgba(26, 15, 15, 0.88);
}

.tone-data {
  background:
    linear-gradient(160deg, rgba(117, 255, 191, 0.2), transparent 55%),
    rgba(10, 21, 18, 0.88);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@media (prefers-reduced-motion: reduce) {
  .hero,
  .portal-card {
    animation: none;
  }

  .portal-card {
    transition: none;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .section-heading {
    flex-direction: column;
    align-items: start;
  }

  .portal-card:nth-child(1),
  .portal-card:nth-child(2),
  .portal-card:nth-child(3),
  .portal-card:nth-child(4),
  .portal-card:nth-child(5),
  .portal-card:nth-child(6),
  .portal-card:nth-child(7) {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding: 20px 0 32px;
  }

  .hero,
  .portal-section {
    padding: 24px;
    border-radius: 26px;
  }

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

  .portal-card:nth-child(1),
  .portal-card:nth-child(2),
  .portal-card:nth-child(3),
  .portal-card:nth-child(4),
  .portal-card:nth-child(5),
  .portal-card:nth-child(6),
  .portal-card:nth-child(7) {
    grid-column: auto;
    min-height: 220px;
  }

  .hero-copy h1 {
    max-width: 12ch;
  }
}
