/* Quiro Website - Styles */
/* Design system matching the Chrome extension */

@font-face {
  font-family: 'Open Sans';
  src: url('open-sans-variable.woff2') format('woff2');
  font-weight: 100 900;

}

@font-face {
  font-family: 'Google Sans Flex';
  src: url('google-sans-flex-variable.woff2') format('woff2');
  font-weight: 100 900;

}

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CSS Variables - Matching Extension */
:root {
  --bg-primary: hsl(270, 6%, 4%);
  --bg-secondary: #1A1B1E;
  --bg-tertiary: #1D1F2A;
  --text-primary: #d8d8d8;
  --text-secondary: #9F9F9F;
  --text-muted: #6e6e73;
  --border-color: #1F2128;
  --border-color-focus: #404354;
  --accent: #3861B7;
  --accent-hover: #4371D0;
  --danger: #B20A00;
  --success: #32d74b;
  --warning: #ffd60a;

  --font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition-smooth: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.3);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 {
  font-size: 3rem;
  font-family: 'Google Sans Flex', sans-serif;
  font-weight: 500;
}

h2 {
  font-size: 2.25rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 535;
}

h3 {
  font-size: 1.5rem;
  font-family: 'Google Sans Flex', sans-serif;
  font-weight: 470;
}

h4 {
  font-size: 1.25rem;
  font-family: 'Google Sans Flex', sans-serif;
  font-weight: 500;
}

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

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

a:hover {
  color: var(--accent-hover);
}

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

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

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

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

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

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

.btn-tertiary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color-focus);
}

.btn-tertiary:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--accent);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 12px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 9, 11, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

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

.nav-logo img {
  height: 28px;
  width: auto;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(56, 97, 183, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  color: var(--success);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title .highlight {
  color: var(--accent);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

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

.hero-image {
  max-width: 100%;
  width: 485px;
  height: auto;
}

.hero-mockup {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  width: 100%;
  max-width: 440px;
}

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

.mockup-logo {
  height: 20px;
}

.mockup-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mockup-credits {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 12px;
}

.mockup-toggle {
  width: 36px;
  height: 20px;
  background: var(--accent);
  border-radius: 20px;
  position: relative;
}

.mockup-toggle::after {
  content: '';
  position: absolute;
  right: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
}

.mockup-content {
  padding: 16px;
}

.mockup-sidebar {
  display: flex;
  gap: 12px;
}

.mockup-categories {
  width: 100px;
  padding: 8px;
  background: var(--bg-tertiary);
  border-radius: 8px;
}

.mockup-category {
  padding: 8px;
  font-size: 11px;
  color: var(--text-secondary);
  border-radius: 4px;
  margin-bottom: 4px;
}

.mockup-category.active {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.mockup-prompts {
  flex: 1;
}

.mockup-prompt {
  padding: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 8px;
}

.mockup-prompt.selected {
  border-color: rgba(87, 124, 204, 0.5);
}

.mockup-prompt-name {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}

.mockup-prompt-text {
  font-size: 10px;
  color: var(--text-muted);
}

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

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

.section-label {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(56, 97, 183, 0.15);
  color: var(--accent);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 16px;
}

.section-description {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

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

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 97, 183, 0.15);
  border-radius: 12px;
  margin-bottom: 20px;
  color: var(--accent);
}

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

.feature-title {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.feature-description {
  font-size: 14px;
  color: var(--text-secondary);
}

/* How It Works Section */
.how-it-works {
  padding: 120px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.step {
  text-align: center;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 40px;
  right: -20px;
  width: 40px;
  height: 2px;
  background: var(--border-color);
}

.step-number {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 auto 24px;
}

.step-title {
  margin-bottom: 8px;
}

.step-description {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 280px;
  margin: 0 auto;
}

/* Demo Section */
.demo {
  padding: 120px 0;
  background: var(--bg-secondary);
}

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

.demo-content {
  order: 1;
}

.demo-visual {
  order: 2;
}

.demo-feature {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.demo-feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 97, 183, 0.15);
  border-radius: 10px;
  color: var(--accent);
  flex-shrink: 0;
}

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

.demo-feature-title {
  font-size: 1rem;
  margin-bottom: 4px;
}

.demo-feature-text {
  font-size: 14px;
  color: var(--text-secondary);
}

.demo-image {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.demo-placeholder {
  background: var(--bg-tertiary);
  border-radius: 8px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* Pricing Section */
.pricing {
  padding: 120px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  padding: 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  border-color: var(--border-color-focus);
  transform: translateY(-4px);
}

.pricing-credits {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-label {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}

.pricing-price {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 24px;
  text-align: left;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-features svg {
  width: 16px;
  height: 16px;
  color: var(--success);
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
}

/* Free Tier Banner */
.free-tier {
  text-align: center;
  margin-top: 40px;
  padding: 24px;
  background: rgba(50, 215, 75, 0.1);
  border: 1px solid rgba(50, 215, 75, 0.3);
  border-radius: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.free-tier-title {
  font-size: 1.125rem;
  margin-bottom: 8px;
  color: var(--success);
}

.free-tier-text {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Credit Info Box */
.credit-info {
  margin-top: 60px;
  padding: 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.credit-info-title {
  font-size: 1.25rem;
  margin-bottom: 24px;
  text-align: center;
}

.credit-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.credit-info-item {
  text-align: center;
  padding: 16px;
  background: var(--bg-primary);
  border-radius: 8px;
}

.credit-info-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent-hover);
  margin-bottom: 4px;
}

.credit-info-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.credit-info-details {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.credit-info-details h4 {
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.credit-info-details ul {
  list-style: none;
  padding: 0;
}

.credit-info-details li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.credit-info-details li svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.credit-info-note {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(56, 97, 183, 0.1);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.credit-info-note strong {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .credit-info-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Footer */
.footer {
  padding: 20px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-logo img {
  height: 24px;
}

.footer-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
}

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

/* Privacy Page */
.policy-page {
  padding-top: 100px;
  padding-bottom: 60px;
  min-height: 100vh;
}

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

.policy-header {
  margin-bottom: 48px;
}

.policy-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.policy-updated {
  color: var(--text-muted);
  font-size: 14px;
}

.policy-section {
  margin-bottom: 40px;
}

.policy-section h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.policy-section p,
.policy-section li {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.policy-section ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

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

/* Support Form */
.support-form {
  margin-top: 32px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 97, 183, 0.15);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239F9F9F' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
}

.form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

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

.support-form .btn {
  width: 100%;
}

@media (min-width: 768px) {
  .support-form .btn {
    width: auto;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 2;
  }

  .hero-description {
    margin: 0 auto 32px;
  }

  .hero-actions {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .step:not(:last-child)::after {
    display: none;
  }

  .demo-container {
    grid-template-columns: 1fr;
  }

  .demo-content {
    order: 2;
  }

  .demo-visual {
    order: 1;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
    gap: 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}