:root {
  color-scheme: light;
  --bg: #f4efe8;
  --bg-strong: #f8f4ef;
  --surface: rgba(255, 251, 247, 0.74);
  --surface-strong: #fffdf9;
  --surface-muted: rgba(255, 251, 247, 0.58);
  --line: rgba(45, 36, 30, 0.12);
  --line-strong: rgba(45, 36, 30, 0.18);
  --text: #201915;
  --muted: #6a615a;
  --accent: #184e45;
  --accent-strong: #0d3f37;
  --accent-soft: #d9eee8;
  --accent-soft-strong: #b6dad1;
  --shadow-xl: 0 28px 90px rgba(64, 44, 25, 0.12);
  --shadow-lg: 0 18px 48px rgba(64, 44, 25, 0.12);
  --shadow-md: 0 10px 30px rgba(64, 44, 25, 0.1);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --header-h: 92px;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: #ffffff;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-orb {
  display: none;
}

.orb-left {
  top: -12rem;
  left: -10rem;
  background: rgba(190, 232, 222, 0.85);
}

.orb-right {
  bottom: -14rem;
  right: -12rem;
  background: rgba(244, 218, 188, 0.82);
}

.app-header {
  position: fixed;
  inset: 0 0 auto;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  width: min(1240px, calc(100% - 32px));
  margin: 0;
  padding: 24px 0;
  transform: translateX(-50%);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.wordmark-image {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  box-shadow:
    0 0 0 6px rgba(255, 251, 247, 0.7),
    0 10px 28px rgba(64, 44, 25, 0.12);
}

.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-switcher::after {
  content: "";
  position: absolute;
  right: 12px;
  width: 7px;
  height: 7px;
  border-right: 1.25px solid rgba(32, 25, 21, 0.42);
  border-bottom: 1.25px solid rgba(32, 25, 21, 0.42);
  transform: rotate(45deg) translateY(-1px);
  pointer-events: none;
}

.language-switcher select {
  appearance: none;
  min-width: 116px;
  padding: 0.56rem 2rem 0.56rem 0.82rem;
  border: 1px solid rgba(45, 36, 30, 0.1);
  border-radius: 12px;
  background: #ffffff;
  color: rgba(32, 25, 21, 0.78);
  font-size: 0.92rem;
  line-height: 1.2;
  box-shadow: none;
  backdrop-filter: none;
}

.app-main {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
}

.screen {
  min-height: 100vh;
}

.screen-home {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100svh - var(--header-h));
  padding: 0;
}

.home-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: min(100%, 940px);
  min-height: calc(100svh - var(--header-h));
  padding-top: clamp(12px, 4vh, 34px);
  text-align: center;
}

.home-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 100px;
  margin-bottom: clamp(26px, 5vh, 52px);
}

.home-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(100%, 380px);
  margin-top: 100px;
}

.site-kicker,
.section-kicker,
.modal-kicker {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(24, 78, 69, 0.72);
}

.hero-avatar {
  width: 150px;
  height: 150px;
  display: block;
  object-fit: contain;
  object-position: center center;
  box-shadow: none;
}

.home-copy h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(0.92rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.voice-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 380px);
  padding: 1.15rem 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, #2c7264 100%);
  color: #f9f7f2;
  box-shadow: 0 16px 40px rgba(24, 78, 69, 0.22);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.voice-cta:hover,
.voice-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(24, 78, 69, 0.26);
}

.voice-cta:active {
  transform: translateY(0);
}

.voice-cta-ring {
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(24, 78, 69, 0.18);
  border-radius: inherit;
  animation: breathe 2.4s ease-in-out infinite;
}

