/* Moddrum AI Long Landing Page - Production Stylesheet */

/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
  --primary: #135bec;
  --primary-light: rgba(19, 91, 236, 0.1);
  --primary-dark: #0d47c9;
  --background: #f6f6f8;
  --background-white: #ffffff;
  --background-dark: #101622;
  --text-dark: #0f172a;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --success: #22c55e;
  --success-light: #f0fdf4;
  --warning: #f59e0b;
  --error: #ef4444;
  --error-light: #fef2f2;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  --max-width: 1280px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
}

h2 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

h4 {
  font-size: 1rem;
  font-weight: 700;
}

p {
  color: var(--text-secondary);
}

/* ========================================
   Layout
   ======================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

@media (min-width: 1024px) {
  .section {
    padding: 6rem 0;
  }
}

/* ========================================
   Header
   ======================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-actions .login-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: color 0.2s ease;
}

.header-actions .login-link:hover {
  color: var(--primary);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 20px rgba(19, 91, 236, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #f1f5f9;
  color: var(--text-dark);
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-2xl);
}

.btn-white:hover {
  background: #f8fafc;
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn-md {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  border-radius: var(--radius-xl);
}

.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: 1.25rem;
  border-radius: var(--radius-2xl);
}

.btn-full {
  width: 100%;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  padding: 5rem 0 8rem;
  background: var(--background-white);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.hero-badge .material-symbols-outlined {
  font-size: 14px;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hero Visual */
.hero-visual {
  position: relative;
}

.hero-image-wrapper {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--border);
  background: #f8fafc;
}

.hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.hero-stat-card {
  position: absolute;
  bottom: -24px;
  left: -24px;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
}

.hero-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: var(--radius-full);
}

.hero-stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1;
}

