/* =================================
   Meeting Note Ninja - Hexuno AI
   Modern, Futuristic Design System
   ================================= */

/* CSS Reset & Base Styles */
:root {
  /* Light Theme Colors */
  --primary: #6D28D9;      /* Purple 700 */
  --accent: #F97316;       /* Orange 500 */
  --secondary: #6366F1;    /* Indigo 500 */
  --success: #10B981;      /* Emerald 500 */
  --warning: #F59E0B;      /* Amber 500 */
  --error: #EF4444;        /* Red 500 */
  
  --bg-primary: #F9FAFB;   /* Gray 50 */
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F3F4F6;  /* Gray 100 */
  --bg-glass: rgba(255, 255, 255, 0.8);
  
  --text-primary: #1E293B;   /* Slate 800 */
  --text-secondary: #475569; /* Slate 600 */
  --text-muted: #94A3B8;     /* Slate 400 */
  --text-inverse: #F1F5F9;   /* Slate 100 */
  
  --border: #E2E8F0;         /* Slate 200 */
  --border-light: #F1F5F9;   /* Slate 100 */
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 30px rgba(109, 40, 217, 0.3);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

/* Dark Theme Variables */
.dark-theme {
  --bg-primary: #0F172A;     /* Slate 900 */
  --bg-secondary: #1E293B;   /* Slate 800 */
  --bg-tertiary: #334155;    /* Slate 700 */
  --bg-glass: rgba(30, 41, 59, 0.8);
  
  --text-primary: #F1F5F9;   /* Slate 100 */
  --text-secondary: #CBD5E1; /* Slate 300 */
  --text-muted: #64748B;     /* Slate 500 */
  --text-inverse: #1E293B;   /* Slate 800 */
  
  --border: #334155;         /* Slate 700 */
  --border-light: #475569;   /* Slate 600 */
  
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  transition: all 0.3s ease;
  background: var(--bg-primary);
  color: var(--text-primary);
}

body.light-theme {
  background: var(--bg-primary);
  color: var(--text-primary);
}

body.dark-theme {
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* Animated Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(45deg, 
    var(--primary), 
    var(--secondary), 
    var(--accent)
  );
  background-size: 400% 400%;
  animation: gradientShift 10s ease infinite;
  opacity: 0.05;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#particleCanvas {
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

/* Typography */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  font-weight: 900;
  position: relative;
}

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

/* =================================
   HEADER & NAVIGATION
   ================================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-brand .brand-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.hexuno {
  color: var(--primary);
  font-weight: 800;
}

.divider {
  color: var(--text-muted);
  font-weight: 300;
}

.ninja {
  color: var(--text-primary);
  font-weight: 600;
}

.ninja-emoji {
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.blink {
  animation: blink 3s infinite;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.btn-login {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-login:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary);
}

.btn-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* =================================
   SVG ICONS & LOGOS
   ================================= */

.brand-logo {
  height: 40px;
  width: 40px;
  margin-right: 0.75rem;
  transition: var(--transition);
  object-fit: cover;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(109, 40, 217, 0.05));
  padding: 3px;
  border: 2px solid rgba(109, 40, 217, 0.2);
}

