/* ============================================
   Updev - Site Institucional
   CSS Puro, sem frameworks
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --orange: #f47920;
  --orange-hover: #db6b18;
  --orange-light: rgba(244, 121, 32, 0.1);
  --graphite: #2d3142;
  --gray-dark: #4a4e5a;
  --gray-mid: #6b7080;
  --gray-light: #f4f5f7;
  --gray-border: #e2e4e9;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--graphite);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

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

.btn-primary {
  background: var(--orange);
  color: var(--white);
  height: 52px; /* Consistent height */
  justify-content: center;
}
.btn-primary:hover { background: var(--orange-hover); }

.btn-outline {
  background: transparent;
  color: var(--graphite);
  border: 2px solid var(--gray-border);
  height: 52px;
  justify-content: center;
  font-weight: 700; /* Heavier typography */
  opacity: 0.9;
}
.btn-outline:hover { 
  background: var(--white); 
  border-color: var(--graphite);
  color: var(--graphite);
  opacity: 1;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--orange-light);
  color: var(--orange);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
}

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

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

.section-header.col-10 {
  max-width: none;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 16px 0;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--gray-mid);
}

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

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
}

.logo-img {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.logo--footer {
  display: inline-flex;
}

.logo-img--footer {
  height: 48px;
  max-width: 200px;
}

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

.nav a {
  color: var(--gray-mid);
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: var(--graphite); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--graphite);
  margin: 6px 0;
  transition: 0.3s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-top: 1px solid var(--gray-border);
  background: var(--white);
}

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

/* ========== HERO ========== */
.hero {
  padding: 120px 0 80px;
  background: var(--gray-light);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr; /* Approx 55/45 */
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 16px 0;
}

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

.hero p {
  font-size: 1.125rem;
  color: var(--gray-mid);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-border);
}

.hero-stats div strong {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}

.hero-stats div span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-mid);
}

/* Hero Mockup Composition */
.hero-mockup-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 20px;
}

.mockup-main {
  position: relative;
  z-index: 2;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.1); /* Softer, larger shadow */
  border: 1px solid var(--gray-border);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(-20px); /* Lifted slightly */
  transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-mockup-wrapper:hover .mockup-main {
  transform: perspective(1000px) rotateY(0) rotateX(0) translateY(-30px);
}

.mockup-secondary {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 85%;
  z-index: 1;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border: 1px solid var(--gray-border);
  overflow: hidden;
  opacity: 0.8;
  filter: blur(1px);
  transition: 0.4s ease;
}

.hero-mockup-wrapper:hover .mockup-secondary {
  opacity: 1;
  filter: blur(0);
  right: -20px;
}

.mockup-mobile {
  position: absolute;
  bottom: -40px; /* Adjusted */
  left: -30px; /* Adjusted */
  width: 38%; /* Larger (~15% increase) */
  z-index: 3;
  background: var(--graphite);
  border: 6px solid var(--graphite);
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  overflow: hidden;
  transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-mockup-wrapper:hover .mockup-mobile {
  transform: translateY(-10px) scale(1.05);
}

.mockup-main .browser-body {
  height: 340px;
  background: var(--white);
}

.mockup-main img,
.mockup-secondary img,
.mockup-mobile img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-image {
  position: relative;
  perspective: 1000px;
}

/* Browser Mockup */
.browser-mockup {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--gray-border);
}

.browser-header {
  background: var(--gray-light);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--gray-border);
}

.browser-header span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.browser-url {
  flex: 1;
  background: var(--white);
  height: 18px;
  border-radius: 4px;
  margin-left: 10px;
}

.browser-body {
  height: 380px;
  overflow: hidden;
  display: block; /* Ensure it's not flex */
}

.browser-body img {
  width: 100%;
  height: auto;
  display: block;
  object-position: top;
}

/* Featured Mockup (with Scroll) */
.featured-mockup {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--gray-border);
  width: 100%;
}

.featured-mockup .browser-body {
  height: 480px; /* Controlled height for horizontal layout */
  overflow-y: auto; /* Enable manual scroll */
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-border) var(--gray-light);
}

/* Custom Scrollbar for Browser Mockup */
.featured-mockup .browser-body::-webkit-scrollbar {
  width: 8px;
}
.featured-mockup .browser-body::-webkit-scrollbar-track {
  background: var(--gray-light);
}
.featured-mockup .browser-body::-webkit-scrollbar-thumb {
  background: var(--gray-border);
  border-radius: 10px;
}
.featured-mockup .browser-body::-webkit-scrollbar-thumb:hover {
  background: var(--gray-mid);
}

.featured-mockup .browser-body img {
  width: 100%;
  display: block;
}

