/* ========= Light Mode Theme (no class changes) ========= */
:root{
  --bg: #ffffff;
  --bg-soft: #f8fafc;        /* section backgrounds */
  --bg-elev: #ffffff;        /* cards */
  --text: #0f172a;           /* primary text */
  --text-muted: #475569;     /* secondary text */
  --heading: #0f172a;
  --accent: #0ea5a4;         /* teal */
  --accent-600: #0d9488;
  --accent-700: #0b8078;
  --accent-soft: #e6fbf8;    /* light teal wash */
  --border: #e2e8f0;         /* light border */
  --ring: rgba(14,165,164,.35);
  --shadow-1: 0 1px 2px rgba(15,23,42,.05), 0 6px 20px rgba(15,23,42,.06);
  --radius: 10px;
  --transition: .2s ease;
  color-scheme: light;
}

*,
*::before,
*::after{ box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Hero ---------- */
.hero { margin-top: 100px; }
.hero h1 {
  font-size: 48px;
  color: var(--heading);
  letter-spacing: -0.02em;
}
.hero p {
  font-size: 18px;
  margin-top: 20px;
  color: var(--text-muted);
}

/* ---------- Buttons / Links ---------- */
.btn {
  margin-top: 30px;
  padding: 15px 30px;
  font-size: 18px;
  background-color: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-1);
}
.btn:hover { background-color: var(--accent-600); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--ring), var(--shadow-1);
}

/* ---------- Detector list ---------- */
.detector-section {
  margin-top: 50px;
  text-align: center;
}
.detector-section h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--text-muted);
}
.detector-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto;
  max-width: 800px;
}
.detector-item {
  color: var(--accent-700);
  text-decoration: none;
  font-size: 16px;
  margin: 10px 15px;
  display: inline-block;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.detector-item:hover {
  text-decoration: none;
  color: var(--accent-600);
  border-color: var(--accent-600);
}
.detector-item:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--ring);
  border-radius: 4px;
}

/* ---------- Super Simple ---------- */
.super-simple {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 50px auto;
  max-width: 1200px;
  gap: 24px;
}
.super-simple .example {
  position: relative;
  background: linear-gradient(135deg, #ffffff, var(--bg-soft));
  padding: 24px;
  border-radius: 15px;
  width: 45%;
  color: var(--text);
  text-align: left;
  line-height: 1.65;
  box-sizing: border-box;
  margin: auto;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}
.super-simple .example::before,
.super-simple .example::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: radial-gradient(circle, rgba(14,165,164,0.08) 1%, transparent 20%);
  background-size: 50px 50px;
  animation: floatBubbles 12s linear infinite;
  pointer-events: none;
  z-index: 0;
}
.super-simple .example::after { animation-direction: reverse; opacity: 0.4; }
@keyframes floatBubbles {
  from { transform: translate(0, 0); }
  to   { transform: translate(50px, 50px); }
}
.super-simple .example * { position: relative; z-index: 1; }
.super-simple .example h3 {
  margin-bottom: 10px;
  color: var(--heading);
}
.super-simple .example span {
  background-color: var(--accent-soft);
  color: var(--accent-700);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 20px;
  line-height: 1.2;
  text-align: center;
  border: 1px solid var(--border);
}
.super-simple .example p {
  margin: 10px 0;
  font-size: 14px;
  color: var(--text);
}

.super-simple .steps { text-align: left; width: 45%; }
.super-simple .steps h2 { font-size: 24px; margin-bottom: 20px; color: var(--heading); }

.steps ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.steps ul li {
  position: relative;
  margin-bottom: 60px;
  padding-left: 60px;
}
.steps ul li span {
  position: absolute;
  left: 0; top: 0;
  width: 40px; height: 40px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-1);
}
.steps ul li:not(:last-child)::after {
  content: "\2193";
  position: absolute;
  left: 18px; top: 45px;
  font-size: 24px;
  color: var(--accent-600);
}

/* ---------- Why section ---------- */
.why-humo-gptinf {
  margin: 50px auto;
  text-align: center;
  max-width: 1200px;
  padding: 60px 20px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.why-humo-gptinf h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: var(--accent-700);
}
.features {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.feature {
  background-color: var(--bg-elev);
  padding: 20px;
  border-radius: 12px;
  flex: 1 1 280px;
  text-align: left;
  color: var(--text-muted);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}
.feature h3 {
  color: var(--heading);
  margin-bottom: 10px;
}
.feature p { font-size: 14px; }

/* ---------- FAQ (tabs + accordion) ---------- */
.faq-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 50px auto;
  max-width: 1200px;
  gap: 20px;
}
.faq-buttons {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.faq-buttons button {
  width: 100%;
  padding: 15px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--bg-elev);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  text-align: left;
  transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.faq-buttons button.active {
  background-color: var(--accent-soft);
  color: var(--heading);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--ring) inset;
}
.faq-buttons button:hover { background-color: #f3faf9; }
.faq-buttons button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--ring);
}

