@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --bg-app: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-nav: #FFFFFF;
  --border-color: #E2E8F0;
  --border-focus: #2563EB;
  
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  
  --primary: #FF5E62;
  --primary-hover: #E0484C;
  --accent: #10B981;
  --accent-hover: #059669;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.12);
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Nav */
.nav {
  background-color: var(--bg-nav);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.brand-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
}

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

.nav-menu a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.nav-menu a:hover {
  color: var(--text-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  font-size: 0.925rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #FF5E62 0%, #FF9966 100%);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(255, 94, 98, 0.3);
  border: none;
}

.btn-primary:hover {
  box-shadow: 0 8px 20px rgba(255, 94, 98, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #FFFFFF;
  color: var(--text-dark) !important;
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: #F1F5F9;
  border-color: #CBD5E1;
}

.btn-emerald {
  background-color: var(--accent);
  color: #FFFFFF !important;
}

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

.btn-lg {
  padding: 0.9rem 1.85rem;
  font-size: 1.05rem;
}

/* Landing Hero */
.hero {
  padding: 4.5rem 1.5rem 3.5rem;
  text-align: center;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #F1F5F9;
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3.2rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}

.hero p.sub {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin: 0 auto 2rem;
  max-width: 660px;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Grid & Section layout */
.section {
  padding: 4.5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Template Cards Grid */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}

.template-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.template-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.template-card.active {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.template-thumb {
  width: 100%;
  aspect-ratio: 1 / 1.38;
  object-fit: cover;
  background-color: #F1F5F9;
  border-bottom: 1px solid var(--border-color);
}

.template-body {
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.template-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
}

/* App Creator Layout */
.app-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .app-container {
    grid-template-columns: 1fr;
  }
}

.editor-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.editor-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.editor-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.credits-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ECFDF5;
  color: var(--accent);
  border: 1px solid #A7F3D0;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

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

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.84rem;
  margin-bottom: 0.2rem;
  color: var(--text-dark);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: #FF5E62;
  box-shadow: 0 0 0 3px rgba(255, 94, 98, 0.15);
}
  border-radius: var(--radius-md);
  background: #FFFFFF;
  color: var(--text-dark);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.preview-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  position: sticky;
  top: 90px;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.preview-frame {
  width: 100%;
  flex-grow: 1;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #F1F5F9;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1080px;
  margin: 0 auto;
}

.price-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.price-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
}

.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.price-amount {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  margin: 1rem 0 0.5rem;
}

.price-amount span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.price-list {
  list-style: none;
  margin: 1.5rem 0 2rem;
  flex-grow: 1;
}

.price-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.925rem;
  margin-bottom: 0.65rem;
}

/* Auth Cards */
.auth-container {
  max-width: 420px;
  margin: 3.5rem auto;
  padding: 0 1.25rem;
  position: relative;
}

/* Orange background mist radial glow behind container */
.auth-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 90vw);
  height: min(520px, 90vw);
  background: radial-gradient(circle, rgba(255, 94, 98, 0.3) 0%, rgba(255, 153, 102, 0.14) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}

.auth-card {
  position: relative;
  z-index: 1;
  background: #1E293B;
  border: 1px solid #334155;
  border-top: 4px solid #FF5E62;
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: 0 0 50px rgba(255, 94, 98, 0.22), 0 25px 60px rgba(0, 0, 0, 0.45);
}

@media (max-width: 480px) {
  .auth-container {
    margin: 1.5rem auto;
    padding: 0 0.85rem;
  }
  .auth-card {
    padding: 1.5rem 1.25rem;
  }
  .auth-header h1 {
    font-size: 1.35rem;
  }
}

.auth-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.auth-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

/* Footer */
.footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 3.5rem 1.5rem 2rem;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1E293B;
  padding-bottom: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.2rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-nav a {
  color: #94A3B8;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.25rem; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .nav-menu { display: none; }
}
