/* =====================
   1. CSS RESET/NORMALIZE
======================== */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
body {
  line-height: 1.6;
  background: #FDFDFB;
  color: #29374D;
}
ol, ul { list-style: none; }
table { border-collapse: collapse; border-spacing: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}

/* =====================
   2. BRAND VARIABLES
======================== */
:root {
  --primary: #28517B;
  --secondary: #B5D783;
  --accent: #F2F4F8;
  --neutral: #FAFAF6;
  --highlight: #FFF7EA;
  --cta: #FFBB64;
  --danger: #DA6B5B;
  --success: #B5D783;
  --text: #29374D;
  --text-light: #49617F;
  --shadow: 0 2px 12px 0 rgba(55,67,71,0.12);
  --radius: 18px;
  --radius-btn: 36px;
  --focus: #E4EAF6;
}

@font-face {
  font-family: 'Montserrat';
  font-display: swap;
  src: local('Montserrat'), url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500,400&display=swap');
}
@font-face {
  font-family: 'Roboto';
  font-display: swap;
  src: local('Roboto'), url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--text);
  background: var(--neutral);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.4rem; margin-bottom: 14px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; color: var(--primary); }
h5, h6 { font-size: 1rem; }
p {
  margin-bottom: 16px;
  color: var(--text-light);
  font-size: 1.05rem;
}
strong { color: var(--primary); font-weight: 600; }

/* Typography scale */
.display { font-size: 2.75rem; font-weight: 700; }
.lead { font-size: 1.15rem; font-weight: 500; }

/* =====================
   3. CONTAINER + LAYOUT
======================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 600px) {
  .section {
    padding: 30px 8px;
    margin-bottom: 44px;
  }
  .container { padding: 0 8px; }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #FFF;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  padding: 28px 24px 24px 24px;
  transition: box-shadow .2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px 0 rgba(55,67,71,0.14);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .content-grid, .card-container, .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--highlight);
  border-radius: var(--radius);
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(55,67,71,0.10);
  color: var(--text);
}
.testimonial-author {
  font-weight: 600;
  color: var(--primary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.blog-preview-grid, .blog-list, .app-list, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .blog-preview-grid, .blog-list, .app-list, .service-list {
    flex-direction: column;
    gap: 18px;
  }
}

.blog-featured {
  background: #FFF;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px; 
  margin-bottom: 18px;
}
.popular-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.popular-tags span {
  background: var(--secondary);
  color: var(--primary);
  border-radius: var(--radius-btn);
  padding: 6px 14px;
  font-size: 0.98rem;
}

/* =====================
   4. HEADER & NAV
======================== */
header {
  background: #FFF;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 20;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
}
nav > a img {
  height: 40px;
  border-radius: var(--radius);
}
nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 24px;
}
nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 6px 16px;
  border-radius: var(--radius-btn);
  color: var(--primary);
  transition: background .15s;
}
nav ul li a:hover, nav ul li a:focus {
  background: var(--secondary);
  color: var(--text);
}
nav .cta.primary {
  margin-left: 28px;
}

@media (max-width: 1024px) {
  nav ul { gap: 10px; margin-left: 12px; }
  nav .cta.primary { margin-left: 10px; }
}
@media (max-width: 900px) {
  nav ul, nav .cta.primary { display: none; }
}

