/*
Theme Name: NeuraPick Robotics
Theme URI: https://neurapick.com
Author: NeuraPick Robotics
Author URI: https://neurapick.com
Description: A premium WordPress theme for NeuraPick Robotics — showcasing the EVE-01 autonomous greenhouse harvesting platform. Features dark and light mode toggle, investor-facing design, and full Customizer support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: neurapick
Tags: one-column, custom-colors, custom-logo, featured-images, full-width-template, theme-options
*/

/* ═══════════════════════════════════════════
   CSS CUSTOM PROPERTIES
   ═══════════════════════════════════════════ */
:root {
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --transition-theme: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

/* ─── DARK THEME (default) ─── */
[data-theme="dark"] {
  --bg-base: #07090B;
  --bg-elevated: #0D1117;
  --bg-card: #131920;
  --bg-card-hover: #1A2230;
  --accent: #56D364;
  --accent-secondary: #79E68A;
  --accent-muted: rgba(86, 211, 100, 0.08);
  --accent-border: rgba(86, 211, 100, 0.18);
  --text-1: #F0F6FC;
  --text-2: #9EAAB8;
  --text-3: #5C6B7A;
  --border-1: #1B2432;
  --border-2: #253040;
  --shadow-card: 0 2px 20px rgba(0,0,0,0.3);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.4);
  --hero-gradient: linear-gradient(170deg, #07090B 0%, #0A1210 45%, #07090B 100%);
  --toggle-bg: #1B2432;
  --toggle-knob: #F0F6FC;
}

/* ─── LIGHT THEME ─── */
[data-theme="light"] {
  --bg-base: #FAFCF5;
  --bg-elevated: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F4F8EE;
  --accent: #2E8B3E;
  --accent-secondary: #3DA84E;
  --accent-muted: rgba(46, 139, 62, 0.06);
  --accent-border: rgba(46, 139, 62, 0.18);
  --text-1: #1A2E1A;
  --text-2: #5A6F5A;
  --text-3: #8FA08F;
  --border-1: #E2E8DA;
  --border-2: #D0D9C4;
  --shadow-card: 0 2px 20px rgba(0,0,0,0.05);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.08);
  --hero-gradient: linear-gradient(170deg, #FAFCF5 0%, #EFF5E8 45%, #FAFCF5 100%);
  --toggle-bg: #E2E8DA;
  --toggle-knob: #1A2E1A;
}

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition-theme), color var(--transition-theme);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ═══════════════════════════════════════════
   THEME TOGGLE
   ═══════════════════════════════════════════ */
.theme-toggle {
  width: 56px;
  height: 28px;
  background: var(--toggle-bg);
  border: 1px solid var(--border-1);
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  transition: all var(--transition-theme);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  flex-shrink: 0;
}

.theme-toggle::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--toggle-knob);
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: all var(--transition-theme);
}

[data-theme="light"] .theme-toggle::after {
  left: calc(100% - 23px);
}

.toggle-icon {
  font-size: 0.7rem;
  z-index: 1;
  transition: opacity var(--transition-theme);
}

[data-theme="dark"] .toggle-icon--sun { opacity: 0.35; }
[data-theme="dark"] .toggle-icon--moon { opacity: 1; }
[data-theme="light"] .toggle-icon--sun { opacity: 1; }
[data-theme="light"] .toggle-icon--moon { opacity: 0.35; }

/* ═══════════════════════════════════════════
   HEADER / NAVIGATION
   ═══════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 3rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(24px) saturate(1.4);
  background: color-mix(in srgb, var(--bg-base) 80%, transparent);
  border-bottom: 1px solid var(--border-1);
  transition: background var(--transition-theme), border-color var(--transition-theme);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-brand__mark {
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  transition: background var(--transition-theme);
}

.site-brand__text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.site-brand__text span {
  font-weight: 300;
  color: var(--text-3);
}

/* WordPress nav menu */
.primary-menu {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  align-items: center;
}

.primary-menu a {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: 0.01em;
  transition: color 0.3s;
  position: relative;
}

.primary-menu a:hover { color: var(--accent); }

.primary-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s;
}

.primary-menu a:hover::after { width: 100%; }

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.btn-cta {
  background: var(--accent);
  color: #fff;
  padding: 0.45rem 1.15rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: var(--font-body);
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn-cta:hover { filter: brightness(1.1); transform: translateY(-1px); }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  background: var(--hero-gradient);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 3rem 5rem;
  position: relative;
  overflow: hidden;
  transition: background var(--transition-theme);
}

.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 4%, transparent) 0%, transparent 55%);
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent-muted);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  padding: 0.4rem 1.1rem;
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 2.5rem;
  width: fit-content;
  animation: heroReveal 0.8s ease both;
}

.hero__eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2.5s ease infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  max-width: 850px;
  font-weight: 500;
  animation: heroReveal 0.8s 0.12s ease both;
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 580px;
  margin-top: 1.75rem;
  font-weight: 300;
  line-height: 1.85;
  animation: heroReveal 0.8s 0.24s ease both;
}

.hero__kpis {
  display: flex;
  gap: 3.5rem;
  margin-top: 4rem;
  animation: heroReveal 0.8s 0.36s ease both;
}

