/* ===== JUVENAI GLOBAL STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap');

:root {
  --blue-dark: #0D1B2A;
  --blue-mid: #053C83;
  --blue-accent: #053C83;
  --blue-light: #053C83;
  --white: #FFFFFF;
  --gray-bg: #F2F2F0;
  --gray-light: #F8F8F6;
  --gray-text: #6B7280;
  --gray-border: #E5E7EB;
  --text-dark: #111827;
  --card-dark: #0D1B2A;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.hero-title { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-border);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 40px;
}

.navbar-inner {
  width: 100%; max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo span { color: var(--blue-accent); }

.nav-links {
  display: flex;
  gap: 48px;
  list-style: none;
}

.nav-links a {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--gray-text);
  padding-bottom: 4px;
  transition: color 0.2s;
}

.nav-links a.active {
  color: var(--blue-accent);
  border-bottom: 2px solid var(--blue-accent);
}

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

.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--text-dark);
  border-radius: 100px;
  padding: 4px;
  gap: 2px;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 100px;
  transition: all 0.2s;
  color: #888;
}

.lang-btn.active {
  background: var(--white);
  color: var(--text-dark);
}

/* ===== SECTIONS COMMON ===== */
.section { padding: 100px 40px; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.eyebrow {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.15;
  margin-bottom: 24px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--gray-text);
  line-height: 1.7;
  max-width: 680px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(2,8,30,0.75) 0%, rgba(3,20,60,0.5) 50%, rgba(2,8,30,0.15) 100%);
  z-index: 1;
}

.hero-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #020B2D 0%, #03154A 40%, #053C83 70%, #1A3A7A 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 80px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.hero-title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(42px, 6vw, 82px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  max-width: 820px;
  margin-bottom: 24px;
}

.hero-title-line1 {
  display: block;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: 1px;
}

.hero-sub {
  font-size: clamp(15px, 1.8vw, 18px);
  color: rgba(255,255,255,0.85);
  max-width: 620px;
  line-height: 1.7;
  font-weight: 300;
}

/* ===== CAROUSEL SECTION ===== */
.carousel-section {
  padding: 100px 40px;
  background: var(--white);
}

.carousel-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.accordion-list { list-style: none; }

.accordion-item {
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s;
}

.accordion-item.active { border-color: var(--blue-accent); }

.accordion-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 500;
  color: var(--gray-text);
}

.accordion-item.active .accordion-header { color: var(--blue-accent); }

.accordion-check {
  width: 22px; height: 22px;
  border: 2px solid var(--gray-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

.accordion-item.active .accordion-check {
  border-color: var(--blue-accent);
  background: var(--blue-accent);
  color: white;
}

.accordion-body {
  display: none;
  padding: 0 24px 20px 58px;
  font-size: 15px;
  color: var(--gray-text);
  line-height: 1.7;
}

.accordion-item.active .accordion-body { display: block; }

.phone-mockup-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-slide { display: none; }
.phone-slide.active { display: block; }

.phone-slide img {
  width: 280px;
  display: block;
  border-radius: 38px;
  border: 2px solid rgba(255,255,255,0.08);
  box-shadow: 0 40px 80px rgba(26,111,240,0.25);
  transition: opacity 0.4s;
}

/* ===== FEATURES SECTION ===== */
.features-section {
  padding: 100px 40px;
  background: var(--gray-bg);
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.features-title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  text-align: center;
  color: var(--blue-dark);
  margin-bottom: 70px;
}

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

.features-col { display: flex; flex-direction: column; gap: 48px; }
.features-col-left { text-align: right; }
.features-col-right { text-align: left; }

.feature-item-title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 10px;
}

.feature-item-text {
  font-size: 15px;
  color: var(--gray-text);
  line-height: 1.65;
}

.phone-center img {
  width: 220px;
  filter: drop-shadow(0 30px 60px rgba(26,111,240,0.2));
}

/* ===== CHART SECTION ===== */
.chart-section {
  padding: 100px 40px;
  background: #0F172A;
  color: var(--white);
}

.chart-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.chart-title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.chart-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  max-width: 640px;
  margin: 0 auto 60px;
  line-height: 1.7;
}

.chart-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.chart-legend { display: flex; flex-direction: column; gap: 20px; text-align: left; }

.legend-item { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(255,255,255,0.8); }

.legend-line {
  width: 32px; height: 2px;
  border-radius: 2px;
  flex-shrink: 0;
}

.legend-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #053C83;
  flex-shrink: 0;
}

/* ===== CTA SECTION ===== */
.cta-section-old {
  padding: 140px 40px;
  background: var(--blue-dark);
  text-align: center;
}

