:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-soft: #f3f4f8;
  --text: #1b1d23;
  --muted: #667085;
  --border: #e8eaf2;
  --primary: #6f5cff;
  --primary-hover: #5d4df0;
  --success: #16a34a;
  --shadow: 0 10px 30px rgba(22, 28, 45, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: linear-gradient(180deg, #fafbff 0%, #f6f7fb 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

.site-header {
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(247, 248, 252, 0.75);
  border-bottom: 1px solid rgba(232, 234, 242, 0.75);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.brand-title {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-sub {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.main-nav a {
  transition: 0.2s ease;
}

.main-nav a:hover {
  color: var(--primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
  transition: 0.2s ease;
  box-shadow: 0 8px 20px rgba(111, 92, 255, 0.18);
}

.nav-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.hero {
  padding: 56px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 44px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(111, 92, 255, 0.08);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero p.lead {
  margin: 0 0 24px;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 22px rgba(111, 92, 255, 0.2);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: white;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: #fbfbfe;
  transform: translateY(-1px);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--border);
}

.hero-visual-wrap {
  position: relative;
}

.hero-glow {
  position: absolute;
  inset: auto 10% -10% 10%;
  height: 120px;
  background: radial-gradient(circle, rgba(111, 92, 255, 0.17), rgba(111, 92, 255, 0));
  filter: blur(18px);
  pointer-events: none;
}

.chat-demo {
  background: white;
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.chat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfe 100%);
}

.chat-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.92rem;
  color: white;
  flex-shrink: 0;
}

.avatar.ai {
  background: linear-gradient(135deg, var(--primary) 0%, #8b7dff 100%);
  box-shadow: 0 8px 18px rgba(111, 92, 255, 0.18);
}

.chat-name {
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.chat-status {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  margin-top: 3px;
}

.chat-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.08);
  color: var(--success);
  font-weight: 800;
  font-size: 0.8rem;
  border: 1px solid rgba(22, 163, 74, 0.16);
  white-space: nowrap;
}

.chat-body {
  padding: 22px 20px 16px;
  background:
    radial-gradient(circle at top right, rgba(111, 92, 255, 0.05), transparent 28%),
    linear-gradient(180deg, #fbfbfe 0%, #ffffff 100%);
  min-height: 440px;
}

.message {
  display: flex;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(12px);
  transition: 0.45s ease;
}

.message.show {
  opacity: 1;
  transform: translateY(0);
}

.message.right {
  justify-content: flex-end;
}

.bubble {
  max-width: 82%;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.6;
  box-shadow: 0 8px 16px rgba(18, 24, 40, 0.05);
}

.message.right .bubble {
  background: #f1f2f7;
  color: var(--text);
  border-bottom-right-radius: 6px;
}

.message.left .bubble {
  background: linear-gradient(180deg, #6f5cff 0%, #5f4cf2 100%);
  color: white;
  border-bottom-left-radius: 6px;
}

.typing {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.typing.show {
  display: inline-flex;
}

.typing-dots {
  display: inline-flex;
  gap: 4px;
}

.typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.35;
  animation: blink 1.2s infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes blink {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.25; }
  40% { transform: scale(1); opacity: 0.9; }
}

.lawyer-card {
  display: none;
  margin-top: 16px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 12px 26px rgba(22, 28, 45, 0.08);
  animation: fadeUp 0.45s ease forwards;
}

.lawyer-card.show {
  display: block;
}

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

.lawyer-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.lawyer-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #111827 0%, #374151 100%);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.lawyer-name {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.lawyer-role {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.lawyer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lawyer-tags span {
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.chat-disclaimer {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.section {
  padding: 36px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  letter-spacing: -0.04em;
  color: var(--text);
}

.section-head p {
  margin: 0 auto;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.link-card {
  transition: 0.2s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 92, 255, 0.35);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(111, 92, 255, 0.08);
  color: var(--primary);
  font-weight: 800;
  font-size: 1.05rem;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
  font-size: 0.96rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.about-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.about-box h3 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.about-box p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.78;
}

.about-list {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.about-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.5;
}

.about-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--primary);
  font-weight: 800;
}

.form-section {
  padding: 42px 0 70px;
}

.form-wrap {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 22px;
  align-items: start;
}

.form-side {
  background: linear-gradient(180deg, #ffffff 0%, #f9f9ff 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-side h3,
.form-card h3 {
  margin: 0 0 14px;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.form-side p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.78;
}

.mini-points {
  display: grid;
  gap: 12px;
}

.mini-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 16px;
  background: white;
  border: 1px solid var(--border);
}

.mini-point strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.mini-point span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.mini-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 5px;
  flex-shrink: 0;
}

.form-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-intro {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 15px;
  font: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #98a2b3;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(111, 92, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(111, 92, 255, 0.1);
}

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

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.9rem;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.submit-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.submit-note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.seo-links {
  padding-top: 0;
}

.site-footer {
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 700;
}

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

.page-main {
  padding: 56px 0 70px;
}

.page-card {
  max-width: 880px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.page-card h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.page-card h2 {
  margin: 34px 0 12px;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}

.page-card p,
.page-card li {
  color: var(--muted);
  line-height: 1.78;
  font-size: 1rem;
}

.page-card ul,
.page-card ol {
  padding-left: 22px;
}

.notice {
  margin-top: 24px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(111, 92, 255, 0.08);
  border: 1px solid rgba(111, 92, 255, 0.16);
  color: var(--text);
  line-height: 1.65;
}

@media (max-width: 1080px) {
  .hero-grid,
  .form-wrap,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 38px;
  }

  .hero-visual-wrap {
    order: -1;
  }

  .main-nav {
    display: none;
  }
}

@media (max-width: 780px) {
  .grid-3,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .submit-wrap {
    align-items: stretch;
  }

  .submit-wrap .btn {
    width: 100%;
  }

  .site-header {
    position: static;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .chat-body {
    min-height: 400px;
  }

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

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

  .nav-cta {
    width: 100%;
  }
}

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

  .card,
  .about-box,
  .form-side,
  .form-card,
  .page-card {
    padding: 20px;
    border-radius: 18px;
  }

  .chat-demo {
    border-radius: 22px;
  }

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

  .hero-actions .btn {
    width: 100%;
  }
}
