/* style.css */
:root {
  color-scheme: light;
  --bg: #f7f6f1;
  --surface: #ffffff;
  --surface-soft: #efeee7;
  --text: #171914;
  --muted: #62645d;
  --muted-soft: #8a8c83;
  --line: #e4e1d8;
  --accent: #203a2f;
  --accent-hover: #2d5645;
  --accent-soft: #e4eee8;
  --shadow: 0 22px 60px rgba(31, 34, 27, 0.09);
  --shadow-soft: 0 12px 30px rgba(31, 34, 27, 0.07);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1160px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #11130f;
  --surface: #181b16;
  --surface-soft: #22261f;
  --text: #f3f0e8;
  --muted: #b9b6aa;
  --muted-soft: #858276;
  --line: #30352c;
  --accent: #d3eadb;
  --accent-hover: #b8dcc5;
  --accent-soft: #26362b;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(32, 58, 47, 0.08), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(125, 125, 125, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 125, 125, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 68%);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(45, 86, 69, 0.28);
  outline-offset: 3px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(128, 128, 128, 0.12);
  background: rgba(247, 246, 241, 0.82);
  backdrop-filter: blur(18px);
}

html[data-theme="dark"] .site-header {
  background: rgba(17, 19, 15, 0.82);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 15px;
  background: var(--accent);
  color: var(--surface);
  font-weight: 820;
  font-size: 20px;
  letter-spacing: -0.08em;
  box-shadow: var(--shadow-soft);
}

html[data-theme="dark"] .brand-mark {
  color: #11130f;
}

.brand-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  color: var(--text);
  font-size: 16px;
  font-weight: 780;
  line-height: 1.2;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.brand-caption {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-left: auto;
}

.main-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  transition: color 0.18s ease, background 0.18s ease;
}

.main-nav a:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.theme-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--accent-hover);
}

.theme-toggle-icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: block;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.theme-toggle-icon::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -7px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--surface);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

html[data-theme="dark"] .theme-toggle-icon::after {
  transform: translate(-8px, 4px);
  opacity: 0;
}

.section {
  padding: 76px 0;
}

.hero {
  padding-top: 98px;
  padding-bottom: 68px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 46px;
  align-items: center;
}

.eyebrow,
.section-kicker,
.panel-label,
.service-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 13px;
  font-weight: 780;
  line-height: 1;
}

html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .section-kicker,
html[data-theme="dark"] .panel-label,
html[data-theme="dark"] .service-label {
  color: var(--accent);
}

.eyebrow {
  margin: 0 0 22px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  font-weight: 830;
  letter-spacing: -0.075em;
}

.hero-subtitle {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  letter-spacing: -0.025em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 760;
  line-height: 1;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

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

.button-primary {
  background: var(--accent);
  color: var(--surface);
  box-shadow: 0 18px 34px rgba(32, 58, 47, 0.18);
}

html[data-theme="dark"] .button-primary {
  color: #11130f;
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.button-secondary:hover {
  border-color: var(--accent-hover);
}

.hero-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow);
}

html[data-theme="dark"] .hero-panel {
  background: rgba(24, 27, 22, 0.62);
}

.panel-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.panel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent-hover);
  box-shadow: 0 0 0 8px var(--accent-soft);
}

.quick-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 8px;
  list-style: none;
}

.quick-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  transition: background 0.18s ease;
}

.quick-list li:hover {
  background: var(--surface-soft);
}

.quick-list span {
  color: var(--text);
  font-size: 16px;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.quick-list small {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.about-block {
  padding: 18px 0 42px;
}

.about-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.about-card h2,
.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  font-weight: 820;
  letter-spacing: -0.065em;
}

.about-card p:last-child,
.section-heading p {
  max-width: 780px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.section-heading .section-kicker,
.about-card .section-kicker {
  margin-bottom: 14px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 86, 69, 0.38);
  box-shadow: var(--shadow);
}

.service-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.service-index {
  color: var(--muted-soft);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.04em;
}

.service-card h3 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 29px;
  line-height: 1.05;
  font-weight: 820;
  letter-spacing: -0.06em;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.service-card ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 24px;
  color: var(--text);
  font-size: 15px;
}

.service-card li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-hover);
  transform: translateY(-50%);
}

.service-link {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 11px 15px;
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  font-size: 14px;
  font-weight: 760;
  line-height: 1;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

html[data-theme="dark"] .service-link {
  color: #11130f;
}

.service-link:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.site-footer {
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer strong {
  color: var(--text);
  font-weight: 780;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.18s ease;
}

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

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

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

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

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .hero {
    padding-top: 72px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 640px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-caption,
  .main-nav {
    display: none;
  }

  .section {
    padding: 54px 0;
  }

  .hero {
    padding-top: 58px;
    padding-bottom: 48px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-subtitle {
    margin-top: 22px;
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-panel {
    padding: 10px;
    border-radius: 28px;
  }

  .panel-card {
    border-radius: 22px;
  }

  .quick-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .quick-list small {
    text-align: left;
  }

  .about-card,
  .service-card {
    padding: 24px;
    border-radius: 24px;
  }

  .service-head {
    flex-direction: column;
    margin-bottom: 20px;
  }

  .service-card h3 {
    font-size: 25px;
  }

  .service-link {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 15px;
  }

  h1 {
    font-size: 38px;
  }

  .about-card,
  .service-card {
    padding: 20px;
  }
}