.voice-cta-text {
  position: relative;
  z-index: 1;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hint {
  max-width: 29rem;
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
}

.text-link,
.ghost-button {
  padding: 0;
  background: transparent;
  color: var(--text);
}

.text-link {
  position: relative;
  font-size: 1.02rem;
  font-weight: 600;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: rgba(32, 25, 21, 0.42);
  transition: transform 180ms ease;
  transform-origin: center;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: scaleX(0.5);
}

.screen-editor {
  padding: 0 0 120px;
}

.editor-shell {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin: 0 auto;
}

.editor-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.editor-copy h2 {
  margin: 12px 0 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.editor-copy p {
  max-width: 48rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.56rem 0.86rem;
  border-radius: 999px;
  background: rgba(217, 238, 232, 0.84);
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-pill::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #259978;
}

.ghost-button {
  flex-shrink: 0;
  margin-top: 14px;
  padding: 0.95rem 1.4rem;
  border: 1px solid rgba(45, 36, 30, 0.1);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.52);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.preview-frame {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  backdrop-filter: none;
}

.preview-chrome {
  display: none;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(45, 36, 30, 0.08);
  background: rgba(255, 251, 247, 0.84);
}

.browser-dots {
  display: inline-flex;
  gap: 8px;
}

.browser-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(93, 83, 73, 0.2);
}

.browser-dots span:first-child {
  background: #f2b38b;
}

.browser-dots span:nth-child(2) {
  background: #e2c483;
}

.browser-dots span:last-child {
  background: #91c4ae;
}

.preview-url,
.preview-label {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(32, 25, 21, 0.62);
}

.preview-url {
  justify-self: center;
}

.preview-label {
  justify-self: end;
}

.preview-viewport {
  height: calc(100svh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  overflow-y: auto;
  background: #ffffff;
}

.preview-site {
  padding: 0 0 140px;
}

.site-hero,
.site-section,
.site-footer {
  border-radius: 30px;
}

.site-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
  gap: 28px;
  padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(circle at top left, rgba(215, 239, 232, 0.9), transparent 38%),
    linear-gradient(135deg, #f6f0e8 0%, #f8f5ef 55%, #eef7f3 100%);
  box-shadow: inset 0 0 0 1px rgba(45, 36, 30, 0.06);
}

.site-hero-copy h3 {
  max-width: 11ch;
  margin: 14px 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.site-hero-copy p:last-of-type {
  margin: 0 0 28px;
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.8;
}

.site-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-hero-actions button,
.contact-card button,
.primary-button,
.secondary-button,
.toolbar-button {
  border-radius: 999px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.site-hero-actions button,
.contact-card button,
.primary-button {
  padding: 0.95rem 1.25rem;
  background: linear-gradient(135deg, var(--accent) 0%, #2c7264 100%);
  color: #f8f5f0;
  box-shadow: 0 12px 28px rgba(24, 78, 69, 0.18);
}

.preview-secondary-action {
  display: inline-flex;
  align-items: center;
  padding: 0.95rem 1.2rem;
  border: 1px solid rgba(45, 36, 30, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--text);
}

.site-hero-card,
.service-card,
.testimonials-grid blockquote,
.contact-card,
.contact-copy {
  padding: 24px;
  border: 1px solid rgba(45, 36, 30, 0.08);
  border-radius: 26px;
  background: rgba(255, 253, 249, 0.72);
  box-shadow: var(--shadow-md);
}

.site-card-label {
  margin: 0 0 16px;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(32, 25, 21, 0.58);
}

.site-card-grid {
  display: grid;
  gap: 14px;
}

.site-card-grid article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid rgba(45, 36, 30, 0.08);
}

.site-card-grid article:first-child {
  border-top: 0;
  padding-top: 0;
}

.site-card-grid strong,
.service-card-index {
  font-size: 0.84rem;
  color: rgba(24, 78, 69, 0.72);
  letter-spacing: 0.08em;
}

.site-section {
  margin-top: 24px;
  padding: clamp(28px, 4vw, 44px);
  background: rgba(255, 253, 249, 0.62);
  box-shadow: inset 0 0 0 1px rgba(45, 36, 30, 0.05);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.section-heading h4 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 24px;
}

.about-portrait {
  min-height: 280px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 251, 247, 0.7), transparent 28%),
    linear-gradient(160deg, #d7ece6 0%, #f3dfc7 100%);
  box-shadow: inset 0 0 0 1px rgba(45, 36, 30, 0.05);
}

.about-copy p,
.contact-copy p,
.contact-copy li,
.service-card p,
.testimonials-grid p,
.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.about-badges,
.contact-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.about-badges li,
.contact-copy li {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(45, 36, 30, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

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

.service-card h5 {
  margin: 10px 0 12px;
  font-size: 1.22rem;
}

.testimonials-grid blockquote {
  margin: 0;
}

.testimonials-grid footer {
  margin-top: 16px;
  font-size: 0.95rem;
  color: rgba(32, 25, 21, 0.66);
}

.contact-card {
  display: grid;
  gap: 16px;
}

.contact-card label {
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
}

.contact-card input,
.contact-card textarea,
.modal-field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(45, 36, 30, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  resize: vertical;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 28px 12px 12px;
}

.toolbar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: min(calc(100% - 24px), 720px);
  padding: 12px;
  border: 1px solid rgba(45, 36, 30, 0.08);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.toolbar-menu {
  position: relative;
  flex: 0 0 auto;
}

.toolbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0.95rem 1.2rem;
  background: rgba(255, 255, 255, 0.58);
  color: var(--text);
  flex: 1;
}

.toolbar-menu-toggle {
  width: 54px;
  min-width: 54px;
  padding: 0;
}

.toolbar-icon {
  flex: 0 0 auto;
  min-width: 126px;
}

.toolbar-menu-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  display: grid;
  gap: 8px;
  min-width: 238px;
  padding: 10px;
  border: 1px solid rgba(45, 36, 30, 0.08);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.toolbar-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
  text-align: left;
}

.toolbar-menu-item:hover,
.toolbar-menu-item:focus-visible {
  transform: translateY(-1px);
  background: rgba(217, 238, 232, 0.62);
}

.toolbar-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #2c7264 100%);
  color: #f8f5f0;
  box-shadow: 0 12px 28px rgba(24, 78, 69, 0.18);
}

.toolbar-button:hover,
.toolbar-button:focus-visible,
.site-hero-actions button:hover,
.site-hero-actions button:focus-visible,
.contact-card button:hover,
.contact-card button:focus-visible,
.primary-button:hover,
.primary-button:focus-visible,
.secondary-button:hover,
.secondary-button:focus-visible {
  transform: translateY(-1px);
}

.icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
}

.icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(27, 22, 18, 0.28);
  backdrop-filter: blur(16px);
}

