@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --purple: #6C1CFF;
  --purple-hover: #5512D6;
  --purple-soft: #F0E8FF;
  --purple-line: #D8C2FF;
  --green: #10B981;
  --green-soft: #ECFDF5;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
}

html[data-theme="light"] {
  --bg: #F4F5F7;
  --surface: #FFFFFF;
  --surface-elevated: #FFFFFF;
  --subtle-bg: #FAFAFB;
  --text: #111827;
  --muted: #6B7280;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --card-hover-border: #D1D5DB;
}

html[data-theme="dark"] {
  --bg: #0B0D13;
  --surface: #141721;
  --surface-elevated: #1B1E2B;
  --subtle-bg: #0F121A;
  --text: #F9FAFB;
  --muted: #9CA3AF;
  --border: #262B3A;
  --border-light: #1D2230;
  --purple-soft: #23163D;
  --purple-line: #3E246E;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  --card-hover-border: #3E4559;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Cairo', 'Manrope', sans-serif;
  min-height: 100vh;
  line-height: 1.5;
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}

html[dir="ltr"] body {
  font-family: 'Manrope', 'Cairo', sans-serif;
}

.mono {
  font-family: 'Space Mono', monospace;
}

/* Navigation Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  direction: ltr !important;
  unicode-bidi: isolate;
}

.logo {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--text);
  direction: ltr !important;
  unicode-bidi: isolate;
}

.logo .k { color: var(--purple); }
.logo .chev { color: var(--purple); margin-left: 2px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  font-family: inherit;
  text-decoration: none;
}

.icon-btn:hover {
  border-color: var(--purple-line);
  color: var(--purple);
  background: var(--purple-soft);
}

.icon-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Layout Wrapper */
.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple-soft);
  color: var(--purple);
  border: 1px solid var(--purple-line);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.eyebrow-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.hero-title {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  color: var(--purple);
}

.hero-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Showcase Grid */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

/* Template Card */
.template-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--card-shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  position: relative;
  transition: border-color .15s ease;
}

.template-card:hover {
  border-color: var(--card-hover-border);
}

.featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--purple);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-family: 'Space Mono', monospace;
}

html[dir="rtl"] .featured-badge {
  left: auto;
  right: 16px;
}

/* Visual Side */
.card-visual {
  background: var(--subtle-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.mock-dots {
  display: flex;
  gap: 5px;
}

.mock-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mock-dots span:nth-child(1) { background: #FF5F56; }
.mock-dots span:nth-child(2) { background: #FFBD2E; }
.mock-dots span:nth-child(3) { background: #27C93F; }

.mock-url {
  font-size: 0.65rem;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  background: var(--surface);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  direction: ltr !important;
  unicode-bidi: isolate;
}

.card-pricing-badge {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
  padding: 8px 14px;
  background: var(--subtle-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  width: fit-content;
}

.card-pricing-badge .price-val,
.sub-price,
.price,
.val,
.price-val {
  font-family: 'Space Mono', monospace;
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-block;
  text-align: left;
}

.card-pricing-badge .price-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--purple);
}

.card-pricing-badge .price-type {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.pricing-sub-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 5px;
  margin-top: 2px;
}

.pricing-sub-line .sub-price {
  color: var(--text);
  font-weight: 700;
  direction: ltr !important;
  unicode-bidi: isolate !important;
}

.pricing-sub-line .domain-exts {
  direction: ltr !important;
  unicode-bidi: isolate;
  display: inline-block;
  color: var(--muted);
}

.visual-preview-img {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--surface);
}

/* Info Side */
.card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.55;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tag-pill {
  background: var(--subtle-bg);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tag-pill svg {
  width: 12px;
  height: 12px;
  color: var(--muted);
}

/* Buttons */
.card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-primary {
  background: var(--purple);
  color: #FFFFFF;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease;
}

.btn-primary:hover {
  background: var(--purple-hover);
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}

.btn-secondary:hover {
  border-color: var(--purple-line);
  color: var(--purple);
  background: var(--purple-soft);
}

/* Features Grid */
.features-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  margin-bottom: 40px;
  box-shadow: var(--card-shadow);
}

.section-head {
  text-align: center;
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.section-sub {
  font-size: 0.85rem;
  color: var(--muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.feature-item {
  background: var(--subtle-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--purple-soft);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.feature-icon-wrap svg {
  width: 16px;
  height: 16px;
}

.feature-item-title {
  font-size: 0.9rem;
  font-weight: 700;
}

.feature-item-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-logo {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  direction: ltr !important;
  unicode-bidi: isolate;
}

.footer-logo .k { color: var(--purple); }
.footer-logo .chev { color: var(--purple); }

.insta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--purple);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  direction: ltr !important;
  unicode-bidi: isolate;
  transition: background .15s ease, border-color .15s ease;
}

.insta-link:hover {
  border-color: var(--purple);
  background: var(--purple-soft);
}

.insta-link svg {
  width: 15px;
  height: 15px;
}

.footer-note {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .template-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .wrap {
    padding: 24px 16px 40px;
  }
  .card-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-primary, .btn-secondary {
    justify-content: center;
  }
}

/* Customization Promise Banner */
.custom-promise-section {
  margin-top: 40px;
  margin-bottom: 24px;
}
.custom-promise-card {
  background: linear-gradient(135deg, rgba(108, 28, 255, 0.08) 0%, rgba(108, 28, 255, 0.02) 100%);
  border: 1.5px solid var(--purple-line);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(108, 28, 255, 0.06);
}
.custom-promise-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(108, 28, 255, 0.35);
}
.custom-promise-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.4;
}
.custom-promise-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto;
}

