@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@300;400;500;600;700&family=Poppins:wght@300;400;600;700&family=Source+Sans+3:wght@200..900&display=swap');

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

:root {
  --red: #ff0000;
  --bg: #ffffff;
  --text: #1a1a1a;
  --subtext: #555555;
  --card-bg: #ffffff;
  --card-border: #e5e5e5;
  --input-bg: #f9f9f9;
  --border-color: #e5e5e5;
}

/* Auto Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050505;
    --text: #ffffff;
    --subtext: #aaaaaa;
    --card-bg: #111111;
    --card-border: #333333;
    --input-bg: #1a1a1a;
    --border-color: #333333;
  }
}

body {
  font-family: "Inter", "IBM Plex Sans Thai", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color 0.3s;
}

/* --- Hero --- */
.hero {
  font-family: "Chillax-Variable", "IBM Plex Sans Thai", sans-serif;
  padding: 10rem 2rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.status-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.9;
  margin-bottom: 1.5rem;
  color: var(--text);
  letter-spacing: -2px;
}

.text-red {
  color: var(--red);
}

.hero-desc {
  font-family: "Inter", "IBM Plex Sans Thai", sans-serif;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--subtext);
}

/* --- Layout --- */
.main-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.grid-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

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

  .reverse-mobile {
    direction: ltr;
  }
}

@media (max-width: 899px) {
  .reverse-mobile {
    display: flex;
    flex-direction: column-reverse;
  }
}

/* --- Typography --- */
h2 {
  font-family: "Chillax-Variable", "IBM Plex Sans Thai", sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  color: var(--text);
}

h3 {
  font-family: "Chillax-Variable", "IBM Plex Sans Thai", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--red);
  text-transform: uppercase;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--subtext);
}

/* --- Lists --- */
.tick-list {
  list-style: none;
  margin-bottom: 2rem;
}

.tick-list li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--text);
}

.tick-list li::before {
  content: "✓";
  color: var(--red);
  font-weight: 900;
}

/* --- Cards --- */
.card {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid var(--card-border);
  transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--red);
}

.full-width-card {
  margin-bottom: 6rem;
  text-align: center;
  background: var(--input-bg);
  border-radius: 32px;
  padding: 4rem 2rem;
  border: 1px solid var(--card-border);
}

.card-content {
  max-width: 700px;
  margin: 0 auto;
}

/* --- Feed Input Box --- */
.feed-box {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 50px;
  padding: 6px;
  margin: 2rem 0 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.feed-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0 1.5rem;
  font-family: "Inter", "IBM Plex Sans Thai", sans-serif;
  font-size: 1rem;
  color: var(--text);
  outline: none;
}

.btn-copy {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-copy:hover {
  background: #cc0000;
}

.hint {
  font-size: 0.9rem;
  opacity: 0.7;
}

.app-tags {
  margin-top: 2rem;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.app-tags span {
  border: 1px solid var(--card-border);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--subtext);
  background: var(--bg);
}

/* --- Buttons & Links --- */
.btn-solid {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  transition: transform 0.2s;
}

.btn-solid:hover {
  transform: scale(1.05);
}

.link-arrow {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--red);
}

/* --- FAQ --- */
.faq-section {
  max-width: 800px;
  margin: 0 auto 4rem;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

details {
  border-bottom: 1px solid var(--card-border);
  padding: 1.5rem 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  font-size: 1.2rem;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::after {
  content: "+";
  color: var(--red);
  font-weight: 700;
  font-size: 1.5rem;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin-top: 1rem;
  margin-bottom: 0;
  opacity: 0.9;
}

/* --- Footer --- */
footer {
  margin-top: auto;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-family: "Chillax-Variable", "IBM Plex Sans Thai", sans-serif;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  color: var(--subtext);
}

.footer-links a {
  color: var(--red);
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 600;
}

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

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

.fade-in-up {
  animation: fadeInUp 0.8s forwards;
  opacity: 0;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

/* Mobile */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .footer-content {
    flex-direction: column;
  }
}