/* CSS Variables - Matching ClipNest App Theme */
:root {
  /* Light theme colors */
  --bg-primary: #FAFAFA;
  --bg-secondary: #FFFFFF;
  --text-primary: #2D3748;
  --text-secondary: #8B97A8;
  --border-color: #E2E8F0;
  --hover-bg: #F3F3F3;
  
  /* ClipNest brand colors */
  --primary-color: #FF8BA7;
  --secondary-color: #FFB3C6;
  --primary-gradient: linear-gradient(135deg, #FF8BA7 0%, #FFB3C6 100%);
  --banner-gradient: linear-gradient(to top, #FAFAFA 0%, #FFEDF3 100%);
  
  /* Shadows and effects */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Spacing */
  --container-max-width: 1200px;
  --section-padding: 80px 0;
}



/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Unique Header Design */
.header {
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Unique Hero Layout */
.hero {
  background: var(--banner-gradient);
  padding: 120px 0 80px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: var(--primary-gradient);
  opacity: 0.1;
  border-radius: 50%;
  transform: rotate(15deg);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Diagonal Section Dividers */
.features {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
  clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
  margin-top: -50px;
  padding-top: 100px;
}

.download {
  padding: var(--section-padding);
  background: var(--primary-gradient);
  color: white;
  text-align: center;
  position: relative;
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
  margin-top: -50px;
  padding-top: 100px;
}

.about {
  padding: 80px 0 40px 0;
  background: var(--bg-secondary);
  position: relative;
  clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
  margin-top: -50px;
  padding-top: 100px;
}

/* Floating Elements */
.app-preview {
  animation: float 6s ease-in-out infinite;
  position: relative;
}

.app-preview::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  background: var(--primary-gradient);
  border-radius: 20px;
  opacity: 0.1;
  z-index: -1;
  animation: float 6s ease-in-out infinite reverse;
}

/* Unique Feature Cards */
.feature-card {
  background: var(--bg-primary);
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  transform: rotate(-1deg);
}

.feature-card:nth-child(even) {
  transform: rotate(1deg);
}

.feature-card:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

/* Unique Button Design */
.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-md);
  border-radius: 50px;
  padding: 16px 32px;
  position: relative;
  overflow: hidden;
  transform: skew(-2deg);
}

.btn-primary:hover {
  transform: skew(-2deg) translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* Unique Footer */
.footer {
  background: var(--bg-primary);
  padding: 32px 0;
  width: 100%;
  position: relative;
  clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
  margin-top: -50px;
  padding-top: 80px;
}

.nav {
  padding: 16px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 20px;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-img {
  width: 32px;
  height: 32px;
}

.logo-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-menu a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-md);
}

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

.btn-large {
  padding: 16px 32px;
  font-size: 18px;
}

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

/* Hero Section */
.hero {
  background: var(--banner-gradient);
  padding: var(--section-padding);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-note {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
}

.download-note {
  background: rgba(255, 139, 167, 0.1);
  border: 1px solid rgba(255, 139, 167, 0.2);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.download-note p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.download-note strong {
  color: var(--primary-color);
}

/* App Preview */
.app-preview {
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-window {
  background: var(--bg-secondary);
  border-radius: 8px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  border: 1px solid var(--border-color);
}

.app-header {
  background: var(--bg-secondary);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.app-controls {
  display: flex;
  gap: 8px;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FF5F57;
}

.control:nth-child(2) {
  background: #FFBD2E;
}

.control:nth-child(3) {
  background: #28CA42;
}

.app-content {
  display: flex;
  height: 400px;
}

.sidebar {
  width: 200px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-header {
  height: 40px;
  background: var(--border-color);
  border-radius: 4px;
  margin-bottom: 8px;
}

.sidebar-item {
  height: 20px;
  background: var(--border-color);
  border-radius: 4px;
  margin-bottom: 6px;
}

.sidebar-search {
  height: 30px;
  background: var(--border-color);
  border-radius: 4px;
  margin: 12px 0;
}

.sidebar-sections {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.section-item {
  height: 16px;
  background: var(--border-color);
  border-radius: 4px;
  margin-bottom: 4px;
}

.add-button {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 8px;
  align-self: flex-start;
}

.main-area {
  flex: 1;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
}

.main-header {
  background: var(--bg-secondary);
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab {
  width: 80px;
  height: 24px;
  background: var(--primary-color);
  border-radius: 6px 6px 0 0;
}

.editor-toolbar {
  background: var(--bg-secondary);
  padding: 8px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
  align-items: center;
}

.toolbar-item {
  width: 24px;
  height: 24px;
  background: var(--border-color);
  border-radius: 4px;
}

.content-area {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.content-line {
  height: 16px;
  background: var(--border-color);
  border-radius: 4px;
  width: 100%;
}

.content-line.short {
  width: 60%;
}

/* Features Section */
.features {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--bg-primary);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

/* Comparison Layout */
.comparison-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.plan-column {
  background: var(--bg-primary);
  border-radius: 16px;
  border: 2px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s ease;
}

.plan-column:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.free-plan {
  border-color: var(--border-color);
}

.premium-plan {
  border-color: var(--primary-color);
  position: relative;
}

.plan-header {
  padding: 32px 24px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.premium-plan .plan-header {
  background: linear-gradient(135deg, #FFEDF3 0%, #FFF0F5 100%);
}

.plan-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.plan-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.free-plan .plan-price {
  color: var(--text-secondary);
}

.premium-badge {
  background: var(--primary-gradient);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-block;
}

.plan-features {
  padding: 24px;
}

.feature-item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-title svg {
  width: 20px;
  height: 20px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.feature-title span {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
  margin-left: 32px;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
  .comparison-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: white;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Highlights Section */
.highlights {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.highlight-item {
  text-align: center;
  padding: 32px 24px;
}

.highlight-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.highlight-label {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.highlight-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Download Section */
.download {
  padding: var(--section-padding);
  background: var(--primary-gradient);
  color: white;
  text-align: center;
}

.download-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.download-content p {
  font-size: 1.125rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.download-info {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.info-item svg {
  width: 20px;
  height: 20px;
}

/* Discord Section */
.discord {
  padding: 60px 0;
  background: var(--bg-secondary);
  text-align: center;
}

.discord-content {
  max-width: 600px;
  margin: 0 auto;
}

.discord-content h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.discord-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.btn-secondary {
  background: #5865F2;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #4752C4;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
  background: var(--bg-primary);
  padding: 32px 0;
  width: 100%;
}

.footer .container {
  max-width: none;
  padding: 0 24px;
}



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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 20px;
}

.footer-brand p {
  color: var(--text-secondary);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
}

.footer-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 8px;
}

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
  text-align: center;
  color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .download-info {
    flex-direction: column;
    gap: 24px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .nav-menu {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .highlights-grid {
    grid-template-columns: 1fr;
  }
  
  .app-content {
    height: 300px;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
}

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



/* Enhanced animations and effects */
.download-btn {
  animation: pulse 2s infinite;
  position: relative;
  overflow: hidden;
}

.download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.download-btn:hover::before {
  left: 100%;
}

@keyframes pulse {
  0% {
    box-shadow: var(--shadow-md);
  }
  50% {
    box-shadow: var(--shadow-md), 0 0 0 8px rgba(255, 139, 167, 0.1);
  }
  100% {
    box-shadow: var(--shadow-md);
  }
}

/* Floating animation for app preview */
.app-preview {
  animation: float 6s ease-in-out infinite;
}

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

/* Gradient text animation */
.gradient-text {
  background: var(--primary-gradient);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Feature card hover effects */
.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

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

/* Smooth entrance animations */
.hero-title, .hero-subtitle, .hero-cta {
  animation: slideInUp 1s ease-out;
}

.hero-title {
  animation-delay: 0.2s;
}

.hero-subtitle {
  animation-delay: 0.4s;
}

.hero-cta {
  animation-delay: 0.6s;
}

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

/* Glowing effect for primary elements */
.btn-primary {
  position: relative;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--primary-gradient);
  border-radius: 10px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
  opacity: 0.3;
}

/* Parallax-like effect for sections */
.features, .about {
  position: relative;
}

.features::before, .about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255, 139, 167, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 179, 198, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* Enhanced shadows and depth */
.feature-card, .app-window {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover, .app-window:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Gradient borders */
.download-note {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 139, 167, 0.1) 0%, rgba(255, 179, 198, 0.1) 100%);
  border: 1px solid transparent;
  background-clip: padding-box;
}

.download-note::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-gradient);
  border-radius: 8px;
  z-index: -1;
  opacity: 0.2;
}