.cta-title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.cta-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
footer {
  background: #EBEBEB;
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.footer-logo {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
}
.footer-logo span { color: var(--blue-accent); }

.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-accent);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.footer-copy { font-size: 13px; color: var(--gray-text); }

.scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--blue-accent);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 999;
}
.scroll-top.visible { opacity: 1; }

/* ===== TWO-COL SECTIONS ===== */
.two-col {
  padding: 100px 40px;
  background: var(--white);
}
.two-col.gray-bg { background: var(--gray-bg); }

.two-col-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.two-col-inner.reverse { direction: rtl; }
.two-col-inner.reverse > * { direction: ltr; }

.col-img { width: 100%; border-radius: 16px; object-fit: cover; }

.col-text-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 12px;
}

.col-text-title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 20px;
}

.col-text-body {
  font-size: 16px;
  color: var(--gray-text);
  line-height: 1.75;
  margin-bottom: 24px;
}

.col-text-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--blue-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bullet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-top: 20px;
}

.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.5;
}

.bullet-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue-accent);
  margin-top: 6px;
  flex-shrink: 0;
}

/* ===== STATS CARDS ===== */
.stats-section {
  padding: 100px 40px;
  background: var(--white);
}

.stats-inner { max-width: 1200px; margin: 0 auto; }

.stats-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 60px;
}

.research-card {
  background: var(--gray-bg);
  border-radius: 16px;
  padding: 32px;
}

.research-card-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 16px;
}

.research-card-text {
  font-size: 15px;
  color: var(--gray-text);
  line-height: 1.7;
  margin-bottom: 20px;
}

.research-links { display: flex; gap: 24px; flex-wrap: wrap; }
.research-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--card-dark);
  border-radius: 16px;
  padding: 40px 32px;
  color: var(--white);
}

.stat-number {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 56px;
  font-weight: 700;
  color: #053C83;
  line-height: 1;
  margin-bottom: 12px;
}

.stat-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.stat-text { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.6; }
.stat-disclaimer { font-size: 12px; color: var(--gray-text); margin-top: 20px; }

/* ===== GRID CARDS ===== */
.grid-section {
  padding: 100px 40px;
  background: var(--gray-bg);
}

.grid-inner { max-width: 1200px; margin: 0 auto; }

.three-col-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.feature-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--gray-border);
}

.feature-card-icon {
  width: 44px; height: 44px;
  background: #EEF5FF;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
  color: var(--blue-accent);
}

.feature-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.feature-card-text {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.65;
}

/* ===== STEPS SECTION ===== */
.steps-section { padding: 100px 40px; background: var(--white); }
.steps-inner { max-width: 1200px; margin: 0 auto; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.step-item {}
.step-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
  background: var(--gray-bg);
}

.step-num-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--blue-dark);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.step-text { font-size: 14px; color: var(--gray-text); line-height: 1.6; }

/* ===== HERO COMO FUNCIONA ===== */
.hero-cf {
  padding: 160px 40px 100px;
  background: var(--gray-bg);
  text-align: center;
}

.hero-cf-title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 700;
  font-style: normal;
  color: var(--blue-dark);
  line-height: 1.1;
  margin-bottom: 32px;
  letter-spacing: -1px;
}

.hero-cf-title em {
  font-style: normal;
  color: var(--blue-dark);
  font-family: 'Roboto', sans-serif;
}

.hero-cf-sub {
  font-size: 18px;
  color: var(--blue-dark);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 400;
  opacity: 0.8;
}

/* ===== PRIVACY CARD ===== */
.privacy-card {
  background: var(--gray-bg);
  border-radius: 16px;
  padding: 28px 32px;
  margin-top: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.privacy-left { display: flex; align-items: flex-start; gap: 16px; flex: 1; }
.privacy-shield { font-size: 24px; color: var(--blue-accent); flex-shrink: 0; }
.privacy-text { font-size: 14px; color: var(--gray-text); line-height: 1.5; }
.privacy-text strong { color: var(--text-dark); display: block; margin-bottom: 12px; }

.privacy-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.privacy-pill {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--gray-border);
  border-radius: 100px;
  padding: 6px 14px;
  color: var(--text-dark);
}

.privacy-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--blue-accent);
  text-decoration: none;
  white-space: nowrap;
  display: flex; align-items: center; gap: 4px;
}

