/* ===================================
   ChobitShift Landing Page - Styles
   =================================== */

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

:root {
  /* Colors - Pastel Theme */
  --bg-gradient-start: #fef9f3;
  --bg-gradient-mid: #f3f7fd;
  --bg-gradient-end: #fdf3f8;
  --primary: #a8d8ea;
  --primary-hover: #95c9dc;
  --secondary: #d4a5e0;
  --accent-pink: #f8b4d9;
  --accent-yellow: #ffe5b4;
  --accent-green: #c8e6c9;
  --text-primary: #4a4a4a;
  --text-secondary: #8a8a8a;
  --text-muted: #9a9a9a;
  --border-color: rgba(255, 255, 255, 0.7);
  --white: #fff;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --shadow-soft: rgba(160, 180, 200, 0.15);

  /* Spacing */
  --section-spacing: 80px;
  --container-padding: 40px 20px;

  /* Typography */
  --font-main: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    'Liberation Mono', 'Courier New', monospace;
}

body {
  font-family: var(--font-main);
  margin: 0;
  padding: 0;
  background:
    linear-gradient(135deg, rgba(168, 216, 234, 0.25) 0%, rgba(212, 165, 224, 0.25) 100%),
    linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* ----- Container ----- */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ----- Logo ----- */
.logo {
  text-align: center;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  width: 200px;
  height: 200px;
  filter: drop-shadow(0 4px 12px rgba(168, 216, 234, 0.3));
}

/* ----- Typography ----- */
h1 {
  font-size: 48px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 32px;
  margin-bottom: 24px;
  text-align: center;
  font-weight: 700;
}

p {
  font-size: 20px;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 20px;
}

/* ----- Hero Section ----- */
.hero {
  text-align: center;
  padding: 40px 0;
}

.hero p {
  font-size: 22px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* ----- CTA Section ----- */
.cta {
  text-align: center;
  margin: 50px 0;
}

.cta-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

input[type="email"] {
  padding: 15px 20px;
  font-size: 16px;
  border: 2px solid var(--border-color);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  width: 300px;
  max-width: 100%;
  font-family: var(--font-main);
  color: var(--text-primary);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px var(--shadow-soft);
}

input[type="email"]:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px var(--shadow-soft);
}

button {
  padding: 15px 30px;
  font-size: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-main);
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(168, 216, 234, 0.4);
}

button:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--secondary) 100%);
  box-shadow: 0 6px 16px rgba(168, 216, 234, 0.6);
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0) scale(0.98);
}

/* ----- Section ----- */
.section {
  margin: var(--section-spacing) 0;
}

.section iframe {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  width: 100%;
  height: 700px;
  border: none;
}

/* ----- Feature Grid ----- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin: 40px 0;
}

.feature {
  text-align: center;
  padding: 0;
  background: transparent;
  border: none;
}

.feature-icon {
  font-size: 56px;
  margin-bottom: 20px;
}

.feature h3 {
  font-size: 22px;
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.feature p {
  font-size: 18px;
  text-align: center;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* ----- Challenge List ----- */
.challenge-list {
  list-style: none;
  font-size: 18px;
  line-height: 1.8;
  max-width: 500px;
  margin: 30px auto;
  text-align: left;
}

.challenge-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.challenge-list li:last-child {
  border-bottom: none;
}

/* ----- How it Works ----- */
.steps {
  list-style: none;
  counter-reset: step-counter;
  max-width: 600px;
  margin: 30px auto;
  text-align: left;
}

.steps li {
  counter-increment: step-counter;
  padding: 16px 0 16px 60px;
  position: relative;
  font-size: 18px;
  line-height: 1.6;
}

.steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 12px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(168, 216, 234, 0.4);
}

/* ----- Blockquote ----- */
blockquote {
  font-style: italic;
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  margin: 30px auto;
  color: var(--text-secondary);
  font-size: 20px;
  max-width: 600px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--shadow-soft);
}

blockquote cite {
  display: block;
  margin-top: 10px;
  font-size: 16px;
  color: var(--text-muted);
}

/* ----- Footer ----- */
footer {
  text-align: center;
  margin-top: 100px;
  padding: 30px 0;
  border-top: 2px solid var(--border-color);
  font-size: 14px;
  color: var(--text-muted);
}

footer p {
  margin: 8px 0;
  font-size: 14px;
}

footer p:last-child {
  margin-top: 24px;
}

footer a {
  color: var(--text-primary);
  text-decoration: none;
  margin: 0 6px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 6px var(--shadow-soft);
  height: 54px;
  vertical-align: middle;
}

footer a:hover {
  background: linear-gradient(135deg, rgba(168, 216, 234, 0.3) 0%, rgba(212, 165, 224, 0.3) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-soft);
}

footer a.product-hunt-link {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

footer a.product-hunt-link:hover {
  background: transparent;
  transform: translateY(-2px);
  box-shadow: none;
}

footer a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ----- Easter Egg ----- */
.easter-egg {
  opacity: 0.3;
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: center;
  margin-top: 50px;
  color: var(--text-muted);
  transition: opacity 0.3s ease;
}

.easter-egg:hover {
  opacity: 0.6;
}

/* ----- Responsive Design ----- */
@media (max-width: 768px) {
  :root {
    --section-spacing: 60px;
    --container-padding: 30px 16px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  .logo img {
    width: 160px;
    height: 160px;
  }

  p {
    font-size: 18px;
  }

  .cta-form {
    flex-direction: column;
  }

  input[type="email"] {
    width: 100%;
  }

  button {
    width: 100%;
  }

  .challenge-list {
    font-size: 16px;
  }

  .steps li {
    font-size: 16px;
    padding-left: 50px;
  }

  .steps li::before {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-icon {
    font-size: 48px;
  }

  .feature h3 {
    font-size: 20px;
  }

  .feature p {
    font-size: 17px;
  }

  .section iframe {
    height: 700px;
  }

  footer a {
    margin: 4px;
    padding: 8px 12px;
    font-size: 13px;
  }

  footer a svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-spacing: 50px;
    --container-padding: 24px 12px;
  }

  .container {
    padding: 24px 12px;
  }

  h1 {
    font-size: 28px;
    line-height: 1.3;
  }

  h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .logo img {
    width: 120px;
    height: 120px;
  }

  p {
    font-size: 16px;
    margin-bottom: 16px;
  }

  blockquote {
    font-size: 16px;
    padding: 16px;
  }

  .challenge-list {
    font-size: 15px;
    padding: 0 8px;
  }

  .challenge-list li {
    padding: 10px 0;
  }

  .steps li {
    font-size: 15px;
    padding-left: 48px;
  }

  .steps li::before {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .feature-grid {
    gap: 28px;
  }

  .section iframe {
    height: 800px;
  }

  .feature-icon {
    font-size: 44px;
    margin-bottom: 16px;
  }

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

  .feature p {
    font-size: 16px;
  }

  footer {
    margin-top: 60px;
    padding: 24px 0;
  }

  footer p {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  footer a {
    width: 220px;
    justify-content: center;
    height: auto;
    padding: 8px 14px;
  }

  footer a svg {
    width: 16px;
    height: 16px;
  }

  footer a.product-hunt-link {
    padding: 0;
  }

  footer a.product-hunt-link img {
    width: 220px !important;
    height: auto !important;
  }
}

/* ----- Animations ----- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero,
.section {
  animation: fadeIn 0.6s ease-out;
}

/* ----- Accessibility ----- */
button:focus,
input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
