/*
Theme Name: SMS Security Monitoring
Theme URI: https://sms.everything.com.sg
Author: Everything Security
Description: One-page marketing theme for SMS — Security Monitoring System, a QR + GPS guard deployment and patrol tracking platform for Singapore's security industry.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sms-theme
*/

:root{
  --sms-accent: #22D3EE;
  --sms-cta: #FB923C;
  --sms-bg: #0A0E1A;
  --sms-bg-alt: #0D1220;
  --sms-surface: #121826;
  --sms-border: #1E2740;
  --sms-border-2: #232C42;
  --sms-text: #F4F6FB;
  --sms-muted: #9BA5BA;
  --sms-muted-2: #6B7386;
  --sms-ok: #34D399;
  --sms-warn: #FBBF24;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; background:var(--sms-bg); color:var(--sms-text);
  font-family:'IBM Plex Sans',sans-serif; overflow-x:hidden;
}
a{ color:inherit; text-decoration:none; }
::selection{ background:var(--sms-accent); color:var(--sms-bg); }
img{ max-width:100%; }

.sms-h{ font-family:'Space Grotesk',sans-serif; }

.sms-wrap{ max-width:1200px; margin:0 auto; padding-left:32px; padding-right:32px; }

/* ---- Buttons ---- */
.btn-primary{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 26px; border-radius:10px; font-weight:600; font-size:15px;
  background:var(--sms-cta); color:#1A1206; border:1px solid var(--sms-cta);
  transition:transform .15s ease, box-shadow .15s ease; cursor:pointer;
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 8px 24px rgba(251,146,60,.28); }
.btn-secondary{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 26px; border-radius:10px; font-weight:600; font-size:15px;
  background:transparent; color:var(--sms-text); border:1px solid var(--sms-border-2);
  transition:border-color .15s ease, background .15s ease; cursor:pointer;
}
.btn-secondary:hover{ border-color:var(--sms-accent); background:rgba(34,211,238,.06); }

/* ---- Nav ---- */
.sms-nav-link{ color:var(--sms-muted); font-size:14.5px; font-weight:500; padding:8px 0; }
.sms-nav-link:hover{ color:var(--sms-text); }

.sms-navbar{
  position:sticky; top:0; z-index:50; background:rgba(10,14,26,.85);
  backdrop-filter:blur(10px); border-bottom:1px solid #1C2438;
}
.sms-navbar-inner{
  max-width:1200px; margin:0 auto; padding:16px 32px;
  display:flex; align-items:center; justify-content:space-between;
}
.sms-brand{ display:flex; align-items:center; gap:10px; }
.sms-brand span{ font-weight:700; font-size:19px; letter-spacing:-.02em; }

.sms-desktop-only{ display:flex; }
.sms-mobile-only{ display:none; background:none; border:1px solid var(--sms-border-2); border-radius:8px; width:40px; height:40px; align-items:center; justify-content:center; cursor:pointer; }

.sms-mobile-menu{ display:none; flex-direction:column; padding:8px 32px 20px; gap:4px; border-top:1px solid #1C2438; }
.sms-mobile-menu.is-open{ display:flex; }
.sms-mobile-menu .btn-primary{ margin-top:10px; }

/* ---- Hero ---- */
.sms-hero{ max-width:1200px; margin:0 auto; padding:88px 32px 72px; }
.sms-hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center; }
.sms-eyebrow{
  display:inline-flex; align-items:center; gap:9px; padding:7px 16px;
  border:1px solid var(--sms-border-2); border-radius:999px; font-size:13px;
  color:var(--sms-muted); margin-bottom:26px;
}
.sms-dot{ position:relative; width:8px; height:8px; }
.sms-dot span{
  position:absolute; inset:0; border-radius:50%; background:var(--sms-accent);
  animation:smsPulseDot 2s ease-in-out infinite;
}
.sms-dot.ok span{ background:var(--sms-ok); }
.sms-dot.sm{ width:7px; height:7px; }