.brand-logo:hover {
  transform: scale(1.05);
  border-color: rgba(109, 40, 217, 0.4);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-brand .brand-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.nav-brand .divider {
  color: var(--text-muted);
  font-weight: 300;
  font-size: 1.2rem;
}

.nav-brand .ninja {
  color: var(--text-secondary);
  font-weight: 600;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo .brand-logo {
  height: 32px;
  width: 32px;
  object-fit: cover;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(109, 40, 217, 0.05));
  padding: 2px;
  border: 1px solid rgba(109, 40, 217, 0.2);
}

.footer-logo .divider {
  color: var(--text-muted);
  font-weight: 300;
  font-size: 1.1rem;
}

.footer-logo .ninja {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1rem;
}

.btn-icon {
  margin-right: 0.5rem;
  transition: var(--transition);
}

.btn-parse:hover .btn-icon {
  transform: scale(1.1) rotate(15deg);
}

.btn-action:hover .btn-icon {
  transform: scale(1.1);
}

.theme-toggle {
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.theme-icon {
  color: var(--text-primary);
  transition: var(--transition);
}

.dark-theme .theme-icon {
  transform: rotate(180deg);
}

.feature-icon {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-icon svg {
  transition: var(--transition);
}

.scroll-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top svg {
  transition: var(--transition);
}

.scroll-to-top:hover svg {
  transform: translateY(-2px);
}

/* Advanced SVG Animations */
.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(109, 40, 217, 0.1), transparent);
  animation: rotate 8s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover .feature-icon svg {
  animation: featureGlow 1s ease-in-out;
}

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

@keyframes featureGlow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Brand Logo Animations */
.nav-brand:hover .brand-logo {
  animation: brandFloat 2s ease-in-out infinite;
}

@keyframes brandFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

/* Button Hover Enhancements */
.btn-parse:hover .btn-icon,
.btn-action:hover .btn-icon {
  animation: iconBounce 0.6s ease-in-out;
}

@keyframes iconBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Scroll to Top Animation */
.scroll-to-top:hover {
  animation: scrollPulse 1s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); }
  50% { box-shadow: 0 0 20px 10px rgba(249, 115, 22, 0.1); }
}

/* =================================
   HERO SECTION
   ================================= */

.hero {
  padding: 8rem 0 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 80vh;
  padding: 2rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  z-index: 2;
  text-align: left;
  max-width: 600px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-family: 'Poppins', sans-serif;
  text-align: left;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
  text-align: left;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  color: var(--text-primary);
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.ai-illustration {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-card {
  position: absolute;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  font-size: 2rem;
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
}

.card-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.card-2 {
  top: 50%;
  right: 10%;
  animation-delay: 1s;
}

.card-3 {
  bottom: 20%;
  left: 20%;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border: 3px solid var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.3;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.8;
  }
}

/* =================================
   PHONE MOCKUP & HERO VISUAL
   ================================= */

.phone-mockup {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.phone-frame {
  position: relative;
  width: 280px;
  height: 560px;
  background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
  border-radius: 40px;
  padding: 8px;
  box-shadow: 
    0 0 0 2px #333,
    0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.1);
  transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
  animation: phoneFloat 6s ease-in-out infinite;
}

.phone-mockup:hover .phone-frame {
  transform: perspective(1000px) rotateY(-10deg) rotateX(2deg) scale(1.02);
  box-shadow: 
    0 0 0 2px #333,
    0 30px 60px rgba(0, 0, 0, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.phone-mockup:hover .float-card {
  transform: scale(1.05);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

.phone-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 30%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 10;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.signal-icons {
  display: flex;
  gap: 4px;
  align-items: center;
}

.signal, .wifi, .battery {
  width: 16px;
  height: 10px;
  background: #10b981;
  border-radius: 2px;
  opacity: 0.8;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(109, 40, 217, 0.1);
}

.app-logo {
  height: 25px;
  width: 25px;
  object-fit: cover;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(109, 40, 217, 0.05));
  padding: 2px;
  border: 1px solid rgba(109, 40, 217, 0.2);
}

.app-title {
  margin-left: 8px;
  font-weight: 700;
  color: #6D28D9;
  font-size: 14px;
}

.meeting-interface {
  padding: 20px;
  height: calc(100% - 120px);
  overflow: hidden;
}

.meeting-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(109, 40, 217, 0.1);
}

.meeting-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px 0;
}

.meeting-info p {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

.recording-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.1);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  color: #ef4444;
}

.rec-dot {
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
  animation: recordingPulse 2s ease-in-out infinite;
}

.notes-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.note-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  animation: noteSlideIn 0.6s ease-out forwards;
  opacity: 0;
  transform: translateX(-20px);
}

