/* RealPrimeTech — production stylesheet v1 */
/* Palette: bg #FFFFFF · alt #FAFAF9 · border #EFEEEC · ink #111110 · body #5F5E5B · meta #787774 · accent #2F6FEB */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.smooth { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html.smooth { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: #FFFFFF;
  color: #5F5E5B;
  font-family: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: #2F6FEB; text-decoration: none; }
a:hover { color: #1D5FDB; }
:focus-visible { outline: 2px solid #2F6FEB; outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1160px; margin: 0 auto; }
.narrow { max-width: 680px; margin: 0 auto; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 40px;
  background: rgba(255,255,255,0.88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid #EFEEEC;
}
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.nav-links a { color: #5F5E5B; }
.nav-links a:hover { color: #111110; }
.nav-links a[aria-current="page"] { color: #111110; font-weight: 600; }
.btn, .nav-cta {
  display: inline-block; color: #FFFFFF !important; background: #2F6FEB;
  border: none; border-radius: 9px; font-weight: 600; cursor: pointer;
  font-family: inherit;
}
.nav-cta { padding: 9px 18px; font-size: 15px; }
.btn { padding: 14px 28px; font-size: 16px; text-align: center; }
.btn:hover, .nav-cta:hover { background: #1D5FDB; color: #FFFFFF !important; }
.btn-ghost { display: inline-block; color: #2F6FEB !important; background: #F1F5FE; padding: 14px 28px; border-radius: 9px; font-weight: 600; font-size: 16px; text-align: center; }
.btn-ghost:hover { background: #E3EDFF; color: #2F6FEB !important; }
.nav-toggle { display: none; }
.nav-overlay { display: none; position: fixed; left: 0; right: 0; top: 64px; bottom: 0; height: auto; background: rgba(10, 13, 20, 0.4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); z-index: 99; }
.nav-overlay.open { display: block; }
body.menu-open { overflow: hidden; }

@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; margin-left: auto; margin-right: 12px;
    background: none; border: none; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; width: 24px; background: #111110; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #FFFFFF; border-bottom: 1px solid #EFEEEC;
    padding: 8px 20px 16px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-cta { display: none; }
  .nav-links a { padding: 13px 4px; font-size: 16px; border-bottom: 1px solid #F5F4F2; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links .nav-cta { margin-top: 10px; text-align: center; padding: 13px 18px; border-bottom: none; }
}

/* ---------- Sections ---------- */
.section { padding: 110px 40px; }
.section-alt { background: #FAFAF9; border-top: 1px solid #EFEEEC; border-bottom: 1px solid #EFEEEC; }
h1, h2, h3, h4 { color: #111110; margin: 0; }
.h-section { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.section-intro { max-width: 640px; margin-bottom: 56px; }
.section-intro p { margin: 16px 0 0; font-size: 18px; text-wrap: pretty; }

/* ---------- Hero ---------- */
.fold { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-top: 64px; }
.hero { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 40px; text-align: center; }
.hero-inner { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero h1 { font-size: clamp(38px, 5.5vw, 64px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.hero h1 .accent { color: #2F6FEB; }
.hero p { margin: 0; max-width: 700px; font-size: 19px; text-wrap: pretty; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.hero-ctas .btn, .hero-ctas .btn-ghost { min-width: 250px; }
@media (max-width: 640px) {
  .hero-ctas { flex-direction: column; width: 100%; max-width: 340px; margin-left: auto; margin-right: auto; }
  .hero-ctas .btn, .hero-ctas .btn-ghost { width: 100%; min-width: 0; }
}

/* ---------- Trust bar ---------- */
.trust { padding: 34px 40px; border-top: 1px solid #EFEEEC; border-bottom: 1px solid #EFEEEC; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; text-align: center; }
.trust-value { color: #111110; font-size: 36px; font-weight: 800; letter-spacing: -0.02em; }
.trust-label { font-size: 14px; color: #787774; text-wrap: pretty; margin-top: 6px; }

/* ---------- Card grids ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 40px; }
.grid-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 36px; }

.card {
  background: #FAFAF9; border: 1px solid #EFEEEC; border-radius: 14px;
  padding: 32px 28px; display: flex; flex-direction: column; gap: 14px;
}
.card-num {
  width: 38px; height: 38px; border-radius: 9px; background: #E3EDFF;
  display: flex; align-items: center; justify-content: center;
  color: #2F6FEB; font-weight: 700; font-size: 15px;
}
.card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.card p { margin: 0; font-size: 15.5px; text-wrap: pretty; }

/* Article cards are links */
a.article-card {
  background: #FFFFFF; border: 1px solid #EFEEEC; border-radius: 14px;
  padding: 32px 28px; display: flex; flex-direction: column; gap: 14px;
  color: inherit; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
a.article-card.on-alt { background: #FFFFFF; }
a.article-card.on-white { background: #FAFAF9; }
@media (hover: hover) {
  a.article-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(17,17,16,0.07); color: inherit; }
}
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tag { font-size: 12.5px; font-weight: 700; color: #2F6FEB; letter-spacing: 0.05em; text-transform: uppercase; }
.meta { font-size: 13px; color: #787774; }
a.article-card h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
a.article-card p { margin: 0; font-size: 15px; text-wrap: pretty; color: #5F5E5B; }
a.article-card .card-date { margin-top: auto; font-size: 13.5px; color: #787774; }

/* ---------- Steps / Why ---------- */
.step { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid #E5E4E1; padding-top: 22px; }
.step-head { display: flex; align-items: baseline; gap: 10px; }
.step-num { color: #2F6FEB; font-weight: 800; font-size: 15px; letter-spacing: 0.06em; }
.step h3 { font-size: 20px; font-weight: 700; }
.step p, .why p { margin: 0; font-size: 15.5px; text-wrap: pretty; }
.why { display: flex; flex-direction: column; gap: 12px; }
.why-rule { width: 36px; height: 3px; border-radius: 2px; background: #2F6FEB; }
.why h3 { font-size: 21px; font-weight: 700; }

/* ---------- About ---------- */
.about p { margin: 0 0 20px; font-size: 17.5px; text-wrap: pretty; }
.about p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-inner { max-width: 640px; margin: 0 auto; }
.contact-inner > p { margin: 14px 0 40px; font-size: 17.5px; text-wrap: pretty; }
form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }
input, textarea {
  background: #FAFAF9; border: 1px solid #E5E4E1; border-radius: 9px;
  padding: 14px 16px; color: #111110; font-size: 15.5px; font-family: inherit;
  width: 100%;
}
input:focus, textarea:focus { outline: none; border-color: #2F6FEB; }
textarea { resize: vertical; min-height: 120px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { margin: 24px 0 0; font-size: 15px; text-align: center; }
.form-status { margin: 0; font-size: 15.5px; text-align: center; display: none; }
.form-status.ok { display: block; color: #111110; font-weight: 600; }
.form-status.err { display: block; color: #B4231F; }

/* ---------- Blog index ---------- */
.blog-hero { padding: 150px 40px 64px; border-bottom: 1px solid #EFEEEC; }
.blog-hero h1 { font-size: clamp(40px, 5.5vw, 60px); font-weight: 800; letter-spacing: -0.03em; }
.blog-hero p { margin: 16px 0 0; max-width: 640px; font-size: 18.5px; text-wrap: pretty; }
.blog-grid-section { padding: 64px 40px 110px; background: #FAFAF9; }

/* ---------- Article ---------- */
.article { padding: 140px 40px 90px; }
.backlink { display: inline-block; font-size: 14.5px; font-weight: 600; margin-bottom: 36px; }
.article-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; font-size: 13.5px; flex-wrap: wrap; }
.article-meta .meta { font-size: 13.5px; }
.article h1 { font-size: clamp(30px, 4.5vw, 40px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 36px; }
.article h2 {
  margin: 40px 0 18px; font-size: 25px; font-weight: 700; letter-spacing: -0.015em;
  padding-left: 14px; border-left: 3px solid #2F6FEB; line-height: 1.25;
}
.article p { margin: 0 0 20px; font-size: 18px; line-height: 1.75; text-wrap: pretty; }
.article p strong { color: #111110; }
.article blockquote {
  margin: 32px 0; background: #F1F5FE; border-radius: 12px; padding: 26px 28px;
  color: #111110; font-size: 20px; font-weight: 600; line-height: 1.5;
  letter-spacing: -0.01em; text-wrap: pretty;
}
.article .bridge { margin: 12px 0 0; font-size: 17px; line-height: 1.7; font-style: italic; color: #787774; }
.article-cta {
  margin-top: 44px; background: #FAFAF9; border: 1px solid #EFEEEC; border-radius: 14px;
  padding: 28px; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.article-cta span { color: #111110; font-weight: 600; font-size: 16.5px; }
.article-cta .btn { padding: 12px 24px; font-size: 15px; }
.more { max-width: 1160px; margin: 70px auto 0; }
.more h3 { margin: 0 0 24px; font-size: 24px; font-weight: 700; letter-spacing: -0.015em; }
.more .grid-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.more a.article-card { background: #FAFAF9; padding: 26px 24px; gap: 10px; }
.more a.article-card h4 { font-size: 17.5px; font-weight: 700; line-height: 1.3; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid #EFEEEC; background: #FAFAF9; padding: 48px 40px; text-align: center; font-size: 14.5px; }
.footer-inner { display: flex; flex-direction: column; gap: 8px; max-width: 1160px; margin: 0 auto; }
.footer-name { color: #111110; font-weight: 700; }
footer a { color: #5F5E5B; }
footer a:hover { color: #2F6FEB; }
.footer-copy { margin-top: 12px; color: #787774; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Mobile spacing ---------- */
@media (max-width: 640px) {
  .section { padding: 72px 24px; }
  .hero { padding: 20px 24px; }
  .trust { padding: 28px 20px; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .trust-value { font-size: 28px; }
  .trust-label { font-size: 13px; }
  .blog-hero { padding: 112px 24px 48px; }
  .blog-grid-section { padding: 48px 24px 80px; }
  .article { padding: 104px 24px 70px; }
  .article p { font-size: 17px; }
  .article blockquote { padding: 20px; font-size: 18.5px; }
  .h-section { font-size: 34px; }
  footer { padding: 40px 24px; }
}
