/* ==========================================================================
   Calculatrice Landing Page - Custom Stylesheet (Premium Dark-Tech Theme)
   ========================================================================== */

/* Typography & CDN Imports */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* Design Variables & Core Tokens */
:root {
  --bg-primary: #0f172a;       /* Slate 900 */
  --bg-secondary: #1e293b;     /* Slate 800 */
  --bg-card: rgba(30, 41, 59, 0.45);
  --border-color: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(6, 182, 212, 0.25);
  
  /* Primary Accent: Locked Emerald & Turquoise */
  --accent-primary: #06b6d4;   /* Cyan 500 */
  --accent-secondary: #10b981; /* Emerald 500 */
  --accent-glow: rgba(6, 182, 212, 0.12);
  --accent-glow-strong: rgba(6, 182, 212, 0.35);
  
  /* Text Neutrals */
  --text-main: #f8fafc;        /* Slate 50 */
  --text-muted: #94a3b8;       /* Slate 400 */
  --text-dark: #0f172a;
  
  /* Layout & Animation Dynamics */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --radius-pill: 9999px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-stack: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

/* Base Styles & Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-stack);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
}

/* Typography & Links */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text-main);
}

p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

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

/* Background Gradients & Tech Mesh Grid */
.mesh-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  background-color: var(--bg-primary);
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center;
}

.mesh-bg::after {
  content: "";
  position: absolute;
  top: -10%;
  left: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  animation: float-slow 20s infinite alternate ease-in-out;
}

.mesh-bg::before {
  content: "";
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.04) 0%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  animation: float-slow 25s infinite alternate-reverse ease-in-out;
}

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

.section-padding {
  padding: 100px 0;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(15, 23, 42, 0.7);
  transition: var(--transition-smooth);
}

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

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

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

.nav-cta {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
}

.nav-cta:hover {
  background: var(--text-main);
  color: var(--text-dark);
  border-color: var(--text-main);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 80px; /* Cap top padding */
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero-tagline {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-headline {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #fff 40%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.125rem;
  max-width: 48ch;
  color: var(--text-muted);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: var(--text-dark);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-glow-strong);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(-1px) scale(0.98);
}

/* Device Mockup & Phone Simulator */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-wrapper {
  position: relative;
  width: 320px;
  height: 640px;
  border-radius: 44px;
  background: #000;
  padding: 10px;
  box-shadow: 
    0px 35px 80px -15px rgba(0, 0, 0, 0.8),
    0 0 0 4px #1e293b,
    inset 0 0 10px rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: float 6s infinite ease-in-out;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-brand-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #0f172a;
  padding: 24px;
  text-align: center;
  box-sizing: border-box;
}

.phone-brand-logo {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(6, 182, 212, 0.15);
  margin-bottom: 16px;
  object-fit: cover;
}

.phone-brand-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.03em;
  font-family: var(--font-sans);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.phone-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  flex-direction: column;
}

.phone-view.active {
  opacity: 1;
  visibility: visible;
  z-index: 5;
}

.phone-screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-overlay-cta {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(6, 182, 212, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-dark);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.5);
  text-align: center;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.phone-overlay-cta:hover {
  transform: translateX(-50%) translateY(-2px);
  background: #fff;
  color: #000;
  box-shadow: 0 15px 35px rgba(6, 182, 212, 0.7);
}

.calc-sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.calc-back-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.calc-back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.calc-header-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pulse-text {
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); opacity: 0.95; }
}

/* Mock Phone Details */
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 25px;
  background: #000;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
}

.phone-notch::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: #1e293b;
  border-radius: var(--radius-pill);
}

/* Calculator Simulator Inside the Phone Mockup */
.calc-simulator {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 40px 18px 24px 18px;
}

.calc-display {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: right;
  padding: 24px 0;
  overflow: hidden;
}

.calc-history {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  min-height: 1.2em;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  opacity: 0.7;
}

.calc-input {
  font-size: 2.5rem;
  font-weight: 300;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.calc-input::-webkit-scrollbar {
  display: none;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.calc-btn {
  aspect-ratio: 1;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
  font-size: 1.2rem;
  font-weight: 600;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.calc-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

.calc-btn:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.15);
}

/* Operator Keys styling */
.calc-btn.op-key {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.15);
  color: var(--accent-primary);
  font-weight: 700;
}

.calc-btn.op-key:hover {
  background: rgba(6, 182, 212, 0.18);
  border-color: rgba(6, 182, 212, 0.35);
}

.calc-btn.equals-key {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: var(--text-dark);
  font-weight: 700;
  border: none;
}

.calc-btn.equals-key:hover {
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.35);
}

.calc-btn.fn-key {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.01);
}

