/* 
 * Jodhpur Connect Landing Page Stylesheet
 * Aligned with the Design Guidelines (Jodhpur Blue #2563EB & Terracotta #EA580C)
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --color-brand: #2563EB;
  /* Jodhpur Blue */
  --color-brand-light: #3B82F6;
  --color-brand-secondary: #EA580C;
  /* Terracotta orange */
  --color-brand-tertiary: #DBEAFE;
  --color-brand-dark: #1E3A8A;

  --color-bg: #FAFAF9;
  /* Clean stone background */
  --color-surface: #FFFFFF;
  --color-surface-secondary: #F1F5F9;

  --color-text: #0F172A;
  /* Slate 900 */
  --color-text-secondary: #475569;
  /* Slate 600 */
  --color-text-light: #94A3B8;

  --color-border: #E2E8F0;

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(37, 99, 235, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-terracotta: 0 20px 25px -5px rgba(234, 88, 12, 0.15);

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-blur: blur(12px);
}

/* Dark mode overrides (mostly for premium slate dark cards or automatic dark theme) */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #090D16;
    /* Deep blue-slate black */
    --color-surface: #0F172A;
    /* Slate 900 */
    --color-surface-secondary: #1E293B;
    /* Slate 800 */
    --color-text: #F8FAFC;
    --color-text-secondary: #CBD5E1;
    --color-border: #334155;

    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* Common Layout Elements */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-tag {
  display: inline-block;
  background-color: var(--color-brand-tertiary);
  color: var(--color-brand);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

@media (prefers-color-scheme: dark) {
  .section-tag {
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--color-brand-light);
  }
}

.section-title {
  font-size: 36px;
  margin-bottom: 16px;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .section-title {
    font-size: 28px;
  }
}

.section-desc {
  font-size: 18px;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
}

/* Glassmorphism Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  transition: padding var(--transition-normal);
  padding: 20px 0;
}

.header.scrolled {
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--color-brand);
  transition: transform var(--transition-fast);
}

.logo:hover {
  transform: scale(1.02);
}

.logo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-brand-secondary);
  display: inline-block;
  box-shadow: 0 0 8px var(--color-brand-secondary);
}

.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--color-text-secondary);
  font-weight: 500;
  transition: color var(--transition-fast);
  font-size: 15px;
}

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

.cta-btn {
  background-color: var(--color-brand);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.cta-btn:hover {
  background-color: var(--color-brand-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1.5px solid var(--color-border);
}

.cta-btn-secondary:hover {
  background-color: var(--color-surface-secondary);
  transform: translateY(-2px);
}

.cta-btn-accent {
  background-color: var(--color-brand-secondary);
  color: #ffffff;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-terracotta);
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.cta-btn-accent:hover {
  background-color: #f97316;
  transform: translateY(-2px);
  box-shadow: 0 25px 30px -5px rgba(234, 88, 12, 0.3);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 180px 0 100px 0;
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(234, 88, 12, 0.05) 0%, transparent 40%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--color-text);
}

.hero-title span {
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 40px;
  }
}

.hero-desc {
  font-size: 20px;
  color: var(--color-text-secondary);
  margin-bottom: 36px;
  max-width: 620px;
}

@media (max-width: 992px) {
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

@media (max-width: 992px) {
  .hero-ctas {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
}

.download-badges {
  display: flex;
  gap: 16px;
  align-items: center;
}

.badge-link {
  display: inline-flex;
  align-items: center;
  background-color: #0F172A;
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
  border: 1px solid #1E293B;
  transition: all var(--transition-fast);
}

.badge-link svg {
  margin-right: 12px;
  width: 24px;
  height: 24px;
}

.badge-link:hover {
  background-color: #1E293B;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.badge-text span {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.badge-text strong {
  font-size: 14px;
  font-weight: 600;
}

.google-play-badge {
  height: 40px;
  display: block;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.google-play-badge:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Screenshot mockup tab switcher */
.phone-mockup-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  padding: 6px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  width: max-content;
  margin-left: auto;
  margin-right: auto;
  z-index: 10;
  position: relative;
}

.phone-mockup-tab {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  padding: 8px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.phone-mockup-tab:hover {
  color: var(--color-brand);
}

.phone-mockup-tab.active {
  background-color: var(--color-brand);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

/* CSS-Drawn Smartphone Device Mockup */
.device-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-mockup {
  position: relative;
  width: 265px;
  height: 600px;
  background: #090D16;
  border-radius: 40px;
  box-shadow: 0px 30px 60px rgba(15, 23, 42, 0.3),
    inset 0px 4px 10px rgba(255, 255, 255, 0.15),
    0 0 0 10px #1E293B;
  overflow: hidden;
  border: 4px solid #090D16;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background-color: var(--color-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 24px;
  background-color: #090D16;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 10;
}

/* Simulated App UI inside screen */
.phone-header {
  height: 80px;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px 16px;
  gap: 6px;
}

.phone-app-logo {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-brand);
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.phone-logo-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  border-radius: 3px;
}

.phone-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.phone-tab {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-secondary);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.phone-tab.active {
  color: var(--color-brand);
  border-bottom-color: var(--color-brand);
}

.phone-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: var(--color-surface-secondary);
}