.faq-content {
  flex: 2;
  background-color: var(--bg-elev);
  padding: 20px;
  border-radius: 8px;
  text-align: left;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}
.faq-content h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--heading);
}
.faq-content p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
}

.faq-section-sec {
  max-width: 800px;
  margin: 50px auto;
  text-align: left;
}
.faq-section-sec h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--heading);
}
.faq-item-sec {
  background-color: var(--bg-elev);
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}
.faq-title-sec {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  cursor: pointer;
  font-size: 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}
.faq-title-sec:hover { background-color: var(--bg-soft); }
.faq-title-sec .plus-icon-sec {
  font-size: 24px;
  font-weight: bold;
  transition: transform .2s ease;
  color: var(--text-muted);
}
.faq-title-sec.active .plus-icon-sec { transform: rotate(45deg); }
.faq-content-sec {
  display: none;
  padding: 15px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-elev);
}

/* ---------- Bypass section (hero-like) ---------- */
.bypass-section {
  padding: 50px 20px;
  background-color: var(--bg-soft);
  color: var(--text);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.bypass-section h1 {
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: 800;
  color: var(--heading);
}
.bypass-section h1 span { color: var(--accent-700); }
.bypass-section p {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--text-muted);
}
.bypass-section .btn {
  font-size: 18px;
  background-color: var(--accent);
  color: #fff;
  padding: 15px 30px;
  border-radius: 8px;
  border: 1px solid var(--accent);
}
.bypass-section .btn:hover { background-color: var(--accent-600); }

/* ---------- Typing cursor ---------- */
.typed-cursor { animation: blink 0.7s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Separators ---------- */
.separator {
  height: 2px;
  background: var(--border);
  margin: 0;
}

/* ---------- Testimonials ---------- */
.testimonial-section {
  background: var(--bg-soft);
  color: var(--text);
  padding: 60px 20px;
  border-top: 1px solid var(--border);
}
.testimonial-header { text-align: center; margin-bottom: 40px; }
.testimonial-header h2 { font-size: 2.5rem; margin: 0; color: var(--heading); }
.testimonial-header p { color: var(--text-muted); margin-top: 8px; }

.testimonial-slider { overflow: hidden; position: relative; }
.testimonial-track { display: flex; animation: scroll-testimonials 30s linear infinite; }

.testimonial-item {
  flex: 0 0 280px;
  margin: 0 15px;
  background: var(--bg-elev);
  border-radius: 12px;
  padding: 20px;
  box-sizing: border-box;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}
.testimonial-item .quote {
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 20px;
  color: var(--text);
}
.testimonial-item .author { display: flex; align-items: center; }
.testimonial-item .author img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
}
.testimonial-item .info strong { display: block; color: var(--heading); }
.testimonial-item .info span { font-size: .875rem; color: var(--text-muted); }
.testimonial-item .stars { margin-left: auto; color: #f5a623; font-size: 1rem; }

@keyframes scroll-testimonials {
  0% { transform: translateX(0); }
  100% { transform: translateX(-1550px); }
}

/* ---------- Accessibility helpers ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------- Newsletter ---------- */
.newsletter-section { background: var(--bg-soft); padding: 60px 20px; }
.newsletter-card {
  background: var(--bg-elev);
  max-width: 600px; margin: 0 auto;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-1);
  text-align: center;
  border: 1px solid var(--border);
}
.newsletter-card h2 { font-size: 2rem; color: var(--heading); margin-bottom: 10px; }
.newsletter-card p { color: var(--text-muted); margin-bottom: 30px; line-height: 1.55; }

