/* =========================================================================
   APPLE-LIKE STYLING WITH RESPONSIVE LAYOUT FOR PHONE & DESKTOP
   ========================================================================= */

/* =============== RESET & BASIC VARIABLES =============== */
* {
  margin: 0; 
  padding: 0; 
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
:root {
  /* Light Mode Colors */
  --light-bg-color: #F5F5F7;
  --light-text-color: #1D1D1F;
  --light-subtext-color: #515154;
  
  /* Dark Mode Colors */
  --dark-bg-color: #1C1C1E;
  --dark-text-color: #F5F5F7;
  --dark-subtext-color: #A1A1A4;

  /* Accent color reminiscent of Apple's link/button */
  --accent-color: #0071E3;
  --accent-hover: #0077ED; 

  /* Rounding & Transitions */
  --rounded-edge: 14px;
  --transition-speed: 0.3s;
}

/* Body background & text depending on mode */
body.light-mode {
  background: var(--light-bg-color);
  color: var(--light-text-color);
}
body.dark-mode {
  background: var(--dark-bg-color);
  color: var(--dark-text-color);
}

/* Basic Elements */
img, video {
  max-width: 100%;
  display: block;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* LINKS */
a {
  text-decoration: none;
  color: var(--accent-color);
  transition: color var(--transition-speed);
}
a:hover {
  color: var(--accent-hover);
}

/* =========== HEADER & NAV =========== */
.header-rounded {
  border-bottom-left-radius: var(--rounded-edge);
  border-bottom-right-radius: var(--rounded-edge);
  /* Slight background or rely on body color? 
     We can keep it subtle to mimic Apple “frosted” style if you prefer. */
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.logo {
  height: 32px;
  margin-right: 0.5rem;
}
.company-name {
  font-size: 1.25rem;
  font-weight: 600;
}
.nav-right-group {
  display: flex;
  align-items: center;
}
.darkmode-toggle {
  display: flex;
  align-items: center;
  color: var(--accent-color);
  cursor: pointer;
  margin-right: 1rem;
  transition: color var(--transition-speed);
}
.darkmode-toggle:hover {
  color: var(--accent-hover);
}
.btn-nav-auth {
  border: 1px solid var(--accent-color);
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  transition: background var(--transition-speed), color var(--transition-speed);
}
.btn-nav-auth:hover {
  background: var(--accent-color);
  color: #fff;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--accent-color);
  margin-bottom: 5px;
  transition: all 0.3s ease;
}
.nav-menu {
  display: flex;
  list-style: none;
}
.nav-menu li {
  margin-left: 1rem;
}
.nav-menu a {
  padding: 0.5rem 0;
  color: inherit; /* rely on body color */
  font-weight: 400;
}
.nav-menu a.active {
  font-weight: 500;
  text-decoration: underline;
}

/* =========== HERO VIDEO SECTION =========== */
.hero-video {
  position: relative;
  height: 70vh;
  overflow: hidden;
  border-bottom-left-radius: var(--rounded-edge);
  border-bottom-right-radius: var(--rounded-edge);
}
.hero-bg-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.25);
  border-bottom-left-radius: var(--rounded-edge);
  border-bottom-right-radius: var(--rounded-edge);
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: #fff;
}
.hero-title {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}
.hero-cta-group a {
  margin: 0.5rem;
}

/* BASIC BUTTONS */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background var(--transition-speed), color var(--transition-speed);
}
.btn-primary-round {
  background: var(--accent-color);
  color: #fff;
  border-radius: 50px;
}
.btn-primary-round:hover {
  background: var(--accent-hover);
}
.btn-secondary-round {
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  border-radius: 50px;
  background: transparent;
}
.btn-secondary-round:hover {
  background: var(--accent-color);
  color: #fff;
}

/* MAIN SECTIONS */
.soft-round {
  border-radius: var(--rounded-edge);
  padding: 1.5rem;
  margin: 1rem 0;
  background: rgba(0,0,0,0.05);
}
body.dark-mode .soft-round {
  background: rgba(255,255,255,0.05);
}
.soft-round h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* SHOWCASE GRID */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.showcase-item {
  background: #f9f9f9;
  border-radius: var(--rounded-edge);
  transition: transform var(--transition-speed);
  padding: 1rem;
}
body.dark-mode .showcase-item {
  background: #2a2a2c;
}
.showcase-item:hover {
  transform: scale(1.02);
}
.showcase-item h3 {
  margin: 0.8rem 0;
  font-size: 1.2rem;
}
.showcase-item p {
  opacity: 0.9;
  line-height: 1.4;
}

/* CTA SECTION */
.cta-section {
  margin: 2rem 0;
  text-align: center;
}

