/* ============================================================
   TrialIntel Marketing Website — style.css
   Mobile-first responsive stylesheet
   ============================================================ */

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Design Tokens --- */
:root {
  --bg-primary:    #0F172A;
  --bg-secondary:  #0B1120;
  --bg-card:       #1E293B;
  --bg-card-hover: #273548;
  --border:        #334155;
  --text-primary:  #F8FAFC;
  --text-secondary:#94A3B8;
  --text-muted:    #64748B;
  --accent:        #3B82F6;
  --accent-hover:  #2563EB;
  --success:       #10B981;

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-full: 9999px;

  --transition: 0.2s ease;
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.nav-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
  height: 56px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
}

.nav-links {
  display: none;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  display: none;
  align-items: center;
  padding: 8px 18px;
  background-color: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition);
  text-decoration: none;
}

.nav-cta:hover {
  background-color: var(--accent-hover);
  color: #fff;
}

.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile nav open state */
.nav-open .nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 99;
}

.nav-open .nav-links a {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
}

.nav-open .nav-links a:last-of-type {
  border-bottom: none;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  margin-top: 20px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
  justify-content: center;
}

/* Coming soon badge */
.hero-coming-soon {
  margin-top: 36px;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background-color: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
}

/* Notify form */
.notify-form {
  margin-top: 20px;
}

.notify-input-row {
  display: flex;
  gap: 0;
  max-width: 420px;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}

.notify-input-row:focus-within {
  border-color: var(--accent);
}

#notifyEmail {
  flex: 1;
  padding: 14px 16px;
  background-color: var(--bg-card);
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  min-width: 0;
}

#notifyEmail::placeholder {
  color: var(--text-muted);
}

.notify-btn {
  padding: 14px 24px;
  background-color: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition);
  flex-shrink: 0;
}

.notify-btn:hover {
  background-color: var(--accent-hover);
}

.notify-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.notify-status {
  font-size: 14px;
  margin-top: 10px;
  min-height: 20px;
}

.notify-status.success {
  color: var(--success);
}

.notify-status.error {
  color: #EF4444;
}

/* ============================================================
   FEATURES
   ============================================================ */

.features {
  padding: 80px 0;
}

.section-title {
  font-size: 30px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-secondary);
  text-align: center;
  font-size: 17px;
  margin-top: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Feature expandable list */
.features-list {
  max-width: 800px;
  margin: 48px auto 0;
}

.feature-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: border-color var(--transition);
}

.feature-item.open {
  border-color: var(--accent);
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: rgba(59, 130, 246, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.feature-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}

.feature-toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 20px;
  transition: transform var(--transition), color var(--transition);
}

.feature-toggle::after {
  content: "+";
}

.feature-item.open .feature-toggle {
  transform: rotate(45deg);
  color: var(--accent);
}

.feature-body {
  display: none;
  padding: 0 22px 20px;
  padding-left: 76px; /* align with text after icon+gap */
}

.feature-item.open .feature-body {
  display: block;
}

.feature-body p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* ============================================================
   APP SHOWCASE — Carousel
   ============================================================ */

.showcase {
  background-color: var(--bg-secondary);
  padding: 80px 0;
}

.carousel {
  margin-top: 48px;
}

.carousel-track {
  position: relative;
}

.carousel-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  animation: carouselFadeIn 0.4s ease;
}

.carousel-slide.active {
  display: flex;
}

@keyframes carouselFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Phone frame in carousel */
.phone-frame {
  background: linear-gradient(145deg, #1E293B, #141c2e);
  border-radius: 36px;
  padding: 8px;
  border: 2px solid var(--border);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone-frame img {
  width: 100%;
  border-radius: 28px;
  display: block;
}

.carousel-phone {
  flex-shrink: 0;
}

.carousel-phone .phone-frame {
  width: 220px;
  margin: 0 auto;
}

/* Carousel text info */
.carousel-info {
  text-align: center;
  max-width: 500px;
}

.carousel-info h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.carousel-info p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 10px;
  line-height: 1.7;
}

/* Carousel controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), color var(--transition),
    background-color var(--transition);
}

.carousel-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: var(--bg-card-hover);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: var(--border);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
  padding: 0;
}

.carousel-dot.active {
  background-color: var(--accent);
  transform: scale(1.2);
}

.carousel-dot:hover {
  background-color: var(--text-muted);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */

.how-it-works {
  padding: 80px 0;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 48px;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 16px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background-color: var(--accent);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.step h3 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 16px;
  color: var(--text-primary);
}

.step p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 8px;
  line-height: 1.6;
}

/* ============================================================
   PRICING
   ============================================================ */

.pricing {
  background-color: var(--bg-secondary);
  padding: 80px 0;
}

