* { box-sizing: border-box; }

:root {
  --green-950: #0e3319;
  --green-900: #113f20;
  --green-800: #185328;
  --green-700: #1f6a35;
  --green-600: #2d7d3a;
  --green-200: #dfeedd;
  --green-100: #eef7eb;
  --text-soft: #5e705f;
  --white: #ffffff;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.88), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(255,255,255,.7), transparent 32%),
    linear-gradient(135deg, #d7e7cf 0%, #edf5ea 52%, #d3e6ca 100%);
  color: var(--green-900);
  position: relative;
  overflow-x: hidden;
}

.background-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.keyword-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: .74;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 16%, black 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 16%, black 84%, transparent 100%);
}

.keyword-cloud {
  position: absolute;
  left: 50%;
  width: min(1400px, 120vw);
  max-height: 42vh;
  overflow: hidden;
  transform: translateX(-50%) rotate(-7deg);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  gap: 18px 28px;
  padding: 30px;
  color: rgba(16, 79, 34, 0.065);
  text-align: center;
  line-height: 1;
  filter: blur(.15px);
}

.cloud-a {
  top: 8vh;
  min-height: 42vh;
  animation: semanticDriftA 56s ease-in-out infinite alternate;
}

.cloud-b {
  bottom: 3vh;
  min-height: 34vh;
  transform: translateX(-50%) rotate(6deg);
  opacity: .62;
  animation: semanticDriftB 66s ease-in-out infinite alternate;
}

.kw {
  display: inline-block;
  font-weight: 850;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.kw.s { font-size: clamp(15px, 1.85vw, 25px); opacity: .66; }
.kw.m { font-size: clamp(18px, 2.35vw, 34px); opacity: .76; }
.kw.l { font-size: clamp(22px, 3.2vw, 46px); opacity: .84; }
.kw.xl { font-size: clamp(28px, 4.4vw, 64px); opacity: .9; }

@keyframes semanticDriftA {
  from { transform: translateX(-51%) rotate(-7deg) translateY(-5px); }
  to { transform: translateX(-49%) rotate(-5deg) translateY(12px); }
}

@keyframes semanticDriftB {
  from { transform: translateX(-49%) rotate(6deg) translateY(10px); }
  to { transform: translateX(-51%) rotate(4deg) translateY(-10px); }
}

.page-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(34px, 6vh, 78px) clamp(16px, 5vw, 80px);
}

.presentation-card {
  position: relative;
  width: min(1120px, 100%);
  min-height: 840px;
  overflow: hidden;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.965), rgba(255,255,255,.90)),
    radial-gradient(circle at 35% 80%, rgba(221,239,218,.62), transparent 40%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow:
    0 40px 90px rgba(23,70,28,.13),
    inset 0 0 0 1px rgba(24,83,40,.05);
  padding: clamp(36px, 5vw, 58px);
}

.ambient-line {
  position: absolute;
  width: 520px;
  height: 48px;
  border-top: 24px solid rgba(31,106,53,.055);
  transform: rotate(-58deg);
  border-radius: 999px;
  pointer-events: none;
}

.line-a { right: 30px; top: 0; }
.line-b { right: -120px; top: 220px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #cfe2c7;
  border-radius: 999px;
  background: rgba(239,247,235,.9);
  color: var(--green-800);
  font-weight: 850;
  font-size: 14px;
  letter-spacing: .01em;
}

.pulse {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #76b54b;
  box-shadow: 0 0 0 5px rgba(118,181,75,.18);
  display: inline-block;
  flex: 0 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  gap: 50px;
  align-items: start;
  margin-top: 34px;
}

.logo-wrap {
  height: 112px;
  display: flex;
  align-items: center;
}

.site-logo {
  width: 470px;
  max-width: 100%;
  height: auto;
  display: block;
}

.fallback-logo {
  display: none;
  font-weight: 950;
  font-size: clamp(62px, 7vw, 92px);
  line-height: .85;
  color: var(--green-800);
  letter-spacing: -.075em;
}

.fallback-logo span { color: #4a9637; }

.lead {
  max-width: 640px;
  margin: 22px 0 0;
  color: #326b41;
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.22;
  font-weight: 500;
}

.headline-zone {
  margin-top: 72px;
  height: 178px;
  min-height: 178px;
  max-height: 178px;
  display: flex;
  align-items: flex-start;
  padding-bottom: 26px;
  overflow: hidden;
}

.headline-zone h1 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(38px, 4.55vw, 61px);
  line-height: 1.01;
  letter-spacing: -.055em;
  font-weight: 950;
  color: var(--green-950);
}

