:root {
  --bg: #f7f6f1;
  --surface: #ffffff;
  --ink: #181a1f;
  --muted: #62666f;
  --line: #dedbd1;
  --teal: #006d6f;
  --coral: #df604d;
  --gold: #c9982c;
  --green: #5a7d45;
  --shadow: 0 24px 70px rgba(24, 26, 31, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(247, 246, 241, 0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(24, 26, 31, 0.06);
}

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

.brand img {
  flex: 0 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #ece9df;
  color: var(--ink);
}

.site-nav .nav-action {
  background: var(--ink);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 20px;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4.4vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions,
.contact-band {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 800;
}

.button.primary {
  background: var(--ink);
  color: #ffffff;
}

.button.secondary {
  background: transparent;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.hero-panel {
  overflow: hidden;
  width: min(100%, 560px);
  min-height: 420px;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.browser-bar {
  display: flex;
  gap: 8px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.browser-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.browser-bar span:nth-child(1) {
  background: var(--coral);
}

.browser-bar span:nth-child(2) {
  background: var(--gold);
}

.browser-bar span:nth-child(3) {
  background: var(--green);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 22px;
}

.preview-card,
.service,
.project-strip > div {
  background: #faf9f5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.preview-card {
  min-height: 132px;
  padding: 18px;
}

.preview-card.wide {
  grid-column: span 2;
  background:
    linear-gradient(120deg, rgba(0, 109, 111, 0.14), rgba(223, 96, 77, 0.12)),
    #fbfaf6;
}

.preview-card small,
.project-strip span,
.steps span {
  display: block;
  color: var(--muted);
}

.preview-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2.4rem;
  line-height: 1;
}

.trend {
  display: inline-block;
  margin-top: 16px;
  padding: 5px 8px;
  background: #e0eee7;
  border-radius: 999px;
  color: #245739;
  font-size: 0.82rem;
  font-weight: 800;
}

.preview-line {
  grid-column: span 2;
  height: 18px;
  background: linear-gradient(90deg, var(--teal) 0 68%, #e8e4da 68%);
  border-radius: 999px;
}

.preview-line.short {
  width: 74%;
  background: linear-gradient(90deg, var(--coral) 0 45%, #e8e4da 45%);
}

.section,
.process-band,
.login-band,
.dashboard,
.contact-band,
.site-footer {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 64px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 30px;
}

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

.service {
  min-height: 230px;
  padding: 24px;
}

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

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 26px;
  background: var(--ink);
  border-radius: 50%;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 900;
}

.process-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 28px;
  background: #19201d;
  color: #ffffff;
}

.process-band .eyebrow {
  color: #8ed4c8;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.steps span {
  color: rgba(255, 255, 255, 0.72);
}

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

.project-strip > div {
  min-height: 150px;
  padding: 22px;
}

.project-strip strong {
  display: block;
  margin-top: 16px;
  font-size: 1.3rem;
  line-height: 1.2;
}

.login-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.login-copy p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.1rem;
}

.login-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  background: #faf9f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(24, 26, 31, 0.08);
}

.login-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  background: #ece9df;
  border-radius: 8px;
}

.login-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.login-tabs button.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(24, 26, 31, 0.08);
}

.auth-form {
  display: none;
  gap: 14px;
}

.auth-form.is-active,
.otp-step {
  display: grid;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.auth-form input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(0, 109, 111, 0.14);
}

.otp-step {
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.auth-result {
  min-height: 24px;
  color: var(--muted);
  font-weight: 750;
}

.auth-result.is-success {
  color: var(--teal);
}

.auth-result.is-error {
  color: var(--coral);
}

.session-actions {
  display: flex;
}

.session-actions .button {
  width: 100%;
}

.dashboard {
  display: grid;
  gap: 20px;
  min-height: calc(100vh - 72px);
  background: #ffffff;
}

.dashboard-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.dashboard-hero h1 {
  max-width: none;
  font-size: clamp(3rem, 8vw, 6.5rem);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-card,
.dashboard-panel {
  background: #faf9f5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dashboard-card {
  min-height: 160px;
  padding: 22px;
}

.dashboard-card.accent {
  background: var(--ink);
  color: #ffffff;
}

.dashboard-card span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.dashboard-card.accent span,
.dashboard-card.accent p {
  color: rgba(255, 255, 255, 0.72);
}

.dashboard-card strong {
  display: block;
  margin: 10px 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.dashboard-card p,
.dashboard-panel p {
  color: var(--muted);
}

.dashboard-session {
  display: flex;
  gap: 10px;
  align-items: center;
}

.dashboard-session span,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  background: #e0eee7;
  border-radius: 999px;
  color: var(--teal);
  font-weight: 900;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 16px;
}

.dashboard-panel {
  padding: 24px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.panel-heading h2,
.next-panel h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

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

.dashboard-actions .button {
  min-height: 62px;
}

.activity-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-list li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  align-items: start;
}

.activity-list li span {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  background: var(--coral);
  border-radius: 50%;
}

.activity-list p {
  margin: 0;
  font-weight: 750;
}

.next-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.6fr);
  gap: 18px;
  align-items: center;
}

.route-preview {
  display: grid;
  grid-template-columns: 18px 1fr 18px;
  gap: 12px;
  align-items: center;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.route-preview span {
  width: 18px;
  height: 18px;
  background: var(--teal);
  border-radius: 50%;
}

.route-preview span:last-child {
  background: var(--coral);
}

.contact-band {
  justify-content: space-between;
  background: #ede5d4;
}

.contact-band > div {
  max-width: 720px;
}

.contact-band p:not(.eyebrow) {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
  padding-bottom: 26px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero,
  .section-heading,
  .process-band,
  .login-band,
  .dashboard-grid,
  .dashboard-layout,
  .dashboard-panel,
  .dashboard-actions,
  .next-panel,
  .service-grid,
  .project-strip {
    grid-template-columns: 1fr;
  }

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

  .dashboard-session,
  .dashboard-session .button {
    width: 100%;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel {
    margin-left: 0;
  }

  .steps li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 520px) {
  .brand span {
    max-width: 120px;
    line-height: 1.05;
  }

  h1 {
    font-size: clamp(3.35rem, 22vw, 5rem);
  }

  .preview-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .preview-card.wide,
  .preview-line {
    grid-column: span 1;
  }

  .contact-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