/* =====================
   5. MOBILE MENU
======================== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 60;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #FFF;
  font-size: 2.2rem;
  border-radius: 50%;
  border: none;
  box-shadow: var(--shadow);
  cursor: pointer;
  justify-content: center;
  align-items: center;
  transition: background .15s, box-shadow .2s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--primary);
  outline: none;
}
@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #FFF;
  z-index: 100;
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(.56,.14,.31,.96);
  box-shadow: 4px 0 20px 0 rgba(40,81,123,0.12);
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  display: block;
  width: 48px;
  height: 48px;
  margin: 24px auto 0 18px;
  background: var(--secondary);
  color: var(--primary);
  font-size: 2rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  text-align: center;
  transition: background .2s, color .2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--primary);
  color: #FFF;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 62px 0 0 28px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  color: var(--primary);
  padding: 10px 0;
  border-radius: var(--radius-btn);
  transition: background .15s, color .15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--text);
}
@media (max-width: 420px) {
  .mobile-nav { margin-left: 12px; }
}

/* =====================
   6. CTA BUTTONS
======================== */
.cta {
  font-family: 'Montserrat', Arial, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  background: var(--secondary);
  color: var(--primary);
  border-radius: var(--radius-btn);
  padding: 10px 32px;
  margin-top: 16px;
  min-height: 48px;
  box-shadow: 0 1px 5px 0 rgba(180,200,120,0.11);
  border: none;
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s;
}
.cta.primary {
  background: var(--primary);
  color: #FFF;
  box-shadow: 0 2px 10px 0 rgba(40,81,123,0.10);
}
.cta:hover, .cta:focus {
  background: var(--cta);
  color: var(--primary);
  box-shadow: 0 4px 24px 0 rgba(40,81,123,0.14);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* =====================
   7. FOOTER
======================== */
footer {
  background: var(--accent);
  padding: 40px 0 22px 0;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-top: 60px;
  box-shadow: var(--shadow);
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  font-size: 1rem;
  color: var(--text-light);
  padding: 2px 0;
}
footer nav a:hover {
  color: var(--primary);
  font-weight: 600;
}
footer .text-section {
  min-width: 200px;
  color: var(--text-light);
}
footer .social-links {
  display: flex;
  gap: 13px;
  align-items: center;
}
footer .social-links a img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
footer img {
  max-height: 38px;
}
@media (max-width: 768px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}

/* =====================
   8. ICONS & LISTS
======================== */
ul li, .feature-item {
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 1.5;
  margin-bottom: 10px;
}
ul li img {
  width: 30px;
  height: 30px;
  background: var(--secondary);
  padding: 5px;
  border-radius: 50%;
  margin-right: 5px;
}
ul li:last-child { margin-bottom: 0; }

.section ul {
  margin-bottom: 14px;
  flex-direction: column;
  gap: 10px;
}

/* =====================
   9. FORM ELEMENTS
======================== */
input, textarea, select {
  background: #FFF;
  border: 1px solid #E4EAF6;
  border-radius: var(--radius-btn);
  padding: 12px 18px;
  margin-bottom: 16px;
  font-size: 1.03rem;
  color: var(--primary);
  box-shadow: none;
  transition: border .12s, box-shadow .16s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 2px 2px var(--focus);
  outline: none;
}
label { font-weight: 500; margin-bottom: 2px; display: block; color: var(--primary); }
::placeholder { color: #BBD2E4; opacity: 1; }

/* =====================
   10. SPECIAL BLOCKS: SERVICES, APPS, HIGHLIGHTS
======================== */
.service-list > div, .app-list > div, .blog-list > div, .blog-preview-grid > div {
  background: #FFF;
  border-radius: var(--radius);
  padding: 20px 20px 18px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 220px;
  flex: 1 1 210px;
}
.service-list > div h3, .app-list > div h3, .blog-list > div h3, .blog-preview-grid > div h3 {
  margin-top: 0;
  font-size: 1.2rem;
}
.service-price {
  display: inline-block;
  background: var(--highlight);
  color: var(--primary);
  border-radius: var(--radius-btn);
  padding: 6px 16px;
  margin-top: 8px;
  font-weight: 600;
  font-size: 1rem;
}

.founder-highlight, .milestones {
  background: var(--accent);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  margin-top: 14px;
}
.milestones ul { flex-direction: column; gap: 8px; }

.app-highlights ul { flex-direction: column; gap: 6px; }

.text-section img {
  width: 21px;
  height: 21px;
  vertical-align: middle;
  margin-right: 8px;
  margin-bottom: -4px;
}

/* =====================
   11. SPACING UTILITIES
======================== */
.mb-0 { margin-bottom: 0 !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-32 { margin-top: 32px !important; }
.mr-12 { margin-right: 12px !important; }

/* =====================
   12. COOKIE BANNER & MODAL
======================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #FFF;
  box-shadow: 0 -4px 18px 0 rgba(40,81,123,0.11);
  padding: 24px 16px 19px 16px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: transform .4s cubic-bezier(.58,.08,.29,.93), opacity .3s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner-content {
  color: var(--primary);
  font-size: 1.02rem;
  text-align: center;
  margin-bottom: 0;
}
.cookie-banner-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 20px;
  border-radius: var(--radius-btn);
  background: var(--secondary);
  color: var(--primary);
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 7px 0 rgba(70,100,40,0.06);
  transition: background .12s, color .12s;
}
.cookie-btn.accept {
  background: var(--success);
  color: var(--primary);
  font-weight: 700;
}
.cookie-btn.reject {
  background: var(--danger);
  color: #FFF;
  font-weight: 500;
}
.cookie-btn.settings {
  background: var(--primary);
  color: #FFF;
}
.cookie-btn:hover, .cookie-btn:focus {
  opacity: .86;
}

.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1300;
  width: 95vw;
  max-width: 420px;
  padding: 28px 24px 22px 24px;
  background: #FFF;
  border-radius: var(--radius);
  box-shadow: 0 8px 34px 0 rgba(40,81,123,0.19);
  transform: translate(-50%,-60%) scale(.9);
  opacity: 0;
  pointer-events: none;
  transition: transform .32s, opacity .22s;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal-header {
  background: var(--highlight);
  padding: 10px 0 4px 0;
  border-radius: var(--radius);
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.cookie-category label {
  font-weight: 500;
  margin-bottom: 0;
  color: var(--primary);
}
.cookie-category input[type='checkbox'] {
  width: 22px;
  height: 22px;
  accent-color: var(--secondary);
  border-radius: 8px;
}
.cookie-category input[disabled] { opacity: .75; }
.cookie-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 12px;
  background: var(--danger);
  color: #FFF;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
}

/* =====================
   13. MICRO-INTERACTIONS & HOVER ANIMATIONS
======================== */
a, .cta, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: background .16s, color .16s, box-shadow .16s, transform .16s;
}
a:focus-visible, .cta:focus-visible, .cookie-btn:focus-visible, .mobile-menu-toggle:focus-visible, .mobile-menu-close:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}
.cta:active, .cookie-btn:active {
  transform: scale(.98);
}
.card, .blog-featured, .service-list > div, .testimonial-card, .app-list > div {
  transition: box-shadow .21s, transform .23s;
}
.card:hover, .blog-featured:hover,
.service-list > div:hover, .testimonial-card:hover, .app-list > div:hover {
  box-shadow: 0 8px 28px 0 rgba(40,81,123,0.14);
  transform: translateY(-3px) scale(1.01);
}

/* =====================
  14. RESPONSIVE TWEAKS
======================== */
@media (max-width: 540px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.16rem; }
  h3 { font-size: 1rem; }
  header, footer {
    padding: 12px 0;
    min-height: 0;
  }
  .cta, .cta.primary {
    font-size: .96rem;
    min-height: 42px;
    padding: 7px 12px;
  }
  .mobile-menu-close, .mobile-menu-toggle {
    width: 38px; height: 38px; font-size: 1.5rem;
  }
  .mobile-nav a { font-size: 1rem; }
}
@media (max-width: 340px) {
  .cookie-banner, .cookie-modal { padding-left: 4px; padding-right: 4px; }
}

