*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }

:root {
  --blue: #5B6BE8;
  --dark: #111827;
  --gray: #6b7280;
  --gray-light: #f8f9fb;
  --white: #ffffff;
  --radius: 999px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--dark); line-height: 1.6; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 70px;
  background: var(--white); border-bottom: 1px solid #e5e7eb;
  transition: box-shadow .2s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.1); }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 48px; }
.nav-links { display: flex; list-style: none; gap: 1.75rem; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 500; font-size: .9rem; transition: color .2s; }
.nav-links a:hover { color: var(--blue); }

.btn { display: inline-block; padding: .65rem 1.5rem; border-radius: var(--radius); font-weight: 600; font-size: .875rem; text-decoration: none; cursor: pointer; border: none; transition: opacity .2s, transform .15s; }
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-outline-hero {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.55);
  padding: .85rem 2.25rem; font-size: 1rem; font-weight: 600;
  border-radius: var(--radius);
}
.btn-outline-hero:hover { background: rgba(255,255,255,.1); opacity: 1; }
.btn-ghost-hero {
  background: transparent; color: rgba(255,255,255,.65);
  border: 2px solid rgba(255,255,255,.2);
  padding: .85rem 2.25rem; font-size: 1rem; font-weight: 600;
  border-radius: var(--radius);
}
.btn-ghost-hero:hover { background: rgba(255,255,255,.07); color: var(--white); opacity: 1; }
.hero-cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.cta-gap { margin-top: 1.75rem; display: inline-block; }

#hamburger { display: none; background: none; border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 10px; cursor: pointer; }
#mobile-menu {
  display: none; position: fixed; inset: 0; background: var(--white);
  z-index: 200; flex-direction: column; padding: 5rem 2rem 2rem; gap: 1.5rem;
}
#mobile-menu.open { display: flex; }
#mobile-menu a { font-size: 1.1rem; font-weight: 600; color: var(--dark); text-decoration: none; padding: .75rem 0; border-bottom: 1px solid #f3f4f6; }
#close-menu { position: absolute; top: 1.2rem; right: 1.5rem; background: none; border: none; cursor: pointer; font-size: 1.5rem; color: var(--gray); }

/* TYPOGRAPHY */
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: .75rem; }
.eyebrow-light { color: rgba(255,255,255,.7); }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; margin-bottom: 1rem; }
h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
p { color: var(--gray); line-height: 1.75; margin-bottom: .5rem; }
.text-white { color: var(--white) !important; }
.text-white-muted { color: rgba(255,255,255,.7); max-width: 560px; margin: 0 auto; }

/* LAYOUT */
.container { max-width: 1100px; margin: 0 auto; padding: 0 5%; }
.section-pad { padding: 6rem 5%; }
.bg-white { background: var(--white); }
.bg-light { background: var(--gray-light); }
.bg-blue { background: var(--blue); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.col-image img { width: 100%; border-radius: 16px; object-fit: cover; display: block; }
.col-text h2 { color: var(--dark); }

/* HERO */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: url('../assets/hero-bg.jpg') center / cover no-repeat;
  padding-top: 70px; text-align: center;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.68); }
.hero-content { position: relative; z-index: 1; max-width: 820px; padding: 2rem 1.5rem; }
.hero-content h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero-content p { color: rgba(255,255,255,.75); font-size: 1.1rem; margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* SERVICES */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.card-img-wrap { height: 200px; overflow: hidden; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 1.5rem; }
.card-body h3 { color: var(--dark); }
.card-body p { color: var(--gray); font-size: .9rem; margin: 0; }

/* CONTACT */
.col-form form { display: flex; flex-direction: column; gap: 1rem; }
input, textarea {
  padding: .85rem 1rem; border: 1px solid #e5e7eb; border-radius: 10px;
  font-family: inherit; font-size: .9rem; color: var(--dark);
  transition: border-color .2s; background: var(--white); width: 100%;
}
input:focus, textarea:focus { outline: none; border-color: var(--blue); }
textarea { min-height: 140px; resize: vertical; }
.col-form .btn { align-self: stretch; text-align: center; padding: .85rem 1.5rem; }

/* WHO WE WORK WITH */
.who-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.who-card { background: var(--white); border-radius: 16px; padding: 2rem; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.who-card .who-label { font-weight: 700; font-size: 1rem; color: var(--dark); margin-bottom: .5rem; }

/* WHY ENCRYPT */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.why-item { background: rgba(255,255,255,.1); border-radius: 16px; padding: 1.75rem; }
.why-item p { color: rgba(255,255,255,.85); margin: 0; font-size: .95rem; }

/* CASE STUDIES */
.case-studies { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.case-card { border-left: 4px solid var(--blue); padding: 1.75rem; background: var(--gray-light); border-radius: 0 16px 16px 0; }
.case-card .case-label { font-weight: 700; color: var(--dark); margin-bottom: .5rem; font-size: .95rem; }
.case-stat { font-size: 2.25rem; font-weight: 800; color: var(--blue); line-height: 1; margin: .5rem 0 .75rem; letter-spacing: -.02em; }
.case-card p { margin: 0; }

/* FREE CONSULT SECTION */
.consult-section {
  background: #0d141a; padding: 5rem 5%; text-align: center;
  position: relative; overflow: hidden;
}
.consult-section::before {
  content: ''; position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; pointer-events: none;
  background: radial-gradient(circle, rgba(91,107,232,.2) 0%, transparent 70%);
}
.consult-inner { max-width: 640px; margin: 0 auto; position: relative; }
.consult-form { display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.consult-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.consult-form input, .consult-form textarea {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px; padding: .85rem 1rem; font-family: inherit;
  font-size: .9rem; color: #fff; width: 100%;
}
.consult-form input::placeholder, .consult-form textarea::placeholder { color: rgba(255,255,255,.35); }
.consult-form input:focus, .consult-form textarea:focus { outline: none; border-color: var(--blue); }
.consult-form textarea { min-height: 120px; resize: vertical; }
.consult-form .btn { align-self: stretch; text-align: center; font-size: 1rem; padding: .85rem 2rem; }

/* FOOTER */
footer { background: var(--dark); padding: 2.5rem 5% 1.5rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-logo img { height: 44px; filter: brightness(0) invert(1); }
.footer-nav { list-style: none; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a { color: rgba(255,255,255,.5); font-size: .875rem; text-decoration: none; transition: color .2s; }
.footer-nav a:hover { color: var(--white); }
.footer-bottom { max-width: 1100px; margin: 1.25rem auto 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-bottom span { color: rgba(255,255,255,.3); font-size: .8rem; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .service-cards { grid-template-columns: 1fr 1fr; }
  .who-cards { grid-template-columns: 1fr 1fr; }
  .case-studies { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links, nav > .btn-dark { display: none; }
  #hamburger { display: flex; }
  .service-cards { grid-template-columns: 1fr; }
  .who-cards { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .consult-form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; }
}
