/*
Theme Name: Klarity Starter
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A modern SaaS landing page theme inspired by Klarity's design
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: klarity-starter
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

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

:root {
  --primary-color: #0066ff;
  --secondary-color: #00d4ff;
  --dark-bg: #0a0e27;
  --dark-blue: #1a1f3a;
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --gradient-primary: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
  --section-padding: 80px 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--dark-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background-color: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.site-logo img {
  height: 40px;
  width: auto;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

.main-navigation a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-navigation a:hover {
  color: var(--secondary-color);
}

.cta-button {
  background: var(--gradient-primary);
  color: white;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 180px 0 120px;
  background: radial-gradient(ellipse at top, rgba(0, 102, 255, 0.15) 0%, transparent 50%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 64px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #a0aec0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-secondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--secondary-color);
  background: rgba(0, 212, 255, 0.1);
}

.hero-image {
  margin-top: 60px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Trust Bar */
.trust-bar {
  padding: 60px 0;
  background-color: rgba(26, 31, 58, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-bar h3 {
  text-align: center;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 600;
}

.trust-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 40px;
  align-items: center;
  justify-items: center;
}

.trust-logos img {
  height: 40px;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.trust-logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* Content Sections */
.content-section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.feature-card {
  background: var(--dark-blue);
  border-radius: 12px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.2);
}

.feature-icon {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

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

/* Process Steps */
.process-steps {
  display: grid;
  gap: 60px;
  margin-top: 60px;
}

.process-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.process-step:nth-child(even) {
  direction: rtl;
}

.process-step:nth-child(even) > * {
  direction: ltr;
}

.step-number {
  display: inline-block;
  background: var(--gradient-primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.step-content h3 {
  font-size: 32px;
  margin-bottom: 16px;
}

.step-content p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.step-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Video Section */
.video-section {
  background: var(--dark-blue);
  padding: var(--section-padding);
}

.video-container {
  max-width: 1000px;
  margin: 0 auto;
}

.video-placeholder {
  position: relative;
  padding-bottom: 56.25%;
  background: var(--dark-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-placeholder img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.testimonial-card {
  background: var(--dark-blue);
  border-radius: 12px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.author-info p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* FAQ */
.faq-section {
  background: var(--dark-blue);
  padding: var(--section-padding);
}

.faq-list {
  max-width: 900px;
  margin: 60px auto 0;
}

.faq-item {
  background: var(--dark-bg);
  border-radius: 8px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--secondary-color);
}

.faq-icon {
  font-size: 24px;
  transition: transform 0.3s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-content {
  padding: 0 24px 24px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* Contact Form */
.contact-section {
  padding: var(--section-padding);
}

.contact-form {
  max-width: 700px;
  margin: 60px auto 0;
  background: var(--dark-blue);
  padding: 50px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px;
  background: var(--dark-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: white;
  font-size: 15px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
}

.checkbox-group label {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.submit-button {
  width: 100%;
  padding: 16px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
}

/* CTA Banner */
.cta-banner {
  background: var(--gradient-primary);
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: 42px;
  margin-bottom: 30px;
}

.cta-banner .hero-buttons {
  margin-top: 40px;
}

.btn-white {
  background: white;
  color: var(--primary-color);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* Footer */
.site-footer {
  background: var(--dark-blue);
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 60px;
  margin-bottom: 60px;
}

.footer-about img {
  height: 40px;
  margin-bottom: 20px;
}

.footer-about p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-column h3 {
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 600;
}

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

.footer-column li {
  margin-bottom: 12px;
}

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

.footer-column a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
  .process-step {
    grid-template-columns: 1fr;
  }
  
  .process-step:nth-child(even) {
    direction: ltr;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-navigation {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-content h1 {
    font-size: 42px;
  }
  
  .hero-content p {
    font-size: 18px;
  }
  
  .section-header h2 {
    font-size: 36px;
  }
  
  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
}