.note-line:nth-child(1) { animation-delay: 0.1s; border-left-color: #6D28D9; }
.note-line:nth-child(2) { animation-delay: 0.3s; border-left-color: #10b981; }
.note-line:nth-child(3) { animation-delay: 0.5s; border-left-color: #f97316; }
.note-line:nth-child(4) { animation-delay: 0.7s; border-left-color: #6366f1; }

.note-line.active {
  background: rgba(109, 40, 217, 0.1);
  border-left-color: #6D28D9;
}

.note-line.active .note-icon {
  animation: aiProcessing 2s ease-in-out infinite;
}

@keyframes aiProcessing {
  0%, 100% { 
    transform: scale(1);
    filter: brightness(1);
  }
  50% { 
    transform: scale(1.1);
    filter: brightness(1.3);
  }
}

.note-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.note-line span {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  flex: 1;
}

.ai-insights {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
}

.insight-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #6D28D9, #8B5CF6);
  color: white;
  padding: 12px 16px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #fbbf24;
  border-radius: 50%;
  animation: aiPulse 2s ease-in-out infinite;
}

/* Phone Frame Details */
.phone-button {
  position: absolute;
  background: #333;
  border-radius: 2px;
}

.phone-power {
  right: -4px;
  top: 100px;
  width: 8px;
  height: 40px;
}

.phone-volume-up {
  left: -4px;
  top: 120px;
  width: 8px;
  height: 24px;
}

.phone-volume-down {
  left: -4px;
  top: 150px;
  width: 8px;
  height: 24px;
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: floatAround 8s ease-in-out infinite;
}

.float-card.card-1 {
  top: 10%;
  left: -20%;
  animation-delay: 0s;
}

.float-card.card-2 {
  top: 60%;
  right: -25%;
  animation-delay: 2s;
}

.float-card.card-3 {
  bottom: 15%;
  left: -15%;
  animation-delay: 4s;
}

/* Animations */
@keyframes phoneFloat {
  0%, 100% { transform: perspective(1000px) rotateY(-15deg) rotateX(5deg) translateY(0px); }
  50% { transform: perspective(1000px) rotateY(-15deg) rotateX(5deg) translateY(-10px); }
}

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

@keyframes noteSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes floatAround {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  25% { transform: translateY(-15px) translateX(10px); }
  50% { transform: translateY(-5px) translateX(-5px); }
  75% { transform: translateY(-20px) translateX(5px); }
}

/* Updated Brand Logo Styles - Handled in main section above */

.brand-text .ninja {
  color: var(--text-secondary);
  font-weight: 600;
}

/* Responsive Design for Phone Mockup */
@media (max-width: 768px) {
  .phone-mockup {
    padding: 1rem;
  }
  
  .phone-frame {
    width: 220px;
    height: 440px;
    transform: perspective(800px) rotateY(-10deg) rotateX(3deg);
  }
  
  .float-card {
    display: none;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-visual {
    margin-top: 2rem;
  }
}

/* =================================
   MAIN INTERFACE SECTION
   ================================= */

.main-section {
  padding: 6rem 0 4rem;
  background: var(--bg-primary);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.input-area {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.input-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

.input-container {
  position: relative;
  margin-bottom: 2rem;
}

.notes-input {
  width: 100%;
  min-height: 200px;
  padding: 1.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.6;
  font-family: inherit;
  resize: vertical;
  transition: var(--transition);
  outline: none;
}

.notes-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.1);
  background: var(--bg-secondary);
}

.notes-input::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.input-overlay {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.ai-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ai-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.ai-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.btn-parse,
.btn-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  min-width: 160px;
  justify-content: center;
}

.btn-parse {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 8px 25px rgba(109, 40, 217, 0.3);
}

.btn-parse:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(109, 40, 217, 0.4);
}

.btn-action {
  background: linear-gradient(135deg, var(--accent), #d97706);
  color: white;
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.3);
}

.btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(249, 115, 22, 0.4);
}

.btn-parse:active,
.btn-action:active {
  transform: translateY(0);
}

.status {
  text-align: center;
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: var(--transition);
}

.status-icon {
  flex-shrink: 0;
}

.loading-icon {
  animation: spin 1s linear infinite;
}

.status-text {
  flex: 1;
}

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

/* =================================
   RESULTS SECTION
   ================================= */

.results {
  margin-top: 3rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.results.visible {
  opacity: 1;
}

.results-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.1), rgba(99, 102, 241, 0.05));
  border-radius: var(--radius-xl);
  border: 1px solid rgba(109, 40, 217, 0.2);
}

