/* =============================================
   CORVIXA TECH — styles.css
   Design: Minimal SaaS, Neutral Black Accent
   ============================================= */

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

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-50:  #fafaf9;
  --gray-100: #f5f5f4;
  --gray-200: #e7e5e4;
  --gray-300: #d6d3d1;
  --gray-400: #a8a29e;
  --gray-500: #78716c;
  --gray-600: #57534e;
  --gray-700: #44403c;
  --gray-800: #292524;
  --gray-900: #1c1917;
  --accent:   #0a0a0a;
  --accent-hover: #292524;
  --green-wa: #25D366;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --transition: 0.18s ease;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

/* ---- Typography ---- */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 500; letter-spacing: -1px; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 500; letter-spacing: -0.5px; line-height: 1.25; }
h3 { font-size: 1.1rem; font-weight: 500; line-height: 1.35; }
h4 { font-size: 0.95rem; font-weight: 500; line-height: 1.4; }
p  { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.75; }

/* ---- Layout ---- */
.container { max-width: 980px; margin: 0 auto; padding: 0 2rem; }
.container-sm { max-width: 680px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.divider { height: 1px; background: var(--gray-200); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 0.875rem; font-weight: 500;
  padding: 10px 22px; border-radius: var(--radius-md);
  cursor: pointer; transition: all var(--transition);
  border: 1px solid transparent; white-space: nowrap;
}
.btn-primary {
  background: var(--black); color: var(--white);
  border-color: var(--black);
}
.btn-primary:hover { background: var(--gray-800); border-color: var(--gray-800); }

.btn-outline {
  background: transparent; color: var(--gray-800);
  border-color: var(--gray-300);
}
.btn-outline:hover { border-color: var(--gray-500); background: var(--gray-50); }

.btn-wa {
  background: var(--green-wa); color: var(--white);
  border-color: var(--green-wa);
}
.btn-wa:hover { background: #1ebe5d; }

.btn-lg { padding: 13px 28px; font-size: 0.9375rem; }
.btn-sm { padding: 7px 14px; font-size: 0.8125rem; }

/* ---- Navigation ---- */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 2rem; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-size: 1rem; font-weight: 600; letter-spacing: -0.3px; color: var(--black); }
.nav-logo span { font-weight: 400; color: var(--gray-400); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.875rem; color: var(--gray-600); transition: color var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--black); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-hamburger { display: none; cursor: pointer; background: none; border: none; padding: 6px; }
.nav-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--black); margin: 5px 0; transition: all var(--transition); }

/* ---- Trust Bar ---- */
.trust-bar {
  background: var(--gray-50); border-bottom: 1px solid var(--gray-200);
  padding: 10px 2rem;
  display: flex; align-items: center; justify-content: center;
  gap: 2rem; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--gray-500); }
.trust-check { width: 14px; height: 14px; border-radius: 50%; background: var(--black); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trust-check::after { content:''; width:5px; height:3px; border-left:1.5px solid #fff; border-bottom:1.5px solid #fff; transform:rotate(-45deg) translate(1px,-1px); display:block; }

/* ---- Hero ---- */
.hero { padding: 7rem 0 5.5rem; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; letter-spacing: 0.5px; color: var(--gray-500);
  border: 1px solid var(--gray-200); padding: 5px 16px;
  border-radius: 100px; margin-bottom: 2rem;
  background: var(--gray-50);
}
.hero-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-wa); flex-shrink: 0; }
.hero h1 { max-width: 700px; margin: 0 auto 1.25rem; }
.hero h1 em { font-style: normal; color: var(--gray-400); }
.hero-sub { font-size: 1.0625rem; color: var(--gray-500); max-width: 500px; margin: 0 auto 2.5rem; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { font-size: 0.78rem; color: var(--gray-400); margin-top: 1rem; }

/* ---- Stats ---- */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden;
}
.stat-item { padding: 1.75rem 1.5rem; text-align: center; border-right: 1px solid var(--gray-200); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 2rem; font-weight: 500; letter-spacing: -1.5px; color: var(--black); }
.stat-label { font-size: 0.78rem; color: var(--gray-400); margin-top: 4px; }