.newsletter-form {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;
}
.newsletter-form input[type="email"]{
  flex: 1 1 250px;
  padding: 15px 20px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  box-sizing: border-box;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.newsletter-form input[type="email"]::placeholder { color: #94a3b8; }
.newsletter-form input[type="email"]:focus{
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}
.newsletter-form button{
  padding: 15px 30px;
  font-size: 1rem;
  background-color: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color var(--transition), transform .2s ease;
  box-shadow: var(--shadow-1);
}
.newsletter-form button:hover{
  background-color: var(--accent-600);
  transform: translateY(-2px);
}

/* ---------- Feature grid inside why section ---------- */
.why-humo-gptinf,
.why-humo-gptinf h2 { text-align: center; color: var(--heading); }
.why-humo-gptinf .features { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.why-humo-gptinf .feature {
  background: var(--bg-elev);
  border-radius: 12px;
  padding: 30px 20px;
  flex: 1 1 240px;
  max-width: 300px;
  box-sizing: border-box;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}
.why-humo-gptinf .feature-icon {
  display: block;
  font-size: 2rem;
  color: var(--accent-700);
  margin: 0 auto 15px;
}
.why-humo-gptinf .feature h3 { margin: 0 0 12px; color: var(--heading); }
.why-humo-gptinf .feature p { color: var(--text-muted); font-size: .95rem; line-height: 1.55; }

/* ---------- Flash messages ---------- */
.flash {
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-weight: 600;
  border: 1px solid transparent;
}
.flash-success {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #166534;
}
.flash-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

/* ---------- Back to top ---------- */
.up-to-top {
  position: fixed;
  right: 20px; bottom: 40px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background-color: var(--accent-600);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  z-index: 100;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--accent-600);
}
.up-to-top:hover { background: var(--accent-700); transform: translateY(-2px); }
.up-to-top:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--ring), var(--shadow-1); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero { margin-top: 60px; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 16px; }
  .btn { padding: 12px 24px; font-size: 16px; }

  .detector-list { flex-direction: column; align-items: center; }
  .detector-item { margin: 8px 0; }

  .super-simple { flex-direction: column; gap: 40px; max-width: 90%; }
  .super-simple .example,
  .super-simple .steps { width: 100%; }
  .super-simple .steps ul li { padding-left: 50px; margin-bottom: 40px; }
  .super-simple .steps ul li span {
    width: 36px; height: 36px; font-size: .9rem; left: 0; top: 0;
  }
  .super-simple .steps ul li:not(:last-child)::after { left: 16px; top: 40px; font-size: 20px; }

  .why-humo-gptinf .features { flex-direction: column; align-items: center; }
  .why-humo-gptinf .feature { max-width: 100%; }

  .faq-container { flex-direction: column; }
  .faq-buttons { width: 100%; margin-bottom: 20px; }
  .faq-content { width: 86%; }

  .testimonial-item { flex: 0 0 240px; margin: 0 10px; }

  .newsletter-card { padding: 30px 20px; }
  .newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
  .newsletter-form input[type="email"] { flex: 1; min-width: 0; }
  .newsletter-form button { white-space: nowrap; }

  .bypass-section h1 { font-size: 28px; }
  .bypass-section p { font-size: 16px; }

  .up-to-top { right: 15px; bottom: 30px; width: 40px; height: 40px; }
}

@media (max-width: 480px) {
  .hero { margin-top: 40px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 14px; }
  .btn { padding: 10px 20px; font-size: 14px; }

  .detector-item { font-size: 14px; margin: 6px 0; }

  .super-simple { margin: 30px auto; }
  .super-simple .example,
  .super-simple .steps { padding: 15px; }
  .super-simple .steps ul li { padding-left: 45px; margin-bottom: 30px; }
  .super-simple .steps ul li span { width: 32px; height: 32px; font-size: .8rem; }
  .super-simple .steps ul li:not(:last-child)::after { left: 14px; top: 36px; font-size: 18px; }

  .why-humo-gptinf h2 { font-size: 24px; }
  .why-humo-gptinf .feature h3 { font-size: 1.1rem; }
  .why-humo-gptinf .feature p { font-size: .9rem; }

  .faq-buttons button { font-size: 14px; padding: 12px; }
  .faq-content h2 { font-size: 20px; }
  .faq-content p { font-size: 14px; }

  .testimonial-item { flex: 0 0 200px; margin: 0 8px; }

  .newsletter-card h2 { font-size: 1.5rem; }
  .newsletter-form input[type="email"] { padding: 12px 15px; font-size: .9rem; }
  .newsletter-form button { padding: 12px 20px; font-size: .9rem; }

  .bypass-section h1 { font-size: 24px; }
  .bypass-section p { font-size: 14px; }

  .up-to-top { width: 36px; height: 36px; font-size: 1rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .testimonial-track { animation: none; }
  .super-simple .example::before,
  .super-simple .example::after { animation: none; }
  .btn, .up-to-top, .newsletter-form button { transition: none; }
}
