/* Ungambled Website Styles
   Based on Brand Guide */

/* Variables */
:root {
  /* Brand Colors */
  --primary-purple: #5D4BC4; 
  --primary-gold: #E9C31B; 
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
  --dark-gray: #333333;
  
  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 48px;
  --spacing-xl: 64px;
  
  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(93, 75, 196, 0.25); 
  --shadow-lg: 0 8px 16px rgba(93, 75, 196, 0.2); 
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "San Francisco", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--dark-gray);
  line-height: 1.5;
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "San Francisco", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--primary-purple);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-gold);
}

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

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col {
  flex: 1;
  padding: 0 15px;
}

.col-narrow {
  flex: 0 0 35%;
  max-width: 35%;
}

.col-wide {
  flex: 0 0 65%;
  max-width: 65%;
}

@media (max-width: 768px) {
  .row {
    flex-direction: column;
  }
  
  .col {
    margin-bottom: var(--spacing-md);
  }
  
  .col:last-child {
    margin-bottom: 0;
  }
}

/* Section Styles */
section {
  padding: var(--spacing-xl) 0;
}

@media (max-width: 768px) {
  section {
    padding: var(--spacing-sm) 0;
  }
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-header h2 {
  margin-bottom: var(--spacing-xs);
}

.section-header p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto var(--spacing-md);
}

/* Background Utilities */
.bg-light {
  background-color: var(--light-gray);
}

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

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "San Francisco", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-purple), var(--primary-gold));
  color: var(--white);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-purple);
  border: 2px solid var(--primary-purple);
}

.btn-secondary:hover {
  background-color: rgba(93, 75, 196, 0.1);
  color: var(--primary-purple);
}

.btn-large {
  padding: 14px 28px;
  font-size: 1.1rem;
}

/* Blog button styling for "Read More" links */
.blog-button {
  display: inline-block;
  background: linear-gradient(90deg, var(--primary-purple) 0%, var(--primary-gold) 100%);
  color: white !important;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  text-align: center;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(93, 75, 196, 0.2);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  margin-top: auto;
}

.blog-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(93, 75, 196, 0.3);
}

.blog-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-purple) 0%, var(--primary-gold) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.blog-button:hover::before {
  opacity: 1;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 100;
  padding: var(--spacing-sm) 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-symbol {
  height: 50px;
  width: auto;
  margin-right: 12px;
}

.logo-name {
  height: 36px;
  width: auto;
}

@media (max-width: 768px) {
  .logo-symbol {
    height: 40px;
  }
  
  .logo-name {
    height: 28px;
  }
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0 auto 0 var(--spacing-lg);
}

.nav-links li {
  margin-left: var(--spacing-md);
}

.nav-links a {
  font-weight: 500;
  position: relative;
  color: var(--dark-gray);
}

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

.nav-links a.active {
  font-weight: 600;
  color: var(--primary-purple);
}

.nav-links a.active:after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-gold);
}

.cta-button {
  margin-left: var(--spacing-md);
}

.cta-button .btn-primary {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-purple);
  padding: 5px;
  transition: color 0.2s ease;
}

.mobile-menu-btn:hover {
  color: var(--primary-gold);
}

@media (max-width: 992px) {
  .nav-links {
    margin-left: var(--spacing-md);
  }
  
  .nav-links li {
    margin-left: var(--spacing-sm);
  }
  
  .cta-button .btn-primary {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .header {
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .mobile-menu-btn {
    display: block;
    z-index: 101;
    padding: 8px;
    margin-right: -8px;
    font-size: 1.6rem;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 100;
    flex-direction: column;
    margin: 0;
    padding: 0;
  }
  
  .nav-links.show {
    display: flex;
  }
  
  .nav-links li {
    margin: 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  
  .nav-links li:last-child {
    border-bottom: none;
  }
  
  .nav-links li a {
    display: block;
    padding: 15px 0;
    width: 100%;
    font-size: 1rem;
    color: var(--dark-gray);
    transition: background-color 0.2s ease;
  }
  
  .nav-links li a:hover,
  .nav-links li a.active {
    background-color: rgba(123, 104, 238, 0.05);
    color: #7B68EE;
  }
  
  .nav-links li a.active:after {
    display: none;
  }
  
  /* Hide CTA button on mobile */
  .cta-button {
    display: none !important;
  }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 99;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Hero Section */
.hero {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
}

.hero .container {
  display: flex;
  justify-content: center;
}

.hero .row {
  max-width: 1100px;
  justify-content: center;
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  margin-bottom: var(--spacing-md);
  font-size: 3rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
}

.button-group {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.hero-app-image {
  max-height: 500px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(93, 75, 196, 0.2));
  transform: perspective(1000px) rotateY(-10deg);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.hero-app-image:hover {
  transform: perspective(1000px) rotateY(-5deg) translateY(-10px);
  filter: drop-shadow(0 15px 20px rgba(93, 75, 196, 0.3));
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero {
    padding: 0;
  }
  
  .hero .container {
    padding-top: var(--spacing-sm);
  }
  
  .button-group {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .button-group .btn {
    width: 100%;
    margin-bottom: var(--spacing-xs);
  }
}

/* Feature Cards */
.feature-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--spacing-md);
  height: 80px;
  width: 100%;
}

.feature-icon svg {
  width: 64px;
  height: 64px;
  color: transparent;
  stroke: url(#purple-gold-gradient);
  filter: drop-shadow(0 2px 4px rgba(93, 75, 196, 0.2));
}

.feature-card h3 {
  margin-bottom: var(--spacing-xs);
}

/* Steps Section */
.steps-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--spacing-md);
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: var(--spacing-md);
  position: relative;
}

.step-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-purple), var(--primary-gold));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  font-size: 1.4rem;
  text-align: center;
}

