/* ==========================================================================
   ShortsCraft Landing Page - Style System (Obsidian & Steel Blue Dark Mode)
   ========================================================================== */

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

:root {
  /* Background Color Tokens */
  --bg-root:        #0B0B0C;
  --bg-primary:     #0F0F12;
  --bg-secondary:   #141417;
  --bg-tertiary:    #1B1B1F;
  --bg-elevated:    #242429;
  --bg-glass:       rgba(255, 255, 255, 0.015);
  --bg-glass-hover: rgba(255, 255, 255, 0.035);

  /* Text Color Tokens */
  --text-primary:   #F4F4F5;
  --text-secondary: #A1A1AA;
  --text-muted:     #71717A;

  /* Accent Blue Tokens */
  --accent-primary:   #3B82F6;
  --accent-secondary: #2563EB;
  --brand-primary:    #2563EB;
  --accent-glow:      rgba(59, 130, 246, 0.08);

  /* Border Tokens */
  --border-subtle:  #1A1A1F;
  --border-default: #222227;
  --border-hover:   #2E2E35;
  --border-focus:   #3B82F6;

  /* Spacing / Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Timing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-normal: 250ms;
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--bg-root);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Manrope', 'Inter', -apple-system, sans-serif;
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Container scaled for 1920px screens */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: rgba(11, 11, 12, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-default);
  z-index: 100;
  height: 80px;
  display: flex;
  align-items: center;
}

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

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

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #863bff;
}

.brand-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Language Selector */
.lang-selector {
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  padding: 3px;
  border-radius: var(--radius-md);
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  cursor: pointer;
  border-radius: calc(var(--radius-md) - 2px);
  transition: all var(--duration-normal) var(--ease-out);
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  padding: 100px 0 60px;
  text-align: center;
  position: relative;
}

/* Subtle glow blob */
.hero::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(134, 59, 255, 0.08);
  border: 1px solid rgba(134, 59, 255, 0.15);
  color: #a87ffb;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 54px;
  line-height: 1.15;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #FFFFFF 0%, #D4D4D8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 400;
  line-height: 1.6;
}

/* Buttons */
.btn-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  border: none;
}

.btn-primary {
  background: var(--brand-primary);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: #3B82F6;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.35);
}

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

.btn-secondary:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* App Mockup Rendering Section */
.mockup-container {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  background: #0B0B0C;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
  transition: border-color var(--duration-normal) var(--ease-out);
}

.mockup-container:hover {
  border-color: var(--border-hover);
}

/* Features Grid */
.features {
  padding: 80px 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}

.section-header {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 38px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-default);
  padding: 32px;
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  background: var(--bg-glass-hover);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(134, 59, 255, 0.08);
  border: 1px solid rgba(134, 59, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a87ffb;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

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

/* CTA Download Section */
.download-cta {
  padding: 80px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-default);
}

.cta-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.cta-card h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.cta-card p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 32px;
}

.cta-card .btn-group {
  margin-bottom: 0;
}

/* Contact / Licensing Section */
.contact-section {
  padding: 100px 0;
  text-align: center;
}

.contact-card {
  max-width: 700px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-root) 100%);
  border: 2px solid var(--border-default);
  padding: 60px 40px;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-card h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.contact-card p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-default);
  padding: 40px 0;
  background: var(--bg-primary);
  text-align: center;
}

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

/* SmartScreen Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 800px;
  width: 90%;
  position: relative;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-header {
  margin-bottom: 40px;
}

.modal-header h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.modal-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

.steps-grid {
  display: grid;
  grid-template-cols: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  padding: 24px;
  border-radius: var(--radius-lg);
}

.step-num {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: 12px;
}

.step-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.modal-footer {
  margin-top: 32px;
  text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 38px;
  }
  .btn-group {
    flex-direction: column;
    max-width: 320px;
    margin: 0 auto 40px;
  }
  .cta-card {
    padding: 32px 20px;
  }
  .modal-card {
    padding: 32px 24px;
  }
}
