:root {
  --bg: #ffffff;
  --bg-soft: #f3f3f3;
  --surface: #ffffff;
  --surface-2: #f6f6f6;
  --line: rgba(0, 0, 0, 0.12);
  --text: #0f0f0f;
  --muted: #575757;
  --accent: #0f0f0f;
  --accent-2: #3a3a3a;
  --danger: #ff6b6b;
  --max: 1240px;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: #ffffff;
  color: var(--text);
}

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

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

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

.utility-bar {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.utility-bar .container,
.site-header .container,
.footer-bottom .container,
.site-footer .container {
  display: flex;
  align-items: center;
}

.utility-bar .container {
  justify-content: flex-end;
  gap: 20px;
  padding: 12px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 220px;
}

.brand-mark,
.brand-logo-shell {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  flex-shrink: 0;
}

.brand-mark {
  background: #000;
  border: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  overflow: hidden;
}

.brand-logo-shell {
  display: block;
  overflow: hidden;
  background: #000000;
  border: 0;
  box-shadow: none;
}

.brand-logo {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.34);
  transform-origin: center center;
  filter: contrast(1.08);
}

.brand-text strong {
  display: block;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.brand-text span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: nowrap;
}

.nav-links a,
.nav-dropdown-link {
  color: var(--text);
  font-size: 0.96rem;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-dropdown-link:hover,
.footer-links a:hover,
.legal-links a:hover,
.text-link:hover {
  color: var(--text);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-dropdown-link::after {
  content: "▾";
  font-size: 0.78rem;
  line-height: 1;
  transform: translateY(1px);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 360px;
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 10px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  z-index: 60;
}

.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu > a,
.nav-nested-trigger {
  display: grid;
  gap: 4px;
  padding: 12px 16px;
  white-space: normal;
}

.nav-dropdown-menu > a:hover,
.nav-nested-trigger:hover {
  background: rgba(0, 0, 0, 0.04);
}

.nav-item-title {
  font-size: 0.96rem;
  color: var(--text);
}

.nav-item-meta {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
}

.nav-dropdown-menu-nested {
  padding-right: 0;
}

.nav-nested-item {
  position: relative;
}

.nav-nested-trigger {
  position: relative;
  padding-right: 34px;
}

.nav-nested-trigger::after {
  content: "›";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--muted);
}

.nav-submenu {
  position: absolute;
  top: -10px;
  left: calc(100% - 1px);
  min-width: 280px;
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 10px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.nav-submenu a {
  padding: 11px 16px;
  white-space: nowrap;
}

.nav-submenu a:hover {
  background: rgba(0, 0, 0, 0.04);
}

.nav-nested-item:hover > .nav-submenu {
  display: flex;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.chat-floating {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.chat-action-rail {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.chat-floating.menu-open .chat-action-rail {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.chat-action-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #111111;
  padding: 10px 16px;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}

.chat-action-button.primary {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.chat-floating > button {
  border: 0;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  padding: 14px 22px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

.chat-panel {
  width: min(calc(100vw - 32px), 360px);
  height: 420px;
  margin-top: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
}

.chat-panel.hidden,
.chat-floating > button.hidden,
.chat-error.hidden {
  display: none;
}

.chat-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.chat-panel header strong {
  font-size: 1.04rem;
}

.chat-panel header button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.chat-log {
  padding: 16px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #ffffff;
}

.chat-msg {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.chat-msg.user {
  align-self: flex-end;
  background: #111111;
  color: #ffffff;
}

.chat-msg.bot {
  align-self: flex-start;
  background: #f3f3f3;
  color: #111111;
}

.chat-msg.bot a {
  color: #111111;
  text-decoration: underline;
}

.chat-msg.typing {
  color: var(--muted);
}

.chat-input-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  padding: 14px 18px 10px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.chat-input-row input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: #ffffff;
}

.chat-input-row button {
  border: 0;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  padding: 12px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.chat-attach-button {
  border: 1px solid var(--line) !important;
  background: #ffffff !important;
  color: #111111 !important;
  width: 46px;
  min-width: 46px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-attach-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-input-row button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.chat-attachment-status {
  padding: 0 18px 8px;
  font-size: 0.82rem;
  color: var(--muted);
  background: #ffffff;
}

.chat-hidden-input {
  display: none !important;
}

.meeting-picker {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.meeting-step {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.meeting-step-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.meeting-step h4 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.meeting-day-grid,
.meeting-time-grid,
.meeting-duration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.meeting-chip {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  font: inherit;
  font-weight: 600;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.meeting-chip:hover,
.meeting-chip.is-active {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.meeting-summary {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.meeting-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.meeting-summary span {
  color: var(--muted);
  font-size: 0.92rem;
}

.meeting-summary strong {
  font-size: 1rem;
  text-align: right;
}

.chat-error {
  color: #b42318;
  font-size: 0.88rem;
  padding: 0 18px 14px;
  background: #ffffff;
}

.button,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  min-height: 48px;
  padding: 12px 20px;
  font-weight: 600;
  line-height: 1;
  transition: 0.18s ease;
  cursor: pointer;
  white-space: nowrap;
}

.button {
  background: #0f0f0f;
  color: #ffffff;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.button-secondary {
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(0,0,0,0.03);
  color: var(--text);
}

.button-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
}

.section {
  padding: 82px 0;
}

.hero {
  padding: 72px 0 44px;
}

.hero-grid,
.two-col,
.stats-grid,
.card-grid,
.pricing-grid,
.case-grid,
.footer-grid {
  display: grid;
  gap: 24px;
}

.hero-grid,
.two-col {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.04;
  margin: 18px 0 20px;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.section-copy,
.card p,
.list-card p,
.legal-copy,
.contact-copy {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-actions .button,
.hero-actions .button-secondary,
.hero-actions .button-ghost {
  min-width: 160px;
}

.panel,
.card,
.list-card,
.pricing-card,
.case-card,
.info-card,
.form-shell,
.legal-shell {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,248,248,0.98));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel,
.info-card,
.form-shell,
.legal-shell {
  padding: 28px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.stat {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0,0,0,0.02);
}

.stat strong {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.card,
.list-card,
.pricing-card,
.case-card {
  padding: 24px;
}

.card h3,
.list-card h3,
.pricing-card h3,
.case-card h3,
.info-card h3 {
  margin: 0 0 10px;
  font-size: 1.24rem;
  letter-spacing: -0.03em;
}

.pricing-card .price {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  margin: 14px 0 18px;
}

.pricing-card ul,
.check-list,
.footer-links,
.legal-links,
.meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-card li,
.check-list li,
.meta-list li {
  padding: 8px 0;
  color: var(--muted);
}

.page-hero {
  padding: 74px 0 18px;
}

.page-hero .container,
.footer-grid {
  align-items: start;
}

.footer-grid {
  grid-template-columns: 1.3fr repeat(4, 1fr);
  padding: 58px 0 34px;
}

.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-links li,
.legal-links li {
  margin: 10px 0;
}

.footer-links a,
.legal-links a {
  color: var(--muted);
}

.footer-title {
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
}

.footer-bottom .container {
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 30px;
  color: var(--muted);
  flex-wrap: wrap;
}

.legal-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.small {
  color: var(--muted);
  font-size: 0.9rem;
}

.inline-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.06);
  color: #111111;
  font-size: 0.85rem;
  font-weight: 700;
}

.text-link {
  color: var(--text);
  font-weight: 600;
}

.notice {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255,255,255,0.03);
}

@media (max-width: 1100px) {
  .hero-grid,
  .two-col,
  .footer-grid,
  .card-grid,
  .pricing-grid,
  .case-grid,
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 820px) {
  .site-header .container,
  .utility-bar .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links,
  .header-cta {
    width: 100%;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-link {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 10px;
  }

  .hero-grid,
  .two-col,
  .card-grid,
  .pricing-grid,
  .case-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .section,
  .page-hero {
    padding-top: 54px;
  }

  .chat-floating {
    right: 16px;
    bottom: 16px;
  }
}