.hero-photo {
  width: 100%;
  display: block;
}

/* ========== SERVICES ========== */
.services { background: var(--white); }

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

.service-card {
  padding: 32px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 56px; height: 56px;
  background: var(--orange-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 28px; height: 28px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--gray-mid);
  font-size: 0.95rem;
}

/* ========== INTERMEDIATE CTA ========== */
.cta-intermediate {
  background: var(--graphite);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}

.cta-intermediate h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-intermediate p {
  font-size: 1.25rem;
  color: var(--gray-light);
  max-width: 700px;
  margin: 0 auto 32px;
  opacity: 0.9;
}

/* ========== SEU IMOVEL ========== */
.seuimovel {
  background: var(--gray-light);
}

.seuimovel .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.seuimovel-image {
  aspect-ratio: 16/10;
  background: var(--gray-light);
  border-radius: var(--radius);
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.seuimovel-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.seuimovel-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 16px 0;
}

.seuimovel-content p {
  font-size: 1.1rem;
  color: var(--gray-mid);
  max-width: 480px;
  margin-bottom: 32px;
}

/* ========== PORTFOLIO ========== */
.portfolio { background: var(--white); }

.portfolio-empty {
  text-align: center;
  color: var(--gray-mid);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.portfolio-empty code {
  font-size: 0.9em;
  background: var(--gray-light);
  padding: 2px 8px;
  border-radius: 6px;
}

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

@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  border-radius: var(--radius);
  border: 1px solid var(--gray-border);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
  background: var(--white);
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.project-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-card-link:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.project-card .project-image {
  aspect-ratio: 16/10;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
  overflow: hidden;
}

.project-card .project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.project-card .project-info {
  padding: 20px;
}

.project-card .project-info h3 {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 1rem;
  word-break: break-word;
}

.project-link-text {
  font-size: 0.875rem;
  color: var(--orange);
  font-weight: 500;
}

.project-card-link:hover .project-link-text {
  text-decoration: underline;
}

/* ========== SYSTEMS SUBSCRIPTION ========== */
.systems-subscription {
  background: var(--white);
}

.systems-layout {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.systems-tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.system-tab {
  width: 100%;
  text-align: left;
  border: 1px solid var(--gray-border);
  background: var(--white);
  color: var(--graphite);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.system-tab:hover {
  border-color: var(--orange);
  background: var(--orange-light);
  transform: translateY(-1px);
}

.system-tab.active {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.system-tab:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.systems-panel {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.system-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 28px;
  padding: 24px;
  align-items: flex-start;
}

.tab-content > .system-content {
  display: none;
}

.tab-content > .active.system-content {
  display: grid;
}

.system-content-image {
  border-radius: 12px;
  border: 1px solid var(--gray-border);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--gray-light);
}

.system-content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.system-content-info {
  display: flex;
  flex-direction: column;
}

.btn-saas {
  align-self: flex-start;
  margin-top: 24px;
}

.system-content-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 12px;
}

.system-content-info p {
  color: var(--gray-mid);
  margin-bottom: 18px;
}

.system-content-info ul li {
  color: var(--gray-mid);
  padding: 6px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.system-content-info ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .project-card {
    flex: 0 0 calc(50% - 12px);
    max-width: none;
  }
}

@media (min-width: 992px) {
  .project-card {
    flex: 0 0 calc(33.333% - 16px);
  }
}

/* ========== FEATURED PROJECT ========== */
.featured {
  background: var(--gray-light);
}

.featured-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr; /* Preview slightly larger */
  gap: 80px;
  align-items: center;
  text-align: left;
}

.featured-content {
  max-width: none;
  margin: 0;
}

.featured-content .section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-mid);
  margin: 8px 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.featured-content h3 {
  font-size: 4rem; /* More prominent headline for case */
  line-height: 1.05;
  font-weight: 800;
  margin: 0 0 28px;
  color: var(--graphite);
}

.featured-content p {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--gray-mid);
  margin-bottom: 32px;
}

.featured-content ul {
  display: block;
  margin-bottom: 40px;
}

.featured-content ul li {
  margin-bottom: 16px; /* More spacing */
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--graphite);
}

.featured-image {
  aspect-ratio: 16/9;
  background: var(--gray-light);
  border-radius: var(--radius);
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-photo {
  width: 100%;
  height: auto !important;
  object-fit: unset !important;
  object-position: top !important;
  display: block;
  background: var(--white);
}

.featured-content .tag {
  font-size: 0.875rem;
  color: var(--orange);
  font-weight: 500;
}

.featured-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 8px 0 16px;
}