/* =====================
   15. MISC & ACCESSIBILITY
======================== */
main:focus {
  outline: none;
}
::-webkit-scrollbar {
  width: 8px;
  background: var(--accent);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 12px;
}

/* Hide visually (for a11y) */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* =====================
   16. EXTRA: CARD ALTERNATES, ALERTS
======================== */
.card-alt {
  background: var(--highlight);
  border-radius: var(--radius);
  box-shadow: 0 1px 6px 0 rgba(210,180,80,0.07);
  padding: 18px 14px;
}
.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--secondary);
  color: var(--primary);
  border-radius: var(--radius-btn);
  font-weight: 500;
  margin-bottom: 12px;
}
.alert.error {
  background: var(--danger);
  color: #FFF;
}

/* =====================
   17. BRAND PERSONALITY: WARM & FRIENDLY
======================== */
.section, .card, .service-list > div, .testimonial-card, .blog-featured, .founder-highlight, .milestones, .app-list > div {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  /* Soft, rounded shapes */
}
@media (max-width: 600px) {
  .section, .card, .founder-highlight, .milestones, .blog-featured {
    padding-left: 8px; padding-right: 8px;
  }
}

/* "Approachable" personality colors */
.section, .testimonial-card, .founder-highlight, .milestones {
  background: var(--accent);
}
.testimonial-card {
  background: #FFF7EA;
  color: var(--text);
}
.card, .service-list > div, .app-list > div {
  background: #FFF;
}

.cta, .cta.primary, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close {
  border-radius: var(--radius-btn);
  box-shadow: 0 2px 10px 0 rgba(180,180,80,0.08);
}

/* Button micro-interactions are set above */

/* =====================
   18. Z-INDEXING FOR LAYERING (MOBILE MENU, COOKIE)
======================== */
.mobile-menu { z-index: 1000; }
.mobile-menu-toggle { z-index: 1100; }
.cookie-banner, .cookie-modal { z-index: 1150; }