/* FORMS */
.beta-form, .contact-form, .newsletter-form, .round-form {
  display: flex;
  flex-direction: column;
  max-width: 450px;
  margin: 1rem auto;
  background: transparent;
}
.beta-form label,
.contact-form label,
.round-form label {
  margin-bottom: 0.3rem;
  font-weight: 500;
}
.beta-form input, .contact-form input, .round-form input,
.beta-form select, .round-form select,
.contact-form textarea, .round-form textarea {
  margin-bottom: 1rem;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: var(--rounded-edge);
  padding: 0.6rem;
  font-size: 0.95rem;
  background: #fff;
  color: #000;
}
body.dark-mode .beta-form input, 
body.dark-mode .contact-form input, 
body.dark-mode .round-form input,
body.dark-mode .beta-form select, 
body.dark-mode .round-form select,
body.dark-mode .contact-form textarea, 
body.dark-mode .round-form textarea {
  background: #3a3a3c;
  color: #f5f5f7;
  border: 1px solid rgba(255,255,255,0.2);
}

/* FOOTER */
.footer-rounded {
  border-top-left-radius: var(--rounded-edge);
  border-top-right-radius: var(--rounded-edge);
  padding: 1rem 0;
  margin-top: 2rem;
}
.footer-content {
  text-align: center;
  opacity: 0.8;
}
.footer-content .footer-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}
.footer-content .footer-links li a {
  font-size: 0.95rem;
  font-weight: 400;
}

/* DARK PAGE LAYOUT */
.dark-page {
  padding: 2rem 0;
}
.page-intro {
  margin-bottom: 2rem;
}
.page-intro h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
.page-intro p {
  font-size: 1.05rem;
  opacity: 0.9;
  line-height: 1.5;
}

/* FAQ Collapsible */
.faq-item {
  background: #f9f9f9;
  margin-bottom: 1rem;
  border-radius: var(--rounded-edge);
  overflow: hidden;
}
body.dark-mode .faq-item {
  background: #2a2a2c;
}
.faq-question {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 1rem;
  font-size: 1.05rem;
  cursor: pointer;
  color: var(--accent-color);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed) ease;
  background: rgba(0,0,0,0.04);
  padding: 0 1rem;
}
body.dark-mode .faq-answer {
  background: rgba(255,255,255,0.07);
}
.faq-answer p {
  margin: 1rem 0;
  line-height: 1.4;
}
.faq-item.open .faq-answer {
  max-height: 200px;
}

/* BLOG, CAREERS */
.blog-search {
  text-align: center;
  margin: 1rem 0;
}
.blog-search input {
  width: 300px;
  max-width: 90%;
  background: #fff;
  border-radius: var(--rounded-edge);
  border: 1px solid rgba(0,0,0,0.2);
  padding: 0.6rem;
}
body.dark-mode .blog-search input {
  background: #3a3a3c;
  color: #f5f5f7;
  border: 1px solid rgba(255,255,255,0.2);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.blog-post {
  background: #f9f9f9;
  border-radius: var(--rounded-edge);
  padding: 1rem;
}
body.dark-mode .blog-post {
  background: #2a2a2c;
}
.blog-post h2 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
}
.post-meta {
  color: #999;
  margin-bottom: 0.5rem;
}
.job-listings {
  display: grid;
  gap: 1.5rem;
}
.job-post {
  background: #f9f9f9;
  border-radius: var(--rounded-edge);
  padding: 1rem;
  margin-bottom: 1rem;
}
body.dark-mode .job-post {
  background: #2a2a2c;
}
.apply-btn {
  margin-top: 1rem;
}

/* DASHBOARD STYLES */
.dashboard-panel {
  background: rgba(0,0,0,0.05);
  border-radius: var(--rounded-edge);
  padding: 1rem;
  margin: 2rem 0;
}
body.dark-mode .dashboard-panel {
  background: rgba(255,255,255,0.05);
}
.dashboard-list {
  margin-top: 2rem;
}
#pageList li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 0.6rem;
  margin: 0.5rem 0;
  border-radius: var(--rounded-edge);
}
body.dark-mode #pageList li {
  background: #3a3a3c;
}
.remove-page-btn {
  border: 1px solid #d33;
  background: transparent;
  color: #d33;
  border-radius: 50px;
  padding: 0.3rem 0.7rem;
  transition: background 0.2s, color 0.2s;
}
.remove-page-btn:hover {
  background: #d33;
  color: #fff;
}

/* =========================================================
   RESPONSIVENESS FOR PHONES, TABLETS, DESKTOPS
   ========================================================= */

/* For smaller mobile screens (up to ~480px) */
@media (max-width: 480px) {
  .hero-video {
    height: 50vh; /* reduce hero height on very small phones */
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .nav-menu {
    top: 50px; /* adjust if needed for small screens */
  }
  .navbar {
    padding: 0.5rem 0;
  }
  .page-intro h1 {
    font-size: 1.5rem;
  }
}

/* For tablets & smaller laptops (max-width ~768px) */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .nav-menu {
    position: absolute;
    top: 70px;
    right: 0;
    background: inherit;
    width: 200px;
    height: 0;
    overflow: hidden;
    flex-direction: column;
    transition: height var(--transition-speed) ease;
    z-index: 999;
  }
  .nav-menu.show {
    height: 250px;
  }
  .nav-menu li {
    margin-left: 0;
    margin: 0.8rem 0;
    text-align: center;
  }

  .team-grid, .showcase-grid, .blog-grid, .services-list {
    grid-template-columns: 1fr; /* single column on smaller screens */
  }
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.2rem;
  }
}

/* ...end of file... */
