*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-deep: #06080f;
  --bg-card: #0d1117;
  --bg-card2: #111827;
  --border: rgba(255,255,255,0.07);
  --border-glow: rgba(99,179,255,0.2);
  --accent: #3b82f6;
  --accent2: #8b5cf6;
  --accent3: #06b6d4;
  --gold: #f59e0b;
  --text-1: #f1f5f9;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --green: #10b981;
  --red: #ef4444;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'DM Serif Display', serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(59,130,246,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-1);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── BACKGROUND ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(59,130,246,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(139,92,246,0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ─── NAV ─── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: 64px;
  background: rgba(6,8,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo svg { width: 18px; height: 18px; fill: white; }

.nav-title {
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.nav-links a:hover { color: var(--text-1); }

.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-2);
  padding: 4px;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: rgba(6,8,15,0.97);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem 1.5rem;
    gap: 1.2rem;
  }
  .nav-mobile-btn { display: block; }
}

/* ─── LAYOUT ─── */
.main-wrapper {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ─── HERO ─── */
.hero {
  text-align: center;
  padding: 4.5rem 1rem 3rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #60a5fa;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #60a5fa;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #e2e8f0 0%, #93c5fd 50%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 540px;
  margin: 0 auto 0.75rem;
  font-weight: 400;
}

.hero-note {
  font-size: 0.78rem;
  color: var(--text-3);
  font-style: italic;
}

/* ─── SECTION HEADINGS ─── */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text-1);
  margin-bottom: 0.5rem;
}

/* ─── CARDS ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

/* ─── HOW IT WORKS ─── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (max-width: 700px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .steps-grid { grid-template-columns: 1fr; }
}

.step-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background 0.3s;
}

.step-item:hover { background: rgba(255,255,255,0.04); }

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-display);
}

.step-num.blue { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.step-num.purple { background: linear-gradient(135deg, #6d28d9, #8b5cf6); }
.step-num.green { background: linear-gradient(135deg, #065f46, #10b981); }
.step-num.orange { background: linear-gradient(135deg, #b45309, #f59e0b); }

.step-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.4rem;
}

.step-desc {
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.5;
}

/* ─── OTHER APPS ─── */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (max-width: 500px) {
  .apps-grid { grid-template-columns: 1fr; }
}

.app-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

.app-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.app-card img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.app-card-info h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.app-card-info p {
  font-size: 0.77rem;
  color: var(--text-2);
  line-height: 1.4;
}

/* ─── CAROUSEL ─── */
.carousel-wrap {
  position: relative;
  margin-top: 1.75rem;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-card {
  flex: 0 0 calc(50% - 0.5rem);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card2);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}

@media (max-width: 520px) {
  .carousel-card { flex: 0 0 calc(100% - 0rem); }
}

.carousel-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.carousel-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.carousel-cta {
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
}

.carousel-cta span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.carousel-cta-btn {
  font-size: 0.72rem;
  font-weight: 700;
  color: #60a5fa;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3px;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.carousel-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: rgba(255,255,255,0.09);
  border-color: var(--border-glow);
  color: var(--text-1);
}

.carousel-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, width 0.2s;
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background: var(--accent);
  width: 18px;
  border-radius: 3px;
}

/* ─── AD BANNER CONTAINER ─── */
.ad-wrapper {
  margin: 2.5rem 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 80px;
  background: rgba(255,255,255,0.02);
}

/* ─── ARTICLE SECTION ─── */
.article-section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 600px) {
  .articles-grid { grid-template-columns: 1fr; }
}

article.art-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  transition: border-color 0.25s, transform 0.2s;
}

article.art-card:hover {
  border-color: rgba(99,179,255,0.3);
  transform: translateY(-2px);
}

.art-card h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.45;
}

.art-card p {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.55;
  flex-grow: 1;
}

.art-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: #60a5fa;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
  width: fit-content;
}

.art-link:hover { gap: 7px; }

/* ─── FORM ─── */
.form-section { margin: 2.5rem 0; }

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.1rem;
}

