/*
Theme Name: Celys AI
Theme URI: https://celysai.tech
Author: Celys AI Team
Author URI: https://celysai.tech
Description: A modern, dark-themed WordPress theme designed for the Celys AI wellness and mindfulness iOS app. Features AI chat, private journal, mood tracker, habit tracker, guided breathing, and wellness insights.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: celys-ai
Tags: one-column, custom-colors, custom-menu, featured-images, full-width-template, landing-page
*/

/* ============================
   BASE & RESET
   ============================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0a0a0f;
  color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================
   WORDPRESS DEFAULTS
   ============================ */
.alignleft   { float: left; margin-right: 1.5rem; }
.alignright  { float: right; margin-left: 1.5rem; }
.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; }

.wp-caption {
  max-width: 100%;
  margin-bottom: 1.5rem;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: #64748b;
  text-align: center;
  margin-top: 0.5rem;
}

.gallery-caption,
.bypostauthor {
  display: block;
}

/* ============================
   TYPOGRAPHY
   ============================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1rem;
}

/* ============================
   LAYOUT UTILITIES
   ============================ */
.celys-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

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

.celys-section-sm {
  padding: 60px 0;
}

/* ============================
   ANIMATIONS
   ============================ */
@keyframes celys-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes celys-fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.celys-animate {
  opacity: 0;
  animation: celys-fade-up 0.8s ease forwards;
}

.celys-delay-1 { animation-delay: 0.1s; }
.celys-delay-2 { animation-delay: 0.2s; }
.celys-delay-3 { animation-delay: 0.3s; }
.celys-delay-4 { animation-delay: 0.4s; }

/* ============================
   HEADER & NAV
   ============================ */
.celys-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.celys-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.celys-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.celys-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.celys-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.celys-nav a {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
}

.celys-nav a:hover {
  color: #fff;
}

.celys-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #0a0a0f;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
}

.celys-nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255,255,255,0.15);
}

.celys-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
}

/* ============================
   HERO
   ============================ */
.celys-hero {
  padding: 160px 20px 80px;
  text-align: center;
  background: linear-gradient(180deg, #0a0a0f 0%, #111118 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.celys-hero-glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.celys-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.celys-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 32px;
  font-size: 13px;
  color: #a5b4fc;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.celys-badge-dot {
  width: 8px;
  height: 8px;
  background: #6366f1;
  border-radius: 50%;
  animation: celys-pulse 2s infinite;
}

.celys-hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 800;
  margin: 0 0 20px;
  line-height: 1.05;
  letter-spacing: -2.5px;
}

.celys-gradient-text {
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.celys-accent-text { color: #6366f1; }

.celys-hero-desc {
  font-size: clamp(17px, 2.5vw, 22px);
  color: #94a3b8;
  max-width: 640px;
  margin: 0 auto 40px;
  font-weight: 400;
  line-height: 1.6;
}

.celys-btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.celys-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.celys-btn-primary {
  background: #fff;
  color: #0a0a0f;
  box-shadow: 0 4px 20px rgba(255,255,255,0.1);
}

.celys-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,255,255,0.15);
  color: #0a0a0f;
}

.celys-btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}

.celys-btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}

.celys-btn-gradient {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 10px 40px rgba(99,102,241,0.4);
}

.celys-btn-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(99,102,241,0.5);
  color: #fff;
}



/* ============================
   HERO APP SHOWCASE IMAGE
   ============================ */
.celys-mockup-wrap {
  position: relative;
  display: block;
  max-width: 880px;
  margin: 0 auto;
}

.celys-hero-showcase {
  display: block;
  width: 100%;
  height: auto;
  max-width: 880px;
  margin: 0 auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.55)) drop-shadow(0 0 40px rgba(99,102,241,0.12));
}

.celys-decor {
  position: absolute;
  border-radius: 24px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.05);
  pointer-events: none;
}

.celys-decor-1 {
  top: -20px;
  right: -20px;
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, rgba(99,102,241,0.3), rgba(139,92,246,0.1));
  transform: rotate(12deg);
  z-index: -1;
}

.celys-decor-2 {
  bottom: -30px;
  left: -20px;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, rgba(236,72,153,0.2), rgba(139,92,246,0.1));
  transform: rotate(-8deg);
  z-index: -1;
}

/* ============================
   STATS
   ============================ */
