/* Solar-inspired Dark Theme for Indian Fintech - 2025 */

:root {
  /* Solarized Dark Color Palette */
  --base03: #002b36;
  --base02: #073642;
  --base01: #586e75;
  --base00: #657b83;
  --base0: #839496;
  --base1: #93a1a1;
  --base2: #eee8d5;
  --base3: #fdf6e3;
  --yellow: #b58900;
  --orange: #cb4b16;
  --red: #dc322f;
  --magenta: #d33682;
  --violet: #6c71c4;
  --blue: #268bd2;
  --cyan: #2aa198;
  --green: #859900;
  
  /* Custom UI Colors */
  --background: var(--base03);
  --background-secondary: var(--base02);
  --text: var(--base2);
  --text-muted: var(--base1);
  --accent: var(--yellow);
  --secondary-accent: var(--cyan);
  --border-radius: 8px;
  --card-bg: rgba(7, 54, 66, 0.8);
  --card-border: rgba(147, 161, 161, 0.1);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.5px;
}

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

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

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

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

button, .cta-btn {
  cursor: pointer;
  background: var(--accent);
  color: var(--background);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

button:hover, .cta-btn:hover {
  background: var(--yellow);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(181, 137, 0, 0.2);
}

section {
  padding: 5rem 0;
}

/* Header & Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background-color: var(--background-secondary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
}

.navbar nav {
  display: flex;
  gap: 2rem;
}

.navbar nav a {
  color: var(--text);
  font-weight: 500;
}

.navbar .cta-btn {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.mobile-nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--background) 0%, var(--background-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80vw;
  height: 80vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--base02) 0%, transparent 70%);
  opacity: 0.3;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}

.hero h1 {
  margin-bottom: 0.5rem;
}

.hero-tagline {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.highlight-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent) 0%, var(--secondary-accent) 100%);
  color: var(--background);
  font-weight: 700;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 3px 10px rgba(181, 137, 0, 0.3);
  animation: pulse 2s infinite;
  position: relative;
}

.highlight-badge::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--accent), var(--secondary-accent));
  z-index: -1;
  animation: border-pulse 2s infinite;
  opacity: 0.5;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes border-pulse {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero .cta-btn.big {
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

/* Features Section */
.features {
  background-color: var(--background);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  text-align: center;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.feature.highlight {
  border: 2px solid var(--accent);
  position: relative;
  overflow: hidden;
}

.feature.highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--secondary-accent));
}

.feature.highlight h3 {
  color: var(--accent);
  font-weight: 700;
}

.feature .icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  background: var(--background-secondary);
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
}

.feature .icon i {
  margin-right: 10px;
}

.feature h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

/* Sandbox Section */
.sandbox {
  background-color: var(--background-secondary);
  text-align: center;
}

.api-sources {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.source-tag {
  background-color: var(--background);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.source-tag:hover {
  transform: translateY(-2px);
  border-color: var(--secondary-accent);
}

.source-tag:nth-child(1) {
  border-left: 3px solid var(--cyan);
}

.source-tag:nth-child(2) {
  border-left: 3px solid var(--green);
}

.source-tag:nth-child(3) {
  border-left: 3px solid var(--accent);
}

.source-tag:nth-child(4) {
  border-left: 3px solid var(--blue);
}

.source-tag:nth-child(5) {
  border-left: 3px solid var(--violet);
}

.sandbox-demo {
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

#sandbox-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  gap: 1rem;
}

#sandbox-form input {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  background-color: var(--background);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

#sandbox-form input:focus {
  outline: none;
  border-color: var(--secondary-accent);
  box-shadow: 0 0 0 2px rgba(42, 161, 152, 0.2);
}

#sandbox-response {
  text-align: left;
  background-color: var(--background);
  border: 1px solid var(--card-border);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  overflow-x: auto;
  max-width: 100%;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre;
  max-height: 400px;
  color: var(--text);
  margin: 0 auto;
}

/* Pricing Section */
.pricing {
  background-color: var(--background);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.card {
  background-color: var(--card-bg);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
}

.card.popular {
  border-color: var(--accent);
  transform: scale(1.05);
}

.card.popular::before {
  content: 'Popular';
  position: absolute;
  top: 0;
  right: 2rem;
  background-color: var(--accent);
  color: var(--background);
  padding: 0.25rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2rem;
}

.price span {
  font-size: 1rem;
  font-weight: normal;
  color: var(--text-muted);
}

.card-cta {
  display: inline-block;
  background-color: var(--accent);
  color: var(--background);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: all 0.3s ease;
}

.card-cta:hover {
  background-color: var(--yellow);
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(181, 137, 0, 0.2);
}

/* How it Works Section */
.how-it-works {
  background-color: var(--background-secondary);
  text-align: center;
}

.steps {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.step {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  margin: 1rem;
}

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

.step-text {
  font-size: 1.25rem;
  font-weight: 500;
}

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

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

.faq-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--card-border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.5rem 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent);
}

.faq-question.active::after {
  content: '-';
}

.faq-answer {
  padding: 0 1rem 1.5rem;
  color: var(--text-muted);
  display: none;
  text-align: left;
}

.faq-answer.active {
  display: block;
}

/* Contact Section */
.contact {
  background-color: var(--background-secondary);
  text-align: center;
}

.contact-info {
  margin: 2rem auto;
  max-width: 500px;
}

.related-service {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--card-border);
}

.related-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background-color: var(--background);
  padding: 3rem 0;
  border-top: 1px solid var(--card-border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.copyright {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-logo {
  font-size: 1.2rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .navbar {
    padding: 1rem;
  }
  
  .navbar nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--background-secondary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease;
    z-index: 90;
  }
  
  .navbar nav.active {
    right: 0;
  }
  
  .mobile-nav-toggle {
    display: flex;
    z-index: 100;
  }
  
  .steps {
    flex-direction: column;
    align-items: center;
  }
  
  .card.popular {
    transform: scale(1);
  }
  
  #sandbox-form {
    flex-direction: column;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .navbar {
    padding: 0.75rem;
  }
  
  .logo {
    font-size: 1.2rem;
  }
  
  .pricing-cards,
  .features-grid {
    grid-template-columns: 1fr;
  }
}


/* Pricing Page */
.pricing-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.pricing-page h1 {
  margin-bottom: 0.5rem;
}

.pricing-page-subtitle {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.pricing-page-plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.plan-card {
  background-color: var(--card-bg);
  padding: 2rem 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}

.plan-card.popular {
  border-color: var(--accent);
}

.plan-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.plan-card p {
  margin-bottom: 1rem;
}

.razorpay-widget {
  max-width: 400px;
  margin: 0 auto 3rem;
}

.pricing-page-info {
  margin-top: 2rem;
}

.pricing-page-info p {
  font-size: 0.95rem;
}

@media (max-width: 480px) {
  .pricing-page-plans {
    grid-template-columns: 1fr;
  }
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
