/* ==========================================================================
   AZISUNT PRINT-READY AI UPSCALER & BLEED GENERATOR - DESIGN SYSTEM
   Modern, Vibrant Glassmorphism, Dark Aesthetics & Fluid Animations
   ========================================================================== */

:root {
  --bg-primary: #07090e;
  --bg-surface: #0f131c;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-border: rgba(56, 189, 248, 0.15);
  --bg-card-hover: rgba(30, 41, 59, 0.9);

  --accent-primary: #38bdf8;
  --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  --accent-glow: rgba(56, 189, 248, 0.3);
  
  --secondary-glow: rgba(168, 85, 247, 0.25);
  --color-cyan: #38bdf8;
  --color-purple: #c084fc;
  --color-emerald: #34d399;
  --color-amber: #fbbf24;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(56, 189, 248, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(168, 85, 247, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(52, 211, 153, 0.04) 0%, transparent 60%);
}

/* Container & Layout */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--bg-card-border);
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.domain-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-card-border);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--color-cyan);
  font-weight: 600;
}

/* Hero Section & Premium Mobile-First Responsive Animations */
.hero {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 2.5rem;
  padding: 0 0.5rem;
  position: relative;
  animation: heroFadeIn 0.8s ease-out;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.25rem;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(168, 85, 247, 0.12) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 50px;
  color: var(--color-cyan);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1rem;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
  animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.4);
  }
  100% {
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.4);
    border-color: rgba(168, 85, 247, 0.5);
  }
}

.hero-title {
  font-size: 1.85rem; /* Mobile default */
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 2.35rem;
  }
}

@media (min-width: 900px) {
  .hero-title {
    font-size: 2.85rem;
    letter-spacing: -1px;
  }
  .hero {
    margin-bottom: 3.5rem;
  }
}

.hero-title span {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineText 4s linear infinite;
}

@keyframes shineText {
  to {
    background-position: 200% center;
  }
}

.hero-subtitle {
  font-size: 0.95rem; /* Mobile default */
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 1.1rem;
  }
}

/* Hero Badge Mobile-First Optimization */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.hero-badges span {
  transition: all var(--transition-fast);
  cursor: default;
  backdrop-filter: blur(8px);
  font-size: 0.75rem; /* Mobile font */
  padding: 0.3rem 0.65rem;
}

@media (min-width: 640px) {
  .hero-badges {
    gap: 0.75rem;
    margin-top: 1.25rem;
  }
  .hero-badges span {
    font-size: 0.82rem;
    padding: 0.35rem 0.85rem;
  }
}

.hero-badges span:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Main Grid Workflow */
.workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

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

/* Glassmorphism Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: var(--transition-normal);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dropzone Upload */
.dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  background: rgba(10, 12, 16, 0.4);
  transition: var(--transition-fast);
  position: relative;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent-primary);
  background: rgba(255, 75, 43, 0.04);
}

.dropzone-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.dropzone-text {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.dropzone-subtext {
  font-size: 0.85rem;
  color: var(--text-dim);
}

#file-input {
  display: none;
}

/* Format Form Controls */
.form-group {
  margin-top: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.form-select, .form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(10, 12, 16, 0.6);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition-fast);
}

.form-select:focus, .form-input:focus {
  border-color: var(--color-cyan);
  box-shadow: 0 0 0 3px var(--secondary-glow);
}

.custom-dims-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

/* Preview Canvas Container */
.preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  background: rgba(10, 12, 16, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-card-border);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.canvas-wrapper {
  max-width: 100%;
  max-height: 240px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border-radius: 4px;
}

#preview-canvas {
  max-width: 100%;
  max-height: 220px;
  display: block;
  border: 2px dashed var(--color-amber);
}

.bleed-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend-color.net { background: var(--color-emerald); }
.legend-color.bleed { background: var(--color-amber); }

/* Action Buttons */
.btn-primary {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 25px var(--accent-glow);
  transition: var(--transition-fast);
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 75, 43, 0.4);
}

.btn-secondary {
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bg-card-border);
  color: var(--text-main);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  margin-top: 0.75rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Specs Details Output */
.specs-box {
  background: rgba(10, 12, 16, 0.8);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
}

.specs-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.specs-row:last-child {
  border-bottom: none;
}

.specs-label { color: var(--text-muted); }
.specs-val { font-weight: 600; color: var(--color-cyan); }

/* SEO & AEO FAQ Section */
.seo-section {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--bg-card-border);
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2.5rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.faq-q {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.faq-a {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bg-card-border);
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer a {
  color: var(--color-cyan);
  text-decoration: none;
}
