/* CreatorFlow Design System */

:root {
  /* Colors */
  --bg-color: #f6f7fb;
  --bg-white: #ffffff;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --accent-gradient: linear-gradient(135deg, #FF6B6B, #4ECDC4, #6C5CE7);
  --accent-orange: #FF6B6B;
  --accent-teal: #4ECDC4;
  --accent-purple: #6C5CE7;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-3d: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-blue-glow: 0 0 20px rgba(78, 205, 196, 0.3);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

section {
  padding: 6rem 1.5rem;
  position: relative;
  max-width: 100vw;
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.grid {
  display: grid;
}

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

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

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.btn-primary {
  background: var(--text-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  box-shadow: var(--shadow-lg);
  background: #000;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.05);
}

.btn-gradient {
  background: var(--accent-gradient);
  color: white;
  border: none;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background-color var(--transition-normal), backdrop-filter var(--transition-normal), box-shadow var(--transition-normal);
  padding: 1rem 0;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0.75rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  background: var(--bg-white);
  overflow: visible;
}

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

.hero-left {
  z-index: 2;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(108, 92, 231, 0.1);
  color: var(--accent-purple);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.badge-icon {
  width: 16px;
  height: 16px;
  background: var(--accent-purple);
  border-radius: 50%;
}

h1.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-text {
  margin-bottom: 2rem;
  max-width: 500px;
}

.feature-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.feature-bullet {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

/* 3D Phone */
.hero-right {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1000px;
  height: 600px;
}

/* 3D Phone Container */
.phone-container {
  position: relative;
  width: 300px;
  height: 600px;
  transform: rotateY(-25deg) rotateX(10deg);
  /* Slightly more rotation to show depth */
  transform-style: preserve-3d;
  /* Smoother interaction with cubic-bezier */
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 46px;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Hover Effect - smooth tilt */
.phone-container:hover {
  transform: rotateY(-15deg) rotateX(5deg) translateY(-10px);
}

/* Common Face Styles */
.phone-face {
  position: absolute;
  border-radius: 46px;
  background: #1e1e1e;
  /* Base dark color */
  backface-visibility: visible;
}

/* Brushed Silver/Metal Texture */
.face-left,
.face-right,
.face-top,
.face-bottom {
  /* Silver/Grey Brushed Metal */
  background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 20%, #94a3b8 50%, #cbd5e1 80%, #e2e8f0 100%);
  /* Removed border to eliminate X artifacts at corners */
}

/* Face Positioning */
.face-front {
  width: 300px;
  height: 600px;
  transform: translateZ(12px);
  padding: 10px;
  /* Bezel */
  background: #000;
  /* Bezel Color */
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  /* Inner rim */
}

.face-back {
  width: 300px;
  height: 600px;
  transform: translateZ(-12px) rotateY(180deg);
  background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%);
  /* Matte Glass */
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Sides Calculations: Fit within the rounded corners */
/* Device radius is 46px. We shorten sides by 50-60px to avoid poking out corners */

.face-right {
  width: 24px;
  height: 504px;
  /* Shortened to be safe */
  right: 0;
  transform: translateX(138px) rotateY(90deg);
  top: 50%;
  margin-top: -252px;
  /* Center it */
  left: 50%;
  margin-left: -12px;
  border-radius: 1px;
}

.face-left {
  width: 24px;
  height: 504px;
  /* Shortened */
  left: 50%;
  margin-left: -12px;
  transform: translateX(-138px) rotateY(-90deg);
  top: 50%;
  margin-top: -252px;
  border-radius: 1px;
}

.face-top {
  width: 204px;
  /* Shortened */
  height: 24px;
  top: 50%;
  margin-top: -12px;
  left: 50%;
  margin-left: -102px;
  /* Center it */
  transform: translateY(-288px) rotateX(90deg);
  border-radius: 1px;
}

.face-bottom {
  width: 204px;
  /* Shortened */
  height: 24px;
  top: 50%;
  margin-top: -12px;
  left: 50%;
  margin-left: -102px;
  transform: translateY(288px) rotateX(-90deg);
  border-radius: 1px;
}



/* Buttons */
.button {
  position: absolute;
  background: linear-gradient(90deg, #555, #333);
  border-radius: 2px;
  box-shadow: -1px 1px 2px rgba(0, 0, 0, 0.5);
}

.face-left .button {
  width: 4px;
  left: 50%;
  transform: translateX(-50%) translateZ(2px);
}

.face-right .button {
  width: 4px;
  left: 50%;
  transform: translateX(-50%) translateZ(2px);
}

.volume-up {
  height: 30px;
  top: 100px;
}

.volume-down {
  height: 30px;
  top: 140px;
}

.action-btn {
  height: 20px;
  top: 60px;
  background: #d04e4e;
}

/* Action button orange/red */

.power-btn {
  height: 50px;
  top: 100px;
}

/* Dynamic Island (New Position) */
.dynamic-island {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #000;
  border-radius: 99px;
  z-index: 30;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 44px;
  background: #0d1117;
  overflow: hidden;
  position: relative;
  border: 6px solid #000;
  /* Inner Bezel */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Screen Reflection */
.phone-screen::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 20%,
      transparent 80%,
      rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
  z-index: 10;
}

.screen-slider {
  display: flex;
  width: 200%;
  height: 100%;
  animation: slideScreens 8s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

.screen-slider img {
  width: 50%;
  /* Each image takes 50% of the 200% width container */
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #0d1117;
}

@keyframes slideScreens {

  0%,
  45% {
    transform: translateX(0);
  }

  50%,
  95% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

.gradient-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: var(--accent-gradient);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  z-index: -1;
  animation: pulse 10s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.2;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.35;
  }
}

/* Floating Cards */
.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 10;
  transform: translateZ(50px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.card-1 {
  top: 20%;
  right: -40px;
  animation: float 6s ease-in-out infinite;
}

.card-2 {
  bottom: 25%;
  left: -60px;
  animation: float 7s ease-in-out infinite 1s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) translateZ(50px);
  }

  50% {
    transform: translateY(-15px) translateZ(50px);
  }
}

/* How It Works */
.how-it-works {
  background: var(--bg-white);
  padding-top: 4rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  color: var(--accent-purple);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.pipeline-rail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 4rem;
  position: relative;
  padding: 0 1rem;
}

.pipeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  background: #f0f0f0;
  z-index: 0;
  border-radius: 4px;
}

.pipeline-progress {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--accent-gradient);
  z-index: 0;
  border-radius: 4px;
  transition: width 1s linear;
}

.pipeline-step {
  position: relative;
  z-index: 1;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 99px;
  border: 1px solid #eee;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: 0.3s;
}

.pipeline-step.active {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  box-shadow: var(--shadow-blue-glow);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid #f0f0f0;
  transition: transform 0.3s, box-shadow 0.3s;
}

.step-card:hover {
  transform: translateY(-5px) rotateX(2deg);
  box-shadow: var(--shadow-lg);
}

.step-icon {
  width: 48px;
  height: 48px;
  background: #f6f7fb;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

/* Feature Grid */
.features {
  background: var(--bg-color);
  position: relative;
}

.bg-blob {
  position: absolute;
  top: 20%;
  right: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(78, 205, 196, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.feature-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(108, 92, 231, 0.1);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Audience Pills */
.audience {
  background: white;
}

.audience-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.audience-pill {
  padding: 0.75rem 1.5rem;
  background: #f8f9fa;
  border-radius: 99px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s;
  border: 1px solid transparent;
}

.audience-pill:hover {
  background: white;
  color: var(--accent-purple);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(108, 92, 231, 0.2);
}

/* Founder Story */
.founder {
  background: #f9fafb;
}

.founder-card {
  background: white;
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem;
  border-radius: 24px;
  box-shadow: var(--shadow-3d);
  text-align: center;
  position: relative;
}

.founder-avatar {
  width: 64px;
  height: 64px;
  background: var(--text-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 2rem;
}

/* FAQ */
.faq {
  background: white;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #eee;
}

.faq-question {
  padding: 1.5rem 0;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border: 2px solid var(--text-secondary);
  border-radius: 50%;
  position: relative;
  transition: 0.3s;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--text-secondary);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::before {
  width: 10px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 10px;
  transition: 0.3s;
}

.faq-item.active .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.active .faq-icon {
  border-color: var(--accent-teal);
}

.faq-item.active .faq-icon::before,
.faq-item.active .faq-icon::after {
  background: var(--accent-teal);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer p {
  padding-bottom: 1.5rem;
}

/* Contact */
.contact {
  background: linear-gradient(180deg, #ffffff 0%, #f6f7fb 100%);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact-form-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: 0.2s;
  background: #f9fafb;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-teal);
  background: white;
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  text-align: center;
}

/* Footer */
footer {
  background: var(--bg-white);
  padding: 3rem 1.5rem;
  border-top: 1px solid #f0f0f0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
  h1.hero-title {
    font-size: 2.75rem;
  }

  .hero-content {
    gap: 2rem;
  }

  .phone-container {
    width: 260px;
    height: 520px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-left {
    order: 1;
    /* Text first */
    margin-top: 0;
  }

  .hero-right {
    order: 2;
    /* Phone second */
    height: 480px;
    perspective: 800px;
    /* Keep 3D perpsective */
    overflow: hidden;
  }

  .phone-container {
    /* Scale down 3D phone for mobile */
    transform: scale(0.7) rotateY(-15deg) rotateX(10deg);
    width: 300px;
    /* Keep original width base */
    height: 600px;
    /* Keep original height base */
    margin: 0 auto;
    left: 50%;
    margin-left: -150px;
    /* Center absolute/fixed width */
  }

  .floating-card {
    display: none;
  }

  .hero-text {
    margin: 0 auto 2rem;
  }

  .feature-bullets {
    align-items: center;
  }

  .hero-btns {
    justify-content: center;
  }

  .grid-3,
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .pipeline-rail {
    display: none;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}