.step-content {
  flex-grow: 1;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  position: relative;
  padding-bottom: calc(var(--spacing-md) + 50px);
}

.step-content h3 {
  margin-bottom: var(--spacing-sm);
  text-align: center;
  font-size: 1.4rem;
  width: 100%;
}

.step-content p {
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.step-content .blog-button {
  width: calc(100% - var(--spacing-md) * 2);
  position: absolute;
  bottom: var(--spacing-md);
  left: var(--spacing-md);
  right: var(--spacing-md);
  padding: 12px 16px;
  text-align: center;
  font-size: 1rem;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .steps-container {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }
  
  .step-card {
    margin-bottom: 0;
  }
}

@media (min-width: 1200px) {
  .steps-container {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
  }
  
  .step-card {
    margin-bottom: 0;
  }
}

/* Testimonial Section */
.testimonial-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-md);
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: var(--spacing-sm);
}

.testimonial-name {
  font-weight: 600;
}

.testimonial-earings {
  color: var(--primary-purple);
  font-weight: 700;
}

.testimonial-text {
  font-style: italic;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: var(--spacing-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  background-color: var(--white);
  padding: var(--spacing-md);
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  background-color: var(--light-gray);
  padding: 0 var(--spacing-md);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: var(--spacing-md);
  max-height: 1000px;
}

.faq-toggle {
  width: 20px;
  height: 20px;
  position: relative;
}

.faq-toggle:before,
.faq-toggle:after {
  content: '';
  position: absolute;
  background-color: var(--primary-purple);
  transition: transform 0.3s ease;
}

.faq-toggle:before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.faq-toggle:after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.faq-item.active .faq-toggle:after {
  transform: translateX(-50%) rotate(90deg);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-purple), var(--primary-gold));
  color: var(--white);
  text-align: center;
  padding: var(--spacing-xl) 0;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  margin-bottom: var(--spacing-md);
}

.cta-section p {
  margin-bottom: var(--spacing-lg);
  font-size: 1.2rem;
}

.cta-btn {
  background-color: var(--white);
  color: var(--primary-purple);
  font-weight: 700;
}

.cta-btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--primary-purple);
}

/* Footer */
.footer {
  padding: var(--spacing-lg) 0;
  background-color: var(--dark-gray);
  color: var(--white);
}

.footer-logo {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "San Francisco", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(135deg, var(--primary-purple), var(--primary-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: var(--light-gray);
}

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

.footer-bottom {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: var(--light-gray);
}

/* Blog Styles */
.blog-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.blog-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.blog-content {
  padding: var(--spacing-md);
}

.blog-date {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: var(--spacing-xs);
}

.blog-card h3 {
  margin-bottom: var(--spacing-xs);
}

.blog-excerpt {
  margin-bottom: var(--spacing-sm);
}

.read-more {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.read-more svg {
  margin-left: 5px;
  transition: transform 0.2s ease;
}

.read-more:hover svg {
  transform: translateX(3px);
}

/* Form Styles */
.form-group {
  margin-bottom: var(--spacing-md);
}

label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 3px rgba(93, 75, 196, 0.2);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-hint {
  display: block;
  margin-top: var(--spacing-xs);
  font-size: 0.9rem;
  color: #777;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.hidden {
  display: none;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}
