:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --ink: #0d1b2a;
  --ink-soft: #46556b;
  --line: #d7dee8;
  --brand: #17324d;
  --brand-2: #234e70;
  --accent: #b88b4a;
  --accent-dark: #956d34;
  --success: #1e7a4d;
  --danger: #b42318;
  --shadow: 0 20px 50px rgba(13, 27, 42, 0.08);
  --shadow-strong: 0 25px 60px rgba(13, 27, 42, 0.18);
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 0.75rem 1rem;
  z-index: 9999;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.mt-16 {
  margin-top: 1rem;
}

.mt-32 {
  margin-top: 2rem;
}

.center {
  text-align: center;
}

.full-width {
  max-width: none !important;
}

.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 0.94rem;
}

.topbar-inner {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  flex-wrap: wrap;
  padding: 0.6rem 0;
}

.topbar-links,
.topbar-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.topbar a {
  color: #fff;
  opacity: 0.96;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 248, 251, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-color: rgba(215, 222, 232, 0.9);
  box-shadow: 0 10px 30px rgba(13, 27, 42, 0.06);
  background: rgba(255, 255, 255, 0.92);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 1rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: var(--shadow);
}

.brand-mark svg {
  width: 28px;
  height: 28px;
}

.brand-text {
  min-width: 0;
}

.brand-name {
  display: block;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-size: 1.02rem;
}

.brand-subtitle {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--surface);
  border-radius: 12px;
  width: 46px;
  height: 46px;
  padding: 0;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.97rem;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: var(--brand-2);
}

.active-button {
  color: #fff !important;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
  text-align: center;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 14px 30px rgba(184, 139, 74, 0.25);
}

.button-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.button-secondary-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.button-dark {
  background: var(--ink);
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: rgba(184, 139, 74, 0.12);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.badge-invert {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero {
  position: relative;
  overflow: clip;
  padding: 3.5rem 0 5rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(184, 139, 74, 0.18), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(35, 78, 112, 0.18), transparent 28%),
    linear-gradient(180deg, #f9fbff 0%, #f3f5f9 100%);
}

.page-hero {
  padding: 3.5rem 0 2rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(184, 139, 74, 0.16), transparent 30%),
    linear-gradient(180deg, #f9fbff 0%, #f3f5f9 100%);
}

.page-hero h1 {
  margin: 1rem 0 0.9rem;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  max-width: 14ch;
}

.page-intro {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 1rem 0 1rem;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 11ch;
}

.hero-copy p {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.proof-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(215, 222, 232, 0.8);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.proof-card strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 0.35rem;
  letter-spacing: -0.03em;
}

.proof-card span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.hero-panel,
.profile-panel {
  background: linear-gradient(180deg, #0f1f30 0%, #13283d 100%);
  color: #fff;
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.hero-panel {
  position: relative;
  isolation: isolate;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: auto -20% -20% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(184, 139, 74, 0.18);
  filter: blur(8px);
  z-index: -1;
}

.consult-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 1.4rem;
}

.consult-card h2,
.profile-panel h3 {
  margin: 0 0 0.65rem;
  line-height: 1.15;
}

.consult-card h2 {
  font-size: 1.4rem;
}

.profile-panel h3 {
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.consult-card p,
.profile-panel p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.82);
}

.contact-list,
.contact-detail-list,
.stack,
.faq-list {
  display: grid;
  gap: 1rem;
}

.contact-item,
.contact-detail,
.feature,
.trust-item {
  display: grid;
  align-items: start;
  gap: 0.85rem;
}

.contact-item {
  grid-template-columns: 44px 1fr;
  padding: 0.85rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.contact-detail {
  grid-template-columns: 48px 1fr;
}

.feature {
  grid-template-columns: 56px 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.trust-strip {
  padding-top: 1.2rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.trust-item {
  grid-template-columns: 44px 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.icon-box {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  flex: 0 0 auto;
}

.icon-box svg {
  width: 20px;
  height: 20px;
}

.icon-soft {
  background: linear-gradient(135deg, rgba(23, 50, 77, 0.1), rgba(184, 139, 74, 0.18));
  color: var(--brand);
}

.section {
  padding: 5rem 0;
}

.section-soft {
  background: var(--surface-2);
}

.section h2 {
  margin: 0.9rem 0 1rem;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-intro {
  max-width: 760px;
  color: var(--ink-soft);
  margin: 0;
  font-size: 1.05rem;
}

.grid-4,
.grid-3,
.grid-2,
.service-detail-grid,
.contact-section-grid,
.split-layout,
.why-wrap,
.footer-grid,
.field-row,
.cta-band,
.mini-stats {
  display: grid;
  gap: 1.25rem;
}

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

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

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

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

.contact-section-grid {
  grid-template-columns: 0.95fr 1.05fr;
  align-items: start;
}

.split-layout,
.why-wrap {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.footer-grid {
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  align-items: start;
}

.cta-band {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  background: linear-gradient(135deg, var(--brand), #10263b);
  color: #fff;
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow-strong);
}

.cta-band h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  max-width: 58ch;
}

.cta-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.card h2,
.card h3,
.contact-card h2,
.contact-card h3,
.trust-item h3,
.feature h3 {
  margin-top: 0;
}

.card p,
.contact-card p,
.trust-item p,
.feature p {
  color: var(--ink-soft);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.service-card h3 {
  margin-bottom: 0;
}

.process-step .step-number {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.mini-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.cardish {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cardish strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.cardish span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.check-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.check-list li + li {
  margin-top: 0.35rem;
}

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

.contact-form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-weight: 700;
  font-size: 0.95rem;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  padding: 0.95rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(35, 78, 112, 0.12);
}

.form-message {
  min-height: 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-message.success {
  color: var(--success);
}

.form-message.error {
  color: var(--danger);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-button {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
  padding: 1.15rem 1.2rem;
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
  list-style: none;
}

.faq-button::-webkit-details-marker {
  display: none;
}

.faq-button svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
  flex: 0 0 auto;
}

.faq-item[open] .faq-button svg {
  transform: rotate(180deg);
}

.faq-panel {
  padding: 0 1.2rem 1.2rem;
  color: var(--ink-soft);
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.site-footer {
  padding: 2.2rem 0 3rem;
  background: #0b1725;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
  margin: 0 0 0.8rem;
}

.site-footer p,
.site-footer li {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero-grid,
  .contact-section-grid,
  .split-layout,
  .why-wrap,
  .footer-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 820px) {
  .topbar-inner {
    justify-content: center;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.7rem);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 0.9rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a,
  .nav-links .button {
    width: 100%;
    justify-content: center;
  }

  .hero-proof,
  .mini-stats,
  .field-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4rem 0;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .trust-grid,
  .service-detail-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.6rem;
  }

  .card,
  .contact-card,
  .proof-card,
  .trust-item {
    border-radius: 18px;
  }

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

  .brand-subtitle {
    font-size: 0.84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