.phone-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-user {
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--color-brand-secondary);
}

.user-name {
  font-size: 10px;
  font-weight: 600;
}

.user-time {
  font-size: 8px;
  color: var(--color-text-light);
}

.card-title {
  font-size: 11px;
  font-weight: 700;
}

.card-desc {
  font-size: 9.5px;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.card-img {
  width: 100%;
  height: 80px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
}

.card-tag {
  align-self: flex-start;
  font-size: 8px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background-color: var(--color-brand-tertiary);
  color: var(--color-brand-dark);
}

.card-actions {
  display: flex;
  gap: 12px;
  font-size: 9px;
  color: var(--color-text-secondary);
  border-top: 1px solid var(--color-border);
  padding-top: 6px;
}

.phone-bottom-nav {
  height: 50px;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--color-text-light);
  font-size: 8px;
}

.nav-item.active {
  color: var(--color-brand);
}

.nav-icon {
  width: 16px;
  height: 16px;
  background-color: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

/* Background image overlay mock decoration */
.hero-deco-image {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 110%;
  height: 110%;
  object-fit: cover;
  border-radius: 20px;
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
}

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

.hero-image-backdrop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
  z-index: -1;
  filter: blur(40px);
}

/* Feature Section */
.features-section {
  padding: 100px 0;
  background-color: var(--color-surface);
}

@media (prefers-color-scheme: dark) {
  .features-section {
    background-color: #0b0f19;
  }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.feature-card {
  background-color: var(--color-surface-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-brand-light);
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background-color: var(--color-brand-tertiary);
  color: var(--color-brand);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
}

.feature-icon-wrapper svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
}

@media (prefers-color-scheme: dark) {
  .feature-icon-wrapper {
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--color-brand-light);
  }
}

.feature-card h3 {
  font-size: 22px;
  color: var(--color-text);
}

.feature-card p {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* Showcase Banner Section (Glassmorphic) */
.showcase-section {
  padding: 100px 0;
  background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), url('assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #ffffff;
  text-align: center;
}

.showcase-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.showcase-content h2 {
  font-size: 42px;
  color: #ffffff;
}

.showcase-content p {
  font-size: 20px;
  color: #cbd5e1;
  margin-bottom: 24px;
}

/* Contact / Support Section */
.contact-section {
  padding: 100px 0;
  background-color: var(--color-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-details {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--color-brand-tertiary);
  color: var(--color-brand);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

@media (prefers-color-scheme: dark) {
  .contact-icon {
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--color-brand-light);
  }
}

.contact-item-text h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.contact-item-text p {
  color: var(--color-text-secondary);
  font-size: 15px;
}

.contact-form-wrapper {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

@media (max-width: 480px) {
  .contact-form-wrapper {
    padding: 24px;
  }
}

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

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

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-input::placeholder {
  color: var(--color-text-light);
}

.form-btn {
  width: 100%;
  padding: 14px;
  background-color: var(--color-brand);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.form-btn:hover {
  background-color: var(--color-brand-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Legal Documents Structure (Shared template styling) */
.legal-container {
  max-width: 800px;
  margin: 140px auto 100px auto;
  padding: 0 24px;
}

.legal-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .legal-card {
    padding: 32px 24px;
  }
}

.legal-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 32px;
  margin-bottom: 32px;
}

.legal-header h1 {
  font-size: 40px;
  margin-bottom: 12px;
  color: var(--color-text);
}

.legal-meta {
  font-size: 14px;
  color: var(--color-text-light);
}

.legal-content h2 {
  font-size: 22px;
  margin: 36px 0 16px 0;
  color: var(--color-text);
}

.legal-content p,
.legal-content ul {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 24px;
  list-style-type: disc;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--color-brand);
  text-decoration: none;
  font-weight: 500;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* Footer styling */
.footer {
  background-color: #0F172A;
  color: #94A3B8;
  padding: 80px 0 40px 0;
  border-top: 1px solid #1E293B;
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

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

.footer-brand h3 {
  color: #ffffff;
  font-size: 22px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand p {
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer-links h4 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

.footer-bottom p {
  font-size: 14px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #1E293B;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-link svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.social-link:hover {
  background-color: var(--color-brand);
  transform: translateY(-3px);
}