/* ==========================================
   GazeAAC Landing Page Stylesheet
   Designed for ultimate aesthetic excellence
   ========================================== */

/* Design Tokens & Theme Variables */
:root {
  --bg-primary: hsl(235, 43%, 5%);       /* Deep Space Blue */
  --bg-secondary: hsl(235, 38%, 9%);     /* Dark card background */
  --bg-tertiary: hsl(235, 35%, 12%);     /* Highlight cards background */
  
  --text-main: hsl(210, 38%, 95%);       /* Clean bright off-white */
  --text-dim: hsl(215, 16%, 65%);        /* Muted grayish text */
  --text-dark: hsl(220, 20%, 40%);       /* Very dark text helper */
  
  /* Primary Accents */
  --color-indigo: hsl(244, 97%, 66%);    /* Vibrant Indigo */
  --color-pink: hsl(330, 81%, 60%);      /* Hot pink accent */
  --color-teal: hsl(172, 80%, 45%);      /* Mint Teal */
  
  /* State Colors for AAC Simulation */
  --color-green: hsl(142, 71%, 45%);     /* Yes green */
  --color-red: hsl(0, 84%, 60%);         /* No red */
  --color-amber: hsl(38, 92%, 50%);      /* Help yellow */
  --color-blue: hsl(210, 100%, 56%);     /* Play blue */
  
  /* Animations */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset and Core Setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Background Glowing Ambient Orbs */
.bg-gradient {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
  pointer-events: none;
  z-index: -1;
}

.bg-indigo {
  background: var(--color-indigo);
  top: -10%;
  left: -10%;
  animation: floatOrb 20s infinite alternate ease-in-out;
}

.bg-pink {
  background: var(--color-pink);
  bottom: 20%;
  right: -10%;
  animation: floatOrb 25s infinite alternate-reverse ease-in-out;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.15); }
}

/* Navigation Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: rgba(8, 9, 20, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.2rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.logo span span {
  color: var(--color-pink);
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dim);
}

nav a:hover {
  color: var(--text-main);
}

/* Typography Gradient Utility */
.text-gradient {
  background: linear-gradient(135deg, var(--color-indigo) 0%, var(--color-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Button Component Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  flex-direction: column;
  line-height: 1.2;
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-indigo) 0%, hsl(244, 97%, 60%) 100%);
  color: #ffffff;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.45);
  background: linear-gradient(135deg, hsl(244, 97%, 60%) 0%, var(--color-indigo) 100%);
}

.btn-outline {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.btn-subtext {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.75;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* Hero Section */
.hero-section {
  padding: 6rem 0 4rem 0;
  text-align: center;
  position: relative;
}

.hero-container {
  max-width: 850px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: hsl(244, 97%, 75%);
  margin-bottom: 2rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-teal);
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.hero-title {
  font-size: 3.8rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-dim);
  max-width: 720px;
  margin-bottom: 3rem;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.hero-meta {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
}

/* Interactive Dwell Simulation Styling */
.simulation-section {
  padding: 4rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem auto;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-dim);
  font-size: 1rem;
}

/* Phrase Bar Simulator */
.phrase-bar-container {
  max-width: 750px;
  margin: 0 auto 2rem auto;
  background: rgba(16, 20, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}

.phrase-bar-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-pink);
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  letter-spacing: 0.1em;
  padding-right: 0.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.phrase-bar {
  flex-grow: 1;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
  min-height: 2.2rem;
  display: flex;
  align-items: center;
}

.phrase-placeholder {
  color: var(--text-dark);
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
}

.phrase-clear-btn {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.phrase-clear-btn:hover {
  background-color: var(--color-red);
  border-color: transparent;
  color: #fff;
}

/* Simulation Grid & Tiles */
.sim-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.2rem;
  max-width: 950px;
  margin: 0 auto;
}

.sim-tile {
  background: rgba(16, 20, 38, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 1.8rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  backdrop-filter: blur(12px);
  position: relative;
  user-select: none;
}

.sim-tile:hover {
  background: rgba(16, 20, 38, 0.8);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* Dynamic glow borders based on tile types */
.border-green:hover  { border-color: var(--color-green); box-shadow: 0 8px 24px rgba(74, 222, 128, 0.15); }
.border-red:hover    { border-color: var(--color-red); box-shadow: 0 8px 24px rgba(248, 113, 113, 0.15); }
.border-amber:hover  { border-color: var(--color-amber); box-shadow: 0 8px 24px rgba(251, 191, 36, 0.15); }
.border-blue:hover   { border-color: var(--color-blue); box-shadow: 0 8px 24px rgba(96, 165, 250, 0.15); }
.border-indigo:hover { border-color: var(--color-indigo); box-shadow: 0 8px 24px rgba(129, 140, 248, 0.15); }
.border-pink:hover   { border-color: var(--color-pink); box-shadow: 0 8px 24px rgba(244, 114, 182, 0.15); }

.tile-circle-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
}

.tile-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg); /* Start progress at the top center */
}

.circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 6;
}

.circle-progress {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.03s linear;
}

/* Radial Progress Colors */
.border-green  .circle-progress { stroke: var(--color-green); }
.border-red    .circle-progress { stroke: var(--color-red); }
.border-amber  .circle-progress { stroke: var(--color-amber); }
.border-blue   .circle-progress { stroke: var(--color-blue); }
.border-indigo .circle-progress { stroke: var(--color-indigo); }
.border-pink   .circle-progress { stroke: var(--color-pink); }

.tile-emoji {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  transition: transform var(--transition-normal);
}

.sim-tile:hover .tile-emoji {
  transform: scale(1.1);
}

.tile-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

/* Features Grid Section */
.features-section {
  padding: 6rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.feature-card {
  background: rgba(16, 20, 38, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2.5rem 1.8rem;
  transition: all var(--transition-normal);
  backdrop-filter: blur(12px);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.feature-icon {
  font-size: 2rem;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 1.5rem;
}

.bg-indigo-soft { background: rgba(99, 102, 241, 0.1); }
.bg-pink-soft   { background: rgba(236, 72, 153, 0.1); }
.bg-green-soft  { background: rgba(16, 185, 129, 0.1); }
.bg-amber-soft  { background: rgba(245, 158, 11, 0.1); }

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 400;
}

/* System Specs & Installation Guide */
.requirements-section {
  padding: 5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.requirements-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.req-block h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.req-block h3::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-indigo) 0%, var(--color-pink) 100%);
  border-radius: 2px;
}

.specs-list, .guide-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

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

.specs-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-dim);
}

.specs-list li::before {
  content: '⚡';
  position: absolute;
  left: 0;
  top: 1px;
}

.guide-list {
  padding-left: 1.2rem;
  color: var(--text-dim);
}

.guide-list li::marker {
  color: var(--color-pink);
  font-weight: 700;
}

/* Final Download Call to Action */
.downloads-section {
  padding: 6rem 0;
}

.download-box {
  background: linear-gradient(135deg, rgba(16, 20, 38, 0.8) 0%, rgba(8, 9, 20, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  padding: 4.5rem 3rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.download-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-indigo), var(--color-pink), var(--color-teal));
}

.download-box h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.download-box p {
  color: var(--text-dim);
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 3rem auto;
}

.downloads-actions {
  justify-content: center;
  margin-bottom: 0;
}

/* Footer Section */
footer {
  background-color: rgba(4, 5, 10, 0.9);
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  color: var(--text-dark);
  font-size: 0.9rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

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

.github-icon {
  transition: transform var(--transition-fast);
}

.footer-links a:hover .github-icon {
  transform: rotate(360deg);
}

/* ==========================================
   Responsive Breakpoints
   ========================================== */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .sim-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }
  
  .requirements-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 580px) {
  .sim-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  nav {
    display: none; /* simple burger replacement or drop-off for mobile screen space */
  }
}
