/* ═══════════════════════════════════════════
   GRANDIFY — STYLE.CSS  (Light / Minimal)
   Clean, professional. Apple × Stripe inspired.
═══════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── DESIGN TOKENS ── */
:root {
  --white:       #ffffff;
  --gray-50:     #f9fafb;
  --gray-100:    #f3f4f6;
  --gray-200:    #e5e7eb;
  --gray-300:    #d1d5db;
  --gray-400:    #9ca3af;
  --gray-500:    #6b7280;
  --gray-700:    #374151;
  --gray-900:    #111827;

  --accent:      #1d4ed8;    /* single clean blue */
  --accent-h:    #1e40af;    /* hover shade        */

  --text:        var(--gray-900);
  --text-2:      var(--gray-500);
  --text-3:      var(--gray-400);
  --border:      var(--gray-200);
  --divider:     var(--gray-300);   /* section-level separators — more prominent */

  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;

  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --speed:       0.3s;

  font-size: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

/* ── CONTAINER ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── TYPOGRAPHY HELPERS ── */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--text);
}

.section-sub {
  font-size: 1.08rem;
  color: var(--text-2);
  line-height: 1.78;
  max-width: 480px;
}

.section-head {
  max-width: 680px;
  margin-bottom: 4.5rem;
}
.section-head .section-title { margin-top: 0.3rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.78rem 1.85rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background var(--speed) var(--ease),
              color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease),
              transform var(--speed) var(--ease);
}

.btn-dark {
  background: var(--gray-900);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--gray-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.btn-outline {
  background: transparent;
  color: var(--gray-700);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--gray-400);
  transform: translateY(-1px);
}

.btn-full { width: 100%; justify-content: center; }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  padding: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--speed) var(--ease);
}
.navbar.scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--gray-900);
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--gray-500);
  transition: color var(--speed) var(--ease);
}
.nav-links a:hover { color: var(--gray-900); }

.nav-cta {
  padding: 0.52rem 1.2rem;
  border-radius: 100px;
  background: var(--gray-900) !important;
  color: var(--white) !important;
  font-size: 0.85rem !important;
  transition: background var(--speed) var(--ease) !important;
}
.nav-cta:hover { background: var(--gray-700) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: var(--speed) var(--ease);
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 64px 0 0;
  background: var(--white);
  z-index: 190;
  padding: 2rem 28px;
  transform: translateX(100%);
  transition: transform var(--speed) var(--ease);
  border-top: 1px solid var(--border);
}
.drawer.open { transform: translateX(0); }
.drawer ul { list-style: none; }
.drawer ul li + li { margin-top: 1.5rem; }
.drawer ul a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  text-decoration: none;
}

.drawer-overlay {
  position: fixed;
  inset: 64px 0 0;
  background: rgba(0,0,0,0.08);
  z-index: 180;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--speed) var(--ease);
}
.drawer-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  padding: 175px 0 115px;
  background: var(--white);
}

.hero-content {
  max-width: 780px;
}

.hero-title {
  font-size: clamp(3rem, 6.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.05em;
  color: var(--gray-900);
  margin-bottom: 1.75rem;
  animation: fadeUp 0.65s var(--ease) both;
}

.hero .eyebrow {
  animation: fadeUp 0.65s var(--ease) both;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--gray-500);
  line-height: 1.72;
  margin-bottom: 2.75rem;
  max-width: 540px;
  animation: fadeUp 0.65s 0.12s var(--ease) both;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 3.25rem;
  animation: fadeUp 0.65s 0.2s var(--ease) both;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  animation: fadeUp 0.65s 0.28s var(--ease) both;
}
.proof-avatars {
  display: flex;
}
.proof-avatars img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid var(--white);
  margin-left: -10px;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.proof-avatars img:first-child { margin-left: 0; }
.hero-proof span {
  font-size: 0.875rem;
  color: var(--gray-500);
}
.hero-proof strong { color: var(--gray-900); font-weight: 600; }

.hero-divider {
  margin-top: 5.5rem;
  height: 1.5px;
  background: var(--divider);
}

.br-desk { display: block; }
@media (max-width: 600px) { .br-desk { display: none; } }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════
   TRUST BAR
