:root {
  --font-main: 'Outfit', sans-serif;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --bg-input: rgba(255, 255, 255, 0.6);
}

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

body {
  font-family: var(--font-main);
  background-color: #f1f5f9;
  /* Slate 100 */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
  color: var(--text-dark);
}

/* Parallax / Animated Background */
.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  /* Clean Slate Gradient */
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  /* Softer blur */
  opacity: 0.5;
  animation: float 25s infinite ease-in-out;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: #3b82f6;
  opacity: 0.4;
  animation-delay: 0s;
}

.blob-2 {
  bottom: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: #0ea5e9;
  opacity: 0.4;
  animation-delay: -5s;
}

.blob-3 {
  top: 30%;
  left: 40%;
  width: 400px;
  height: 400px;
  background: #64748b;
  opacity: 0.35;
  animation-delay: -10s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(50px, -50px) scale(1.1);
  }
}

/* Glass Card */
.glass-card {
  width: 95%;
  max-width: 1000px;
  background: rgba(255, 255, 255, 0.9);
  /* More solid for pro look */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  /* Corporate shadow */
  padding: 2.5rem;
  margin: 1.5rem;
  display: flex;
  flex-direction: column;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1e293b;
  /* Solid dark color instead of gradient */
  /* OR subtle gradient */
  background: linear-gradient(to right, #1e293b, #334155);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header p {
  color: var(--text-light);
}

.content-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.6rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-light);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
}

.tab-btn.active {
  background: var(--primary-color);
  color: white;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Inputs */
.input-group {
  margin-bottom: 1rem;
}

.input-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}

input[type="url"],
input[type="text"],
input[type="tel"],
input[type="email"],
select,
.file-upload-wrapper {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-input);
  transition: all 0.2s;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background: white;
}

.hidden {
  display: none !important;
}

.divider {
  border: 0;
  height: 1px;
  background: #e2e8f0;
  margin: 1.5rem 0;
}

/* Style Options (Buttons) */
.style-options {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-input);
  padding: 0.25rem;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
}

.style-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-light);
  transition: all 0.2s;
}

.style-btn.active {
  background: white;
  color: var(--primary-color);
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Color Pickers */
.color-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.color-wrapper {
  position: relative;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  cursor: pointer;
}

input[type="color"] {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* File Upload */
.file-upload-wrapper {
  position: relative;
  cursor: pointer;
  text-align: center;
}

input[type="file"] {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-custom {
  pointer-events: none;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Generate Button */
.generate-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  border: none;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.25);
}

.generate-btn:active {
  transform: translateY(0);
}

/* Preview Section */
.preview-section {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  min-height: 450px;
}

.canvas-wrapper {
  background: white;
  padding: 1rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  max-width: 320px;
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.canvas-wrapper canvas {
  max-width: 100% !important;
  height: auto !important;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 1rem;
  width: 100%;
}

.action-btn {
  flex: 1;
  padding: 0.8rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.action-btn.primary {
  background: #1e293b;
  color: white;
}

.action-btn.primary:hover {
  background: #334155;
}

.action-btn.secondary {
  background: white;
  color: var(--primary-color);
  border: 1px solid #cbd5e1;
}

.action-btn.secondary:hover {
  background: #f8fafc;
}

/* Mobile */
@media (max-width: 850px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .glass-card {
    width: 100%;
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
    padding: 1.5rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  .tabs {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    flex-wrap: nowrap;
  }

  .tab-btn {
    white-space: nowrap;
  }

  .preview-section {
    min-height: auto;
    padding: 1.5rem;
  }
}