/* Hero Background */
.hero-bg-accent {
  position: absolute;
  top: 0;
  right: 0;
  transform: translateX(50%) translateY(-50%);
  width: 600px;
  height: 600px;
  background: var(--primary-light);
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

/* ========================================
   Features / Problem-Solution Section
   ======================================== */
.features-section {
  background: #f8fafc;
}

.section-header {
  text-align: center;
  max-width: 768px;
  margin: 0 auto 5rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
}

.problem-solution-rows {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

.ps-row {
  display: grid;
  gap: 5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .ps-row {
    grid-template-columns: 1fr 1fr;
  }
  
  .ps-row.reverse .ps-content {
    order: 1;
  }
  
  .ps-row.reverse .ps-visual {
    order: 2;
  }
}

.ps-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Pain Card */
.pain-card {
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 2rem;
  border-radius: var(--radius-2xl);
}

.pain-card .card-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #dc2626;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.pain-card h3 {
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

/* Solution Card */
.solution-card {
  background: white;
  border: 1px solid rgba(19, 91, 236, 0.2);
  padding: 2rem;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.solution-card .card-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.solution-card h3 {
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.solution-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  transition: gap 0.2s ease;
}

.solution-card .learn-more:hover {
  gap: 0.75rem;
}

.solution-card .code-tags {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.code-tag {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-family: monospace;
  border-radius: var(--radius-sm);
  border: 1px solid;
}

.code-tag.neutral {
  background: #f8fafc;
  border-color: var(--border);
  color: var(--text-secondary);
}

.code-tag.primary {
  background: var(--primary-light);
  border-color: rgba(19, 91, 236, 0.1);
  color: var(--primary);
}

/* Visual */
.ps-visual {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #e2e8f0;
  aspect-ratio: 16 / 10;
}

.ps-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ps-visual.grayscale img {
  filter: grayscale(100%);
  opacity: 0.5;
}

/* ========================================
   Workflow Comparison Section
   ======================================== */
.workflow-section {
  background: var(--background-white);
}

.workflow-grid {
  display: grid;
  gap: 3rem;
  position: relative;
}

@media (min-width: 1024px) {
  .workflow-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.workflow-divider {
  display: none;
}

@media (min-width: 1024px) {
  .workflow-divider {
    display: block;
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
    transform: translateX(-50%);
  }
}

.workflow-column {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.workflow-column-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
}

.workflow-column-header.manual {
  color: var(--text-light);
}

.workflow-column-header.moddrum {
  color: var(--primary);
}

.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.workflow-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  font-weight: 700;
  flex-shrink: 0;
}

.manual .step-number {
  background: #e2e8f0;
  color: var(--text-secondary);
}

.moddrum .step-number {
  background: var(--primary-light);
  border: 1px solid rgba(19, 91, 236, 0.2);
  color: var(--primary);
}

.manual .workflow-steps {
  opacity: 0.6;
}

.step-content h4 {
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: 0.875rem;
}

.workflow-highlight {
  background: var(--primary-light);
  border: 1px solid rgba(19, 91, 236, 0.1);
  padding: 1.5rem;
  border-radius: var(--radius-2xl);
  text-align: center;
}

.workflow-highlight p {
  color: var(--primary);
  font-weight: 700;
}

/* ========================================
   Trust / Security Section
   ======================================== */
.trust-section {
  background: #0f172a;
  color: white;
}

.trust-section .section-header h2 {
  color: white;
}

.trust-section .section-header p {
  color: #94a3b8;
}

.trust-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-card {
  padding: 2rem;
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease;
}

.trust-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.trust-card .material-symbols-outlined {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.trust-card h3 {
  color: white;
  margin-bottom: 1rem;
}

.trust-card p {
  color: #94a3b8;
}

/* ========================================
   Pricing Section
   ======================================== */
.pricing-section {
  background: var(--background-white);
}

.pricing-card {
  max-width: 560px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.pricing-card-header {
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.pricing-card-title h3 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.pricing-card-title p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

.pricing-card-price {
  text-align: right;
}

.pricing-card-price .price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-dark);
}

.pricing-card-price .period {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.pricing-card-price .billing-note {
  display: block;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.pricing-body {
  padding: 2rem 2.5rem 2.5rem;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2rem;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
}

.pricing-feature .material-symbols-outlined {
  color: var(--text-light);
  font-size: 1.25rem;
}

.pricing-feature.pricing-feature-highlight {
  color: var(--text-dark);
}

.pricing-feature.pricing-feature-highlight .material-symbols-outlined {
  color: var(--primary);
}

.pricing-feature.pricing-feature-highlight .material-symbols-outlined.filled {
  font-variation-settings: 'FILL' 1;
}

.pricing-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 1rem;
}

/* Credit Top-up Card */
.pricing-addon-card {
  max-width: 560px;
  margin: 1.5rem auto 0;
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 1.5rem 2rem;
}

.pricing-addon-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pricing-addon-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: var(--background-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.pricing-addon-title h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.125rem;
}

.pricing-addon-title p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

.pricing-addon-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--background-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.addon-details {
  display: flex;
  flex-direction: column;
}

.addon-name {
  font-weight: 700;
  color: var(--text-dark);
}

.addon-note {
  font-size: 0.75rem;
  color: var(--text-light);
}

.addon-price {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary);
}

/* Fair Credit System */
.credit-system {
  max-width: 560px;
  margin: 3rem auto 0;
}

.credit-system-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.credit-system-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.credit-system-item {
}

.credit-system-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.credit-system-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.credit-system-item p .highlight {
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 640px) {
  .pricing-card-header {
    flex-direction: column;
  }
  
  .pricing-card-price {
    text-align: left;
  }
  
  .credit-system-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-section {
  background: #f8fafc;
}

.faq-list {
  max-width: 896px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-dark);
}

.faq-answer {
  margin-top: 1rem;
  color: var(--text-secondary);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  background: var(--primary);
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-section h2 {
  color: white;
  margin-bottom: 2rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.25rem;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.cta-bg {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  pointer-events: none;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.footer-logo span {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-copyright {
  font-size: 0.875rem;
}

/* ========================================
   Material Icons
   ======================================== */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ========================================
   Placeholder Images (for demo)
   ======================================== */
.placeholder-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
  font-size: 3rem;
}
