:root {
  --fg: #111827; /* Darker text for improved readability */
  --bg: #f9fafb; /* Softer off-white background */
  --muted: #6b7280;
  --brand: #2563eb;
  --accent: #3b82f6; /* Lighter variant for hovers */
  --border: #e5e7eb;
}

/* ===== Base ===== */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px; line-height: 1.6;
  overflow-x: hidden;        /* <-- add this line */
}

a { color: var(--brand); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent); }
.container { max-width: 1200px; /* Wider for larger screens */ margin: 0 auto; padding: 1.5rem; }
.brand { font-weight: 700; font-size: 1.25rem; }
.muted { color: var(--muted); }
.card { border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }

/* Forms / notices (enhanced) */
form label { display: block; margin: 1rem 0 0.5rem; font-weight: 500; }
input[type=text], input[type=tel], input[type=email], textarea {
  width: 100%; padding: 0.75rem; border: 1px solid var(--border); border-radius: 0.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input[type=text]:focus, input[type=tel]:focus, input[type=email]:focus, textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); outline: none;
}
input[type=checkbox] { transform: scale(1.2); margin-right: 0.5rem; }
.notice { padding: 1rem; border-radius: 0.5rem; margin-top: 1rem; }
.notice.ok { background: #ecfdf5; border: 1px solid #10b981; }
.notice.err { background: #fef2f2; border: 1px solid #ef4444; }

/* ===== Nav / Footer ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.95); /* Slightly more opaque for clarity */
  backdrop-filter: saturate(160%) blur(10px); /* Smoother blur */
  border-bottom: 1px solid var(--border);
}
.nav .container { display: flex; align-items: center; gap: 1.5rem; /* Better spacing */ }
.nav a { padding: 1rem 0.75rem; display: inline-block; color: var(--fg); transition: color 0.2s ease; }
.nav a.active { color: var(--brand); }
.nav a:hover { color: var(--brand); }
.footer { border-top: 1px solid var(--border); margin-top: 3rem; padding: 2rem 0; text-align: center; font-size: 0.875rem; }

/* ===== Buttons (unified) ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.25rem; border-radius: 0.75rem;
  transition: all 0.2s ease; cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.btn .icon { width: 18px; height: 18px; fill: currentColor; display: block; }
.btn.primary { background: var(--brand); color: #fff; border: none; }
.btn.primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37,99,235,0.25); }
.btn.ghost { background: #fff; color: var(--brand); border: 1px solid rgba(37,99,235,0.45); }
.btn.ghost:hover { background: #f4f7ff; }

/* START ANCHOR: .hero-panel (clean hero; no card) */
.hero-panel {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  max-width: none;
  margin: 0;
}
/* END ANCHOR: .hero-panel (clean hero; no card) */

/* START ANCHOR: .hero { (full-bleed, cover) */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  /* full-bleed */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  /* full image, no crop */
  background: #f4f7fb url('/assets/img/hero-feature.webp') center center / contain no-repeat;

  /* consistent hero height across devices */
  min-height: clamp(520px, 70svh, 880px);

  padding: clamp(32px, 7vw, 88px) 20px;
  border-bottom: 1px solid var(--border);
}
/* END ANCHOR: .hero } (full-bleed, cover) */

@supports (width: 100dvw) { .hero { width: 100dvw; } }


/* START ANCHOR: .hero::before (left gradient for legibility) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.75) 0%,
    rgba(255,255,255,0.55) 25%,
    rgba(255,255,255,0.25) 50%,
    rgba(255,255,255,0.00) 70%
  );
  pointer-events: none;
  z-index: 0;
}
/* END ANCHOR: .hero::before (left gradient for legibility) */



/* Gentle vignette to keep edges calm (you had this as ::after — preserved) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 45%,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.06) 100%
  );
  z-index: 0;
}

/* START ANCHOR: .hero layout (no card) */
.hero > .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: inherit;
}

.hero .hero-content {
  /* Remove fixed max-width so h1 has full space */
  max-width: none;
  text-align: left;
  padding: 0;
  margin-left: clamp(12px, 4vw, 40px);
  position: relative;
  z-index: 1; /* above gradient */
}

