:root {
  --bg: #0b1220;
  --bg-soft: #111a2d;
  --panel: #16223a;
  --text: #ecf1ff;
  --text-soft: #c2cce3;
  --brand: #36d6a7;
  --brand-strong: #12b886;
  --border: #2b3a5d;
  --warning: #e6d14a;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

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

body {
  background: radial-gradient(circle at 20% -10%, #1d2c4d 0%, var(--bg) 45%);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--brand);
}

a:hover,
a:focus {
  color: #7df0cb;
}

a:focus-visible,
.btn:focus-visible,
.site-nav a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.container {
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--brand);
  color: #05241a;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11, 18, 32, 0.88);
  border-bottom: 1px solid var(--border);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.2px;
}

.brand .code {
  color: var(--brand);
  font-family: "SFMono-Regular", ui-monospace, Menlo, Monaco, Consolas, monospace;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 550;
  padding: 0.25rem 0.2rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--brand);
}

.hero {
  padding: 4.5rem 0 3.2rem;
  border-bottom: 1px solid var(--border);
  background-image: linear-gradient(
      110deg,
      rgba(11, 18, 32, 0.96) 35%,
      rgba(11, 18, 32, 0.7) 70%,
      rgba(11, 18, 32, 0.5) 100%
    ),
    url("/ramon-hero-photo.jpg");
  background-size: cover;
  background-position: center 35%;
}

@supports (background-image: image-set(url("/ramon-hero-photo.webp") type("image/webp"))) {
  .hero {
    background-image: linear-gradient(
        110deg,
        rgba(11, 18, 32, 0.96) 35%,
        rgba(11, 18, 32, 0.7) 70%,
        rgba(11, 18, 32, 0.5) 100%
      ),
      image-set(
        url("/ramon-hero-photo.webp") type("image/webp"),
        url("/ramon-hero-photo.jpg") type("image/jpeg")
      );
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #2f4a6d;
  background: rgba(18, 28, 45, 0.8);
  color: #d6e2ff;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 3vw + 1rem, 3.4rem);
  max-width: 16ch;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 65ch;
  color: var(--text-soft);
  font-size: 1.12rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  text-decoration: none;
  font-weight: 650;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(130deg, var(--brand), var(--brand-strong));
  color: #08251d;
}

.btn-primary:hover,
.btn-primary:focus {
  color: #071f19;
  filter: brightness(1.04);
}

.btn-secondary {
  background: #172745;
  border-color: #31548e;
  color: #dce6ff;
}

.btn-secondary:hover,
.btn-secondary:focus {
  color: #f0f5ff;
  border-color: #3e6ab2;
}

main section {
  padding: 3rem 0;
}

.section-title {
  font-size: clamp(1.4rem, 2vw + 0.3rem, 2rem);
  margin-bottom: 0.9rem;
}

.muted {
  color: var(--text-soft);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(140deg, #121f36 0%, #0e182c 100%);
  padding: 1.15rem;
}

.card h2,
.card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.list-clean {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-clean li {
  margin-bottom: 0.6rem;
  padding-left: 1.2rem;
  position: relative;
}

.list-clean li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--brand);
}

.highlight-box {
  border: 1px solid #3e4f77;
  border-left: 4px solid var(--warning);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  background: rgba(23, 34, 56, 0.75);
}

.tag-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  border: 1px solid #3f5b87;
  background: #14233d;
  font-family: "SFMono-Regular", ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  color: #d7e6ff;
}

.process {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.process li {
  background: #111d34;
  border: 1px solid #2f426a;
  border-radius: 12px;
  padding: 0.9rem 0.9rem 0.9rem 3rem;
  position: relative;
}

.process li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.9rem;
  top: 0.85rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: linear-gradient(130deg, var(--brand), #5ef0c7);
  color: #093025;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.8rem 0 2.1rem;
  margin-top: 1rem;
  color: var(--text-soft);
}

.small {
  font-size: 0.92rem;
}

.contact-panel {
  background: linear-gradient(145deg, #162744 0%, #10213b 100%);
  border: 1px solid #3d5d8f;
  border-radius: 16px;
  padding: 1.2rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.7rem;
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 0.75rem 0;
  }

  .hero {
    padding-top: 3.7rem;
    min-height: 44vh;
    background-position: 78% 30%;
  }

  .site-nav ul {
    gap: 0.75rem;
  }
}

@media (max-width: 540px) {
  .hero {
    background-position: 82% 28%;
    min-height: 46vh;
  }
}