.results-header h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.results-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 500;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  align-items: start;
}

.result-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transition: all 0.4s ease;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

.result-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(109, 40, 217, 0.3);
}

.card-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
  position: relative;
}

.card-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.card-header h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-header h4::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 15px rgba(109, 40, 217, 0.4);
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.card-content ul li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  padding-left: 1.5rem;
  font-weight: 500;
  transition: var(--transition);
}

.card-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.card-content ul li:hover {
  color: var(--text-primary);
  padding-left: 2rem;
}

.card-content ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.table-container {
  overflow-x: auto;
  flex: 1;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

#actionTable {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background: var(--bg-secondary);
}

#actionTable th {
  background: var(--bg-tertiary);
  padding: 1rem 0.75rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#actionTable th:first-child {
  text-align: left;
}

#actionTable th:nth-child(2),
#actionTable th:nth-child(3),
#actionTable th:nth-child(4) {
  text-align: center;
}

#actionTable td {
  padding: 1.25rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  vertical-align: top;
  transition: var(--transition);
}

#actionTable td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 250px;
  word-wrap: break-word;
}

#actionTable td:nth-child(2),
#actionTable td:nth-child(3),
#actionTable td:nth-child(4) {
  text-align: center;
  white-space: nowrap;
}

#actionTable tbody tr:hover {
  background: rgba(109, 40, 217, 0.05);
}

#actionTable tbody tr:hover td {
  color: var(--text-primary);
}

/* =================================
   RESPONSIVE DESIGN & IMPROVEMENTS
   ================================= */