.kpi__value {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.1;
}

.kpi__label {
  font-size: 0.72rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 0.4rem;
  font-weight: 500;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  animation: heroReveal 0.8s 0.48s ease both;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 6px 24px color-mix(in srgb, var(--accent) 25%, transparent); }

.btn-secondary {
  background: transparent;
  color: var(--text-1);
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 400;
  font-family: var(--font-body);
  border: 1px solid var(--border-2);
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

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

/* ═══════════════════════════════════════════
   SECTIONS — reusable
   ═══════════════════════════════════════════ */
.wp-section {
  padding: 7rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.wp-divider {
  max-width: 1200px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
}

.section__eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.section__heading {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 680px;
  margin-bottom: 1rem;
  font-weight: 500;
}

.section__lead {
  color: var(--text-2);
  font-size: 1.02rem;
  max-width: 580px;
  font-weight: 300;
  line-height: 1.85;
  margin-bottom: 3.5rem;
}

/* ═══════════════════════════════════════════
   PLATFORM CARDS
   ═══════════════════════════════════════════ */
.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.platform-card:hover {
  border-color: var(--border-2);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.platform-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.platform-card:hover::before { opacity: 0.4; }

.platform-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--accent-muted);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.platform-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.platform-card p {
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
}

.platform-card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}

.stat-chip {
  background: var(--accent-muted);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
}

.stat-chip__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
}

.stat-chip__label {
  font-size: 0.68rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   TECH SPECS
   ═══════════════════════════════════════════ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-card);
}

.tech-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-hover);
}

.tech-card__tag {
  display: inline-block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-muted);
  border: 1px solid var(--accent-border);
  padding: 0.18rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.tech-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
  font-weight: 500;
}

.tech-card > p {
  color: var(--text-2);
  font-size: 0.86rem;
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-1);
  font-size: 0.83rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-row .spec-key { color: var(--text-3); font-weight: 400; }
.spec-row .spec-val { color: var(--text-1); font-weight: 500; }

/* ═══════════════════════════════════════════
   PIPELINE
   ═══════════════════════════════════════════ */
.pipeline {
  display: flex;
  gap: 0;
  margin-top: 3rem;
}

.pipeline__stage {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-1);
  padding: 2.25rem 1.5rem;
  text-align: center;
  transition: all 0.35s;
}

.pipeline__stage:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.pipeline__stage:last-child { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.pipeline__stage:hover { background: var(--bg-card-hover); }

.pipeline__num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 1rem;
}

.pipeline__stage h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pipeline__stage p {
  font-size: 0.76rem;
  color: var(--text-3);
  line-height: 1.65;
  font-weight: 300;
}

.pipeline__arrow {
  display: flex;
  align-items: center;
  color: var(--accent);
  font-size: 1.1rem;
  opacity: 0.3;
  margin: 0 -0.5rem;
  z-index: 2;
}

/* ═══════════════════════════════════════════
   METRICS BAND
   ═══════════════════════════════════════════ */
.metrics-band {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
  padding: 4.5rem 3rem;
}

.metrics-band__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.metric__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1.1;
}

.metric__label {
  font-size: 0.72rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 0.5rem;
  font-weight: 500;
}

.metric__note {
  font-size: 0.78rem;
  color: var(--text-2);
  margin-top: 0.3rem;
  font-weight: 300;
}

/* ═══════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════ */
.cta-section {
  padding: 8rem 3rem;
  text-align: center;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 45vw; height: 45vw;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 3%, transparent) 0%, transparent 55%);
  pointer-events: none;
}

.cta-section .section__heading,
.cta-section .section__lead {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border-1);
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-3);
}

.footer-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-menu a {
  color: var(--text-2);
  transition: color 0.3s;
}
.footer-menu a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════
   WORDPRESS DEFAULTS
   ═══════════════════════════════════════════ */
.alignwide { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; max-width: 100%; }
.wp-block-image img { border-radius: var(--radius-sm); }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 960px) {
  .site-header { padding: 0 1.5rem; }
  .primary-menu { display: none; }
  .mobile-toggle { display: flex; }
  .hero { padding: 7rem 1.5rem 3rem; }
  .hero__kpis { flex-wrap: wrap; gap: 2rem; }
  .hero__actions { flex-wrap: wrap; }
  .wp-section { padding: 4.5rem 1.5rem; }
  .platform-grid { grid-template-columns: 1fr; }
  .platform-card--wide { grid-column: span 1; grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .pipeline { flex-direction: column; }
  .pipeline__stage:first-child { border-radius: var(--radius-md) var(--radius-md) 0 0; }
  .pipeline__stage:last-child { border-radius: 0 0 var(--radius-md) var(--radius-md); }
  .pipeline__arrow { justify-content: center; transform: rotate(90deg); }
  .metrics-band__inner { grid-template-columns: 1fr 1fr; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .site-footer__inner { flex-direction: column; gap: 1.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero__kpis { gap: 1.5rem; }
  .kpi__value { font-size: 2rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .metrics-band__inner { grid-template-columns: 1fr; }
}