/* ===== MOBILE ===== */
.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-dark); border-radius: 2px; transition: all 0.3s; }

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: white; flex-direction: column; padding: 20px 40px; gap: 20px; border-bottom: 1px solid var(--gray-border); }
  .nav-links.open { display: flex; }
  .hero-content { padding: 0 24px; }
  .two-col-inner, .carousel-inner, .features-grid, .stats-top { grid-template-columns: 1fr; gap: 40px; }
  .two-col-inner.reverse { direction: ltr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .three-col-cards, .stats-cards { grid-template-columns: 1fr; }
  .features-col-left { text-align: left; }
  .chart-wrap { grid-template-columns: 1fr; }
  .section { padding: 60px 24px; }
  footer { flex-direction: column; gap: 16px; text-align: center; }
  .footer-left { flex-direction: column; gap: 16px; }
}

/* ===== HELVETICA NEUE - ALL TITLES ===== */
h1, h2, h3, h4,
.section-title, .chart-title, .cta-title, .features-title,
.col-text-title, .feature-card-title, .habit-sub-title,
.stat-title, .step-num-title, .pattern-col-title,
.feature-item-title, .hero-cf-title, .hero-title,
.logo, .footer-logo, .nav-links a, .accordion-header span,
.eyebrow, .col-text-eyebrow, .nutr-card-label,
.research-card-eyebrow, .programs-card-eyebrow,
.gluc-overlay-eyebrow, .privacy-pill, .stat-number,
.lang-btn, .footer-links a {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ===== ROBOTO - ALL BODY TEXT ===== */
body, p, li, span, div, a, button, input, textarea,
.col-text-body, .section-subtitle, .hero-sub,
.feature-card-text, .habit-sub-text, .stat-text,
.step-text, .pattern-col-body, .accordion-body,
.feature-item-text, .hero-cf-sub, .footer-copy,
.research-card-text, .programs-card-text,
.gluc-overlay-body, .privacy-text, .stat-disclaimer,
.nutr-pill, .privacy-pill, .chart-sub, .cta-sub {
  font-family: 'Roboto', sans-serif;
}

/* ===== STEPS IMAGES UNIFORM PROPORTION ===== */
.steps-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  margin-bottom: 20px;
  display: block;
}

/* ===== PRIVACY CARD FIX ===== */
.privacy-text strong {
  font-weight: 400;
  font-size: 14px;
  display: inline;
  color: #374151;
}
.privacy-pills {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

/* Chart + CTA matching background */
.cta-section {
  padding: 140px 40px;
  background: #0F172A;
  text-align: center;
}

/* ===== STEPS GRID GAP FIX ===== */
.steps-grid {
  gap: 48px;
}

/* ===== PATTERN PHONES MINI WITH REAL IMAGES ===== */
.pattern-phones-mini {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  background: none;
}
.pattern-phones-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: 12px;
}

/* ===== STAT NUMBERS LIGHTER BLUE ===== */
.stat-number {
  color: #4A9EF5 !important;
}

/* ===== DEVICE FRAMES ===== */

/* iPhone frame */
.iphone-frame {
  position: relative;
  display: inline-block;
  border-radius: 44px;
  background: #1a1a1a;
  padding: 12px 10px;
  box-shadow:
    0 0 0 2px #3a3a3a,
    0 0 0 4px #1a1a1a,
    0 20px 60px rgba(0,0,0,0.4);
}
.iphone-frame::before {
  content: '';
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 6px;
  background: #2a2a2a;
  border-radius: 3px;
  z-index: 2;
}
.iphone-frame img {
  display: block;
  border-radius: 34px;
  width: 100%;
}

