:root {
  --navy: #0b1e3d;
  --navy-soft: #142a4d;
  --blue: #1e5cff;
  --blue-dark: #144cdb;
  --gray-50: #f6f7f9;
  --gray-100: #edeff2;
  --gray-300: #d7dbe2;
  --gray-500: #6b7280;
  --white: #ffffff;
  --radius: 14px;
  --max-width: 1120px;
  --shadow: 0 8px 30px rgba(11, 30, 61, 0.06);
  --shadow-hover: 0 14px 40px rgba(11, 30, 61, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  line-height: 1.25;
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 16px;
  color: var(--navy-soft);
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-100);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 150px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 118px;
  width: auto;
  max-width: 440px;
  object-fit: contain;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-list a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  transition: color 0.15s ease;
}

.nav-list a:hover {
  color: var(--blue);
}

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.nav-cta:hover {
  background: var(--blue);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-outline {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--gray-300);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* HERO */
.hero {
  padding: 96px 0 88px;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

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

.tagline {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  color: var(--navy);
  margin-bottom: 20px;
}

.lead {
  font-size: 1.15rem;
  color: var(--gray-500);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* SECTIONS */
.section {
  padding: 88px 0;
}

.section-muted {
  background: var(--gray-50);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  max-width: 640px;
  margin-bottom: 48px;
}

.section-lead {
  max-width: 560px;
  font-size: 1.05rem;
  color: var(--gray-500);
}

/* TILES */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tile {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tile:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.tile h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.tile p {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin: 0;
}

/* STEPS */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  list-style: none;
}

.step-number {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin: 0;
}

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}

.price-card h3 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.price {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}

.price-card-featured {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  position: relative;
}

.price-features {
  list-style: none;
  margin: 0 0 28px;
  flex-grow: 1;
}

.price-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.93rem;
  color: var(--navy-soft);
}

.price-features li:last-child {
  border-bottom: none;
}

.price-desc {
  font-size: 0.93rem;
  color: var(--gray-500);
  flex-grow: 1;
}

.price-note {
  margin-top: 32px;
  font-size: 0.88rem;
  color: var(--gray-500);
  text-align: center;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* BENEFITS */
.benefits-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  margin-bottom: 32px;
}

.benefits-list li {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

.benefits-text {
  max-width: 620px;
  color: var(--gray-500);
}

/* PORTFOLIO */
.portfolio-intro {
  max-width: 700px;
  margin-top: -28px;
  margin-bottom: 32px;
  color: var(--gray-500);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-card {
  min-width: 0;
}

.portfolio-link {
  display: block;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.portfolio-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(30, 92, 255, 0.28);
}

.portfolio-preview {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 20px;
  overflow: hidden;
}

.preview-install {
  background: linear-gradient(135deg, #e8f2ff 0%, #f8fbff 50%, #dcecff 100%);
}

.preview-build {
  background: linear-gradient(135deg, #e9e6df 0%, #faf9f6 52%, #ded7cb 100%);
}

.preview-local {
  background: linear-gradient(135deg, #e6f7ef 0%, #fbfffd 52%, #d9f0e6 100%);
}

.mock-browser {
  position: absolute;
  inset: 28px 18px 18px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(11, 30, 61, 0.13);
  overflow: hidden;
  transform: rotate(-1deg);
}

.preview-build .mock-browser { transform: rotate(1deg); }
.preview-local .mock-browser { transform: rotate(-0.5deg); }

.mock-bar {
  height: 20px;
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 0 8px;
  background: #f1f3f6;
  border-bottom: 1px solid #e7e9ed;
}

.mock-bar span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c7cbd3;
}

.mock-page {
  height: calc(100% - 20px);
  padding: 12px 14px;
}

.mock-nav {
  height: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #102744;
  font-size: 0.55rem;
}

.mock-nav b {
  margin-right: auto;
  letter-spacing: 0.08em;
}

.mock-nav i {
  width: 19px;
  height: 3px;
  border-radius: 10px;
  background: #dce1e8;
}

.mock-hero {
  margin-top: 14px;
  max-width: 84%;
}

.mock-kicker {
  display: block;
  font-size: 0.38rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #1e5cff;
  margin-bottom: 7px;
}

.mock-hero strong {
  display: block;
  font-size: clamp(0.78rem, 1.3vw, 1.05rem);
  line-height: 1.15;
  color: #0b1e3d;
  margin-bottom: 7px;
}

.mock-hero em {
  display: block;
  max-width: 90%;
  font-size: 0.43rem;
  line-height: 1.35;
  font-style: normal;
  color: #6b7280;
  margin-bottom: 10px;
}

.mock-hero small {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 999px;
  background: #1e5cff;
  color: #fff;
  font-size: 0.38rem;
  font-weight: 700;
}

.preview-build .mock-kicker { color: #b36b22; }
.preview-build .mock-hero small { background: #1c2633; }
.preview-local .mock-kicker { color: #16865b; }
.preview-local .mock-hero small { background: #16865b; }

.portfolio-badge {
  position: absolute;
  left: 16px;
  top: 14px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.94);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11, 30, 61, 0.08);
  box-shadow: 0 4px 16px rgba(11, 30, 61, 0.06);
}

.portfolio-card-body {
  padding: 20px 22px 24px;
}

.portfolio-card h3 {
  font-size: 1.08rem;
  margin: 0 0 8px;
  color: var(--navy);
}

.portfolio-card p {
  font-size: 0.92rem;
  color: var(--gray-500);
  margin-bottom: 14px;
}

.portfolio-cta {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue);
}

/* CONTACT */
.contact-email {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 40px;
}

.contact-email a {
  color: var(--blue);
}

.contact-form {
  max-width: 720px;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.optional {
  font-weight: 400;
  color: var(--gray-500);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--gray-300);
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.15s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.form-status {
  margin-top: 20px;
  font-weight: 600;
  color: var(--blue);
  min-height: 1.4em;
}

/* FOOTER */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo {
  height: 72px;
  width: auto;
  max-width: 300px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-brand .tagline {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
}

.footer-brand a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--white);
}

.copyright {
  margin-top: 24px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .tile-grid,
  .steps,
  .pricing-grid,
  .benefits-list,
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .header-inner {
    min-height: 112px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand-logo {
    height: 86px;
    max-width: 310px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--gray-100);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-list.open {
    max-height: 420px;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    display: block;
    padding: 16px 24px;
    width: 100%;
  }

  .nav-cta {
    border-radius: 0;
    text-align: center;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .section {
    padding: 64px 0;
  }

  .tile-grid,
  .steps,
  .pricing-grid,
  .benefits-list,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

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

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

  .btn {
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
  }
}
