﻿:root {
  color-scheme: dark;
  --bg: #0b1222;
  --bg-2: #0f1930;
  --ink: #f4f7ff;
  --muted: #a7b3c9;
  --panel: #11264d;
  --panel-2: #0d1f3f;
  --surface: #0f1a33;
  --surface-2: #101b36;
  --accent: #1dd6c9;
  --accent-2: #2b6bff;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 60px rgba(6, 10, 20, 0.45);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(43, 107, 255, 0.22), transparent 45%),
    radial-gradient(circle at 80% 16%, rgba(29, 214, 201, 0.2), transparent 40%),
    radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: auto, auto, 20px 20px;
  background-position: center, center, 0 0;
}

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

.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 56px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(17, 38, 77, 0.9), rgba(13, 31, 63, 0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 36px;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
}

.brand-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.18;
  max-width: 20ch;
  margin: 0 0 12px;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy h1 span + span {
  margin-top: 8px;
}

.lead {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 24px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.btn {
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #0b1222;
  box-shadow: 0 16px 30px rgba(29, 214, 201, 0.4);
}

.btn.ghost {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--ink);
  background: transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-chip {
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: rgba(11, 18, 34, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
}

.portrait-card {
  position: relative;
  padding: 14px;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(17, 38, 77, 0.95), rgba(13, 31, 63, 0.95));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.portrait-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  object-fit: cover;
  object-position: 50% 20%;
}

.portrait-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 20%, rgba(29, 214, 201, 0.2), transparent 55%);
  pointer-events: none;
}

.links-section {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.links-section h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 30px);
  margin: 0 0 18px;
}

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

.link-card {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.link-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.link-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.site-footer {
  margin-top: 40px;
  font-size: 14px;
  color: var(--muted);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
}

.footer-contact {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-legal {
  white-space: nowrap;
  justify-self: end;
  text-align: right;
}

.legal .page-shell {
  max-width: 980px;
}

.legal-content {
  background: var(--surface-2);
  padding: 42px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  font-weight: 600;
  color: var(--ink);
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 44px);
  margin: 0 0 24px;
}

.legal-content h2 {
  margin-top: 32px;
  font-size: 22px;
}

.legal-content h3 {
  margin-top: 24px;
  font-size: 18px;
}

.legal-content h4 {
  margin-top: 18px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.legal-content p,
.legal-content li,
.legal-content address {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.legal-content address {
  font-style: normal;
  margin-bottom: 16px;
}

.legal-content ul {
  padding-left: 18px;
}

.legal-shout {
  font-weight: 700;
  color: var(--ink);
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero > * {
  animation: floatIn 0.8s ease both;
}

@media (max-width: 980px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .cta-row,
  .contact-row {
    justify-content: flex-start;
  }

  .links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 22px 16px 40px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

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

  .legal-content {
    padding: 30px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero > * {
    animation: none;
  }

  .btn,
  .link-card {
    transition: none;
  }
}
