/* ============================================================
   developeraccounts.digital — Main Stylesheet (clean version)
   ============================================================ */

:root {
  --bg: #F7F7FA;
  --surface: #FFFFFF;
  --text: #1E1B2E;
  --text-muted: #6B7280;
  --accent: #7C3AED;
  --accent-dark: #6D28D9;
  --border: #E5E7EB;
  --shadow-sm: 0 1px 2px rgba(30, 27, 46, 0.04);
  --shadow-md: 0 4px 16px rgba(30, 27, 46, 0.06);
  --shadow-lg: 0 12px 32px rgba(124, 58, 237, 0.12);
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1200px;
  --header-h: 76px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { color: var(--text); line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 16px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  min-height: 48px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s ease;
  white-space: nowrap;
  text-align: center;
}
.btn-primary { background: var(--accent); color: #fff !important; box-shadow: 0 6px 18px rgba(124,58,237,0.28); text-decoration: none !important; }
.btn-primary:hover { background: var(--accent-dark); color: #fff !important; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(109,40,217,0.32); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { background: var(--surface); border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 10px 18px; min-height: 40px; font-size: 0.9rem; }
.btn-lg { padding: 16px 32px; min-height: 52px; font-size: 1.05rem; border-radius: 14px; }

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, backdrop-filter .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: rgba(247,247,250,0.96);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 52px; width: auto; }
.nav-primary { display: flex; align-items: center; gap: 6px; }
.nav-primary a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color .2s ease, background-color .2s ease;
}
.nav-primary a:hover { color: var(--accent); background: rgba(124,58,237,0.06); }
.nav-primary a.active { color: var(--accent); }
.header-right { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.lang-switch a {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 10px;
  color: var(--text-muted);
  border-radius: 7px;
  transition: all .2s ease;
}
.lang-switch a.active { background: var(--accent); color: #fff; }
.lang-switch a:not(.active):hover { color: var(--accent); background: rgba(124,58,237,0.08); }

/* ---- Hamburger ---- */
.hamburger {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.hamburger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, top .25s ease;
}
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 21px; transition: opacity .05s ease; }
.hamburger span:nth-child(3) { top: 28px; }
.hamburger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---- Mobile menu ---- */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 18px 24px 28px;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  z-index: 99;
}
.mobile-menu.is-open { display: block; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.mobile-menu nav a {
  color: var(--text);
  font-weight: 500;
  padding: 12px 8px;
  border-radius: 8px;
  border-bottom: 1px solid var(--border);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mobile-menu nav a:last-child { border-bottom: none; }
.mobile-menu .mobile-footer { display: flex; flex-direction: column; gap: 14px; }
.mobile-menu .lang-switch { align-self: flex-start; }

/* ---- Main offset ---- */
main { padding-top: var(--header-h); }

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 72px;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 40% 40% at 50% 50%, rgba(124,58,237,0.22), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { max-width: 900px; margin-left: auto; margin-right: auto; }
.hero .lead { font-size: 1.15rem; color: var(--text-muted); max-width: 720px; margin: 0 auto 32px; }
.hero-cta { display: inline-flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 48px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.stats .stat { text-align: center; }
.stats .stat-value { display: block; font-size: 1.45rem; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.stats .stat-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

/* ---- Sections ---- */
section { padding: 72px 0; }
section.alt { background: var(--surface); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* ---- Cards ---- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
section.alt .card { background: var(--bg); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(124,58,237,0.3); }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(124,58,237,0.1);
  color: var(--accent);
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* ---- Numbered ---- */
.numbered-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.numbered-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
section.alt .numbered-item { background: var(--bg); }
.numbered-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.numbered-item .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}
.numbered-item h3 { margin-bottom: 6px; }
.numbered-item p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* ---- Pricing ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card.featured { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pricing-card.featured::before {
  content: "Popular";
  position: absolute;
  top: 16px; right: 16px;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pricing-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.pricing-card .price { font-size: 2.8rem; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.pricing-card .price small { font-size: 0.95rem; color: var(--text-muted); font-weight: 500; }
.pricing-card .price-sub { color: var(--text-muted); margin-bottom: 24px; font-size: 0.95rem; }
.pricing-card ul { list-style: none; padding: 0; margin: 0 0 28px; flex-grow: 1; }
.pricing-card li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--text);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.pricing-card li:last-child { border-bottom: none; }
.pricing-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(124,58,237,0.12) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C3AED' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / 12px;
}
.pricing-note { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-top: 24px; }

/* ---- FAQ ---- */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
section.alt .faq-item { background: var(--bg); }
.faq-item.is-open { border-color: var(--accent); box-shadow: var(--shadow-md); }
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 20px 22px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  font-family: inherit;
}
.faq-q .icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(124,58,237,0.1);
  color: var(--accent);
  transition: transform .25s ease;
  font-size: 1.1rem;
}
.faq-item.is-open .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 22px 22px; color: var(--text-muted); font-size: 0.97rem; }

/* ---- Contact ---- */
.contact { text-align: center; }
.contact-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.contact-email { font-size: 1.1rem; color: var(--text); font-weight: 500; }
.contact-email a { color: var(--accent); }

/* ---- Footer ---- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; color: var(--text); }
.footer-col p { color: var(--text-muted); font-size: 0.95rem; }
.footer-col img { height: 52px; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: var(--text-muted); font-size: 0.95rem; }
.footer-col ul a:hover { color: var(--accent); }
.social-list { display: flex; flex-wrap: wrap; gap: 10px; }
.social-list a {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all .2s ease;
}
.social-list a:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px); }
.social-list svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; text-align: center; color: var(--text-muted); font-size: 0.85rem; line-height: 1.7; }
.footer-bottom p { margin: 0 0 6px; }
.footer-bottom a { color: var(--accent); }
.disclaimer { font-size: 0.8rem; opacity: 0.9; max-width: 720px; margin: 0 auto 10px; }

/* ---- Blog index ---- */
.breadcrumb { padding: 16px 0; font-size: 0.88rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }

.page-head { text-align: center; padding: 48px 0 24px; max-width: 780px; margin: 0 auto; }
.page-head p { color: var(--text-muted); font-size: 1.05rem; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 40px; }

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(124,58,237,0.3); }
.blog-card-cover {
  height: 180px;
  background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(124,58,237,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.blog-card-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-card-date { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 8px; }
.blog-card h2 { font-size: 1.1rem; line-height: 1.35; margin-bottom: 12px; color: var(--text); }
.blog-card p { color: var(--text-muted); font-size: 0.92rem; flex-grow: 1; margin-bottom: 0; }
.blog-card .read-more { margin-top: 14px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; font-size: 0.9rem; }
.blog-card .read-more:hover { color: var(--accent-dark); }

/* ---- Article page ---- */
.article-hero {
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.article-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(124,58,237,0.08);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.article-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.2;
  max-width: 760px;
  margin-bottom: 12px;
}
.article-meta { font-size: 0.85rem; color: var(--text-muted); }

.article-body { max-width: 760px; padding-bottom: 80px; }
.article-body h2 { font-size: 1.5rem; margin: 40px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.article-body h3 { font-size: 1.15rem; margin: 28px 0 10px; color: var(--text); }
.article-body p { margin-bottom: 18px; color: var(--text-muted); line-height: 1.8; }
.article-body ul { margin: 12px 0 20px; padding: 0; list-style: none; }
.article-body ul li { padding-left: 20px; position: relative; margin-bottom: 10px; color: var(--text-muted); line-height: 1.7; }
.article-body ul li::before { content: '—'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body .btn,
.article-body a.btn { color: #fff !important; text-decoration: none !important; }

.article-cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 40px 0;
}
.article-cta h3 { margin-bottom: 10px; font-size: 1.1rem; }
.article-cta p { margin-bottom: 20px; }

.article-source { font-size: 0.85rem; color: var(--text-muted); margin-top: 40px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}
.back-link:hover { color: var(--accent); }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .nav-primary, .header-right .lang-switch, .header-right .btn { display: none; }
  .hamburger { display: inline-flex; align-items: center; justify-content: center; }
  .cards-grid, .numbered-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  section { padding: 56px 0; }
  .hero { padding: 48px 0 56px; }
}
@media (max-width: 620px) {
  .container { padding: 0 18px; }
  .cards-grid, .numbered-grid, .pricing-grid, .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px; }
  .hero .lead { font-size: 1.02rem; }
  .pricing-card.featured { transform: none; }
  .brand img { height: 44px; }
  .btn { padding: 13px 22px; }
  .article-title { font-size: 1.5rem; }
  .article-cta { padding: 20px; }
}
