:root {
  --bg: #f0f5fc;
  --bg-alt: #ffffff;
  --ink: #0d1b45;
  --muted: #4a5980;
  --brand: #00bcd4;
  --brand-dark: #1a237e;
  --brand-soft: #e0f7fa;
  --accent: #f4b35a;
  --danger: #bf4d28;
  --line: #c8d8f0;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 10px 30px rgba(13, 27, 69, 0.09);
  --shadow-hard: 0 20px 50px rgba(13, 27, 69, 0.16);
  --maxw: 1180px;
  --focus-ring: 0 0 0 4px rgba(0, 188, 212, 0.2);
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% 0%, #dbeeff 0%, var(--bg) 45%) fixed;
  line-height: 1.55;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  transform: translateY(-150%);
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--brand-dark);
  color: #fff;
  font-weight: 700;
  z-index: 40;
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Fraunces", serif;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--maxw), 92vw);
  margin: 0 auto;
}

.topbar {
  background: linear-gradient(90deg, var(--brand-dark), #1565c0 65%, #0288d1);
  color: #e0f4ff;
  font-size: 0.92rem;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.topbar-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(240, 245, 252, 0.92);
  border-bottom: 1px solid rgba(13, 27, 69, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
}

.logo-mark {
  display: none;
}

.logo-img {
  height: 62px;
  width: auto;
  filter: drop-shadow(0 6px 14px rgba(26, 35, 126, 0.18));
}

.logo-text {
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--brand-dark);
  white-space: nowrap;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  align-items: center;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-weight: 600;
  color: #0d1b45;
  opacity: 0.9;
  position: relative;
}

nav a:hover,
nav a:focus-visible {
  color: var(--brand-dark);
}

nav a[aria-current="page"] {
  color: var(--brand-dark);
}

nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #0097a7);
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--brand);
  color: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn:focus-visible {
  box-shadow: var(--shadow-soft), var(--focus-ring);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #0097a7);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  border: 2px solid var(--brand);
  color: var(--brand-dark);
  background: transparent;
}

.btn-warn {
  background: linear-gradient(135deg, #f4b35a, #f29d38);
  color: #2f1d04;
}

.hero {
  position: relative;
  overflow: clip;
  padding: 88px 0 72px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(0, 188, 212, 0.2), rgba(0, 188, 212, 0));
  right: -120px;
  top: -80px;
}

.hero::after {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(244, 179, 90, 0.3), rgba(244, 179, 90, 0));
  left: -120px;
  bottom: -120px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: start;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-dark);
  font-weight: 700;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  margin-bottom: 16px;
}

.hero p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 58ch;
}

.cta-row {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-badges {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-badges span {
  padding: 8px 14px;
  background: #ffffff;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid var(--line);
}

.card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid rgba(21, 35, 33, 0.08);
  box-shadow: var(--shadow-soft);
}

.lead-box {
  padding: 28px;
}

.lead-box h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.lead-box p {
  color: var(--muted);
  margin-bottom: 18px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.field label {
  font-size: 0.9rem;
  color: #1a237e;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #b8cce8;
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  color: var(--ink);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--brand);
  background: #fff;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.consent-field {
  margin: 4px 0 14px;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 500;
}

.consent-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand-dark);
}

.consent-check a {
  color: var(--brand-dark);
  text-decoration: underline;
}

.services-filter {
  margin-top: 16px;
}

.stack-list {
  margin: 0;
  padding-left: 18px;
  color: #425855;
  display: grid;
  gap: 10px;
}

.filter-status {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}

.legal-card {
  padding: 32px;
  display: grid;
  gap: 14px;
}

