/* ============================================================
   DevStudio — Website CSS
   ============================================================ */

:root {
  --primary:       #6366f1;
  --primary-dark:  #4f46e5;
  --secondary:     #8b5cf6;
  --accent:        #06b6d4;
  --dark:          #0f0f23;
  --dark-2:        #1a1a3e;
  --dark-3:        #252550;
  --surface:       #f8fafc;
  --card-bg:       #ffffff;
  --text:          #1e293b;
  --text-muted:    #64748b;
  --border:        rgba(0,0,0,.07);
  --section-gap:   5rem;
  --radius:        16px;
  --shadow-sm:     0 1px 8px rgba(0,0,0,.06);
  --shadow:        0 4px 24px rgba(0,0,0,.10);
  --shadow-lg:     0 16px 60px rgba(0,0,0,.15);
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.py-6  { padding-top: var(--section-gap); padding-bottom: var(--section-gap); }
.py-7  { padding-top: 7rem; padding-bottom: 7rem; }

/* ── Navbar ── */
#mainNav {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  box-shadow: 0 2px 24px rgba(0,0,0,.35);
  padding: .8rem 0;
  transition: background .3s;
  z-index: 1030;
}

#mainNav .navbar-brand {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff !important;
}

#mainNav .nav-link {
  color: rgba(255,255,255,.75) !important;
  padding: .4rem 1rem;
  border-radius: 8px;
  transition: .2s;
  font-size: .9rem;
  font-weight: 500;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.12);
}

/* ── Hero ── */
.hero-section {
  background: linear-gradient(135deg, var(--dark) 0%, #1e1b4b 40%, #312e81 70%, var(--dark-2) 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* dot-grid overlay */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* glowing orbs */
.hero-section::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,.25) 0%, transparent 70%);
  top: -150px; right: -100px;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-orb-1 {
  width: 400px; height: 400px;
  background: rgba(139,92,246,.18);
  bottom: -100px; left: -100px;
}

.hero-orb-2 {
  width: 300px; height: 300px;
  background: rgba(6,182,212,.12);
  top: 50%; right: 15%;
}

.hero-title    { color: #fff; line-height: 1.15; letter-spacing: -.02em; }
.hero-subtitle { color: rgba(255,255,255,.72) !important; font-size: 1.1rem; line-height: 1.7; }

.text-gradient {
  background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-2 {
  background: linear-gradient(135deg, #f472b6, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* hero badge pill */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(99,102,241,.18);
  border: 1px solid rgba(99,102,241,.35);
  color: #a5b4fc;
  border-radius: 999px;
  padding: .35rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .03em;
  backdrop-filter: blur(8px);
}

/* stat counters in hero */
.hero-stat { border-right: 1px solid rgba(255,255,255,.12); }
.hero-stat:last-child { border-right: none; }
.hero-stat-value { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-stat-label { font-size: .78rem; color: rgba(255,255,255,.5); margin-top: .25rem; letter-spacing: .05em; text-transform: uppercase; }

.min-vh-80 { min-height: 80vh; }

/* Phone mockup */
.hero-phone-mockup { animation: float 4s ease-in-out infinite; }

.phone-wrap {
  position: relative;
  display: inline-block;
}

.phone-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(99,102,241,.35) 0%, transparent 65%);
  border-radius: 50%;
}

.phone-frame {
  width: 230px; height: 460px;
  background: linear-gradient(145deg, #2d2b55, #1a1940);
  border-radius: 40px;
  border: 6px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 40px 100px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.06);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 14px;
  width: 80px; height: 10px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
}

.phone-screen {
  width: 190px; height: 395px;
  background: linear-gradient(145deg, #13111e, #1f1b3a);
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  overflow: hidden;
}

.phone-screen-icon { font-size: 4rem; opacity: .35; }
.phone-screen-dots { display: flex; gap: .5rem; }
.phone-screen-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  animation: pulse-dot 1.5s ease-in-out infinite;
}
.phone-screen-dots span:nth-child(2) { animation-delay: .2s; }
.phone-screen-dots span:nth-child(3) { animation-delay: .4s; }

@keyframes pulse-dot {
  0%,100% { opacity: .25; transform: scale(1); }
  50%      { opacity: .8;  transform: scale(1.3); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-18px) rotate(1deg); }
}

/* ── Section Utilities ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-title { font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.section-sub   { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1e1b4b 50%, var(--dark-2) 100%);
  position: relative;
  overflow: hidden;
  padding: 4rem 0 3.5rem;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px;
}

.page-hero h1, .page-hero p { position: relative; }

/* ── Cards — App ── */
.app-card {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  transition: .25s ease;
  box-shadow: var(--shadow-sm);
  background: var(--card-bg);
}

.app-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary) !important;
}

.app-icon {
  width: 72px; height: 72px;
  object-fit: cover;
  border-radius: 16px;
}

.app-icon-placeholder {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  color: #fff; border-radius: 16px;
  font-size: 1.5rem;
}

/* ── Cards — Feature / Service ── */
.feature-card {
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: .25s;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: rgba(99,102,241,.25);
}

.feature-icon {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  flex-shrink: 0;
}

