/* ============================================================
   GridCrafter Landing Page Styles
   ============================================================ */

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + var(--space-16)) var(--space-6) var(--space-16);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Animated grid background */
.hero__grid {
  position: absolute;
  inset: -10%;
  opacity: 0.06;
  background-image:
    linear-gradient(var(--color-accent-blue) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-accent-blue) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
}
@keyframes gridShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* Gradient orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}
.hero__orb--blue {
  width: 400px;
  height: 400px;
  background: var(--color-accent-blue);
  top: 20%;
  left: 20%;
  opacity: 0.15;
}
.hero__orb--purple {
  width: 350px;
  height: 350px;
  background: var(--color-accent-purple);
  bottom: 20%;
  right: 20%;
  opacity: 0.12;
  animation-delay: -4s;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-accent-blue-light);
  margin-bottom: var(--space-6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-green);
  animation: pulse 2s ease infinite;
}

.hero__title {
  font-size: var(--font-size-hero);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

.hero__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  margin-top: var(--space-12);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.6s forwards;
}
.hero__stat {
  text-align: center;
}
.hero__stat-value {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__stat-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-1);
}

/* --- Tools Section --- */
.section {
  padding: var(--space-24) 0;
}
.section__header {
  text-align: center;
  margin-bottom: var(--space-12);
}
.section__eyebrow {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-accent-blue-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}
.section__title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
}
.section__description {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Tool Cards — large, visual */
.tool-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}
.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-8);
  background: var(--color-bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  transition: all var(--transition-slow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-xl), 0 0 40px var(--color-accent-blue-glow);
}
.tool-card:hover::before {
  opacity: 1;
}
.tool-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  font-size: 28px;
  margin-bottom: var(--space-6);
}
.tool-card__icon--drawing {
  background: rgba(59, 130, 246, 0.12);
}
.tool-card__icon--instagram {
  background: rgba(236, 72, 153, 0.12);
}
.tool-card__title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.tool-card__description {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  flex: 1;
}
.tool-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.tool-card__tag {
  padding: var(--space-1) var(--space-3);
  background: var(--color-surface);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  font-weight: 500;
}
.tool-card__cta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--color-accent-blue-light);
  font-size: var(--font-size-sm);
  transition: gap var(--transition-base);
}
.tool-card:hover .tool-card__cta {
  gap: var(--space-3);
}

/* --- Features Section --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.feature-item {
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: var(--gradient-card);
  transition: all var(--transition-base);
}
.feature-item:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}
.feature-item__icon {
  font-size: 28px;
  margin-bottom: var(--space-4);
}
.feature-item__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.feature-item__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* --- FAQ Section --- */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-base);
}
.faq-item:hover {
  border-color: var(--color-border-hover);
}
.faq-item__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) var(--space-6);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.faq-item__question:hover {
  background: var(--color-surface);
}
.faq-item__chevron {
  width: 20px;
  height: 20px;
  color: var(--color-text-tertiary);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}
.faq-item.open .faq-item__chevron {
  transform: rotate(180deg);
}
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}
.faq-item.open .faq-item__answer {
  max-height: 300px;
}
.faq-item__answer-content {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

/* --- CTA Banner --- */
.cta-banner {
  position: relative;
  padding: var(--space-16);
  border-radius: var(--radius-2xl);
  background: var(--gradient-primary);
  text-align: center;
  overflow: hidden;
}
.cta-banner__grid {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image:
    linear-gradient(white 1px, transparent 1px),
    linear-gradient(90deg, white 1px, transparent 1px);
  background-size: 40px 40px;
}
.cta-banner__content {
  position: relative;
  z-index: 1;
}
.cta-banner__title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-4);
}
.cta-banner__text {
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-8);
  font-size: var(--font-size-lg);
}
.cta-banner .btn {
  background: white;
  color: #1e293b;
}
.cta-banner .btn:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    padding-top: calc(var(--header-height) + var(--space-12));
  }
  .hero__title { font-size: clamp(2rem, 8vw, 3rem); }
  .hero__stats { gap: var(--space-6); }
  .tool-cards { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: var(--space-10) var(--space-6); }
}
