/* ==========================================================================
   WidgetBee Global Stylesheet
   Brand Theme: #FFCC00 (Yellow) + Modern Dark Interface
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --brand-yellow: #FFCC00;
  --brand-yellow-hover: #E6B800;
  --brand-yellow-glow: rgba(255, 204, 0, 0.18);
  
  /* Dark Mode Palette */
  --bg-dark: #0A0A0C;
  --bg-surface: #121215;
  --bg-card: #1C1C20;
  --bg-card-hover: #24242A;
  
  /* Text Colors */
  --text-main: #F2F2F7;
  --text-muted: #9898A0;
  --text-dark: #000000;
  
  /* UI Elements & Borders */
  --border-color: #2C2C32;
  --border-color-light: #3A3A42;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  
  /* Transitions & Shadows */
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-yellow: 0 0 25px rgba(255, 204, 0, 0.25);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: #FFFFFF;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.85rem; margin-bottom: 0.85rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }

p {
  margin-bottom: 1.2rem;
  color: var(--text-main);
}

a {
  color: var(--brand-yellow);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   3. Header & Navigation Menu
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.navbar {
  width: 100%;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

/* Brand Link & Logo */
.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-height: 44px;
}

.brand-link:hover {
  opacity: 1;
}

.brand,
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.brand-icon,
.brand-logo .logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.brand-tag {
  background-color: var(--brand-yellow);
  color: var(--text-dark);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

/* Desktop Navigation Menu */
.nav-menu,
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link,
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  display: inline-block;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-links a:hover,
.nav-links a.active,
.nav-menu li.active .nav-link {
  color: var(--brand-yellow);
}

/* Checkbox Toggle Trigger (Hidden on Desktop) */
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  display: none;
}

.nav-toggle-label {
  display: none;
}

/* --------------------------------------------------------------------------
   4. Buttons & Interactive Elements
   -------------------------------------------------------------------------- */
.btn-primary,
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--brand-yellow);
  color: var(--text-dark) !important;
  font-weight: 700 !important;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 10px rgba(255, 204, 0, 0.2);
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary:hover,
.btn-cta:hover {
  background-color: var(--brand-yellow-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-yellow);
  opacity: 1;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-card);
  color: var(--text-main) !important;
  border: 1px solid var(--border-color);
  font-weight: 600;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-color-light);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   5. Badges & Tags
   -------------------------------------------------------------------------- */
.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-yellow {
  background-color: var(--brand-yellow-glow);
  color: var(--brand-yellow);
  border: 1px solid rgba(255, 204, 0, 0.4);
}

.badge-dark {
  background-color: #000000;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.badge-shortcuts {
  background-color: rgba(255, 45, 85, 0.15);
  color: #FF2D55;
  border: 1px solid rgba(255, 45, 85, 0.3);
}

/* --------------------------------------------------------------------------
   6. Content Layout & Cards
   -------------------------------------------------------------------------- */