.featured-content p {
  color: var(--gray-mid);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.featured-content ul {
  margin-bottom: 32px;
}

.featured-content ul li {
  color: var(--gray-mid);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.featured-content ul li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ========== CONTACT ========== */
.contact { background: var(--white); }

.contact-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-info h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 16px 0;
}

.contact-info > p {
  color: var(--gray-mid);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-detail .icon-box {
  width: 48px; height: 48px;
  background: var(--orange-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail .icon-box svg {
  width: 24px; height: 24px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 2;
}

.contact-detail .icon-box--fill svg {
  stroke: none;
  fill: var(--orange);
}

.contact-detail strong {
  display: block;
  font-weight: 500;
}

.contact-detail span {
  color: var(--gray-mid);
  font-size: 0.95rem;
}

.contact-info .contact-detail span a {
  color: var(--orange);
  font-weight: 500;
}

.contact-info .contact-detail span a:hover {
  text-decoration: underline;
}

.contact-info .contact-detail span a[href^="tel:"] {
  color: var(--graphite);
  font-weight: 500;
}

.contact-info .contact-detail span a[href^="tel:"]:hover {
  color: var(--orange);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--graphite);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--orange);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--graphite);
  color: var(--white);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-about p {
  color: rgba(255,255,255,0.6);
  margin-top: 16px;
  max-width: 360px;
  line-height: 1.7;
}

.footer h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

.footer-contact-list li {
  color: rgba(255,255,255,0.6);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-contact-list li svg {
  color: var(--orange);
  flex-shrink: 0;
}

.footer-contact-list a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.social-links a:hover { background: var(--orange); }

.social-links svg {
  width: 20px; height: 20px;
  fill: var(--white);
}

.social-links a[aria-label="Instagram"] svg,
.social-links a[aria-label="Facebook"] svg,
.social-links a[aria-label="LinkedIn"] svg {
  fill: none;
  stroke: var(--white);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .hero .container { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero h1 { font-size: 2.5rem; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image { order: -1; max-width: 550px; margin: 0 auto 40px; }
  .mockup-main { transform: none !important; }
  .mockup-secondary { top: -20px; right: -20px; width: 95%; }
  .mockup-mobile { bottom: -20px; left: -15px; width: 34%; }
  .mockup-main .browser-body { height: 260px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .systems-layout { grid-template-columns: 1fr; }
  .systems-tabs { flex-direction: row; flex-wrap: wrap; }
  .system-tab { flex: 1 1 180px; text-align: center; }
  .system-content { grid-template-columns: 1fr; }
  .featured-layout { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .featured-content { order: 1; } /* Content bottom, mockup top */
  .featured-content ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
  .featured-content h3 { font-size: 2.25rem; }
  .featured-mockup .browser-body { height: 320px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .nav, .header .btn { display: none; }
  .menu-toggle { display: block; }
  .hero { padding: 100px 0 48px; }
  .hero h1 { font-size: 2rem; line-height: 1.2; }
  
  /* Hero Mobile Refinement */
  .hero-image { display: none; } /* Remove image for cleaner mobile hero */
  .hero .container { gap: 32px; }
  .hero h1 { font-size: 2.25rem; line-height: 1.1; margin-bottom: 20px; }
  .hero p { font-size: 1.15rem; line-height: 1.5; margin-bottom: 32px; }
  .hero-cta { flex-direction: column; width: 100%; gap: 12px; }
  .hero-cta .btn { width: 100%; }
  
  .hero-stats { 
    flex-direction: column; 
    gap: 16px; 
    text-align: center;
    background: var(--white);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
  }
  .hero-stats div { padding: 8px 0; }
  .hero-stats div:not(:last-child) { border-bottom: 1px solid var(--gray-border); }

  .services-grid { grid-template-columns: 1fr; gap: 24px; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 32px; }
  
  .systems-tabs { flex-direction: column; gap: 8px; }
  .system-tab { text-align: center; border-radius: 8px !important; }
  .system-content { padding: 20px; gap: 24px; }
  
  .featured-layout { gap: 40px; }
  .featured-content h3 { font-size: 2rem; margin-bottom: 16px; line-height: 1.2; }
  .featured-content p { font-size: 1.15rem; line-height: 1.6; margin-bottom: 24px; }
  
  .featured-content ul { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 16px; 
    margin-bottom: 32px;
    padding: 0;
  }
  .featured-content ul li { 
    text-align: left; 
    font-size: 1.1rem; 
    line-height: 1.4;
    margin-bottom: 0;
    gap: 12px;
    color: var(--graphite);
  }
  
  .featured-content .btn { width: 100%; }
  
  .contact-form { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .section-header h2 { font-size: 1.75rem; }
}