/* Bento Grid Features Section */
.section-title-wrap {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-top: 10px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-card {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
}

.bento-card:hover {
  border-color: var(--border-hover);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 16px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

/* Custom layout sizes for cards */
.col-8 {
  grid-column: span 8;
}

.col-4 {
  grid-column: span 4;
}

.col-12 {
  grid-column: 1 / -1;
  width: 100%;
}

/* Formula Card Layout */
.formula-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 24px;
  padding: 40px;
}

.formula-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.formula-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.formula-tags .tag {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  color: var(--accent-primary);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.formula-showcase {
  flex-grow: 1;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.formula-category-selector {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.cat-tab {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.cat-tab.active {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cat-tab:hover:not(.active) {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
}

.formula-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.formula-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.formula-item:hover {
  background: rgba(6, 182, 212, 0.03);
  border-color: rgba(6, 182, 212, 0.15);
  transform: translateX(4px);
}

.formula-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.formula-item:hover .formula-name {
  color: #fff;
}

.formula-code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 600;
  background: rgba(6, 182, 212, 0.05);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(6, 182, 212, 0.1);
  transition: var(--transition-smooth);
}

.formula-item:hover .formula-code {
  color: var(--accent-secondary);
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.bento-card-content {
  z-index: 2;
  margin-bottom: 32px;
}

.card-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 24px;
  font-size: 1.25rem;
}

.bento-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.bento-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 420px;
}

.bento-visual-container {
  position: relative;
  height: 180px;
  width: 100%;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* Feature Specific Visualizations */
.history-visual {
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.history-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.01);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.history-row span {
  color: var(--text-muted);
}

.history-row strong {
  color: var(--accent-primary);
}

/* Showcase Section */
.showcase-flex {
  display: flex;
  align-items: center;
  gap: 64px;
}

.showcase-text {
  flex: 1.1;
}

.showcase-text p {
  margin-bottom: 24px;
}

.showcase-visual {
  flex: 0.9;
  display: flex;
  justify-content: center;
}

.mockup-img-wrap {
  width: 100%;
  max-width: 450px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}

.mockup-img {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
}

/* FAQ Accordion Section */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-header {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 600;
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--accent-primary);
  transition: transform 0.3s ease;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  padding: 0 24px;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-item.active {
  border-color: var(--border-hover);
  background: rgba(30, 41, 59, 0.6);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-item.active .faq-content {
  padding: 0 24px 24px 24px;
  max-height: 200px; /* Safe upper bound */
}

/* Download Section & Badges */
.download-card {
  position: relative;
  background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.08), transparent 50%), var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.download-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Custom SVG badging format */
.download-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.download-badge:not(.coming-soon):hover {
  border-color: var(--accent-primary);
  background: #000;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.15);
}

.badge-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.badge-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}



/* Footer styling */
footer {
  border-top: 1px solid var(--border-color);
  background-color: #080c16;
  padding: 80px 0 40px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-desc {
  max-width: 320px;
}

.footer-links h4 {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(0.5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float-slow {
  0% { transform: translate(0px, 0px) scale(1); }
  50% { transform: translate(60px, -40px) scale(1.08); }
  100% { transform: translate(0px, 0px) scale(1); }
}

/* Scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsiveness Rules */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-desc {
    margin: 0 auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .showcase-flex {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
  
  nav {
    display: none; /* Hide standard nav list on mobile screen sizes */
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .col-8, .col-4, .col-12 {
    grid-column: span 12;
  }
  
  .bento-card {
    padding: 30px;
  }

  .formula-card {
    flex-direction: column;
    padding: 24px;
    gap: 24px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ==========================================================================
   Reviews Section Styles
   ========================================================================== */
.reviews-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.reviews-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
}

@media (max-width: 600px) {
  .reviews-form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .submit-review-btn {
    width: 100%;
    align-self: stretch;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  width: 100%;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-textarea {
  height: 120px !important;
  padding: 12px 16px !important;
  resize: vertical;
}

.form-input {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 0 16px;
  height: 46px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.15);
}

.star-rating {
  display: flex;
  gap: 6px;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  width: fit-content;
  height: 46px;
  align-items: center;
  box-sizing: border-box;
}

.star-btn {
  transition: var(--transition-smooth);
}

.star-btn:hover,
.star-btn.hover,
.star-btn.active {
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

.submit-review-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 28px;
  height: 46px;
  box-sizing: border-box;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #000;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  font-size: 0.95rem;
  flex: 0 0 auto;
  align-self: flex-start;
}

.submit-review-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.35);
}

.btn-loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  border-top-color: #000;
  animation: spin 0.8s linear infinite;
  position: absolute;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.submit-feedback {
  display: none;
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.submit-feedback.success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.submit-feedback.error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}