══════════════════════════════════════ */
.trust {
  padding: 3.5rem 0;
  background: var(--white);
  border-bottom: 1.5px solid var(--divider);
}
.trust-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.trust-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--gray-400);
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
}
.trust-logos span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-300);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════════
   SERVICES
══════════════════════════════════════ */
.services {
  padding: 130px 0;
  background: var(--gray-50);
  border-top: 1.5px solid var(--divider);
  border-bottom: 1.5px solid var(--divider);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: var(--white);
  padding: 2.75rem;
  transition: background var(--speed) var(--ease);
}
.service-card:hover { background: var(--gray-50); }

.service-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gray-300);
  margin-bottom: 1.4rem;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.85rem;
  color: var(--gray-900);
}

.service-card p {
  font-size: 0.925rem;
  color: var(--gray-500);
  line-height: 1.72;
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   WHY GRANDIFY
══════════════════════════════════════ */
.why {
  padding: 130px 0;
  background: var(--white);
  border-bottom: 1.5px solid var(--divider);
}

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.why-left { position: sticky; top: 100px; }
.why-left .section-title { margin-top: 0.25rem; margin-bottom: 1rem; }

.why-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  padding: 2.1rem 0;
  border-bottom: 1px solid var(--border);
}
.why-item:first-child { border-top: 1px solid var(--border); }

.why-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-700);
  margin-top: 2px;
}

.why-item h4 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  color: var(--gray-900);
}
.why-item p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.68;
}

@media (max-width: 860px) {
  .why-inner { grid-template-columns: 1fr; gap: 3rem; }
  .why-left { position: static; }
}

/* ══════════════════════════════════════
   STATS
══════════════════════════════════════ */
.stats {
  padding: 130px 0;
  background: var(--gray-900);
  border-top: 1.5px solid var(--divider);
}

/* Override eyebrow for dark bg */
.stats .eyebrow {
  color: var(--gray-400);
}
.stats .section-title {
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 0;
}

.stat-item {
  background: var(--gray-900);
  padding: 3rem 2rem;
  text-align: center;
  transition: background var(--speed) var(--ease);
}
.stat-item:hover { background: #161e2e; }

.stat-value {
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.stat-label {
  font-size: 0.84rem;
  color: var(--gray-400);
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   CONTACT
══════════════════════════════════════ */
.contact {
  padding: 130px 0;
  background: var(--white);
  border-top: 1.5px solid var(--divider);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contact-left { position: sticky; top: 100px; }
.contact-left .section-title { margin-top: 0.25rem; margin-bottom: 1rem; }

.contact-detail { margin-top: 2.5rem; }
.contact-detail-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--gray-400);
  margin-bottom: 0.4rem;
}
.contact-email {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
  text-decoration: none;
  letter-spacing: -0.03em;
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: 3px;
  transition: border-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.contact-email:hover { border-color: var(--accent); color: var(--accent); }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-700);
  letter-spacing: 0.01em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
  resize: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gray-900);
  box-shadow: 0 0 0 3px rgba(17,24,39,0.07);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--gray-300);
}

.form-note {
  font-size: 0.78rem;
  color: var(--gray-400);
  text-align: center;
  margin-top: -0.25rem;
}

/* Success state */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 3rem 2rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
}
.form-success.show { display: flex; }

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-900);
}
.form-success h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
}
.form-success p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

@media (max-width: 860px) {
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .contact-left { position: static; }
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  padding: 2.5rem 0;
  border-top: 1.5px solid var(--divider);
  background: var(--white);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-logo { font-size: 1.2rem; }
.footer-copy,
.footer-right {
  font-size: 0.82rem;
  color: var(--gray-400);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--gray-400);
  transition: color var(--speed) var(--ease),
              background var(--speed) var(--ease);
  text-decoration: none;
}
.social-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.social-icon:hover {
  color: var(--gray-900);
  background: var(--gray-100);
}

@media (max-width: 560px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* ══════════════════════════════════════
   SCROLLBAR
══════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--white); }
::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-300); }

::selection { background: rgba(29,78,216,0.1); }
