﻿:root {
  --ink: #0B1C2C;
  --ink2: #1A2D3F;
  --teal: #1A6B5A;
  --teal2: #2A8A75;
  --gold: #C4A265;
  --gold2: #D4B87E;
  --fog: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.12);
  --pad: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
}

body.cs-body {
  min-height: 100vh;
  font-family: "DM Sans", sans-serif;
  color: #fff;
  background: var(--ink);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.cs-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(26, 107, 90, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(196, 162, 101, 0.18), transparent 50%),
    linear-gradient(165deg, var(--teal) 0%, var(--ink2) 42%, var(--ink) 100%);
  pointer-events: none;
}

.cs-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    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: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: 0.5;
}

.cs-main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px var(--pad) 36px;
}

.cs-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cs-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.cs-brand .custom-logo-link,
.cs-brand .custom-logo {
  display: block;
  max-height: 48px;
  width: auto;
}

.cs-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal2);
  box-shadow: 0 0 0 4px rgba(42, 138, 117, 0.25);
}

.cs-name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.cs-name .hg { color: var(--gold2); }

.cs-langs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cs-langs a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 7px 11px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--fog);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cs-langs a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.cs-langs a.on {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.cs-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 42rem;
  padding: clamp(48px, 12vh, 120px) 0 clamp(32px, 6vh, 64px);
}

.cs-eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold2);
  margin-bottom: 1.1rem;
}

.cs-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.cs-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.65;
  color: var(--fog);
  max-width: 34rem;
  margin-bottom: 2.25rem;
}

.cs-cta-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.85rem;
}

.cs-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cs-btn:hover {
  background: var(--teal2);
  transform: translateY(-1px);
}

.cs-btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: #fff;
}

.cs-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
}

.cs-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.cs-admin a {
  color: var(--gold2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cs-admin a:hover { color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold2);
  outline-offset: 3px;
}

.anim {
  opacity: 0;
  transform: translateY(18px);
  animation: cs-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.anim-1 { animation-delay: 0.08s; }
.anim-2 { animation-delay: 0.22s; }
.anim-3 { animation-delay: 0.38s; }
.anim-4 { animation-delay: 0.52s; }
.anim-5 { animation-delay: 0.66s; }

@keyframes cs-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .anim {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .cs-btn:hover { transform: none; }
}

@media (max-width: 560px) {
  .cs-links { flex-direction: column; align-items: stretch; }
  .cs-btn { width: 100%; }
}