.legal-card h2 {
  margin-top: 10px;
  font-size: 1.2rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.legal-card a {
  color: var(--brand-dark);
  text-decoration: underline;
}

.legal-update {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

section {
  padding: 76px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.section-head p {
  color: var(--muted);
  max-width: 65ch;
}

.grid {
  display: grid;
  gap: 18px;
}

.contact-grid {
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-history {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: stretch;
}

.history-text {
  padding: 28px;
  display: grid;
  gap: 14px;
}

.history-text h2 {
  font-size: 1.65rem;
}

.history-text p {
  color: var(--muted);
}

.history-media {
  padding: 10px;
  display: grid;
  place-items: center;
}

.history-media img {
  width: 100%;
  max-width: 430px;
  height: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 14px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.team-card {
  padding: 16px;
  display: grid;
  justify-items: center;
  text-align: center;
}

.team-photo {
  width: min(100%, 280px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  border: 1px solid #dbe7fb;
}

.team-content {
  margin-top: 12px;
  max-width: 42ch;
}

.team-content h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.team-content p {
  color: var(--muted);
}

.service-card {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 188, 212, 0.18), rgba(0, 188, 212, 0));
}

.service-card h3 {
  font-size: 1.22rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--muted);
  margin-bottom: 14px;
}

.tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid var(--line);
  background: #fbfffe;
}

.stats {
  background: linear-gradient(135deg, #1a237e, #0288d1);
  color: #e0f4ff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  padding: 24px;
  border: 1px solid rgba(224, 247, 250, 0.28);
  border-radius: var(--radius-md);
  background: rgba(13, 27, 69, 0.22);
}

.stat-card strong {
  display: block;
  font-size: 2.1rem;
  font-family: "Fraunces", serif;
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.step-card {
  padding: 22px;
}

.step-card h3 {
  font-size: 1.04rem;
  margin: 10px 0;
}

.step-card p {
  color: var(--muted);
}

.step-card::before {
  counter-increment: step;
  content: "0" counter(step);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  border-radius: 12px;
  font-weight: 800;
  color: var(--brand-dark);
}

.testimonials {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quote {
  padding: 24px;
  position: relative;
  background: linear-gradient(160deg, #ffffff 0%, #f6fbff 100%);
  border: 1px solid #dbe7fb;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quote:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(13, 27, 69, 0.12);
}

.quote-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--brand-dark), #1976d2);
  color: #e8f4ff;
  font-weight: 700;
  margin-bottom: 14px;
}

.quote p {
  color: #1a2a5e;
  margin-bottom: 16px;
}

.quote-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #e1ebfb;
}

.quote strong {
  display: block;
  margin-bottom: 2px;
}

.quote span {
  color: var(--muted);
  font-size: 0.94rem;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq p {
  color: var(--muted);
  margin-top: 8px;
}

.blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post {
  padding: 0;
  overflow: hidden;
}

.post .content {
  padding: 18px;
}

.post small {
  color: var(--muted);
}

.post h3 {
  margin: 8px 0 10px;
  font-size: 1.14rem;
}

.cta-banner {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #0d1b6e 0%, #1565c0 55%, #0288d1 100%);
  color: #e8f4ff;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: center;
}

.cta-banner p {
  color: rgba(224, 244, 255, 0.9);
}

footer {
  margin-top: 72px;
  background: #0a1240;
  color: #cddaf5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  padding: 42px 0;
}

footer h4 {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

footer p,
footer li,
footer a {
  color: #9db8e8;
  font-size: 0.95rem;
}

footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.copy {
  border-top: 1px solid rgba(173, 205, 243, 0.2);
  padding: 14px 0 24px;
  font-size: 0.9rem;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.mobile-toggle {
  display: none;
}

@media (max-width: 1024px) {
  .hero-grid,
  .cta-banner {
    grid-template-columns: 1fr;
  }

  .about-history,
  .team-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .testimonials,
  .blog-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .topbar .container {
    justify-content: center;
    text-align: center;
  }

  .mobile-toggle {
    display: inline-flex;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 8px 10px;
    font-weight: 700;
  }

  .logo-img {
    height: 56px;
  }

  .logo-text {
    font-size: 1.04rem;
  }

  nav {
    position: absolute;
    left: 4vw;
    right: 4vw;
    top: calc(100% + 8px);
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: var(--shadow-soft);
    display: none;
  }

  nav.open {
    display: block;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  nav a[aria-current="page"]::after {
    bottom: -2px;
  }

  .nav-cta {
    display: none;
  }

  .social-links {
    display: none;
  }

  .services-grid,
  .testimonials,
  .blog-grid,
  .steps,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 58px 0;
  }

  .legal-card {
    padding: 24px;
  }

  .history-text {
    padding: 22px;
  }

  .team-photo {
    width: min(100%, 240px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal,
  .reveal.show {
    opacity: 1;
    transform: none;
  }
}