/* ---- Services ---- */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden;
}
.service-card { padding: 2rem; border-right: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); transition: background var(--transition); }
.service-card:hover { background: var(--gray-50); }
.service-tag { font-size: 0.72rem; letter-spacing: 0.8px; color: var(--gray-400); text-transform: uppercase; margin-bottom: 1rem; }
.service-icon { width: 36px; height: 36px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.service-card h3 { margin-bottom: 0.6rem; }
.service-card p { font-size: 0.875rem; }
.service-card .link { font-size: 0.8125rem; color: var(--black); font-weight: 500; margin-top: 1rem; display: inline-flex; align-items: center; gap: 4px; }

/* ---- Process ---- */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.process-step { padding: 1.75rem; border-right: 1px solid var(--gray-200); }
.process-step:last-child { border-right: none; }
.step-num { font-size: 0.72rem; color: var(--gray-400); letter-spacing: 0.5px; margin-bottom: 1rem; }
.process-step h4 { margin-bottom: 0.4rem; }
.process-step p { font-size: 0.8125rem; }

/* ---- Founder ---- */
.founder-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: center; }
.founder-photo-wrap { position: relative; }
.founder-photo { width: 100%; aspect-ratio: 3/4; background: var(--gray-100); border-radius: var(--radius-xl); border: 1px solid var(--gray-200); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 0.8125rem; color: var(--gray-400); }
.founder-badge { position: absolute; bottom: -12px; right: -12px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 10px 16px; box-shadow: var(--shadow-md); }
.founder-badge p { font-size: 0.78rem; color: var(--gray-500); margin: 0; }
.founder-badge strong { display: block; font-size: 0.875rem; color: var(--black); font-weight: 500; margin-top: 1px; }
.founder-text h2 { margin-bottom: 1rem; }
.founder-text p { margin-bottom: 1rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1.25rem; }
.badge { display: inline-flex; align-items: center; font-size: 0.78rem; padding: 4px 12px; border-radius: 100px; border: 1px solid var(--gray-200); color: var(--gray-600); background: var(--gray-50); }

/* ---- Testimonials ---- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.25rem; }
.tcard { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.5rem; background: var(--white); transition: box-shadow var(--transition); }
.tcard:hover { box-shadow: var(--shadow-md); }
.tcard-stars { display: flex; gap: 3px; margin-bottom: 1rem; }
.tcard-stars span { color: #f59e0b; font-size: 13px; }
.tcard p { font-size: 0.875rem; margin-bottom: 1.25rem; }
.tcard-footer { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--gray-100); padding-top: 1rem; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--gray-100); border: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 500; color: var(--gray-600); flex-shrink: 0; }
.tcard-name { font-size: 0.875rem; font-weight: 500; color: var(--black); }
.tcard-role { font-size: 0.75rem; color: var(--gray-400); }
.tcard-link { font-size: 0.72rem; color: var(--gray-400); }

/* ---- FAQ ---- */
.faq-list { max-width: 640px; }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-question { width: 100%; background: none; border: none; text-align: left; padding: 1.25rem 0; font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 500; color: var(--black); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-icon { width: 20px; height: 20px; border: 1px solid var(--gray-300); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all var(--transition); font-size: 14px; color: var(--gray-500); }
.faq-item.open .faq-icon { background: var(--black); border-color: var(--black); color: var(--white); transform: rotate(45deg); }
.faq-answer { display: none; padding-bottom: 1.25rem; }
.faq-item.open .faq-answer { display: block; }
.faq-answer p { font-size: 0.875rem; }

/* ---- CTA Band ---- */
.cta-band { background: var(--gray-900); padding: 5rem 2rem; text-align: center; }
.cta-band h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-band p { color: var(--gray-400); margin-bottom: 2rem; }
.cta-band .label { color: var(--gray-500); }

/* ---- Contact Form ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--gray-700); margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 10px 14px;
  font-family: var(--font-sans); font-size: 0.9375rem; color: var(--gray-900);
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--black); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success { display: none; padding: 14px 20px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius-md); font-size: 0.875rem; color: #15803d; margin-top: 1rem; }
.form-error { color: #dc2626; font-size: 0.78rem; margin-top: 4px; }

/* ---- Contact Info ---- */
.contact-info-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 1.5rem; }
.contact-info-icon { width: 38px; height: 38px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-label { font-size: 0.78rem; color: var(--gray-400); margin-bottom: 2px; }
.contact-info-value { font-size: 0.9375rem; font-weight: 500; color: var(--black); }

/* ---- Blog ---- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; }
.blog-card { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow var(--transition); }
.blog-card:hover { box-shadow: var(--shadow-md); }
.blog-thumb { height: 180px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; font-size: 0.8125rem; color: var(--gray-400); }
.blog-body { padding: 1.25rem; }
.blog-tag { font-size: 0.72rem; color: var(--gray-400); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 0.5rem; }
.blog-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.blog-card p { font-size: 0.8125rem; }
.blog-meta { display: flex; align-items: center; gap: 8px; margin-top: 1rem; font-size: 0.75rem; color: var(--gray-400); }
.blog-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gray-300); }

/* ---- Landing Pages ---- */
.landing-hero { padding: 5rem 0 4rem; }
.problem-block { background: var(--gray-900); color: var(--white); padding: 4rem 0; }
.problem-block h2 { color: var(--white); }
.problem-block p { color: var(--gray-400); }
.problem-list { list-style: none; margin-top: 2rem; }
.problem-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 1rem; font-size: 0.9375rem; color: var(--gray-300); }
.problem-x { width: 18px; height: 18px; border-radius: 50%; background: #7f1d1d; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; font-size: 10px; color: #fca5a5; }
.solution-list { list-style: none; margin-top: 2rem; }
.solution-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 1rem; font-size: 0.9375rem; color: var(--gray-600); }
.solution-check { width: 18px; height: 18px; border-radius: 50%; background: var(--black); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 3px; }
.solution-check::after { content:''; width:6px; height:3px; border-left:1.5px solid #fff; border-bottom:1.5px solid #fff; transform:rotate(-45deg) translate(1px,-1px); display:block; }
.price-card { border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 2.5rem; }
.price-card.featured { border-color: var(--black); border-width: 2px; }
.price-amount { font-size: 2.5rem; font-weight: 500; letter-spacing: -1.5px; color: var(--black); }
.price-period { font-size: 0.875rem; color: var(--gray-400); }

/* ---- Label ---- */
.label { font-size: 0.72rem; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--gray-400); margin-bottom: 0.75rem; }

