﻿@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Sora:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #f7f3ec;
  --bg-soft: #efe8de;
  --surface: #ffffff;
  --surface-alt: #f6efe4;
  --ink: #132435;
  --muted: #5d6d7d;
  --primary: #0f5a73;
  --primary-strong: #0a4659;
  --accent: #b98a42;
  --accent-soft: #e7d6b3;
  --success: #16803c;
  --warning: #d9822b;
  --danger: #c83535;
  --border: #d9d2c5;
  --shadow-soft: 0 14px 34px rgba(19, 36, 53, 0.08);
  --shadow-card: 0 10px 24px rgba(15, 34, 53, 0.1);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Sora', 'Segoe UI', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, #faf8f4 0, transparent 36%),
    radial-gradient(circle at 90% 15%, #e9f2f5 0, transparent 32%),
    var(--bg);
  line-height: 1.55;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: 'Fraunces', Georgia, serif;
  margin: 0;
  line-height: 1.15;
}

p {
  margin: 0;
}

.container {
  width: min(var(--container), 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(247, 243, 236, 0.9);
  border-bottom: 1px solid rgba(217, 210, 197, 0.7);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--accent), #7f5b26);
  color: #fff;
  font-weight: 700;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.brand-title {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.7rem;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 0.9rem;
  color: #284156;
  padding: 8px 12px;
  border-radius: 999px;
  transition: 0.2s;
}

.main-nav a.active,
.main-nav a:hover {
  background: #e5edf1;
  color: var(--primary-strong);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-alt);
  border-radius: 999px;
  border: 1px solid var(--border);
}

.lang-btn {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.8rem;
}

.lang-btn.active {
  background: var(--surface);
  color: var(--primary-strong);
  box-shadow: var(--shadow-soft);
}

.btn,
button,
input[type='submit'] {
  font-family: inherit;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: 0.2s;
  font-weight: 600;
  font-size: 0.88rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
}

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

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #997039);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--primary-strong);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.page {
  padding: 34px 0 80px;
}

.hero {
  background: linear-gradient(145deg, #0c3347 0%, #134f67 52%, #0f5a73 100%);
  color: #f4f8fa;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 44px;
  position: relative;
  overflow: hidden;
}

.hero::after,
.hero::before {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 300px;
  height: 300px;
  right: -80px;
  top: -110px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 70%);
}

.hero::after {
  width: 190px;
  height: 190px;
  left: -60px;
  bottom: -80px;
  background: radial-gradient(circle, rgba(185, 138, 66, 0.4), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 3.3vw, 3.1rem);
  margin-bottom: 14px;
}

.hero p {
  color: rgba(244, 248, 250, 0.92);
  max-width: 62ch;
}

.inline-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-stats {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 12px;
}

.hero-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
}

.hero-stat strong {
  font-size: 1.22rem;
}

.section {
  margin-top: 30px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 18px;
}

.section-title h2 {
  font-size: clamp(1.42rem, 2.2vw, 2rem);
}

.section-title p {
  color: var(--muted);
  max-width: 58ch;
}

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

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

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

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.card-title {
  font-size: 1.06rem;
  margin-bottom: 10px;
}

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

.metric-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin: 6px 0;
}

.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.kpi strong {
  display: block;
  font-size: 1.35rem;
  margin-top: 6px;
  font-family: 'Fraunces', Georgia, serif;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: #e5edf1;
  color: #163448;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.plot-card {
  display: grid;
  gap: 10px;
}

.plot-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.plot-id {
  font-size: 0.75rem;
  color: var(--muted);
}

.plot-price {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.42rem;
}

.plot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.plot-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}

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

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.86rem;
  color: var(--muted);
}

.notice {
  border-left: 4px solid var(--accent);
  background: #fff9ef;
  border-radius: 10px;
  padding: 12px;
  color: #4a3a1f;
}

.map-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 16px;
}

.map-panel,
.map-content {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.map-panel {
  padding: 14px;
  height: fit-content;
  position: sticky;
  top: 90px;
}

.map-content {
  overflow: hidden;
}

.map-board {
  position: relative;
  height: 460px;
  background:
    linear-gradient(120deg, rgba(15, 90, 115, 0.18), rgba(185, 138, 66, 0.11)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35) 1px, transparent 1px, transparent 64px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35) 1px, transparent 1px, transparent 64px),
    #d6e8ec;
}

.map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(19, 36, 53, 0.16);
}

.map-marker:hover {
  transform: translate(-50%, -50%) scale(1.16);
}

.map-legend {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.list-panel {
  padding: 10px 14px 16px;
  max-height: 310px;
  overflow: auto;
  border-top: 1px solid var(--border);
}

.list-item {
  display: grid;
  gap: 4px;
  border-bottom: 1px dashed #d8d8d8;
  padding: 9px 0;
}

.list-item:last-child {
  border-bottom: 0;
}

.list-item strong {
  cursor: pointer;
}

.list-item strong:hover {
  color: var(--primary);
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tab-btn {
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
}

.tab-btn.active {
  background: #e2edf1;
  border-color: #b8c8d4;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.stepper {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.step {
  flex: 1;
  border-radius: 999px;
  border: 1px solid var(--border);
  height: 10px;
  background: #e8e8e8;
}

.step.active {
  background: var(--primary);
  border-color: var(--primary);
}

.step-pane {
  display: none;
}

.step-pane.active {
  display: block;
}

.chat {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  height: 470px;
  overflow: auto;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.bubble {
  max-width: 80%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.bubble.user {
  margin-left: auto;
  background: #dceef5;
}

.bubble.ai {
  background: #f2ecdf;
  border: 1px solid #e4d7be;
}

.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

table th,
table td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #ece8df;
  white-space: nowrap;
}

table th {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.roadmap {
  display: grid;
  gap: 10px;
}

.road-step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--border);
}

.road-step span {
  color: var(--accent);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #f3eee4;
  padding: 20px 0;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.84rem;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.empty-state {
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  color: var(--muted);
  background: #fff;
}

.compare-bar {
  position: sticky;
  bottom: 12px;
  background: #17354a;
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  box-shadow: var(--shadow-card);
  margin-top: 16px;
}

@media (max-width: 1140px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {
  .map-layout {
    grid-template-columns: 1fr;
  }

  .map-panel {
    position: static;
  }

  .grid-3,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    min-height: auto;
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow: auto;
    padding-bottom: 3px;
    flex-wrap: nowrap;
  }
}

@media (max-width: 640px) {
  .page {
    padding-top: 16px;
  }

  .hero {
    padding: 24px;
  }

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

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

  .road-step {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

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