.sms-h1{ font-size:52px; line-height:1.08; letter-spacing:-.02em; margin:0 0 24px; }
.sms-h1 .accent{ color:var(--sms-accent); }
.sms-hero p.lead{ font-size:18px; line-height:1.65; color:#AEB6C8; max-width:520px; margin:0 0 36px; }
.sms-hero-actions{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom:22px; }
.sms-hero-note{ font-size:13.5px; color:var(--sms-muted-2); }

.sms-mock{
  position:relative; background:#111827; border:1px solid var(--sms-border);
  border-radius:20px; padding:24px; overflow:hidden; box-shadow:0 30px 80px rgba(0,0,0,.45);
}
.sms-mock-sweep{
  position:absolute; top:0; left:0; height:100%; width:70px;
  background:linear-gradient(90deg, transparent, rgba(34,211,238,.10), transparent);
  animation:smsSweep 4.5s ease-in-out infinite; pointer-events:none;
}
.sms-mock-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.sms-mock-head .label{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--sms-muted); font-weight:500; }
.sms-mock-head .count{ font-size:12px; color:var(--sms-muted-2); }
.sms-mock-row{
  display:flex; align-items:center; gap:12px; padding:12px; background:var(--sms-bg-alt);
  border-radius:10px; margin-bottom:10px; opacity:0; animation:smsFadeUp .7s ease forwards;
}
.sms-mock-row:last-child{ margin-bottom:0; }
.sms-mock-row .bullet{ width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.sms-mock-row .title{ font-size:13.5px; font-weight:500; }
.sms-mock-row .sub{ font-size:12px; color:var(--sms-muted-2); }
.sms-mock-row:nth-child(2){ animation-delay:.3s; }
.sms-mock-row:nth-child(3){ animation-delay:.5s; }
.sms-mock-row:nth-child(4){ animation-delay:.7s; }

/* ---- Marquee ---- */
.sms-marquee-wrap{ border-top:1px solid #1C2438; border-bottom:1px solid #1C2438; padding:22px 0; overflow:hidden; }
.sms-marquee-track{ display:flex; gap:48px; width:max-content; animation:smsMarquee 26s linear infinite; }
.sms-marquee-wrap:hover .sms-marquee-track{ animation-play-state:paused; }
.sms-marquee-group{ display:flex; gap:48px; }
.sms-marquee-track span{ color:#8D96AC; font-size:14px; white-space:nowrap; }

/* ---- Sections ---- */
.sms-section{ max-width:1200px; margin:0 auto; padding:100px 32px; }
.sms-section-head{ max-width:620px; margin:0 auto 60px; text-align:center; }
.sms-section-head h2{ font-size:34px; letter-spacing:-.01em; margin:0 0 16px; }
.sms-section-head p{ color:#AEB6C8; font-size:16px; line-height:1.6; }

/* ---- Feature cards ---- */
.features-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.sms-card{
  padding:28px; background:var(--sms-surface); border:1px solid var(--sms-border); border-radius:16px;
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  opacity:0; animation:smsFadeUp .7s ease forwards;
}
.sms-card:hover{ transform:translateY(-4px); border-color:#2A3450; box-shadow:0 16px 40px rgba(0,0,0,.35); }
.sms-card .icon{
  width:44px; height:44px; border-radius:10px; background:rgba(34,211,238,.10);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px;
}
.sms-card h3{ font-size:16.5px; margin:0 0 8px; }
.sms-card p{ font-size:14px; color:var(--sms-muted); line-height:1.6; margin:0; }
.features-grid > div:nth-child(1){ animation-delay:.05s; }
.features-grid > div:nth-child(2){ animation-delay:.12s; }
.features-grid > div:nth-child(3){ animation-delay:.19s; }
.features-grid > div:nth-child(4){ animation-delay:.26s; }
.features-grid > div:nth-child(5){ animation-delay:.33s; }
.features-grid > div:nth-child(6){ animation-delay:.40s; }

/* ---- How it works ---- */
.sms-how{ background:var(--sms-bg-alt); border-top:1px solid #1C2438; border-bottom:1px solid #1C2438; padding:100px 32px; }
.sms-steps{ position:relative; }
.sms-steps-line{ position:absolute; top:23px; left:12.5%; right:12.5%; height:2px; background:var(--sms-border-2); overflow:hidden; }
.sms-steps-line .fill{ height:100%; width:100%; background:var(--sms-accent); transform-origin:left; transform:scaleX(0); animation:smsDraw 1.4s ease .3s forwards; }
.sms-steps-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:32px; position:relative; }
.sms-step{ text-align:center; opacity:0; animation:smsFadeUp .7s ease forwards; }
.sms-step .num{
  width:46px; height:46px; border-radius:50%; background:var(--sms-bg-alt); border:2px solid var(--sms-accent);
  color:var(--sms-accent); display:flex; align-items:center; justify-content:center; font-weight:700;
  font-family:'Space Grotesk',sans-serif; margin:0 auto 18px;
}
.sms-step h3{ font-size:15.5px; margin:0 0 8px; }
.sms-step p{ font-size:13.5px; color:var(--sms-muted); line-height:1.55; margin:0; }
.sms-step:nth-child(1){ animation-delay:.05s; }
.sms-step:nth-child(2){ animation-delay:.15s; }
.sms-step:nth-child(3){ animation-delay:.25s; }
.sms-step:nth-child(4){ animation-delay:.35s; }

/* ---- CTA banner ---- */
.sms-cta-section{ max-width:1200px; margin:96px auto; padding:0 32px; }
.sms-cta-card{ background:var(--sms-surface); border:1px solid var(--sms-border); border-radius:24px; padding:64px 48px; text-align:center; }
.sms-cta-card h2{ font-size:30px; margin:0 0 14px; }
.sms-cta-card p{ color:#AEB6C8; font-size:16px; margin:0 0 32px; }

/* ---- Contact ---- */
.sms-contact-grid{ display:grid; grid-template-columns:.85fr 1.15fr; gap:56px; }
.sms-contact-info h2{ font-size:30px; margin:0 0 16px; }
.sms-contact-info p{ color:#AEB6C8; font-size:15.5px; line-height:1.65; margin:0 0 32px; }
.sms-contact-item{ display:flex; align-items:center; gap:12px; }
.sms-contact-item span{ font-size:14.5px; color:#D7DCE8; }
.sms-contact-card{ background:var(--sms-surface); border:1px solid var(--sms-border); border-radius:16px; padding:32px; }

label{ display:block; font-size:13px; color:var(--sms-muted); margin-bottom:6px; font-weight:500; }
input, textarea{
  font-family:'IBM Plex Sans',sans-serif; background:var(--sms-bg-alt); border:1px solid var(--sms-border-2);
  color:var(--sms-text); border-radius:8px; padding:12px 14px; font-size:14.5px; width:100%;
}
input:focus, textarea:focus, a:focus-visible, button:focus-visible{ outline:2px solid var(--sms-accent); outline-offset:2px; }

.sms-form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.sms-form{ display:flex; flex-direction:column; gap:18px; }
.sms-form.is-hidden{ display:none; }
.sms-thanks{ display:none; text-align:center; padding:40px 12px; }
.sms-thanks.is-visible{ display:block; }
.sms-thanks .icon{
  width:52px; height:52px; border-radius:50%; background:rgba(52,211,153,.12);
  display:flex; align-items:center; justify-content:center; margin:0 auto 18px;
}
.sms-thanks h3{ margin:0 0 8px; font-size:18px; }
.sms-thanks p{ color:var(--sms-muted); font-size:14px; margin:0; }
.sms-form-error{ display:none; color:#fca5a5; background:rgba(239,68,68,.1); border:1px solid rgba(239,68,68,.3); padding:10px 14px; border-radius:8px; font-size:13.5px; }
.sms-form-error.is-visible{ display:block; }

/* ---- Footer ---- */
.sms-footer{ border-top:1px solid #1C2438; padding:56px 32px 32px; }
.sms-footer-inner{ max-width:1200px; margin:0 auto; display:flex; flex-wrap:wrap; justify-content:space-between; gap:40px; }
.sms-footer-brand{ max-width:280px; }
.sms-footer-brand .row{ display:flex; align-items:center; gap:9px; margin-bottom:14px; }
.sms-footer-brand .row span{ font-weight:700; font-size:16.5px; }
.sms-footer-brand p{ font-size:13.5px; color:var(--sms-muted-2); line-height:1.6; margin:0; }
.sms-footer-cols{ display:flex; gap:64px; flex-wrap:wrap; }
.sms-footer-col-title{ font-size:12.5px; color:var(--sms-muted-2); text-transform:uppercase; letter-spacing:.05em; margin-bottom:14px; }
.sms-footer-links{ display:flex; flex-direction:column; gap:10px; }
.sms-footer-bottom{ max-width:1200px; margin:36px auto 0; padding-top:22px; border-top:1px solid #1C2438; font-size:12.5px; color:var(--sms-muted-2); }

/* ---- Animations ---- */
@keyframes smsFadeUp{ from{ opacity:0; transform:translateY(18px); } to{ opacity:1; transform:translateY(0); } }
@keyframes smsPulseDot{ 0%,100%{ transform:scale(1); opacity:1; } 50%{ transform:scale(1.5); opacity:.55; } }
@keyframes smsSweep{ 0%{ transform:translateX(-120%); } 100%{ transform:translateX(320%); } }
@keyframes smsMarquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
@keyframes smsDraw{ from{ transform:scaleX(0); } to{ transform:scaleX(1); } }

/* ---- Responsive ---- */
@media (max-width: 900px){
  .sms-hero-grid{ grid-template-columns:1fr; }
  .sms-hero-mock{ order:-1; }
  .features-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sms-steps-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:40px; }
  .sms-steps-line{ display:none; }
  .sms-contact-grid{ grid-template-columns:1fr; }
}
@media (max-width: 640px){
  .sms-desktop-only{ display:none !important; }
  .sms-mobile-only{ display:flex !important; }
  .features-grid{ grid-template-columns:1fr; }
  .sms-steps-grid{ grid-template-columns:1fr; }
  .sms-h1{ font-size:36px; }
  .sms-form-row{ grid-template-columns:1fr; }
}
