/* =============================================
   SOFTCRAFT AGENCY — DESIGN SYSTEM
   Premium Dark Technology Aesthetic
   ============================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  /* Backgrounds */
  --bg-base:        #07090f;
  --bg-surface:     #0d1117;
  --bg-elevated:    #131820;
  --bg-card:        #111927;
  --bg-card-hover:  #162033;

  /* Brand Colors */
  --primary:        #2563eb;
  --primary-light:  #3b82f6;
  --primary-glow:   rgba(37, 99, 235, 0.18);
  --accent-cyan:    #06b6d4;
  --accent-purple:  #7c3aed;
  --accent-indigo:  #4f46e5;

  /* Text */
  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;
  --text-link:      #60a5fa;

  /* Borders */
  --border:         rgba(148, 163, 184, 0.1);
  --border-active:  rgba(37, 99, 235, 0.4);

  /* Status */
  --success:        #10b981;
  --warning:        #f59e0b;
  --error:          #ef4444;

  /* Gradients */
  --grad-primary:   linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --grad-hero:      radial-gradient(ellipse at 60% 0%, rgba(37, 99, 235, 0.15) 0%, transparent 60%),
                    radial-gradient(ellipse at 20% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 50%);
  --grad-card:      linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(124, 58, 237, 0.04) 100%);
  --grad-text:      linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);

  /* Shadows */
  --shadow-card:    0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow:    0 0 40px rgba(37, 99, 235, 0.15);
  --shadow-button:  0 4px 16px rgba(37, 99, 235, 0.35);

  /* Typography */
  --font-display:   'Space Grotesk', sans-serif;
  --font-body:      'Inter', sans-serif;

  /* Spacing */
  --section-py:     5rem;
  --container-max:  1200px;
  --container-px:   1.5rem;

  /* Radius */
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      16px;
  --radius-xl:      24px;

  /* Transitions */
  --transition:     all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-secondary); line-height: 1.75; }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Section Layout --- */
.section { padding: var(--section-py) 0; }
.section-dark { background: var(--bg-surface); }
.section-elevated { background: var(--bg-elevated); }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-light);
  background: var(--primary-glow);
  border: 1px solid var(--border-active);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p { max-width: 580px; margin: 0 auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-display);
  transition: var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-button);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.5);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-outline:hover {
  background: var(--bg-elevated);
  border-color: var(--primary);
  color: var(--primary-light);
}
.btn-ghost {
  background: transparent;
  color: var(--primary-light);
  padding: 0.5rem 0;
}
.btn-ghost:hover { color: var(--accent-cyan); gap: 0.75rem; }
.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #1aab4d 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

/* --- Badge / Tag --- */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.badge-primary { background: var(--primary-glow); color: var(--primary-light); border: 1px solid var(--border-active); }
.badge-success { background: rgba(16, 185, 129, 0.1); color: var(--success); border: 1px solid rgba(16,185,129,0.2); }
.badge-cyan { background: rgba(6, 182, 212, 0.1); color: var(--accent-cyan); border: 1px solid rgba(6,182,212,0.2); }
.badge-purple { background: rgba(124, 58, 237, 0.1); color: #a78bfa; border: 1px solid rgba(124,58,237,0.2); }

/* --- Pricing Cards --- */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: var(--transition);
}
.pricing-card:hover { border-color: var(--border-active); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.pricing-card:hover::before { opacity: 1; }
.pricing-card.featured {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
}
.pricing-card.featured::before { opacity: 1; }
.price-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.25rem; letter-spacing: 0.05em; }
.price-amount {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}
.price-period { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.2rem; }

/* --- Service Card Icon --- */
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.icon-blue   { background: var(--primary-glow); }
.icon-cyan   { background: rgba(6, 182, 212, 0.12); }
.icon-purple { background: rgba(124, 58, 237, 0.12); }
.icon-green  { background: rgba(16, 185, 129, 0.12); }
.icon-orange { background: rgba(245, 158, 11, 0.12); }
.icon-indigo { background: rgba(79, 70, 229, 0.12); }
.icon-pink   { background: rgba(236, 72, 153, 0.12); }
.icon-teal   { background: rgba(20, 184, 166, 0.12); }

/* --- Grid Layouts --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* --- Feature List --- */
.feature-list { display: flex; flex-direction: column; gap: 0.625rem; margin-top: 1.25rem; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.feature-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* --- Trust Strip --- */
.trust-strip {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  white-space: nowrap;
}
.trust-item .check {
  width: 20px;
  height: 20px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* --- CTA Section --- */
.cta-section {
  padding: 5rem 0;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
}
.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.cta-inner h2 { margin-bottom: 1rem; }
.cta-inner p { margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Form --- */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); }
.form-input, .form-textarea, .form-select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: var(--transition);
  width: 100%;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { appearance: none; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }

/* --- Alert / Notice --- */
.notice {
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
}
.notice-info { background: var(--primary-glow); border: 1px solid var(--border-active); color: var(--text-secondary); }
.notice-warning { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245,158,11,0.2); color: var(--text-secondary); }

/* --- Process Step --- */
.process-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-glow);
  border: 1px solid var(--border-active);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-light);
  flex-shrink: 0;
}

/* --- Divider --- */
.divider { border: none; border-top: 1px solid var(--border); }

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.faq-question {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 1rem;
  font-family: var(--font-display);
}
.faq-question .icon {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary-light);
  flex-shrink: 0;
  transition: var(--transition);
}
.faq-question.active .icon { background: var(--primary-glow); border-color: var(--border-active); }
.faq-answer {
  display: none;
  padding-top: 0.875rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.75;
}
.faq-answer.open { display: block; }

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); transition: var(--transition); }
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb .sep { color: var(--text-muted); opacity: 0.4; }

/* --- Testimonial Card --- */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}
.testimonial-quote {
  font-size: 2.5rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.3;
  font-family: serif;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
}

/* --- Portfolio Card --- */
.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.portfolio-card:hover { border-color: var(--border-active); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.portfolio-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  position: relative;
  overflow: hidden;
}
.portfolio-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 2rem;
}
.portfolio-body { padding: 1.5rem; }

/* --- Blog Card --- */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover { border-color: var(--border-active); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.blog-img {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #131820 0%, #0d1117 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.blog-body { padding: 1.5rem; }
.blog-meta { display: flex; gap: 1rem; align-items: center; margin-bottom: 0.75rem; flex-wrap: wrap; }
.blog-meta span { font-size: 0.8rem; color: var(--text-muted); }

/* --- Tabs --- */
.tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tab-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn.active, .tab-btn:hover {
  color: var(--primary-light);
  border-color: var(--border-active);
  background: var(--primary-glow);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* --- Floating WhatsApp --- */
.floating-wa {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #1aab4d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  cursor: pointer;
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
}
.floating-wa:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37, 211, 102, 0.55); }
.floating-wa-tooltip {
  position: absolute;
  right: 68px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.floating-wa:hover .floating-wa-tooltip { opacity: 1; }

/* --- Page Hero (sub-pages) --- */
.page-hero {
  padding: 7rem 0 4rem;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.12) 0%, transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; }

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.2); }
  50% { box-shadow: 0 0 40px rgba(37, 99, 235, 0.4); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.fade-up { opacity: 0; animation: fadeUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Responsive Breakpoints --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-py: 3.5rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.625rem; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 1rem; }
  .btn-lg { padding: 0.875rem 1.5rem; font-size: 0.9375rem; }
}