.hero h1 {
  /* Shrinks further on narrow screens */
  font-size: clamp(1rem, 6vw, 4rem);
  line-height: 1.1;
  margin: 0 0 .75rem;
  font-weight: 700;

  /* Force single line */
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}
/* END ANCHOR: .hero layout (no card) */


.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.45;
  margin: 0 0 1.25rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.25); /* subtle contrast */
}


.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
  margin-top: 1rem;
}

.hero-cta .btn { min-width: 160px; justify-content: center; }
/* END ANCHOR: .hero layout (no card) */
@media (min-width: 1024px) {
  .hero .hero-content {
    /* Give the heading room to stay on one line on desktops */
    max-width: 920px;
  }
}

/* START ANCHOR: @media .hero (mobile clean) */
@media (max-width: 820px) {
  .hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    background-position: center;
    background-size: cover;

    min-height: clamp(480px, 78svh, 860px);
    padding: clamp(16px, 6vw, 28px) 16px;
  }

  /* Same gradient as desktop (so subtitle + image balance is consistent) */
  .hero::before {
    background: linear-gradient(
      90deg,
      rgba(255,255,255,0.75) 0%,
      rgba(255,255,255,0.55) 25%,
      rgba(255,255,255,0.25) 50%,
      rgba(255,255,255,0.00) 70%
    );
  }

  .hero > .container { justify-content: center; }

  .hero .hero-content {
    margin-left: 0;
    text-align: center;
    max-width: 560px;
  }

  .hero-cta { justify-content: center; }
  .hero-cta .btn { min-width: 180px; }
}
/* END ANCHOR: @media .hero (mobile clean) */


/* ===== Features (your existing grid; kept) ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem; /* Tighter gap for modern feel */
  margin: 3rem auto;
}
.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: 1rem;
  padding: 1.5rem; text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* Deeper shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0,0,0,0.1); }
.feature-icon { font-size: 2.5rem; /* Larger icons */ margin-bottom: 1rem; }
@media (min-width: 1200px) { .features { max-width: 1100px; } }

/* ===== Tour page (as-is) ===== */
.tour { margin: 40px auto; display: grid; gap: 28px; }
.tour-step { display: grid; gap: 18px; align-items: center; grid-template-columns: 1.1fr 1fr; }
.tour-step.invert { grid-template-columns: 1fr 1.1fr; }
.tour-step.invert .tour-text { order: 2; }
.tour-step.invert .tour-image { order: 1; }
.tour-text h2 { margin: 0 0 8px; }
.tour-text p { margin: 0; }
.tour-image img { width: 100%; height: auto; border-radius: 20px; display: block; }
/* simple phone frame */
.phone-frame { padding: 10px; border-radius: 28px; background: linear-gradient(180deg, #f8fafc, #eef2f7); box-shadow: inset 0 0 0 2px #e5e7eb, 0 8px 20px rgba(0,0,0,0.06); }
/* CTA card at bottom */
.tour-cta { text-align: center; padding: 28px; }
@media (max-width: 900px) {
  .tour-step, .tour-step.invert { grid-template-columns: 1fr; }
  .tour-step.invert .tour-text { order: 1; }
  .tour-step.invert .tour-image { order: 2; }
}


/* START ANCHOR: Hybrid Hamburger Nav (fixed) */
.nav .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.nav-feature {
  font-weight: 500;
}

.nav-toggle {
  margin-left: auto;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-links {
  display: none;
  flex-direction: column;
  background: #fff;
  position: absolute;
  top: 60px;
  right: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav-links.active {
  display: flex;
}

.nav-links a {
  padding: 0.5rem 0;
}
/* END ANCHOR: Hybrid Hamburger Nav (fixed) */

/* START ANCHOR: Modern Chevron Scroll Indicator */
.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  cursor: pointer;
  z-index: 2;
}

.scroll-down span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-left: 3px solid var(--brand);
  border-bottom: 3px solid var(--brand);
  transform: rotate(-45deg);
  animation: scrollBounce 1.5s infinite;
}

@keyframes scrollBounce {
  0%   { transform: translateY(0) rotate(-45deg); opacity: 1; }
  50%  { transform: translateY(8px) rotate(-45deg); opacity: 0.6; }
  100% { transform: translateY(0) rotate(-45deg); opacity: 1; }
}
/* END ANCHOR: Modern Chevron Scroll Indicator */
