/* Createch — PHP Security Update landing page */
:root {
  --navy: #0b1d45;
  --navy-2: #0f2a5f;
  --blue: #1d5bd8;
  --blue-dark: #1748ad;
  --blue-soft: #e8f0fd;
  --orange: #f26b1d;
  --orange-dark: #d95a10;
  --red: #dc2626;
  --red-soft: #fdecec;
  --ink: #0f1f3d;
  --text: #3b4a63;
  --muted: #64748b;
  --line: #e3e9f3;
  --bg-soft: #f4f7fc;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(15, 31, 61, .08);
  --shadow-lg: 0 24px 60px rgba(4, 14, 40, .35);
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 8px; border: 0; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(242, 107, 29, .3); }
.btn-orange:hover { background: var(--orange-dark); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-ghost { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn[disabled] { opacity: .75; cursor: progress; transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { height: 40px; width: auto; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; padding: 36px 0 44px; }
.hero-bg {
  position: absolute; inset: 0; overflow: hidden; background: #050d24;
}
/* Photo: sized and offset so the laptop's shield sits between the copy and the form. */
.hero-bg::before {
  content: ""; position: absolute; top: 0; bottom: 0;
  width: 1500px;
  left: calc(50% + 90px - 1012px);
  background: url("../img/hero-1600.jpg") center 42% / 100% auto no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  background-image: image-set(url("../img/hero-1600.webp") type("image/webp"), url("../img/hero-1600.jpg") type("image/jpeg"));
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 13, 36, .94) 0%, rgba(5, 13, 36, .82) 30%, rgba(5, 13, 36, .35) 52%, rgba(5, 13, 36, .15) 70%, rgba(5, 13, 36, .45) 100%),
    linear-gradient(180deg, rgba(5, 13, 36, .2) 0%, transparent 30%, transparent 75%, rgba(5, 13, 36, .5) 100%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: center; }
.hero-copy { position: relative; z-index: 1; }
.alert-pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 6px; margin-bottom: 20px;
}
.hero h1 { color: #fff; font-size: clamp(32px, 3.3vw, 46px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 20px; }
.accent { color: var(--orange); }
.nowrap { white-space: nowrap; }
.lead { font-size: 18px; color: #dbe6fb; max-width: 600px; margin-bottom: 26px; }
.check-list { display: grid; grid-template-columns: repeat(2, max-content); gap: 14px 30px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: #fff; }
.check-list i { color: var(--orange); font-size: 22px; background: #fff; border-radius: 50%; line-height: 1; }
.hero-art { position: absolute; right: 410px; top: 46%; width: 160px; height: 0; pointer-events: none; }
.php-badge {
  position: absolute; top: -165px; left: -10px; width: 92px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; font: italic 800 30px/1 Inter, sans-serif; color: #e0ecff;
  background: radial-gradient(circle at 40% 35%, #4f6fd1, #2b3f8f); border: 2px solid #8fb4ff;
  box-shadow: 0 0 30px rgba(96, 165, 250, .6); transform: rotate(-8deg);
}

/* Lead form card */
.form-card { background: #fff; color: var(--text); border-radius: 14px; padding: 28px; box-shadow: var(--shadow-lg); scroll-margin-top: 100px; }
.form-card h2 { font-size: 23px; font-weight: 800; margin-bottom: 10px; }
.form-intro { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.lead-form .field { position: relative; margin-top: 12px; }
.lead-form .field i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #7b8aa3; font-size: 15px; pointer-events: none; }
.lead-form input {
  width: 100%; height: 50px; padding: 0 14px 0 44px; font-family: inherit; font-size: 15px; color: var(--ink);
  background: #f8fafd; border: 1px solid #d9e1ee; border-radius: 8px; transition: border-color .15s, box-shadow .15s;
}
.lead-form input::placeholder { color: #7b8aa3; }
.lead-form input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(29, 91, 216, .15); }
.lead-form input[aria-invalid="true"] { border-color: var(--red); }
.field-error { color: var(--red); font-size: 13px; margin: 5px 2px 0; }
.form-alert { background: var(--red-soft); color: #9b1c1c; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin-bottom: 6px; }
.lead-form .btn { margin-top: 18px; }
.form-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); margin-top: 14px; }
.form-note i { margin-top: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Benefits strip */
.benefits { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.benefit { display: flex; gap: 14px; align-items: flex-start; padding: 22px 20px; }
.benefit + .benefit { border-left: 1px solid var(--line); }
.b-icon { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--blue); font-size: 20px; box-shadow: 0 4px 12px rgba(29, 91, 216, .12); }
.benefit h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.benefit p { font-size: 13.5px; color: var(--muted); }

/* Sections */
.section { padding: 56px 0; }
.h-section { font-size: clamp(25px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.01em; color: var(--navy); }
.center { text-align: center; }
.section-intro { margin-top: 8px; font-size: 16px; color: var(--text); }
.h-sub { color: var(--blue); font-weight: 700; font-size: 18px; margin: 6px 0 14px; }
.body-lg { font-size: 16.5px; }

.happening-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
.danger-box { display: flex; gap: 14px; align-items: center; background: var(--red-soft); border: 1px solid #f8caca; border-radius: 10px; padding: 16px 20px; margin-top: 22px; }
.danger-box i { color: var(--red); font-size: 26px; }
.danger-box p { color: #b91c1c; font-weight: 700; font-size: 15px; }
.versions-card { background: var(--blue-soft); border-radius: var(--radius); padding: 22px; }
.versions-card h3 { font-size: 18px; font-weight: 800; }
.versions-card > p { font-size: 14.5px; margin: 4px 0 14px; }
.versions { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; font-size: 15px; }
.versions th, .versions td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: middle; }
.versions th { font-weight: 600; width: 46%; border-right: 1px solid var(--line); }
.versions td { font-weight: 600; }
.versions tr:last-child th, .versions tr:last-child td { border-bottom: 0; }
.versions tr:last-child td { font-weight: 500; font-size: 14px; color: var(--text); }

.body-lg.mt { margin-top: 12px; }
.updated { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

.affected { padding-top: 8px; }
.affected-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.risk-list { display: grid; gap: 12px; margin-top: 18px; }
.risk-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink); }
.risk-list i { color: var(--orange); font-size: 18px; margin-top: 2px; }
.check-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.check-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.howto { list-style: decimal; padding-left: 20px; display: grid; gap: 8px; margin-bottom: 14px; font-size: 15px; }
.check-card p { font-size: 15px; margin-bottom: 18px; }

.services { background: linear-gradient(180deg, #f6f9fe, #fff); }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 31, 61, .12); }
.card-icon { color: var(--blue); font-size: 30px; margin-bottom: 18px; }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 15px; }

.why { padding-top: 24px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 28px; }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.round-icon { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 20px; box-shadow: 0 8px 18px rgba(29, 91, 216, .3); }
.why-item h3, .step h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.why-item p, .step p { font-size: 14.5px; }

.process { padding-top: 24px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 26px; counter-reset: none; }
.step { position: relative; display: flex; gap: 14px; align-items: flex-start; }
.step-num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; }
.step:not(:last-child)::after {
  content: "\2192"; position: absolute; right: -24px; top: 6px; color: #94a3b8; font-size: 22px;
}

.platforms { padding-top: 24px; }
.platform-list { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 26px; }
.platform-list li { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px; font-weight: 600; color: var(--ink); font-size: 15px; text-align: center; }
.platform-list li + li { border-left: 1px solid var(--line); }
.platform-list i, .p-woo { font-size: 44px; height: 50px; display: grid; place-items: center; }
.p-wp { color: #21759b; }
.p-woo { font: 800 26px/1 Inter, sans-serif; color: #fff; background: #7f54b3; border-radius: 10px; padding: 0 12px; height: 44px; margin: 3px 0; }
.p-laravel { color: #ff2d20; }
.p-php { color: #4f5b93; font-size: 56px !important; }
.p-code { color: #64748b; }

.cta-wrap { padding: 10px 0; }
.cta-band {
  display: flex; align-items: center; gap: 28px; padding: 30px 40px; border-radius: 16px; color: #fff;
  background: radial-gradient(500px 200px at 80% 50%, rgba(37, 99, 235, .4), transparent 70%), linear-gradient(110deg, #0a1a40, #0f2a66);
}
.cta-icon { font-size: 40px; color: #fff; opacity: .95; }
.cta-text { flex: 1; }
.cta-band h2 { color: #fff; font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.cta-band p { color: #d5e2fb; }

.faq { padding-top: 40px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-top: 20px; align-items: start; }
.faq-item { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; font-weight: 600; color: var(--ink); font-size: 15px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { font-size: 12px; color: var(--muted); transition: transform .2s; }
.faq-item[open] summary i { transform: rotate(180deg); }
.faq-item[open] summary { color: var(--blue); }
.faq-item p { padding: 0 16px 16px; font-size: 15px; }

/* Footer */
.site-footer { background: var(--navy); color: #c8d4ea; padding: 30px 0 18px; margin-top: 30px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 18px; }
.footer-inner .brand img { height: 38px; }
.footer-bottom a { color: #fff; text-decoration: none; font-size: 14px; }
.footer-bottom a:hover { color: var(--orange); }
.footer-cta { display: flex; align-items: center; gap: 20px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 14px; font-size: 13px; }
.footer-bottom ul { display: flex; gap: 22px; }

/* Thank-you page */
.thanks { background: var(--bg-soft); padding: 70px 0; }
.thanks-card { max-width: 680px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 44px 36px; text-align: center; box-shadow: var(--shadow); }
.thanks-icon { font-size: 56px; color: #16a34a; display: block; margin-bottom: 14px; }
.thanks-card h1 { font-size: 28px; margin-bottom: 14px; }
.thanks-card p { margin-top: 10px; }
.thanks-ref { font-size: 17px; color: var(--ink); }
.thanks-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* Responsive */
.hero h1 { max-width: 560px; } .lead { max-width: 520px; }
@media (max-width: 1180px) {
  .hero-art { display: none; }
  .hero h1, .lead { max-width: none; }
}
@media (max-width: 1024px) {
  .hero-bg::before { left: 0; width: 100%; background-size: cover; background-position: 68% top; -webkit-mask-image: none; mask-image: none; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(5, 13, 36, .62) 0%, rgba(5, 13, 36, .8) 40%, rgba(5, 13, 36, .92) 100%); }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .benefits-grid, .cards-4, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit:nth-child(3) { border-left: 0; }
  .benefit:nth-child(n+3) { border-top: 1px solid var(--line); }
  .happening-grid, .affected-grid { grid-template-columns: 1fr; gap: 30px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .platform-list { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .platform-list li:nth-child(4) { border-left: 0; }
}
@media (max-width: 640px) {
  .hero-bg::before {
    background-image: url("../img/hero-900.jpg");
    background-image: image-set(url("../img/hero-900.webp") type("image/webp"), url("../img/hero-900.jpg") type("image/jpeg"));
  }
  .container { padding: 0 16px; }
  .header-inner { min-height: 64px; }
  .brand img { height: 32px; }
  .hero { padding: 28px 0 36px; }
  .lead { font-size: 16px; }
  .check-list { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
  .benefits-grid, .cards-4, .why-grid, .steps, .faq-grid { grid-template-columns: 1fr; }
  .benefit + .benefit { border-left: 0; border-top: 1px solid var(--line); }
  .benefit { padding: 16px 4px; }
  .section { padding: 42px 0; }
  .platform-list { grid-template-columns: repeat(2, 1fr); }
  .platform-list li { border-left: 0 !important; }
  .cta-band { flex-direction: column; text-align: center; padding: 28px 20px; gap: 16px; }
  .cta-band .btn { width: 100%; }
  .footer-inner, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-cta { flex-wrap: wrap; }
  .thanks-card { padding: 32px 20px; }
  .br-lg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
