/* GreyWing - one stylesheet for the whole site */

@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(fonts/poppins-400.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url(fonts/poppins-500.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(fonts/poppins-600.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url(fonts/poppins-700.woff2) format("woff2"); }

:root {
  --purple: #6a49f2;
  --purple-dark: #5332d5;
  --navy: #2a2470;
  --text: #3e3f66;
  --muted: #6b6c8f;
  --tint: #f5f3ff;
  --line: #e6e2fb;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(42, 36, 112, .08);
  --wrap: 1170px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; font: 400 17px/1.75 Poppins, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; }
a { color: var(--purple); }
a:hover { color: var(--purple-dark); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.3; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1.1em; }
em { font-style: normal; color: var(--purple); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { display: none !important; }   /* spam trap: fully hidden, so browser auto-fill never touches it */
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #b9a8ff; outline-offset: 2px; }

/* Buttons */
.btn { display: inline-block; background: var(--purple); color: #fff; font-weight: 600; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; padding: 14px 30px; border-radius: 50px; border: 0; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--purple-dark); color: #fff; transform: translateY(-1px); }
.btn-dark { background: var(--navy); }
.btn-dark:hover { background: #1b174d; }
.btn-light { background: #fff; color: var(--purple); }
.btn-light:hover { background: var(--tint); color: var(--purple-dark); }

/* Header */
.site-header { position: absolute; inset: 0 0 auto; z-index: 20; }
/* no backdrop-filter here: it would trap the fixed mobile menu inside the header */
.is-home .site-header { position: sticky; top: 0; background: #fff; transition: box-shadow .2s; }
.is-home.scrolled .site-header { box-shadow: 0 4px 20px rgba(42, 36, 112, .08); }   /* only once the header is stuck over content */
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 20px; }
.logo img { display: block; width: 150px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { font-size: 14px; font-weight: 500; text-decoration: none; color: #fff; }
.is-home .site-nav ul a { color: var(--navy); }
.site-nav ul a:hover, .site-nav ul a[aria-current] { color: #d9d0ff; }
.is-home .site-nav ul a:hover, .is-home .site-nav ul a[aria-current] { color: var(--purple); }
.btn-header { padding: 11px 24px; font-size: 13px; }
.is-inner .btn-header { background: #fff; color: var(--purple); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span:not(.sr) { display: block; width: 24px; height: 2px; margin: 5px 0; background: #fff; transition: transform .2s, opacity .2s; }
.is-home .menu-toggle span:not(.sr) { background: var(--navy); }

/* Inner-page hero */
.page-hero { position: relative; background: linear-gradient(135deg, #7656f5 0%, var(--purple) 50%, #5a37e8 100%); color: #fff; text-align: center; padding: 150px 0 120px; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(255, 255, 255, .06); top: -220px; right: -120px; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 44px); margin-bottom: .35em; position: relative; }
.hero-intro { max-width: 720px; margin: 0 auto 1em; opacity: .9; position: relative; }
.crumbs ol { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 10px; list-style: none; margin: 0; padding: 0; font-size: 14px; position: relative; }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .7; }
.crumbs a { color: #fff; text-decoration: none; font-weight: 500; }
.crumbs a:hover { text-decoration: underline; color: #fff; }
.crumbs [aria-current] { opacity: .85; }
.hero-wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 80px; fill: var(--white); }

/* Sections */
.section { padding: 80px 0; }
.section-tint { background: var(--tint); }
.section-title { font-size: clamp(26px, 3.4vw, 40px); }
.section-sub { color: var(--muted); max-width: 720px; margin: 0 auto 2.2em; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 48px; }
.prose-wide { max-width: 900px; }
.lead { font-size: 18px; color: var(--navy); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.rounded { border-radius: var(--radius); display: block; }

/* Home hero */
.home-hero { padding: 60px 0 90px; background: linear-gradient(180deg, #fff 0%, var(--tint) 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-text h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.2; }
.hero-text p { font-size: 17px; color: var(--muted); max-width: 520px; }
.hero-art { position: relative; height: 560px; }
.hero-circle { position: absolute; width: 440px; height: 440px; border-radius: 50%; background: var(--purple); left: 50%; top: 52%; transform: translate(-50%, -50%); }
.phone { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 270px; padding: 10px; background: #1b1b2f; border-radius: 40px; box-shadow: 0 30px 60px rgba(42, 36, 112, .3); }
.phone img { display: block; border-radius: 30px; }
.float { position: absolute; width: 81px; filter: drop-shadow(0 12px 20px rgba(106, 73, 242, .25)); animation: bob 5s ease-in-out infinite; }
.float-1 { right: 4%; top: 18%; }
.float-2 { left: 6%; bottom: 14%; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } .btn:hover { transform: none; } }

/* Domain logo row */
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 48px; list-style: none; margin: 0; padding: 0; }
.logo-row img { height: 44px; width: auto; opacity: .85; transition: opacity .2s; }
.logo-row img:hover { opacity: 1; }

/* Feature cards */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: left; }
.feature img { width: 64px; height: 64px; margin-bottom: 16px; }
.feature h3 { font-size: 18px; }
.feature p { font-size: 15px; color: var(--muted); margin: 0; }

/* Stats */
.stats { display: grid; gap: 18px; list-style: none; margin: 0; padding: 0; }
.stats li { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 28px; color: var(--muted); }
.stats strong { display: block; font-size: 36px; color: var(--purple); line-height: 1.2; }

/* Post cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post-grid-2 { grid-template-columns: repeat(2, 1fr); }
.post-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s; }
.post-card:hover { transform: translateY(-4px); }
.post-thumb img { display: block; width: 100%; aspect-ratio: 500 / 286; object-fit: cover; }
.post-body { padding: 22px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.post-body time { font-size: 13px; color: var(--muted); }
.post-body h3 { font-size: 19px; margin: .3em 0 .5em; }
.post-body h3 a { color: var(--navy); text-decoration: none; }
.post-body h3 a:hover { color: var(--purple); }
.post-body p { font-size: 15px; color: var(--muted); }
.read-more { margin-top: auto; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }

/* Article */
.article { padding-top: 40px; }
.article-card { max-width: 900px; margin: -80px auto 0; position: relative; padding: 40px 56px 48px; }
.article-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; font-size: 14px; color: var(--muted); }
.article-meta a { color: var(--navy); }
.article-hero { margin: 10px 0 36px; }
.article-hero img { display: block; width: 100%; border-radius: 12px; }
.prose { font-size: 17px; }
.prose h2 { font-size: 28px; margin-top: 1.6em; }
.prose h3 { font-size: 22px; margin-top: 1.5em; }
.prose h4 { font-size: 18px; margin-top: 1.4em; }
.prose img { display: block; margin: 24px auto; border-radius: 8px; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li p { margin: 0; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--purple); color: var(--navy); }
.prose blockquote.pull { border: 0; background: var(--tint); border-radius: var(--radius); padding: 30px 34px; text-align: center; }
.prose blockquote.pull p { font-size: 22px; font-weight: 600; line-height: 1.45; margin-bottom: .6em; }
.prose blockquote.pull cite { font-style: normal; color: var(--muted); font-size: 15px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose a { overflow-wrap: anywhere; }
.prose [id] { scroll-margin-top: 24px; }
.prose .video { margin: 28px 0; aspect-ratio: 16 / 9; background: #111; border-radius: 12px; overflow: hidden; }
.prose .video iframe { width: 100%; height: 100%; border: 0; display: block; }
.prose .file-links { display: flex; flex-wrap: wrap; gap: 10px; }
.prose .file-links a { display: inline-block; background: var(--tint); border: 1px solid var(--line); color: var(--navy); font-size: 14px; font-weight: 500; text-decoration: none; padding: 7px 16px; border-radius: 50px; }
.prose .file-links a:hover { background: var(--purple); border-color: var(--purple); color: #fff; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.share span { font-weight: 600; color: var(--navy); }
.pager { max-width: 900px; margin: 30px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pager a { display: block; background: var(--tint); border-radius: 12px; padding: 18px 22px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: 15px; }
.pager a:hover { background: #ebe6ff; }
.pager span { display: block; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pager-next { grid-column: 2; text-align: right; }

/* FAQs */
.faq-group { font-size: 24px; margin-top: 1.4em; }
.faq-group:first-child { margin-top: 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; }
.faq summary { cursor: pointer; padding: 18px 56px 18px 24px; font-weight: 600; color: var(--navy); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--purple); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 24px 8px; }

/* CTA */
.cta { background: linear-gradient(135deg, #7656f5, var(--purple-dark)); color: #fff; border-radius: 24px; padding: 56px 40px; text-align: center; }
.cta h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); }
.cta p { opacity: .9; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.contact-form { margin-top: -120px; position: relative; text-align: center; }
.contact-form form { display: grid; gap: 14px; text-align: left; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel], .contact-form textarea { width: 100%; font: inherit; font-size: 15px; color: var(--navy); padding: 13px 18px; border: 1px solid #d6d0f5; border-radius: 10px; background: #fff; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--purple); outline: none; box-shadow: 0 0 0 3px rgba(106, 73, 242, .15); }
.contact-form [aria-invalid] { border-color: #d6455d; }
.field-error { color: #c0304a; font-size: 13px; margin-top: -8px; }
.contact-form .btn { justify-self: start; }
.notice { padding: 14px 18px; border-radius: 10px; text-align: left; font-size: 15px; }
.notice-ok { background: #e6f7ee; color: #17603a; }
.notice-bad { background: #fdecef; color: #8e1f33; }
.contact-side img { width: 60px; }
.contact-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 18px; align-items: center; }
.contact-list h3 { font-size: 17px; margin: 0; }

/* Footer */
.site-footer { background: var(--purple-dark); color: #e9e4ff; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 70px; padding-bottom: 50px; }
.site-footer img { width: 160px; margin-bottom: 14px; }
.site-footer h2 { color: #fff; font-size: 18px; margin-bottom: 1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #e9e4ff; text-decoration: none; font-size: 15px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bar { background: #4628c4; font-size: 13px; }
.footer-bar .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; padding-top: 18px; padding-bottom: 18px; }
.footer-bar p { margin: 0; }
.footer-bar a { font-size: 13px; text-decoration: underline; }

/* Tablet */
@media (max-width: 991px) {
  .menu-toggle { display: block; position: relative; z-index: 31; }
  .site-nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); background: #fff; flex-direction: column; align-items: flex-start; gap: 28px; padding: 100px 32px 32px; box-shadow: -10px 0 40px rgba(0, 0, 0, .15); transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility 0s .25s; z-index: 30; }
  .site-nav ul { flex-direction: column; gap: 18px; }
  .site-nav ul a, .is-inner .site-nav ul a { color: var(--navy); font-size: 17px; }
  .is-inner .btn-header { background: var(--purple); color: #fff; }
  .nav-open .site-nav { transform: none; visibility: visible; transition: transform .25s; }
  .nav-open .menu-toggle span:not(.sr) { background: var(--navy); }
  .nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { height: 480px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .contact-form { margin-top: -100px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .card { padding: 28px 22px; }
  .page-hero { padding: 120px 0 100px; }
  .hero-art { height: 420px; }
  .hero-circle { width: 320px; height: 320px; }
  .phone { width: 210px; border-radius: 32px; }
  .phone img { border-radius: 24px; }
  .float { width: 60px; }
  .feature-grid, .post-grid, .post-grid-2 { grid-template-columns: 1fr; }
  .article-card { padding: 28px 20px 32px; margin-top: -60px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 23px; }
  .prose h3 { font-size: 19px; }
  .prose blockquote.pull p { font-size: 18px; }
  .pager { grid-template-columns: 1fr; }
  .pager-next { grid-column: auto; }
  .logo-row { gap: 22px 32px; }
  .logo-row img { height: 34px; }
  .cta { padding: 40px 22px; }
}