/* MacBook frame */
.macbook-frame {
  position: relative;
  display: inline-block;
  width: 100%;
}
.macbook-screen {
  background: #1a1a1a;
  border-radius: 12px 12px 0 0;
  padding: 14px 14px 0 14px;
  border: 1.5px solid #3a3a3a;
  border-bottom: none;
}
.macbook-screen::before {
  content: '';
  display: block;
  width: 8px; height: 8px;
  background: #333;
  border-radius: 50%;
  margin: 0 auto 10px;
}
.macbook-screen img {
  display: block;
  width: 100%;
  border-radius: 4px;
}
.macbook-base {
  background: linear-gradient(180deg, #2a2a2a 0%, #1e1e1e 100%);
  height: 16px;
  border-radius: 0 0 6px 6px;
  border: 1.5px solid #3a3a3a;
  border-top: none;
  position: relative;
}
.macbook-base::after {
  content: '';
  position: absolute;
  bottom: 3px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
}
.macbook-foot {
  height: 5px;
  background: linear-gradient(180deg, #111 0%, transparent 100%);
  border-radius: 0 0 6px 6px;
  margin: 0 10px;
}

/* ===== PATTERN CARDS ===== */
.pattern-top-grid {
  gap: 32px;
}
.pattern-card {
  background: white;
  border-radius: 20px;
  padding: 32px 24px 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}
.pattern-card .iphone-frame {
  margin: 0 auto 28px;
  width: 160px;
}

/* ===== MACBOOK FRAME REALISTIC OVERRIDE ===== */
.macbook-frame {
  position: relative;
  display: inline-block;
  width: 100%;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.35));
}
.macbook-screen {
  background: #1c1c1e;
  border-radius: 14px 14px 0 0;
  padding: 22px 16px 0 16px;
  border: 2px solid #3a3a3c;
  border-bottom: none;
  position: relative;
}
/* Camera dot */
.macbook-screen::before {
  content: '';
  display: block;
  width: 7px; height: 7px;
  background: #3a3a3c;
  border-radius: 50%;
  margin: 0 auto 12px;
  box-shadow: 0 0 0 1px #2a2a2c;
}
.macbook-screen img {
  display: block;
  width: 100%;
  border-radius: 4px 4px 0 0;
}
/* Hinge line */
.macbook-base {
  background: linear-gradient(180deg, #2c2c2e 0%, #1c1c1e 100%);
  height: 22px;
  border-radius: 0 0 8px 8px;
  border: 2px solid #3a3a3c;
  border-top: 1px solid #555;
  position: relative;
}
/* Trackpad */
.macbook-base::after {
  content: '';
  position: absolute;
  bottom: 5px; left: 50%;
  transform: translateX(-50%);
  width: 70px; height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.05);
}
.macbook-foot {
  height: 8px;
  background: linear-gradient(180deg, #111 0%, transparent 100%);
  border-radius: 0 0 10px 10px;
  margin: 0 12px;
}

/* ===== MACBOOK FRAME - MACOS WINDOW STYLE ===== */
.macbook-frame {
  position: relative;
  display: inline-block;
  width: 100%;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.3));
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid #3a3a3c;
}
.macbook-screen {
  background: #1c1c1e;
  border-radius: 0;
  padding: 0;
  border: none;
}
/* macOS title bar with 3 dots */
.macbook-screen::before {
  content: '';
  display: block;
  height: 36px;
  background: #2a2a2c;
  border-bottom: 1px solid #3a3a3c;
  background-image:
    radial-gradient(circle, #FF5F57 0%, #FF5F57 100%),
    radial-gradient(circle, #FFBD2E 0%, #FFBD2E 100%),
    radial-gradient(circle, #28C840 0%, #28C840 100%);
  background-size: 12px 12px, 12px 12px, 12px 12px;
  background-repeat: no-repeat;
  background-position: 16px center, 34px center, 52px center;
  border-radius: 0;
}
.macbook-screen img {
  display: block;
  width: 100%;
  border-radius: 0;
}
.macbook-base {
  display: none;
}
.macbook-foot {
  display: none;
}

/* ===== MACBOOK FRAME - FINAL STYLE (3 circles, dark, rounded, gray shadow) ===== */
.macbook-frame {
  position: relative;
  display: inline-block;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid #2a2a2a;
  box-shadow:
    0 0 0 8px rgba(180,180,190,0.18),
    0 30px 80px rgba(0,0,0,0.28);
  background: #1a1a1e;
}
.macbook-screen {
  background: #1a1a1e;
  border-radius: 0;
  padding: 0;
  border: none;
}
.macbook-screen::before {
  content: '';
  display: block;
  height: 36px;
  background: #232325;
  border-bottom: 1px solid #2e2e30;
  background-image:
    radial-gradient(circle, #FF5F57 50%, transparent 51%),
    radial-gradient(circle, #FFBD2E 50%, transparent 51%),
    radial-gradient(circle, #28C840 50%, transparent 51%);
  background-size: 13px 13px, 13px 13px, 13px 13px;
  background-repeat: no-repeat;
  background-position: 16px center, 35px center, 54px center;
}
.macbook-screen img {
  display: block;
  width: 100%;
  border-radius: 0;
}
.macbook-base { display: none; }
.macbook-foot { display: none; }

/* ===== PATTERN CARDS EQUAL HEIGHT ===== */
.pattern-top-grid {
  align-items: start;
}
.pattern-top-grid > div {
  display: flex;
  flex-direction: column;
}
.pattern-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ===== PATTERN GRID CLEAN - no cards ===== */
.pattern-top-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
  align-items: start;
}
.pattern-top-grid > div {
  display: flex;
  flex-direction: column;
}
.pattern-top-grid > div img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 24px;
  display: block;
  object-fit: cover;
  height: 320px;
  object-position: top;
}
.pattern-card {
  background: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