/* Mobile-first responsive design */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    justify-items: center;
  }
  
  .hero-content {
    text-align: center;
    max-width: 100%;
  }
  
  .hero-title {
    text-align: center;
  }
  
  .hero-subtitle {
    text-align: center;
    max-width: 100%;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .phone-mockup {
    margin-top: 2rem;
  }
  
  .phone-frame {
    width: 240px;
    height: 480px;
  }
  
  .float-card {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .nav-container {
    padding: 1rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .nav-brand .brand-text {
    font-size: 1rem;
  }
  
  .nav-actions {
    gap: 0.5rem;
  }
  
  .btn-login,
  .btn-cta {
    font-size: 0.875rem;
    padding: 0.375rem 1rem;
  }
  
  .main-section {
    padding: 4rem 0 2rem;
  }
  
  .input-area {
    padding: 2rem;
  }
  
  .notes-input {
    min-height: 150px;
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .controls {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .btn-parse,
  .btn-action {
    width: 100%;
    padding: 1rem 1.5rem;
    min-width: auto;
  }
  
  .results-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .result-card {
    padding: 1.5rem;
    min-height: auto;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .results-header h3 {
    font-size: 1.5rem;
  }
  
  .card-header h4 {
    font-size: 1.25rem;
  }
  
  #actionTable {
    font-size: 0.875rem;
  }
  
  #actionTable th,
  #actionTable td {
    padding: 0.75rem 0.5rem;
  }
  
  #actionTable td:first-child {
    max-width: 150px;
  }
}

@media (max-width: 480px) {
  .input-area {
    padding: 1.5rem;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  .results-header {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .result-card {
    padding: 1rem;
  }
  
  .notes-input {
    min-height: 120px;
  }
  
  .btn-parse,
  .btn-action {
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* Enhanced Focus States */
.btn-parse:focus,
.btn-action:focus,
.notes-input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Loading State Improvements */
.btn-parse.loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn-parse.loading .btn-icon {
  animation: loadingRotate 2s linear infinite;
}

@keyframes loadingRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Print Styles */
@media print {
  .header,
  .controls,
  .hero,
  .features,
  .testimonials,
  .footer {
    display: none;
  }
  
  .main-section {
    padding: 0;
  }
  
  .results {
    opacity: 1 !important;
  }
  
  .result-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .btn-parse,
  .btn-action {
    border: 2px solid currentColor;
  }
  
  .result-card {
    border: 2px solid var(--text-primary);
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.results.hidden {
  display: none;
}

.results {
  margin-top: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.results:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 10000;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  color: white;
  box-shadow: var(--shadow-xl);
  transform: translateX(400px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 400px;
  backdrop-filter: blur(20px);
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  background: linear-gradient(135deg, var(--success), #059669);
}

.toast.error {
  background: linear-gradient(135deg, var(--error), #DC2626);
}

.toast.warning {
  background: linear-gradient(135deg, var(--warning), #D97706);
}

/* =================================
   FEATURES SECTION
   ================================= */

.features {
  padding: 6rem 0;
  background: var(--bg-primary);
  position: relative;
}

.features .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(109, 40, 217, 0.2);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(109, 40, 217, 0.1);
  border-radius: var(--radius-lg);
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(109, 40, 217, 0.15);
}

.feature-icon svg {
  transition: var(--transition);
}

.feature-card:hover .feature-icon svg {
  transform: scale(1.05);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
  margin: 0;
}

/* Feature Card Hover Animations */
.feature-card:nth-child(1) {
  animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
  animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
  animation-delay: 0.4s;
}

/* Responsive Design for Features */
@media (max-width: 768px) {
  .features {
    padding: 4rem 0;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-card {
    padding: 2rem 1.5rem;
  }
  
  .feature-icon {
    width: 70px;
    height: 70px;
  }
  
  .feature-title {
    font-size: 1.25rem;
  }
}

/* =================================
   TESTIMONIALS SECTION
   ================================= */

.testimonials {
  padding: 6rem 0;
  background: linear-gradient(135deg, 
    rgba(109, 40, 217, 0.03), 
    rgba(99, 102, 241, 0.02)
  );
  position: relative;
}

.testimonials .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.rating-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.star-icon {
  width: 24px;
  height: 24px;
}

.rating-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-left: 0.5rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(109, 40, 217, 0.2);
}

.testimonial-card:hover::before {
  opacity: 1;
}

.testimonial-content {
  margin-bottom: 1.5rem;
}

.testimonial-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  margin: 0;
  position: relative;
}

.testimonial-content p::before {
  content: '"';
  font-size: 3rem;
  color: var(--primary);
  position: absolute;
  top: -0.5rem;
  left: -1rem;
  opacity: 0.3;
  font-family: serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.author-info {
  flex: 1;
}

.author-name {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.author-role {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* =================================
   FOOTER SECTION
   ================================= */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: 6rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
  align-items: start;
}

.footer-brand {
  max-width: 400px;
}

.footer-tagline {
  color: var(--text-secondary);
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-column a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: var(--transition);
  font-weight: 500;
}

.footer-column a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: var(--text-secondary) !important;
  font-weight: 600 !important;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  margin-bottom: 0 !important;
}

.social-link:hover {
  background: var(--primary);
  color: white !important;
  border-color: var(--primary);
  transform: translateY(-2px) !important;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.9rem;
}

.scroll-to-top {
  background: linear-gradient(135deg, var(--accent), #d97706);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.scroll-to-top svg {
  transition: var(--transition);
}

.scroll-to-top:hover svg {
  transform: translateY(-2px);
}

/* Responsive Design for Testimonials and Footer */
@media (max-width: 768px) {
  .testimonials {
    padding: 4rem 0;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .testimonial-content p {
    font-size: 1rem;
  }
  
  .rating-stars {
    flex-wrap: wrap;
  }
  
  .star-icon {
    width: 20px;
    height: 20px;
  }
  
  .rating-text {
    font-size: 1.25rem;
  }
  
  .social-links {
    flex-direction: column;
    align-items: center;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}