/* =========================================================
   SentryBits — Premium SaaS Landing Styles
   ========================================================= */

:root {
  --bg: #FFFFFF;
  --bg-soft: #F7F9FC;
  --bg-muted: #F1F4F9;
  --surface: #FFFFFF;
  --text: #0B1220;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --border: #E5EAF2;
  --border-strong: #D6DEEA;
  --accent: #3B82F6;
  --accent-hover: #2563EB;
  --accent-soft: #EFF4FF;
  --accent-ring: rgba(59, 130, 246, 0.28);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 12px 40px rgba(59, 130, 246, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --container: 1120px;
  --header-h: 72px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

address {
  font-style: normal;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 40px, 720px);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--text);
  color: #fff;
  box-shadow: var(--shadow-sm), 0 0 0 0 rgba(59, 130, 246, 0);
}

.btn-primary:hover {
  background: #1a2336;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 8px 24px rgba(15, 23, 42, 0.12);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-soft);
  border-color: #C5D0E0;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.875rem;
}

.btn-lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: 1rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
  background: rgba(255, 255, 255, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  transition:
    color 0.25s var(--ease),
    background-color 0.25s var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease-out);
  opacity: 0.85;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--text);
  background: var(--bg-muted);
}

.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-list a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 75% 18%, rgba(59, 130, 246, 0.1), transparent 62%),
    radial-gradient(ellipse 45% 40% at 12% 78%, rgba(15, 23, 42, 0.035), transparent 55%),
    linear-gradient(180deg, #F8FAFD 0%, #FFFFFF 58%, #FFFFFF 100%);
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 20%, transparent 75%);
  opacity: 0.55;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.05em;
  color: var(--text);
}

.hero-lead {
  max-width: 34rem;
  margin-top: 22px;
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-animate {
  opacity: 0;
  animation: hero-enter 0.85s var(--ease-out) both;
  animation-delay: var(--hero-delay, 0ms);
}

.hero-visual {
  position: relative;
}

.visual-frame {
  position: relative;
  animation: soft-float 7s var(--ease) 1s infinite;
  will-change: transform;
}

.visual-glow {
  position: absolute;
  inset: 12% 8% auto;
  height: 55%;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.22), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  animation: glow-pulse 5s ease-in-out 1.2s infinite;
}

.visual-svg {
  position: relative;
  width: 100%;
  height: auto;
  filter: drop-shadow(var(--shadow-lg));
  border-radius: 24px;
}

.chart-line {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: draw-line 1.4s var(--ease) 0.55s forwards;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes soft-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 104px 0;
}

.section-label {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--text);
}

.section-text {
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.section-text + .section-text {
  margin-top: 14px;
}

.section-intro {
  max-width: 640px;
  margin-bottom: 48px;
}

/* ---------- About ---------- */

.about {
  background: var(--bg);
}

.about .section-text {
  max-width: 62ch;
}

/* ---------- Products / Cards ---------- */

.products {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  transition: transform 0.35s var(--ease-out), background-color 0.35s var(--ease);
}

.card:hover .card-icon {
  transform: scale(1.08);
  background: #E0EAFF;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ---------- Philosophy ---------- */

.philosophy-panel {
  padding: clamp(40px, 6vw, 64px);
  background:
    radial-gradient(ellipse 80% 80% at 100% 0%, rgba(59, 130, 246, 0.08), transparent 50%),
    linear-gradient(180deg, #FFFFFF 0%, #F9FBFE 100%);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-md);
}

.philosophy-sub {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 1.125rem;
  font-weight: 500;
}

.philosophy-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.philosophy-list li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.philosophy-list strong {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.philosophy-list span {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ---------- CTA Band ---------- */

.cta-band {
  position: relative;
  padding: 88px 0;
  background:
    radial-gradient(ellipse 60% 80% at 90% 50%, rgba(59, 130, 246, 0.22), transparent 55%),
    var(--text);
  color: #fff;
  overflow: hidden;
}

.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-band h2 {
  max-width: 18ch;
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.035em;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--text);
  flex-shrink: 0;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.cta-band .btn-primary:hover {
  background: #F1F5F9;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.contact-address {
  margin-top: 28px;
  padding: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-name {
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.contact-address p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.contact-address p + p {
  margin-top: 10px;
}

.contact-address a {
  color: var(--accent);
  font-weight: 600;
}

.contact-address a:hover {
  text-decoration: underline;
}

.contact-address a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.contact-form {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.contact-form:focus-within {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: var(--shadow-md), 0 0 0 4px rgba(59, 130, 246, 0.08);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-row label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-row textarea {
  resize: vertical;
  min-height: 140px;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #94A3B8;
}

.form-row input:hover,
.form-row textarea:hover {
  border-color: #B8C5D8;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}

.form-row input:invalid:not(:placeholder-shown),
.form-row textarea:invalid:not(:placeholder-shown) {
  border-color: #F87171;
}

.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
}

.form-status.is-success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.form-status.is-error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 56px 0 32px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 36px;
}

.footer-tagline {
  margin-top: 12px;
  max-width: 28ch;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-nav a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out),
    filter 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ---------- Legal pages ---------- */

.legal-page {
  padding: 64px 0 96px;
}

.legal-page h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.legal-meta {
  margin-bottom: 36px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.legal-page h2 {
  margin-top: 36px;
  margin-bottom: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-page p,
.legal-page li {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-page p + p {
  margin-top: 14px;
}

.legal-page ul {
  margin: 12px 0 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-page li + li {
  margin-top: 8px;
}

.legal-page a {
  color: var(--accent);
  font-weight: 500;
}

.legal-page a:hover {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .philosophy-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .philosophy-list li {
    padding: 20px 0;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-visual {
    max-width: 520px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-actions .btn {
    display: none;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    padding: 16px 20px 24px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.35s var(--ease-out),
      transform 0.35s var(--ease-out),
      visibility 0.35s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-list a {
    min-height: 48px;
    padding: 0 16px;
    font-size: 1rem;
  }

  .nav-list a::after {
    display: none;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .section {
    padding: 72px 0;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .hero-lead {
    font-size: 1.0625rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .philosophy-panel {
    padding: 28px 22px;
  }

  .cta-band {
    padding: 64px 0;
  }

  .cta-band .btn-lg {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-animate,
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .visual-frame,
  .visual-glow {
    animation: none !important;
  }

  .chart-line {
    stroke-dashoffset: 0;
  }
}

/* Mobile nav CTA link injected in markup via CSS sibling approach */
.nav-mobile-cta {
  display: none;
}

@media (max-width: 768px) {
  .nav-mobile-cta {
    display: flex;
    width: 100%;
    margin-top: 4px;
  }
}