/* ---- Section Header ---- */
.section-header { margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { max-width: 500px; }

/* ---- Page Header ---- */
.page-header { padding: 5rem 0 3.5rem; border-bottom: 1px solid var(--gray-200); margin-bottom: 4rem; }
.page-header h1 { margin-bottom: 0.75rem; }
.page-header p { font-size: 1.0625rem; max-width: 520px; }

/* ---- Footer ---- */
.footer { padding: 4rem 0 0; border-top: 1px solid var(--gray-200); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-col h5 { font-size: 0.8125rem; font-weight: 500; color: var(--black); margin-bottom: 1.25rem; }
.footer-col a { display: block; font-size: 0.8125rem; color: var(--gray-500); margin-bottom: 0.6rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--black); }
.footer-brand { font-size: 1rem; font-weight: 600; letter-spacing: -0.3px; margin-bottom: 0.75rem; }
.footer-brand span { font-weight: 400; color: var(--gray-400); }
.footer-desc { font-size: 0.8125rem; color: var(--gray-500); line-height: 1.7; max-width: 200px; margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid var(--gray-200); padding: 1.25rem 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom p { font-size: 0.78rem; color: var(--gray-400); }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.bg-gray { background: var(--gray-50); }
.border-top { border-top: 1px solid var(--gray-200); }
.border-bottom { border-bottom: 1px solid var(--gray-200); }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; } .items-center { align-items: center; } .gap-2 { gap: 0.5rem; } .gap-3 { gap: 0.75rem; }
.hidden { display: none !important; }

/* ---- Spinner ---- */
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .founder-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links, .nav-actions .btn-outline { display: none; }
  .nav-hamburger { display: block; }
  .hero { padding: 4rem 0 3rem; }
  .hero h1 { font-size: 1.9rem; }
  .stat-item { border-bottom: 1px solid var(--gray-200); border-right: none; }
  .stat-item:last-child { border-bottom: none; }
  .service-card { border-right: none; }
  .process-step { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .process-step:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .trust-bar { gap: 1rem; }
  .section { padding: 3.5rem 0; }
}

/* ---- Mobile Nav ---- */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: var(--white); padding: 1.5rem 2rem;
  flex-direction: column; gap: 0;
}
.mobile-nav.open { display: flex; }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.mobile-nav a { display: block; font-size: 1.25rem; font-weight: 500; color: var(--black); padding: 1rem 0; border-bottom: 1px solid var(--gray-100); }
.mobile-nav-close { background: none; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); width: 36px; height: 36px; cursor: pointer; font-size: 18px; color: var(--gray-600); display: flex; align-items: center; justify-content: center; }
