@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600&family=Lora:ital,wght@0,600;0,700;1,400&display=swap');

/* 2. Define the font family variables */
:root {
  --font-heading: 'Lora', serif;
  --font-body: 'Instrument Sans', sans-serif;
  --text-color-dark: #594a37;

  --color-sage: #848D7A;
  --color-sage-dark: #727A69;

  --color-text-main: #2D2C2A;
  --color-text-muted: #5C5A57;
}

html, body {
    padding: 0;
    margin: 0;
}

#app-name-div {
    background-color: #f7f3e7;
}

#app-name {
    font-family: var(--font-heading);
    background-color: #f7f3e7;
    color: var(--text-color-dark);
    font-size: 32px;
    width: 880px;
    margin: 0 auto;
    padding-top: 18px;
    padding-bottom: 18px;
}

#top {
    width: 100%;
    background-color: #f7f3e7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 20px;
}

#top-content {
    width: 880px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

#left-in-top {
    flex: 1;
    width: 50%;
}

#title-and-logo {
    display: flex;
    justify-content: space-between;
}

#title {
    font-family: var(--font-heading);
    color: var(--text-color-dark);
    font-size: 36px;
    margin: 0px;
}

#details {
    font-family: var(--font-body);
    color: var(--text-color-dark);
    font-size: 20px;
    width: 70%;
    margin-bottom: 12px;
}

#download-div {
    display: flex;
    align-items: center; /* Vertically centers the buttons perfectly */
    gap: 16px;
}

.mac-download-btn {
  position: relative; /* Needed to anchor the inner dashed line */
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: #FFFFFF;
  background-color: var(--color-sage);
  
  /* Layout & Spacing */
  padding: 14px 32px; /* Slightly widened padding for better visual balance */
  text-decoration: none;
  border-radius: 12px; /* Mac-style squircle roundness */
  
  /* Reset standard borders */
  border: none;
  
  /* Smooth interaction */
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  
  /* Soft shadow for depth */
  box-shadow: 0 4px 12px rgba(132, 141, 122, 0.2);
}

/* The Stitched Inner Dashed Line */
.mac-download-btn::after {
  content: '';
  position: absolute;
  
  /* This controls the padding/gap between the button edge and the dashes */
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  
  /* Create the dashes */
  border: 2.0px dashed rgba(255, 255, 255, 0.6);
  
  /* Matches the button corner curves proportionally */
  border-radius: 8px; 
  
  /* Ensures clicks pass through to the button */
  pointer-events: none; 
}

/* Hover & Active States */
.mac-download-btn:hover {
  background-color: var(--color-sage-dark);
  box-shadow: 0 6px 16px rgba(132, 141, 122, 0.3);
  transform: translateY(-1px);
}

.mac-download-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(132, 141, 122, 0.2);
}

.mac-learn-more-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-text-main);
  background-color: transparent;
  
  /* Layout & Spacing */
  padding: 12px 28px;
  text-decoration: none;
  border-radius: 12px; /* Mac-style squircle roundness */
  
  /* Clean border to distinguish it from the primary CTA button */
  border: 2.0px solid rgba(45, 44, 42, 0.15);

  box-sizing: border-box;
  
  /* Smooth interaction */
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* Hover & Active States */
.mac-learn-more-btn:hover {
  color: var(--color-sage);
  border-color: var(--color-sage);
  background-color: rgba(132, 141, 122, 0.05); /* Very soft hint of sage background tint */
  transform: translateY(-1px);
}

.mac-learn-more-btn:active {
  transform: translateY(0);
  background-color: rgba(132, 141, 122, 0.1);
}

#right-in-top {
    flex: 1;
    width: 50%;
    display: flex;
}

#milestone-macbook-pro {
    width: 100%;
    height: 100%;
    
    /* 'contain' ensures the whole image is visible without being cropped or stretched.
       Alternatively, use 'cover' if you want it to completely fill the box (edges might crop). */
    object-fit: contain; 
    
    /* Optional: aligns the image to the center of the right div */
    object-position: center; 
    margin-top: -20px;
    margin-left: 12px;
}

#logo {
    width: 120px;
    height: 120px;
}


#bottom {
    background-color: white;
    width: 100%
}

/* Section Container */
.features-section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  background-color: #FFFFFF; /* Bottom half background color from demo image */
}

/* Section Title */
.features-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 2.2rem;
  color: var(--color-text-main);
  margin-bottom: 50px;
}

/* Responsive Grid Layout */
.features-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0; /* Handled by internal borders instead */
}

/* Individual Feature Columns */
.feature-card {
  flex: 1;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Tactile Dashed Dividers between columns */
.feature-card:not(:last-child) {
  border-right: 2.0px dashed #C5C3BF;
}

/* Icon Container & Stylings */
.feature-icon {
  color: var(--color-sage);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Typography inside Feature Cards */
.feature-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-text-main);
  margin: 0 0 4px 0;
}

.feature-card h4 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--color-text-main);
  margin: 0 0 6px 0;
}

.feature-card p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Responsive collapse for mobile viewports */
@media (max-width: 768px) {
  .features-grid {
    flex-direction: column;
    gap: 40px;
  }
  
  .feature-card {
    padding: 0;
    width: 100%;
  }
  
  .feature-card:not(:last-child) {
    border-right: none;
    border-bottom: 1.5px dashed #C5C3BF;
    padding-bottom: 40px;
  }
}

/* --- Modal Popup Styles --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Dimmed backdrop */
  backdrop-filter: blur(4px); /* Modern frosted-glass effect */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-in-out;
}

/* Open state modifier via JS */
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: #f7f3e7; /* Matching your top section tint */
  padding: 32px;
  border-radius: 16px;
  width: 90%;
  max-width: 440px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  text-align: center;
  position: relative;
  font-family: var(--font-body);
  transform: translateY(10px);
  transition: transform 0.25s ease-in-out;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.close-modal-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal-btn:hover {
  color: var(--color-text-main);
}

.modal-title {
  margin: 0 0 8px 0;
  font-family: var(--font-heading);
  color: var(--text-color-dark);
  font-size: 22px;
}

.modal-subtitle {
  margin: 0 0 24px 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.4;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

/* Architecture Options styling */
.popup-btn {
  flex: 1;
  display: inline-block;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
  text-align: center;
}

/* Secondary choice (Intel) */
.intel-btn {
  color: var(--color-text-main);
  background-color: transparent;
  border: 2px solid rgba(45, 44, 42, 0.15);
}

.intel-btn:hover {
  background-color: rgba(45, 44, 42, 0.05);
  border-color: var(--color-text-main);
}

/* Primary recommended choice (Silicon) */
.silicon-btn {
  color: #FFFFFF;
  background-color: var(--color-sage);
  border: 2px solid transparent;
}

.silicon-btn:hover {
  background-color: var(--color-sage-dark);
}