.modal-card {
  position: relative;
  width: min(100%, 620px);
  padding: 30px;
  border: 1px solid rgba(45, 36, 30, 0.08);
  border-radius: 28px;
  background: rgba(255, 253, 249, 0.94);
  box-shadow: var(--shadow-xl);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(45, 36, 30, 0.06);
  color: rgba(32, 25, 21, 0.75);
  font-size: 1.5rem;
  line-height: 1;
}

.modal-card h3 {
  margin: 12px 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.modal-card > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.modal-field {
  display: block;
  margin-top: 22px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.secondary-button {
  padding: 0.95rem 1.2rem;
  background: rgba(45, 36, 30, 0.06);
  color: var(--text);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 116px;
  z-index: 45;
  transform: translateX(-50%);
  max-width: min(calc(100% - 24px), 520px);
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(32, 25, 21, 0.92);
  color: #fffaf3;
  font-size: 0.96rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

body.is-editor .app-header {
  display: none;
}

body.is-editor .app-main {
  padding-top: 0;
}

body.is-editor .language-switcher {
  display: none;
}

body.is-editor .editor-topline {
  display: none;
}

body.is-editor .preview-viewport {
  height: 100svh;
  min-height: 100svh;
}

[hidden] {
  display: none !important;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.98);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.03);
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .about-grid,
  .contact-grid,
  .services-grid,
  .testimonials-grid,
  .site-hero {
    grid-template-columns: 1fr;
  }

  .home-copy {
    padding-top: clamp(10px, 3vh, 22px);
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 84px;
  }

  .app-header,
  .editor-shell,
  .screen-home {
    width: min(calc(100% - 20px), 100%);
  }

  .app-header {
    padding-top: 18px;
  }

  .language-switcher select {
    min-width: 108px;
    padding: 0.5rem 1.9rem 0.5rem 0.72rem;
    font-size: 0.88rem;
  }

  .home-copy {
    align-items: center;
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    gap: 0;
    min-height: calc(100svh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    padding-top: 0;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    overflow: hidden;
  }

  .home-intro {
    gap: 14px;
    grid-row: 2;
    align-self: center;
    margin: 0;
  }

  .home-actions {
    grid-row: 3;
    align-self: end;
    width: 100%;
    margin-top: 0;
    gap: 12px;
  }

  .hero-avatar {
    width: 128px;
    height: 128px;
  }

  .home-copy h1 {
    font-size: clamp(0.84rem, 4.8vw, 1.9rem);
  }

  .hint {
    max-width: 24rem;
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .voice-cta {
    width: 100%;
    min-width: 0;
  }

  .screen-editor {
    padding-bottom: 132px;
  }

  .ghost-button {
    width: fit-content;
    margin-top: 0;
  }

  .preview-label {
    display: none;
  }

  .preview-viewport {
    height: calc(100svh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
  }

  .preview-site {
    padding: 0 0 132px;
  }

  .site-hero,
  .site-section {
    padding: 22px;
    border-radius: 24px;
  }

  .toolbar {
    bottom: 12px;
    width: calc(100% - 16px);
    padding: 10px;
    gap: 10px;
  }

  .toolbar-button {
    min-height: 52px;
    padding-inline: 0.95rem;
  }

  .toolbar-menu-toggle {
    width: 52px;
    min-width: 52px;
  }

  .toolbar-icon {
    min-width: 104px;
  }

  .toolbar-menu-panel {
    min-width: min(240px, calc(100vw - 32px));
  }

  .modal-card {
    padding: 24px 20px;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .secondary-button,
  .primary-button {
    width: 100%;
  }

  .toast {
    bottom: 98px;
    border-radius: 24px;
  }
}

@media (max-width: 520px) {
  .app-header {
    gap: 12px;
  }

  .home-copy {
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .home-intro {
    gap: 12px;
  }

  .hero-avatar {
    width: 116px;
    height: 116px;
  }

  .home-actions {
    gap: 10px;
  }

  .toolbar {
    display: grid;
    grid-template-columns: 52px 114px 1fr;
  }

  .toolbar-primary {
    grid-column: 1 / -1;
  }

  .toolbar-menu-panel {
    left: 0;
    right: auto;
    min-width: min(228px, calc(100vw - 24px));
  }

  .contact-copy ul {
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 24px;
  }
}
