:root {
  color-scheme: dark;
  color: #e2e8f0;
  background: #0f1720;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(59,130,246,0.16), transparent 28%),
              linear-gradient(180deg, #0f1720 0%, #020617 100%);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid rgba(148,163,184,0.12);
  background: rgba(15,23,32,0.98);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #1f2937;
  padding: 0.6rem;
}

.brand strong {
  display: block;
  font-size: 1rem;
}

.brand span {
  color: #94a3b8;
  font-size: 0.88rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover {
  color: #ffffff;
}

.hero {
  padding: 4rem 0 3rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  color: #38bdf8;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.81rem;
  margin: 0 0 1rem;
}

.hero h1,
.section-header h2,
.testimonial-card h2,
.cta-card h2 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-text,
.card p,
.testimonial-card p,
.testimonial-info p,
.site-footer p {
  color: #cbd5e1;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148,163,184,0.12);
  border-radius: 24px;
  padding: 1.5rem;
}

.contact-form label {
  display: grid;
  gap: 0.6rem;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: 16px;
  background: rgba(15,23,32,0.95);
  color: #e2e8f0;
  padding: 0.95rem 1rem;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(59,130,246,0.6);
  outline-offset: 2px;
}

.form-message {
  margin-top: 0.5rem;
  color: #f8fafc;
  font-size: 0.95rem;
}

.form-message.success {
  color: #a7f3d0;
}

.form-message.error {
  color: #fca5a5;
}

.button-primary {
  background: #22c55e;
  color: #020617;
}

.button-secondary {
  background: rgba(148,163,184,0.12);
  color: #e2e8f0;
}

.hero-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148,163,184,0.1);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 30px 80px rgba(15,23,32,0.18);
}

.card-label {
  display: inline-flex;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(59,130,246,0.16);
  color: #9ee7ff;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.card-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.card-tags span {
  background: rgba(255,255,255,0.06);
  color: #cbd5e1;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-size: 0.88rem;
}

.section {
  padding: 3rem 0;
}

.section--dark {
  background: rgba(15,23,32,0.92);
}

.ai-section {
  display: grid;
  gap: 2rem;
}

.ai-form {
  display: grid;
  gap: 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148,163,184,0.12);
  border-radius: 24px;
  padding: 1.5rem;
}

.ai-results {
  display: grid;
  gap: 1rem;
}

.site-data {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148,163,184,0.12);
  border-radius: 24px;
  padding: 1.5rem;
}

.site-data h3 {
  margin: 0 0 1rem;
}

.site-data-line {
  margin: 0.5rem 0;
  color: #cbd5e1;
}

.site-data-line strong {
  color: #ffffff;
}

.result-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148,163,184,0.12);
  padding: 1rem;
  border-radius: 20px;
}

.result-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.result-section {
  display: grid;
  gap: 0.75rem;
}

.section-header {
  max-width: 620px;
  margin-bottom: 2rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: rgba(15,23,32,0.95);
  border: 1px solid rgba(148,163,184,0.08);
  border-radius: 24px;
  padding: 1.7rem;
}

.card-accent {
  border-color: rgba(34,197,94,0.18);
}

.card-light {
  background: rgba(255,255,255,0.04);
}

.card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
}

.tag {
  display: inline-flex;
  margin-bottom: 1rem;
  color: #22c55e;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.77rem;
}

.testimonial-section {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.testimonial-card,
.testimonial-info,
.cta-card {
  border-radius: 28px;
  padding: 2rem;
}

.testimonial-card {
  background: linear-gradient(180deg, rgba(14,165,233,0.18), rgba(59,130,246,0.06));
  border: 1px solid rgba(59,130,246,0.18);
}

.testimonial-card h2 {
  margin: 0 0 1rem;
}

.testimonial-author {
  margin-top: 0.8rem;
  margin-bottom: 1.2rem;
  color: #a5f3fc;
  font-weight: 700;
}

.testimonial-info {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148,163,184,0.1);
}

.section--cta .cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(148,163,184,0.12);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #94a3b8;
}

@media (max-width: 900px) {
  .hero-content,
  .testimonial-section,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
  }
  .admin-table-wrapper {
    overflow-x: auto;
    border-radius: 24px;
    margin-top: 1rem;
  }

  .admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
  }

  .admin-table th,
  .admin-table td {
    padding: 1rem;
    border: 1px solid rgba(148,163,184,0.12);
    text-align: left;
  }

  .admin-table th {
    background: rgba(255,255,255,0.04);
    color: #cbd5e1;
  }

  .admin-table td {
    color: #e2e8f0;
  }

  .admin-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
  }
}

/* AI Content Preview Styles */
.ai-results-container {
  display: grid;
  gap: 2rem;
}

.result-section {
  display: grid;
  gap: 1rem;
}

.result-section h3 {
  margin: 0 0 1rem;
  color: #e2e8f0;
  font-size: 1.1rem;
}

.instagram-preview {
  background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(168,85,247,0.12));
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 16px;
  padding: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.post-header {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.post-content {
  color: #e2e8f0;
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.6;
  font-size: 0.95rem;
}

.reel-preview {
  background: linear-gradient(135deg, rgba(168,85,247,0.12), rgba(236,72,153,0.12));
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: 16px;
  padding: 1.5rem;
}

.reel-preview h4 {
  margin: 0 0 0.75rem;
  color: #e2e8f0;
  font-size: 1rem;
}

.reel-preview p {
  margin: 0.5rem 0;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.carousel-slide {
  background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(59,130,246,0.12));
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 16px;
  padding: 1.5rem;
  display: grid;
  gap: 0.5rem;
}

.slide-number {
  color: #94a3b8;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.carousel-slide h4 {
  margin: 0.5rem 0 0.25rem;
  color: #e2e8f0;
  font-size: 1rem;
}

.carousel-slide p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.hashtags-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148,163,184,0.12);
  border-radius: 16px;
  padding: 1.5rem;
}

.hashtags-card p {
  margin: 0 0 1rem;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.6;
  font-size: 0.95rem;
}

.image-guide {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148,163,184,0.12);
  border-radius: 16px;
  padding: 1.5rem;
}

.image-guide p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.6;
  font-size: 0.95rem;
}

.copy-btn {
  background: #22c55e;
  color: #020617;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  font-size: 0.9rem;
}

.copy-btn:hover {
  background: #16a34a;
  transform: translateY(-1px);
}

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

@media (max-width: 650px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
  }

  .button {
    width: 100%;
  }
}