@media (max-width: 600px) {
  .form-grid-2 { grid-template-columns: 1fr; }
  .form-grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .form-grid-3 { grid-template-columns: 1fr; }
}

.form-group { display: flex; flex-direction: column; gap: 0.45rem; }

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.01em;
}

.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}

.form-control::placeholder { color: var(--text-3); }

.form-control:focus {
  border-color: rgba(59,130,246,0.6);
  background: rgba(59,130,246,0.06);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

select.form-control option { background: #1e293b; color: var(--text-1); }

textarea.form-control { resize: vertical; min-height: 90px; }

.btn-generate {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border: none;
  border-radius: 12px;
  color: white;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0.5rem;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 20px rgba(59,130,246,0.3);
  position: relative;
  overflow: hidden;
}

.btn-generate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.08) 100%);
}

.btn-generate:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(59,130,246,0.4); }
.btn-generate:active { transform: translateY(0); }

/* ─── SUPPORT BOX ─── */
.support-box {
  background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(239,68,68,0.03));
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
}

.support-box p {
  font-size: 0.9rem;
  color: var(--text-2);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.btn-trakteer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #dc2626;
  color: white;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(220,38,38,0.35);
}

.btn-trakteer:hover { background: #b91c1c; transform: translateY(-1px); }

/* ─── ABOUT TEXT ─── */
.about-section {
  margin: 2.5rem 0;
}

.about-section p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 0.9rem;
  text-align: justify;
}

.about-section strong { color: var(--text-1); font-weight: 600; }

/* ─── FAQ ─── */
.faq-section { margin: 2.5rem 0; }

details.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

details.faq-item[open] { border-color: var(--border-glow); }

details.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-1);
  background: rgba(255,255,255,0.02);
  list-style: none;
  gap: 1rem;
  transition: background 0.2s;
  user-select: none;
}

details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary:hover { background: rgba(255,255,255,0.04); }

.faq-chevron {
  width: 18px; height: 18px;
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform 0.3s;
}

details.faq-item[open] .faq-chevron { transform: rotate(180deg); }

.faq-body {
  padding: 0.9rem 1.25rem 1.1rem;
  font-size: 0.87rem;
  color: var(--text-2);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}

/* ─── MODALS ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}

.modal-overlay.hidden { display: none; }

.modal-box {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 2rem;
}

.modal-icon.green { background: linear-gradient(135deg, #065f46, #10b981); }
.modal-icon.red { background: linear-gradient(135deg, #7f1d1d, #ef4444); }

.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-1);
  margin-bottom: 0.5rem;
}

.modal-desc {
  font-size: 0.87rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.btn-modal-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}

.btn-modal-primary.red {
  background: linear-gradient(135deg, #b91c1c, #ef4444);
  box-shadow: 0 4px 16px rgba(239,68,68,0.3);
}

.btn-modal-primary:hover { transform: translateY(-1px); opacity: 0.92; }

.btn-modal-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  background: rgba(255,255,255,0.05);
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-modal-secondary:hover { background: rgba(255,255,255,0.09); color: var(--text-1); }

/* ─── LOADING ─── */
#loadingOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
}

#loadingOverlay.hidden { display: none; }

.loading-inner {
  text-align: center;
}

.spinner {
  width: 56px;
  height: 56px;
  border: 3px solid rgba(59,130,246,0.2);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1.25rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-1);
  margin-bottom: 0.4rem;
}

.loading-sub {
  font-size: 0.82rem;
  color: var(--text-3);
}

/* ─── FOOTER ─── */
footer {
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  padding: 3rem 1.25rem 2.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-1);
  margin-bottom: 0.4rem;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-3);
  margin-bottom: 1.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  color: var(--text-3);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--text-1); }

.footer-copy {
  font-size: 0.77rem;
  color: var(--text-3);
}

/* ─── SECTION SPACING ─── */
.section-gap { margin: 2.5rem 0; }

/* ─── CHIP TAGS ─── */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.chip {
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  color: #93c5fd;
}

/* ─── DIVIDER ─── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}