.celys-stats {
  padding: 50px 20px;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.celys-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.celys-stat-item {
  text-align: center;
}

.celys-stat-num {
  font-size: 34px;
  font-weight: 800;
  color: #6366f1;
  line-height: 1;
}

.celys-stat-label {
  font-size: 13px;
  color: #64748b;
  margin-top: 8px;
  font-weight: 500;
}

/* ============================
   SECTION HEADERS
   ============================ */
.celys-section-header {
  text-align: center;
  margin-bottom: 70px;
}

.celys-section-header h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  margin: 0 0 16px;
}

.celys-section-header p {
  color: #64748b;
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================
   FEATURES
   ============================ */
.celys-features {
  padding: 120px 20px;
}

.celys-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.celys-feature-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 36px 32px;
  transition: all 0.35s ease;
}

.celys-feature-card:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.celys-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.celys-feature-card h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 10px;
}

.celys-feature-card p {
  color: #64748b;
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0;
}

/* ============================
   HOW IT WORKS
   ============================ */
.celys-how {
  padding: 100px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(99,102,241,0.03) 50%, transparent 100%);
}

.celys-steps {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.celys-step {
  display: flex;
  align-items: center;
  gap: 30px;
}

.celys-step-num {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  flex-shrink: 0;
  color: #fff;
}

.celys-step-content h3 {
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 6px;
}

.celys-step-content p {
  color: #64748b;
  margin: 0;
  font-size: 15.5px;
}

/* ============================
   TESTIMONIALS
   ============================ */
.celys-testimonials {
  padding: 120px 20px;
}

.celys-testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.celys-testi-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s ease;
}

.celys-testi-card:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.celys-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  color: #fbbf24;
  font-size: 16px;
}

.celys-testi-text {
  color: #cbd5e1;
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0 0 24px;
}

.celys-testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.celys-testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.celys-testi-name {
  font-weight: 600;
  font-size: 15px;
  color: #fff;
}

.celys-testi-role {
  font-size: 13px;
  color: #64748b;
}

/* ============================
   CTA
   ============================ */
.celys-cta {
  padding: 120px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.celys-cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.celys-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.celys-cta h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  margin: 0 0 16px;
}

.celys-cta-desc {
  color: #94a3b8;
  font-size: 18px;
  margin: 0 0 40px;
}

.celys-cta-note {
  color: #475569;
  font-size: 13px;
  margin-top: 20px;
}


/* Logo image handling */
.celys-logo-icon img,
.celys-footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.celys-logo-icon img {
  border-radius: 10px;
}

.celys-footer-logo img {
  border-radius: 6px;
}

/* ============================
   FOOTER
   ============================ */
.celys-footer {
  padding: 50px 20px 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

.celys-footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.celys-footer-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.celys-footer-brand span {
  font-size: 18px;
  font-weight: 700;
}

.celys-footer-links {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.celys-footer-links a {
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
}

.celys-footer-links a:hover {
  color: #fff;
}

.celys-footer-copy {
  color: #475569;
  font-size: 13px;
}

/* ============================
   WORDPRESS ALIGNMENT FIXES
   ============================ */
.celys-content-area {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 20px 80px;
}

.celys-content-area h1,
.celys-content-area h2,
.celys-content-area h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.celys-content-area p {
  color: #94a3b8;
  margin-bottom: 1.25rem;
}

.celys-content-area a {
  color: #6366f1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.celys-content-area a:hover {
  color: #a5b4fc;
}

.celys-content-area ul,
.celys-content-area ol {
  color: #94a3b8;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.celys-content-area blockquote {
  border-left: 3px solid #6366f1;
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: #cbd5e1;
  font-style: italic;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 992px) {
  .celys-feature-grid,
  .celys-testi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .celys-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .celys-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,10,15,0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .celys-nav.is-open {
    display: flex;
  }
  .celys-menu-toggle {
    display: block;
  }
  .celys-hero {
    padding-top: 120px;
    min-height: auto;
  }
  .celys-feature-grid,
  .celys-testi-grid {
    grid-template-columns: 1fr;
  }
  .celys-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .celys-step {
    flex-direction: column;
    text-align: center;
  }
  .celys-section {
    padding: 70px 0;
  }
}

@media (max-width: 480px) {
  .celys-hero-showcase {
    filter: drop-shadow(0 16px 30px rgba(0,0,0,0.5));
  }
  .celys-decor-1,
  .celys-decor-2 {
    display: none;
  }
  .celys-btn {
    padding: 14px 24px;
    font-size: 15px;
    width: 100%;
    justify-content: center;
  }
  .celys-btn-group {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}
