/* Modern Flat Design for RingyThingy Website */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');

:root {
  --primary: #5B5CFF;
  --primary-light: #7879FF;
  --primary-dark: #4546DD;
  --secondary: #34D1BF;
  --secondary-light: #4CEBD5;
  --secondary-dark: #2AB3A2;
  --dark: #18181B;
  --dark-surface: #27272A;
  --light: #F4F4F5;
  --gray: #3F3F46;
  --gray-light: #71717A;
  --gray-lighter: #D4D4D8;
  --success: #22C55E;
  --warning: #F59E0B;
  --error: #EF4444;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

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

section {
  padding: 80px 0;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

h1 {
  font-size: 2.75rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 20px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

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

img {
  max-width: 100%;
}

ul, ol {
  margin-left: 20px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.button.primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.button.primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.button.secondary {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.button.secondary:hover {
  background-color: rgba(91, 92, 255, 0.1);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.button.large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

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

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-text {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  gap: 30px;
}

nav a {
  font-weight: 500;
  color: var(--dark);
  padding: 8px 0;
  position: relative;
}

nav a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: var(--transition);
}

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

nav a:hover:after {
  width: 100%;
}

/* Hero Section */
.hero {
  background-color: white;
  padding: 100px 0;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-content {
  flex: 1;
}

.hero h1 {
  margin-bottom: 20px;
  color: var(--dark);
}

.hero p {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

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

.screenshot {
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 8px solid var(--dark-surface);
}

/* Features Section */
.features {
  background-color: var(--light);
  padding: 80px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon i {
  font-size: 24px;
  color: white;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* How It Works Section */
.how-it-works {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.how-it-works h2 {
  color: white;
}

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

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

.step-number {
  width: 50px;
  height: 50px;
  background-color: white;
  color: var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.step-content h3 {
  color: white;
  margin-bottom: 10px;
}

.step-content p {
  opacity: 0.9;
}

/* Supported Devices Section */
.supported-devices {
  background-color: white;
}

.devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 900px;
  margin: 0 auto 40px;
}

.device-category {
  background-color: var(--light);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.device-category h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  margin-bottom: 20px;
}

.device-category i {
  color: var(--success);
}

.device-category ul {
  list-style: none;
  margin-left: 0;
}

.device-category li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-lighter);
}

.device-category li:last-child {
  border-bottom: none;
}

.device-note {
  text-align: center;
  color: var(--gray);
}

/* Testimonials Section */
.testimonials {
  background-color: var(--dark-surface);
  color: white;
}

.testimonials h2 {
  color: white;
}

.testimonial-slider {
  display: flex;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  overflow-x: auto;
  padding: 20px 10px;
  scrollbar-width: none; /* Firefox */
}

.testimonial-slider::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.testimonial {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 30px;
  flex: 0 0 calc(50% - 15px);
  min-width: 300px;
}

.testimonial-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

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

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.author-info p {
  color: var(--gray-lighter);
  margin: 0;
}

/* FAQ Section */
.faq {
  background-color: var(--light);
}

.faq-items {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: white;
  border-radius: var(--radius-md);
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 20px 25px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question i {
  transition: var(--transition);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: rgba(255, 255, 255, 0.5);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 25px 20px 25px;
}

/* Download Section */
.download {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  text-align: center;
}

.download h2 {
  color: white;
}

.download p {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  opacity: 0.9;
}

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

/* Contact Section */
.contact {
  background-color: white;
  text-align: center;
}

.contact p {
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  flex: 1 1 300px;
}

.footer-links {
  flex: 2 1 600px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.footer-column {
  min-width: 180px;
}

.footer-column h4 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

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

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

.footer-column a {
  color: var(--gray-lighter);
  transition: var(--transition);
}

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

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

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

/* Responsive Adjustments */
@media (max-width: 992px) {
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero .container {
    flex-direction: column;
  }
  
  .hero-image {
    margin-top: 40px;
    order: 2;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .steps {
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 20px;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  
  section {
    padding: 60px 0;
  }
  
  .download-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .devices-grid {
    grid-template-columns: 1fr;
  }
  
  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }
  
  .testimonial {
    flex: 0 0 100%;
  }
}

@media (max-width: 576px) {
  .button {
    width: 100%;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
}