.ai-card {
  margin-top: 40px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(31,106,53,.10);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 50px rgba(28,75,35,.10);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}

.ai-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 60px rgba(28,75,35,.14);
}

.ai-card h2 {
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green-800);
  font-size: 26px;
}

.ai-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.55;
}

.ai-action {
  margin-top: 24px;
  border: 1px solid rgba(31,106,53,.09);
  border-radius: 18px;
  background: #f7fbf5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 18px;
  color: #60705e;
  font-size: 15px;
}

.ai-action button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 13px;
  background: var(--green-700);
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.topic-card {
  position: relative;
  margin-top: 58px;
  height: 196px;
  min-height: 196px;
  max-height: 196px;
  border-radius: 22px;
  background: linear-gradient(180deg, #eef8eb 0%, #f9fdf8 100%);
  border: 1px solid rgba(31,106,53,.08);
  box-shadow: 0 18px 42px rgba(31,106,53,.09);
  overflow: hidden;
  display: grid;
  grid-template-columns: 150px minmax(0,1fr) 260px;
  align-items: center;
  padding: 48px 42px 40px;
}

.window-dots {
  position: absolute;
  top: 13px;
  left: 18px;
  display: flex;
  gap: 8px;
}

.window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9bc48a;
}

.topic-illustration {
  font-size: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topic-content {
  height: 94px;
  min-height: 94px;
  max-height: 94px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.topic-content h3 {
  margin: 0;
  color: var(--green-800);
  font-size: clamp(25px, 2.5vw, 32px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.topic-content p {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.45;
  max-width: 650px;
}

.city-silhouette {
  height: 80px;
  opacity: .28;
  background:
    linear-gradient(to top, #afc5ad 0 24px, transparent 24px),
    linear-gradient(to top, #afc5ad 0 44px, transparent 44px),
    linear-gradient(to top, #afc5ad 0 62px, transparent 62px),
    linear-gradient(to top, #afc5ad 0 36px, transparent 36px),
    linear-gradient(to top, #afc5ad 0 54px, transparent 54px),
    linear-gradient(to top, #afc5ad 0 42px, transparent 42px);
  background-size: 36px 80px;
  background-position: 0 22px, 44px 10px, 88px 0, 134px 20px, 178px 8px, 224px 18px;
  background-repeat: no-repeat;
  border-bottom: 2px solid #afc5ad;
}

.topic-dots {
  height: 30px;
  margin: 22px 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.topic-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #bed3b8;
  transition: width .28s ease, background .28s ease;
}

.topic-dot.active {
  width: 36px;
  background: var(--green-700);
}

.contact-strip {
  margin-top: 18px;
  min-height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(31,106,53,.12);
  background: rgba(255,255,255,.74);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  text-align: center;
  color: #466349;
  font-weight: 750;
}

.contact-strip a {
  color: var(--green-800);
  margin-left: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tag-row {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tag-row span {
  border: 1px solid rgba(31,106,53,.12);
  background: #f1f8ee;
  color: #486849;
  border-radius: 999px;
  padding: 10px 17px;
  font-weight: 800;
  font-size: 14px;
}

.seo-readable {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(30px);
  background: var(--green-900);
  color: white;
  border-radius: 999px;
  padding: 13px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 10;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.fade { animation: fadeIn .55s ease; }

@keyframes fadeIn {
  from { opacity: .35; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .presentation-card { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .ai-card { position: relative; margin-top: 8px; }
  .headline-zone { margin-top: 42px; height: 160px; min-height: 160px; max-height: 160px; }
  .topic-card { grid-template-columns: 90px 1fr; }
  .city-silhouette { display: none; }
}

@media (max-width: 640px) {
  .page-shell { padding: 20px; }
  .presentation-card { padding: 28px; border-radius: 24px; }
  .keyword-cloud { gap: 14px 20px; color: rgba(16, 79, 34, 0.048); }
  .cloud-a { top: 9vh; }
  .logo-wrap { height: 80px; }
  .site-logo { width: 320px; }
  .lead { font-size: 20px; }
  .headline-zone { height: 154px; min-height: 154px; max-height: 154px; }
  .headline-zone h1 { font-size: 34px; }
  .topic-card {
    grid-template-columns: 1fr;
    padding: 42px 24px 26px;
    text-align: center;
    height: 220px;
    min-height: 220px;
    max-height: 220px;
  }
  .topic-content { height: 108px; min-height: 108px; max-height: 108px; }
  .contact-strip { border-radius: 22px; flex-direction: column; }
}
