/* WRITERSTACK - FIXED DARK THEME (BIG LOGO + BOLD TYPOGRAPHY) */

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-card: #212121;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --success: #10b981;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --border: #334155;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   HEADER & NAVIGATION
============================================ */

header {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 72px;
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo img {
  height: 72px;
  width: auto;
  object-fit: contain;
  margin-right: 1rem;
  filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.5));
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -6px;
  left: 0;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--gradient);
  overflow: hidden;
  padding-top: 160px;
  padding-bottom: 80px;
}

/* Animated gradient background */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 90%, rgba(236, 72, 153, 0.2) 0%, transparent 50%);
  animation: gradientShift 15s ease infinite;
  z-index: 1;
}

@keyframes gradientShift {
  0%, 100% { 
    transform: translate(0, 0) scale(1); 
    opacity: 1;
  }
  50% { 
    transform: translate(30px, -30px) scale(1.1); 
    opacity: 0.8;
  }
}

/* Floating particles */
.hero::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, white, transparent),
    radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent),
    radial-gradient(2px 2px at 90% 60%, white, transparent);
  background-size: 200% 200%;
  animation: stars 20s linear infinite;
  opacity: 0.4;
  z-index: 1;
}

@keyframes stars {
  from { background-position: 0 0; }
  to { background-position: -200% -200%; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem); /* Reduced from 3.5rem/8vw/6rem */
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 2rem;
  padding: 0.05em 0 0.15em 0;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.35rem; /* Reduced from 1.8rem */
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2.5rem;
  max-width: 650px;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* CTA Button */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  color: white;
  padding: 1.2rem 2.5rem; /* Reduced from 1.5rem 3rem */
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem; /* Reduced from 1.3rem */
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.cta-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.cta-primary:hover::before {
  left: 100%;
}

.cta-primary:hover {
  background: white;
  color: #667eea;
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4),
              0 0 0 3px rgba(255, 255, 255, 0.5);
  border-color: white;
}

/* Trust Badges - Centered Layout */
.trust-badges {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 4rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem; /* Reduced from 1rem 1.75rem */
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  font-size: 0.95rem; /* Reduced from 1rem */
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  flex-shrink: 0;
}

.badge:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ============================================
   TOOLS SECTION
============================================ */

.tools-section {
  padding: 10rem 0 6rem;
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem); /* Reduced from 2.5rem/5vw/4rem */
  font-weight: 900;
  margin-bottom: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.2rem; /* Reduced from 1.4rem */
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 3rem;
}

.tool-card {
  background: var(--bg-card);
  border-radius: 32px;
  padding: 4rem 3rem;
  border: 1px solid var(--border);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.tool-card:hover {
  transform: translateY(-20px);
  border-color: var(--accent);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.tool-card:hover::before {
  transform: scaleX(1);
}

.tool-icon {
  width: 80px; /* Reduced from 100px */
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem; /* Reduced from 3.5rem */
  margin-bottom: 2rem;
  background: var(--gradient);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tool-badge {
  background: var(--success);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tool-name {
  font-size: 1.9rem; /* Reduced from 2.2rem */
  font-weight: 800;
  margin-bottom: 1rem;
}

.tool-desc {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.05rem; /* Reduced from 1.15rem */
  line-height: 1.7;
}

.tool-features {
  list-style: none;
  margin-bottom: 2.5rem;
}

.tool-features li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1rem; /* Reduced from 1.1rem */
}

.tool-features li::before {
  content: '✨';
  font-size: 1.4rem;
  flex-shrink: 0;
}

.tool-cta {
  display: block;
  width: 100%;
  background: var(--accent);
  color: white;
  padding: 1.5rem 2.5rem;
  text-align: center;
  text-decoration: none;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1.15rem;
  transition: all 0.4s ease;
}

.tool-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
}

/* ============================================
   NEWSLETTER SECTION
============================================ */

.newsletter-section {
  padding: 8rem 0;
  background: var(--bg-primary);
  text-align: center;
}

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

.newsletter-title {
  font-size: 2.8rem; /* Reduced from 3.5rem */
  font-weight: 900;
  margin-bottom: 1.5rem;
}

.newsletter-subtitle {
  color: var(--text-secondary);
  font-size: 1.25rem; /* Reduced from 1.5rem */
  margin-bottom: 4rem;
  line-height: 1.7;
}

.newsletter-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 1rem;
  background: var(--bg-card);
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  align-items: center;
}

.newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.1rem;
  padding: 1rem;
  outline: none;
  min-width: 0;
}

.newsletter-input::placeholder {
  color: var(--text-secondary);
}

.newsletter-submit {
  background: var(--gradient);
  border: none;
  padding: 1rem 2rem;
  border-radius: 16px;
  color: white;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.newsletter-submit:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
}

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

footer {
  background: var(--bg-secondary);
  padding: 4rem 0 2.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-content {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

.disclosure {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 3rem;
  font-size: 1rem;
}

/* ============================================
   ANIMATIONS
============================================ */

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

.animate {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */

/* Desktop large screens */
@media (min-width: 1025px) {
  .trust-badges {
    gap: 2rem;
  }
}

/* Tablet landscape */
@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  }
}

/* Tablet & Mobile adjustments */
@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .nav-links {
    display: none;
  }

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 60px; /* Reduced from 72px */
  font-size: 1.9rem; /* Reduced from 2.2rem */
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo img {
  height: 60px; /* Reduced from 72px */
  width: auto;
  object-fit: contain;
  margin-right: 1rem;
  filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.5));
}

  .hero {
    min-height: 90vh;
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .cta-primary {
    padding: 1.25rem 2.5rem;
    font-size: 1.2rem;
  }

  .trust-badges {
    gap: 1.25rem;
    margin-bottom: 3rem;
  }

  .badge {
    flex: 0 1 calc(50% - 0.625rem);
    justify-content: center;
  }

  .badge:nth-child(3) {
    flex: 0 1 auto;
    margin: 0 auto;
  }

  .tools-section {
    padding: 6rem 0 4rem;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .tool-card {
    padding: 3rem 2.5rem;
  }

  .newsletter-section {
    padding: 6rem 0;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }

  .newsletter-input {
    width: 100%;
    padding: 1.25rem;
  }

  .newsletter-submit {
    width: 100%;
    padding: 1.25rem 2rem;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  html {
    font-size: 16px;
  }

  .container {
    padding: 0 1rem;
  }

  .logo {
    height: 56px;
    font-size: 1.6rem;
  }

  .logo img {
    height: 56px;
    margin-right: 0.75rem;
  }

  .hero {
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .cta-primary {
    padding: 1.1rem 2rem;
    font-size: 1.1rem;
  }

  .trust-badges {
    flex-direction: column;
    gap: 1rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    align-items: stretch;
  }

  .badge {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    margin: 0 auto;
  }

  .tool-icon {
    width: 80px;
    height: 80px;
    font-size: 2.8rem;
  }

  .tool-name {
    font-size: 1.9rem;
  }

  .newsletter-title {
    font-size: 2.8rem;
  }
}