.main-content {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.card:hover {
  background-color: var(--bg-card-hover);
  border-color: rgba(255, 204, 0, 0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.card h3 {
  color: #FFFFFF;
  margin-top: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* CTA Callout Box */
.cta-box {
  background: linear-gradient(135deg, var(--bg-card) 0%, #15151A 100%);
  border: 1px solid rgba(255, 204, 0, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  margin-top: 3.5rem;
  box-shadow: var(--shadow-card);
}

.cta-box h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.cta-box p {
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto 1.5rem auto;
}

/* --------------------------------------------------------------------------
   7. Code Blocks & Markdown Formatting
   -------------------------------------------------------------------------- */
pre, code {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

:not(pre) > code {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--brand-yellow);
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.88em;
}

pre {
  background-color: #000000;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

pre code {
  color: #E6E6E6;
  font-size: 0.9rem;
  line-height: 1.5;
}

blockquote {
  border-left: 3px solid var(--brand-yellow);
  background-color: var(--bg-card);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-color);
  background-color: #060608;
  padding: 2.5rem 1.5rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-brand .brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--brand-yellow);
}

/* --------------------------------------------------------------------------
   9. Mobile Responsive Styles (Screens <= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  html { 
    font-size: 15px; 
  }
  
  /* Mobile Header & Toggle Label */
  .nav-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s;
    margin-right: -0.5rem;
  }

  .nav-toggle-label:active {
    background-color: rgba(255, 255, 255, 0.1);
  }

  /* Supports both <span class="hamburger-icon"></span> and <span></span> markup */
  .hamburger-icon,
  .nav-toggle-label span {
    display: block;
    background-color: #FFFFFF !important;
    height: 2px;
    width: 22px;
    border-radius: 2px;
    position: relative;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s;
  }

  .hamburger-icon::before,
  .hamburger-icon::after,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background-color: #FFFFFF !important;
    border-radius: 2px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), top 0.25s, bottom 0.25s;
  }

  .hamburger-icon::before,
  .nav-toggle-label span::before { 
    top: -7px; 
  }
  
  .hamburger-icon::after,
  .nav-toggle-label span::after { 
    top: 7px; 
  }

  /* Mobile Dropdown Menu */
  .nav-menu,
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background-color: rgba(18, 18, 22, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem calc(2rem + env(safe-area-inset-bottom)) 1.5rem;
    gap: 0;
    
    /* Off-screen hidden default state */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  }

  /* Show menu when checkbox toggle is checked */
  .nav-toggle:checked ~ .nav-menu,
  .nav-toggle:checked ~ .nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Animate Hamburger into an "X" when checked */
  .nav-toggle:checked ~ .nav-toggle-label .hamburger-icon,
  .nav-toggle:checked ~ .nav-toggle-label span {
    background-color: transparent !important;
  }

  .nav-toggle:checked ~ .nav-toggle-label .hamburger-icon::before,
  .nav-toggle:checked ~ .nav-toggle-label span::before {
    transform: rotate(45deg);
    top: 0;
  }

  .nav-toggle:checked ~ .nav-toggle-label .hamburger-icon::after,
  .nav-toggle:checked ~ .nav-toggle-label span::after {
    transform: rotate(-45deg);
    top: 0;
  }

  /* Mobile Item Link Touch Targets */
  .nav-menu li,
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-menu li.nav-cta-item {
    border-bottom: none;
    margin-top: 1.25rem;
  }

  .nav-link,
  .nav-links a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 52px;
    font-size: 1.05rem;
    font-weight: 600;
  }

  .btn-cta {
    display: flex;
    width: 100%;
    min-height: 48px;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    border-radius: var(--radius-md);
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-box {
    padding: 1.75rem 1.25rem;
  }
}


/* ==========================================================================
   Hero Section & Front Page Design
   ========================================================================== */

.hero-main {
  padding-top: 2rem;
}

.hero {
  padding: 3rem 0 5rem 0;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

/* Hero Typography & Left Column */
.hero-title {
  font-size: 3.25rem;
  line-height: 1.15;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.text-highlight {
  color: var(--brand-yellow);
  background: linear-gradient(180deg, rgba(255, 204, 0, 0) 65%, rgba(255, 204, 0, 0.25) 65%);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.btn-hero {
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.apple-icon {
  margin-right: 0.25rem;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.rating-stars {
  color: var(--brand-yellow);
  letter-spacing: 2px;
}

/* 3D iPhone Mockup & Visuals */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

/* Radial Glow Behind Phone */
.glow-backdrop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--brand-yellow) 0%, rgba(255, 204, 0, 0) 70%);
  opacity: 0.22;
  filter: blur(60px);
  z-index: 1;
}

/* iPhone Hardware Chassis */
.iphone-frame {
  position: relative;
  z-index: 2;
  width: 290px;
  height: 580px;
  background-color: #000000;
  border: 8px solid #222228;
  border-radius: 48px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8),
              0 0 0 2px rgba(255, 255, 255, 0.1);
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform 0.5s ease;
  padding: 12px;
}

.iphone-frame:hover {
  transform: rotateY(0deg) rotateX(0deg) translateY(-6px);
}

.iphone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background-color: #000000;
  border-radius: 20px;
  z-index: 10;
}

.screen-content {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #15151A 0%, #08080A 100%);
  border-radius: 38px;
  padding: 55px 14px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Internal Mockup Widgets */
.widget-card {
  background: rgba(35, 35, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 14px;
}

.widget-medium {
  height: 125px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.widget-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.widget-body {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.widget-body .temp {
  font-size: 2.2rem;
  font-weight: 800;
  color: #FFFFFF;
}

.widget-body .condition {
  font-size: 0.85rem;
  color: var(--brand-yellow);
}

.widget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.widget-small {
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.widget-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.battery-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 4px solid var(--brand-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  align-self: center;
}

.shortcut-icons {
  display: flex;
  gap: 8px;
  align-self: center;
  margin-top: 10px;
}

.sc-icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 204, 0, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Feature Section Offset */
.feature-section {
  padding-top: 4rem;
  border-top: 1px solid var(--border-color);
}

/* Responsive Mobile Layout */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-social-proof {
    justify-content: center;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .iphone-frame {
    transform: none;
    width: 260px;
    height: 520px;
  }
}


.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05); /* Soft, subtle divider */
  text-align: center;
}

.footer-bottom p {
  font-size: 0.7rem;               /* Smaller, low-profile text size */
  color: var(--text-muted, #777777);/* Soft muted gray */
  opacity: 0.65;                   /* Reduces visual weight */
  letter-spacing: 0.02em;          /* Subtle tracking for readability */
  margin: 0;
}