.pricing-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
  margin-top: 48px;
}

.pricing-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 400px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}

.pricing-card:hover {
  transform: translateY(-2px);
}

.pricing-card.popular {
  border-color: var(--accent);
}

.popular-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background-color: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-card h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}

.pricing-price {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 16px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0;
}

.pricing-features {
  margin-top: 24px;
  list-style: none;
}

.pricing-features li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background-color: rgba(16, 185, 129, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2310B981'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414L8.414 15l-4.121-4.121a1 1 0 011.414-1.414L8.414 12.172l6.879-6.879a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.pricing-cta {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 13px 24px;
  background-color: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background-color var(--transition);
  text-decoration: none;
}

.pricing-cta:hover {
  background-color: var(--accent-hover);
  color: #fff;
}

/* ============================================================
   PRIVILEGE PROTECTION
   ============================================================ */

.privilege {
  background-color: var(--bg-secondary);
  padding: 80px 0;
  border-top: 1px solid rgba(245, 158, 11, 0.15);
  border-bottom: 1px solid rgba(245, 158, 11, 0.15);
}

.privilege-layout {
  max-width: 800px;
  margin: 0 auto;
}

.privilege-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}

.privilege-lead {
  color: var(--text-secondary);
  font-size: 17px;
  margin-top: 12px;
  line-height: 1.6;
}

.privilege-features {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.privilege-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.privilege-feature-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background-color: rgba(245, 158, 11, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.privilege-feature h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.privilege-feature p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.privilege-feature em {
  font-style: italic;
  color: var(--text-secondary);
}

/* ============================================================
   SECURITY
   ============================================================ */

.security {
  padding: 80px 0;
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
}

.security-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.security-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background-color: rgba(59, 130, 246, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.security-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.security-item p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
}

.footer-logo-img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text-secondary);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */

.legal-page {
  padding-top: 100px;
  padding-bottom: 80px;
}

.legal-content {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.legal-content h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.legal-content .legal-date {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 8px;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 32px;
}

.legal-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 12px;
}

.legal-content ul,
.legal-content ol {
  list-style: disc;
  padding-left: 24px;
  margin-top: 12px;
}

.legal-content li {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 6px;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
}

/* ============================================================
   SUPPORT PAGE
   ============================================================ */

.support-hero {
  padding-top: 100px;
  padding-bottom: 48px;
  text-align: center;
}

.support-hero h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.support-hero p {
  color: var(--text-secondary);
  font-size: 17px;
  margin-top: 12px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.faq {
  padding-bottom: 80px;
  margin-top: 48px;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 12px;
  transition: border-color var(--transition);
}

.faq-item.open {
  border-color: var(--accent);
}

.faq-question {
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-primary);
  user-select: none;
}

.faq-question::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--transition), color var(--transition);
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  display: none;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.faq-item.open .faq-answer {
  display: block;
}

.support-contact {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  margin-top: 48px;
  margin-bottom: 80px;
}

.support-contact h2 {
  font-size: 24px;
  font-weight: 700;
}

.support-contact p {
  color: var(--text-secondary);
  margin-top: 8px;
  font-size: 16px;
}

.support-contact a {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================================
   RESPONSIVE — 640px (tablet)
   ============================================================ */

@media (min-width: 640px) {
  .section-title {
    font-size: 36px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .features-list {
    max-width: 800px;
  }

  .carousel-phone .phone-frame {
    width: 240px;
  }

  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-cards {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .pricing-card {
    margin-left: 0;
    margin-right: 0;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ============================================================
   RESPONSIVE — 1024px (desktop)
   ============================================================ */

@media (min-width: 1024px) {
  .nav-inner {
    height: 60px;
  }

  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
  }

  .nav-hamburger {
    display: none;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-content {
    max-width: 720px;
  }

  .privilege-title {
    font-size: 36px;
  }

  /* Carousel desktop: side-by-side phone + text */
  .carousel-slide {
    flex-direction: row;
    gap: 56px;
    justify-content: center;
  }

  .carousel-slide.active {
    display: flex;
  }

  .carousel-phone .phone-frame {
    width: 260px;
  }

  .carousel-info {
    text-align: left;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .carousel-info h3 {
    font-size: 26px;
  }

  .carousel-info p {
    font-size: 16px;
  }

  .steps {
    flex-direction: row;
    align-items: flex-start;
  }

  .pricing-cards {
    flex-wrap: nowrap;
  }

  .security-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

/* ============================================================
   RESPONSIVE — 1280px (wide)
   ============================================================ */

@media (min-width: 1280px) {
  .hero h1 {
    font-size: 58px;
  }

  .carousel-phone .phone-frame {
    width: 280px;
  }

  .carousel-slide {
    gap: 72px;
  }
}
