* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #38bdf8;
  --secondary: #06b6d4;
  --text-dark: #0f172a;
  --text: #334155;
  --text-light: #64748b;
  --bg-light: #f0f9ff;
  --bg-white: #ffffff;
  --border: #e0f2fe;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 165, 233, 0.12);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-white);
}

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

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

h1, h2, h3 {
  color: var(--text-dark);
  line-height: 1.25;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 800px;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.45);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-sm { padding: 8px 18px; font-size: 0.9rem; }
.btn-lg { padding: 14px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

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

.logo-img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s;
}

.logo:hover .logo-img {
  transform: rotate(-10deg) scale(1.08);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
}

.logo-text span {
  color: var(--primary);
}

.logo-light .logo-text {
  color: #fff;
}

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

.nav a:not(.btn) {
  font-weight: 500;
  color: var(--text);
  position: relative;
}

.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s;
}

.nav a:not(.btn):hover {
  color: var(--primary-dark);
}

.nav a:not(.btn):hover::after {
  width: 100%;
}

.nav-toggle,
.nav-burger {
  display: none;
}

/* ==================== HERO ==================== */
.hero {
  padding: 80px 0 100px;
  background:
    radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.25), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(6, 182, 212, 0.18), transparent 40%),
    var(--bg-light);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 60px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text > p {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero-stats {
  list-style: none;
  display: flex;
  gap: 40px;
}

.hero-stats strong {
  display: block;
  font-size: 1.8rem;
  color: var(--text-dark);
}

.hero-stats span {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Hero mock browser */
.hero-visual {
  position: relative;
}

.browser {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(2, 132, 199, 0.2);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #f1f5f9;
}

.browser-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.browser-bar i:nth-child(1) { background: #f87171; }
.browser-bar i:nth-child(2) { background: #fbbf24; }
.browser-bar i:nth-child(3) { background: #34d399; }

.browser-bar span {
  margin-left: 12px;
  padding: 2px 12px;
  border-radius: 6px;
  background: #fff;
  font-size: 0.8rem;
  color: var(--text-light);
}

.browser-body {
  padding: 20px;
}

.mock-hero {
  height: 140px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  margin-bottom: 16px;
}

.mock-line {
  height: 12px;
  border-radius: 6px;
  background: #e2e8f0;
  margin-bottom: 10px;
}

.w-70 { width: 70%; }
.w-50 { width: 50%; }

.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.mock-cards div {
  height: 70px;
  border-radius: 8px;
  background: var(--bg-light);
  border: 1px solid var(--border);
}

.float-card {
  position: absolute;
  padding: 12px 18px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  animation: float 4s ease-in-out infinite;
}

.float-card strong {
  color: #16a34a;
}

.float-1 { top: -18px; right: -10px; }
.float-2 { bottom: -22px; left: -20px; animation-delay: 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==================== TRUST ==================== */
.trust {
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.trust p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 48px;
}

.trust-logos span {
  font-size: 1.3rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

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

.section-alt {
  background: var(--bg-light);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.eyebrow {
  display: inline-block;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-light);
  font-size: 1.05rem;
}

.grid {
  display: grid;
  gap: 28px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Service cards */
.card {
  padding: 32px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--bg-light);
  font-size: 1.6rem;
  margin-bottom: 20px;
}

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

.card p {
  color: var(--text-light);
}

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

.steps li {
  position: relative;
  padding: 32px 24px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.06);
}

.step-num {
  display: inline-block;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.steps h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.steps p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Portfolio */
.work {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
}

.work:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.work-thumb {
  height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.work-thumb span {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.thumb-1 { background: linear-gradient(135deg, #fb923c, #f43f5e); }
.thumb-2 { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.thumb-3 { background: linear-gradient(135deg, #10b981, #06b6d4); }

.work figcaption {
  padding: 20px 24px;
}

.work h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.work p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Testimonials */
.quote {
  padding: 32px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.quote p {
  font-size: 1.05rem;
  color: var(--text-dark);
}

.quote footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.quote small {
  display: block;
  color: var(--text-light);
}

/* Pricing */
.pricing {
  align-items: center;
}

.plan {
  position: relative;
  padding: 36px 32px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
}

.plan h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.plan-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.plan-price small {
  font-size: 1rem;
  margin-left: 2px;
}

.plan ul {
  list-style: none;
  margin-bottom: 28px;
}

.plan li {
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px dashed var(--border);
}

.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.plan-featured {
  border: 2px solid var(--primary);
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.2);
  padding: 48px 32px;
}

.plan-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

/* FAQ */
.faq details {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq summary {
  padding: 20px 56px 20px 24px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details p {
  padding: 0 24px 20px;
  color: var(--text-light);
}

/* CTA / Contact */
.cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
  color: #e0f2fe;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cta h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 16px;
}

.cta-text > p {
  font-size: 1.1rem;
  margin-bottom: 28px;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.contact-list a {
  color: #fff;
  font-weight: 600;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 36px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 30px 60px rgba(2, 6, 23, 0.2);
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
  font-weight: 400;
  color: var(--text-dark);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.contact-form textarea {
  resize: vertical;
}

/* ==================== FOOTER ==================== */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 56px 0 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-inner p {
  margin-top: 10px;
}

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

.footer-nav a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #1e293b;
  font-size: 0.9rem;
  text-align: center;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .nav-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
  }

  .nav-burger span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
  }

  .nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 20px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .nav a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav a:not(.btn)::after {
    display: none;
  }

  .nav .btn {
    margin: 16px 0;
  }

  .nav-toggle:checked ~ .nav {
    max-height: 420px;
    padding-bottom: 8px;
  }

  .nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

  .hero-inner,
  .cta-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .browser {
    transform: none;
  }

  .float-1 { right: 0; }
  .float-2 { left: 0; }

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

  .pricing {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .section {
    padding: 72px 0;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .grid-3,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-stats strong {
    font-size: 1.4rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .contact-form {
    padding: 24px;
  }

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