:root {
  --ink: #11141b;
  --ink-soft: #2b3447;
  --paper: #f7f4eb;
  --accent: #d85f2e;
  --accent-deep: #8f2f18;
  --teal: #147a79;
  --line: #d8d2c3;
  --panel: rgba(255, 255, 255, 0.7);
  --shadow: 0 14px 30px rgba(17, 20, 27, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 15%, rgba(216, 95, 46, 0.2), transparent 35%),
    radial-gradient(circle at 85% 78%, rgba(20, 122, 121, 0.2), transparent 35%),
    var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(17, 20, 27, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 20, 27, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 5vw;
  background: rgba(247, 244, 235, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(40px, 5vw, 60px);
  height: auto;
  object-fit: contain;
}

.brand-logo2 {
  margin-left: 0.5rem;
  width: clamp(100px, 12vw, 160px) !important;
}

nav {
  display: flex;
  gap: 1.25rem;
}

nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
}

nav a:hover {
  color: var(--accent-deep);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 5vw 4rem;
}

.hero h1,
h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.7rem);
}

.hero h1 span {
  color: var(--accent-deep);
}

.kicker {
  margin: 0 0 0.65rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.lead {
  max-width: 70ch;
  color: var(--ink-soft);
  margin: 1.25rem 0 0;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-block;
  padding: 0.72rem 1.15rem;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  box-shadow: var(--shadow);
}

.btn:hover {
  transform: translateY(-2px);
  background: #b44b23;
}

.btn-ghost {
  background: transparent;
  color: var(--accent-deep);
}

.btn-small {
  padding: 0.55rem 0.9rem;
  box-shadow: none;
}

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(17, 20, 27, 0.5);
}

.demo-modal.open {
  display: flex;
}

.demo-modal-panel {
  width: min(560px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 1.1rem 1.1rem 1.2rem;
  position: relative;
}

.demo-modal-close {
  position: absolute;
  right: 0.6rem;
  top: 0.5rem;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.demo-form {
  display: grid;
  gap: 0.55rem;
}

.demo-form label {
  margin-top: 0.35rem;
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.demo-form input,
.demo-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.62rem 0.72rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.demo-form textarea {
  resize: vertical;
}

.demo-form .btn {
  margin-top: 0.55rem;
  justify-self: start;
}

body.modal-open {
  overflow: hidden;
}

.stats {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.stats article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 1rem;
}

.stats h2 {
  font-size: 1.6rem;
  color: var(--accent-deep);
}

.panel,
.timeline,
.cta {
  margin-top: 3.2rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.1rem, 2.5vw, 2rem);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel.alt {
  background: linear-gradient(140deg, rgba(20, 122, 121, 0.08), rgba(216, 95, 46, 0.08));
}

.panel-heading {
  margin-bottom: 1.2rem;
}

.section-note {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.section-note a {
  color: var(--accent-deep);
  font-weight: 700;
}

.panel-heading h2,
.timeline h2,
.cta h2 {
  font-size: clamp(1.45rem, 4vw, 2.35rem);
}

.cards,
.service-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
}

.card,
.service-grid article {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.75);
  display: flex;
  flex-direction: column;
  min-height: 230px;
}

.card h3,
.service-grid article h3 {
  margin-top: 0;
}

.card p,
.service-grid article p {
  flex: 1;
  margin: 0;
}

.timeline ol {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.7rem;
}

.package-list {
  display: grid;
  gap: 1rem;
}

.feature-showcase {
  margin-top: 1.8rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.screenshot-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.screenshot-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
  cursor: zoom-in;
}

.screenshot-meta {
  padding: 0.85rem 0.95rem 1rem;
}

.screenshot-meta h3 {
  margin: 0;
  font-size: 1rem;
}

.screenshot-meta p {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.feature-detail-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.feature-detail {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  padding: 1rem;
}

.feature-detail h3 {
  margin-top: 0;
}

.feature-detail p {
  margin: 0;
  color: var(--ink-soft);
}

.package-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.82);
}

.package-item h3 {
  margin-top: 0;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-right: 0.35rem;
  color: var(--ink-soft);
}

.doc-links {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.doc-links a {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration-thickness: 2px;
}

.cta {
  text-align: center;
}

.feature-categories-nav {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 1.8rem;
}

.feature-category-link {
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  padding: 1.25rem;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
  box-shadow: var(--shadow);
}

.feature-category-link:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 40px rgba(17, 20, 27, 0.16);
  border-color: var(--accent);
}

.feature-category-link h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--accent-deep);
}

.feature-category-link p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

footer {
  padding: 2rem 5vw 3rem;
  text-align: center;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 650ms ease, transform 650ms ease;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
  background: rgba(10, 14, 24, 0.86);
  backdrop-filter: blur(3px);
  z-index: 2000;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(1400px, 100%);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 820px) {
  .site-header {
    flex-wrap: wrap;
  }

  .brand-logo {
    width: 40px;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    font-size: 0.94rem;
  }

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