.fi-primary { background: rgba(99,102,241,.1);  color: var(--primary); }
.fi-warning { background: rgba(245,158,11,.1);  color: #d97706; }
.fi-success { background: rgba(16,185,129,.1);  color: #059669; }
.fi-info    { background: rgba(6,182,212,.1);   color: #0891b2; }
.fi-pink    { background: rgba(236,72,153,.1);  color: #db2777; }
.fi-orange  { background: rgba(249,115,22,.1);  color: #ea580c; }

/* ── Process Steps ── */
.process-step {
  text-align: center;
  position: relative;
}

.process-number {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 24px rgba(99,102,241,.35);
}

.process-connector {
  position: absolute;
  top: 32px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  opacity: .25;
  display: none;
}

@media (min-width: 768px) { .process-connector { display: block; } }

/* ── Testimonials ── */
.testimonial-card {
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  transition: .25s;
}

.testimonial-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
  color: #fff;
}

.testimonial-stars { color: #f59e0b; font-size: .9rem; }

/* ── Tech Stack ── */
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .6rem 1.1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  transition: .2s;
}

.tech-badge:hover {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ── Blog Cards ── */
.blog-card {
  border-radius: var(--radius) !important;
  transition: .25s;
  background: var(--card-bg);
  border: 1px solid var(--border) !important;
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg) !important;
  border-color: rgba(99,102,241,.2) !important;
}

.blog-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--dark-2), var(--dark-3));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; opacity: .5;
}

/* ── About page ── */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: .75rem;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--secondary), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: .25rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(99,102,241,.25);
}

.timeline-year {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 999px;
  margin-bottom: .5rem;
}

/* value card */
.value-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  transition: .25s;
  overflow: hidden;
}

.value-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

.value-card-top {
  height: 4px;
}

/* ── Contact page ── */
.contact-info-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  transition: .25s;
}

.contact-info-card:hover { box-shadow: var(--shadow); }

.contact-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}

/* FAQ accordion */
.accordion-button:not(.collapsed) {
  background: rgba(99,102,241,.06);
  color: var(--primary);
  box-shadow: none;
}

.accordion-button:focus { box-shadow: none; }

/* ── Newsletter ── */
.newsletter-section {
  background: linear-gradient(135deg, var(--dark) 0%, #1e1b4b 100%);
}

/* ── Post Content ── */
.post-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #374151;
}

.post-content h2 { font-weight: 700; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--text); }
.post-content h3 { font-weight: 600; margin-top: 2rem; margin-bottom: .75rem; }
.post-content p  { margin-bottom: 1.4rem; }
.post-content ul, .post-content ol { margin-bottom: 1.4rem; padding-left: 1.75rem; }
.post-content li { margin-bottom: .5rem; }
.post-content img { max-width: 100%; border-radius: 12px; margin: 1.5rem 0; }
.post-content a { color: var(--primary); text-decoration: underline; }
.post-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  color: #64748b;
  font-style: italic;
  margin: 2rem 0;
  background: var(--surface);
  border-radius: 0 12px 12px 0;
}

.legal-toc {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.legal-toc a { color: var(--primary); text-decoration: none; display: block; padding: .2rem 0; }
.legal-toc a:hover { text-decoration: underline; }

/* ── Footer ── */
.site-footer { background: #060614; margin-top: auto; }

.footer-brand-text { font-size: 1.3rem; font-weight: 800; color: #fff; }

.footer-link {
  color: #6b7280;
  text-decoration: none;
  font-size: .875rem;
  transition: color .2s;
  display: block;
  padding: .2rem 0;
}

.footer-link:hover { color: #e5e7eb; }

.footer-heading {
  color: #9ca3af;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.social-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  color: #6b7280;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: .2s;
  font-size: .9rem;
}

.social-btn:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

.footer-divider { border-color: rgba(255,255,255,.06); }

/* store badge */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: .6rem 1.1rem;
  color: #fff;
  text-decoration: none;
  transition: .2s;
  width: 100%;
}

.store-badge:hover { background: rgba(255,255,255,.12); color: #fff; }
.store-badge .store-sub { font-size: .65rem; opacity: .6; display: block; }
.store-badge .store-name { font-size: .9rem; font-weight: 700; display: block; }

/* ── Buttons ── */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  font-weight: 600;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #7c3aed);
  border: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(99,102,241,.4);
}

.btn-outline-light { font-weight: 600; }
.btn-outline-light:hover { transform: translateY(-1px); }

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
}

.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* ── Scroll-to-top ── */
#scrollTop {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; border: none; border-radius: 12px;
  display: none; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem;
  box-shadow: 0 4px 20px rgba(99,102,241,.5);
  z-index: 9999; transition: .2s;
}

#scrollTop:hover { transform: translateY(-3px); }

/* ── Utilities ── */
.hover-primary:hover  { color: var(--primary) !important; }
.letter-spacing       { letter-spacing: .08em; }
.bg-surface           { background-color: var(--surface) !important; }

/* ── Responsive ── */
@media (max-width: 992px) {
  .hero-section { min-height: auto; padding: 6rem 0 4rem; }
}

@media (max-width: 768px) {
  .py-6 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .hero-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 1rem; margin-bottom: 1rem; }
  .hero-stat:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
}
