:root {
  --bg: #f4f7fb;
  --bg-deep: #e8eef6;
  --surface: rgba(255, 255, 255, 0.72);
  --text: #12151c;
  --muted: #5a6474;
  --accent: #0a84ff;
  --accent-soft: #64d2ff;
  --line: rgba(18, 21, 28, 0.1);
  --shadow: 0 18px 50px rgba(18, 40, 80, 0.08);
  --radius: 18px;
  --max: 780px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(10, 132, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(100, 210, 255, 0.22), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #0066d6;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(244, 247, 251, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.95rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.65rem;
  background:
    linear-gradient(145deg, var(--accent) 0%, #3aa0ff 45%, var(--accent-soft) 100%);
  box-shadow: 0 8px 20px rgba(10, 132, 255, 0.28);
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 28% 34% 28% 34%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 0.25rem;
  border-left-width: 0;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.brand-name {
  font-size: 0.98rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

main {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 3.2rem 0 4.5rem;
}

.hero {
  margin-bottom: 2.4rem;
  animation: rise 0.7s ease both;
}

.hero h1 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.hero p,
.lede {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.meta {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 3vw, 2rem);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: rise 0.8s ease 0.08s both;
}

.panel h2 {
  margin: 2rem 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.panel h2:first-child {
  margin-top: 0;
}

.panel h3 {
  margin: 1.4rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.panel p,
.panel li {
  color: #2a3140;
}

.panel ul,
.panel ol {
  padding-left: 1.2rem;
}

.panel li + li {
  margin-top: 0.45rem;
}

.home-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.home-card {
  display: block;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease;
  animation: rise 0.75s ease both;
}

.home-card:nth-child(2) {
  animation-delay: 0.08s;
}

.home-card:nth-child(3) {
  animation-delay: 0.16s;
}

.home-card:hover {
  transform: translateY(-3px);
  border-color: rgba(10, 132, 255, 0.35);
}

.home-card h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.home-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #3aa0ff);
  box-shadow: 0 10px 24px rgba(10, 132, 255, 0.28);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
}

.contact-box {
  margin-top: 1.2rem;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: rgba(10, 132, 255, 0.08);
  border: 1px solid rgba(10, 132, 255, 0.18);
}

.contact-box strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.2rem;
}

.footer-inner {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

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

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  main {
    padding-top: 2.2rem;
  }
}
