/**
 * No More Phishing - Website Styles
 * @author Matteo Morreale
 * @version 1.0.0
 */

/* =====================================================================
   Reset & Base
   ===================================================================== */

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

:root {
  /* Brand palette — derivata dall'icona */
  --primary:        #4f46e5;   /* indigo-600 */
  --primary-dark:   #3730a3;   /* indigo-800 */
  --primary-light:  #6366f1;   /* indigo-500 */
  --primary-xlight: #eef2ff;   /* indigo-50  */
  --accent:         #2563eb;   /* blue-600   */
  --accent-light:   #eff6ff;   /* blue-50    */

  --white:  #ffffff;
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;

  --success: #16a34a;
  --warning: #d97706;
  --danger:  #dc2626;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 4px 16px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.08);

  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);

  --max-w: 1120px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4, h5 {
  color: var(--gray-900);
  line-height: 1.25;
  font-weight: 700;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li { margin-bottom: 0.4rem; }

/* =====================================================================
   Layout Utilities
   ===================================================================== */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

.text-center { text-align: center; }

/* =====================================================================
   Buttons
   ===================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: var(--font);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary-xlight);
  color: var(--primary-dark);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow);
}
.btn-white:hover {
  background: var(--gray-50);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 15px 36px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

/* =====================================================================
   Navigation
   ===================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.navbar-brand-text {
  font-size: 16px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.navbar-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  transition: var(--transition);
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--primary);
}

.navbar-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile menu toggle */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--gray-700);
}

/* =====================================================================
   Hero Section
   ===================================================================== */

.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* Pattern decorativo */
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.95);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-title span {
  color: rgba(255,255,255,0.75);
}

.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
  margin-bottom: 36px;
}

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

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mockup {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 380px;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.mockup-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.mockup-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}

.mockup-subtitle {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}

.mockup-score {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 14px;
}

.mockup-score-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f0fdf4;
  border: 2px solid #bbf7d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #16a34a;
  flex-shrink: 0;
}

.mockup-score-info {
  flex: 1;
}

.mockup-score-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.mockup-score-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-mono);
}

.mockup-bar {
  height: 5px;
  background: rgba(255,255,255,0.15);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 14px;
}

.mockup-bar-fill {
  height: 100%;
  width: 90%;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  border-radius: 99px;
}

.mockup-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.mockup-check-label {
  color: rgba(255,255,255,0.7);
}

.mockup-check-val {
  font-weight: 600;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 99px;
}

.mockup-check-val.pass  { background: rgba(22,163,74,0.25);  color: #86efac; }
.mockup-check-val.warn  { background: rgba(217,119,6,0.25);  color: #fcd34d; }
.mockup-check-val.fail  { background: rgba(220,38,38,0.25);  color: #fca5a5; }

/* =====================================================================
   Features Section
   ===================================================================== */

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

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--primary-xlight);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  stroke: var(--primary);
}

.feature-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

/* =====================================================================
   Score Section
   ===================================================================== */

.score-section {
  background: var(--gray-50);
}

.score-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.score-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.score-desc {
  font-size: 16px;
  color: var(--gray-600);
  margin-bottom: 32px;
}

.score-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.score-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--gray-700);
  margin: 0;
}

.score-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.score-visual {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px 18px;
  transition: var(--transition);
}

.score-row:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.score-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

.score-num.s5 { background: #f0fdf4; color: #16a34a; border: 2px solid #bbf7d0; }
.score-num.s4 { background: #eff6ff; color: #2563eb; border: 2px solid #bfdbfe; }
.score-num.s3 { background: #fffbeb; color: #d97706; border: 2px solid #fde68a; }
.score-num.s2 { background: #fff7ed; color: #ea580c; border: 2px solid #fed7aa; }
.score-num.s1 { background: #fef2f2; color: #dc2626; border: 2px solid #fecaca; }

.score-info { flex: 1; }

.score-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
}

.score-sub {
  font-size: 12px;
  color: var(--gray-400);
}

.score-bar-wrap {
  width: 80px;
}

.score-bar-bg {
  height: 6px;
  background: var(--gray-100);
  border-radius: 99px;
  overflow: hidden;
}

.score-bar-fg {
  height: 100%;
  border-radius: 99px;
}

.score-bar-fg.s5 { width: 100%; background: #16a34a; }
.score-bar-fg.s4 { width: 80%;  background: #2563eb; }
.score-bar-fg.s3 { width: 60%;  background: #d97706; }
.score-bar-fg.s2 { width: 40%;  background: #ea580c; }
.score-bar-fg.s1 { width: 20%;  background: #dc2626; }

/* =====================================================================
   How It Works
   ===================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary-xlight), var(--primary), var(--primary-xlight));
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  flex-shrink: 0;
}

.step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.55;
  margin: 0;
}

/* =====================================================================
   CTA Section
   ===================================================================== */

.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  position: relative;
}

.cta-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  position: relative;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
}

/* =====================================================================
   Section Headers
   ===================================================================== */

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: var(--primary-xlight);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0;
}

/* =====================================================================
   Footer
   ===================================================================== */

.footer {
  background: var(--gray-900);
  padding: 56px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-brand-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
}

.footer-tagline {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
  margin: 0;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: var(--gray-400);
}

.footer-copy a {
  color: var(--primary-light);
  font-weight: 600;
}

.footer-copy a:hover {
  color: var(--white);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 13px;
  color: var(--gray-400);
  text-decoration: none;
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--white);
}

/* =====================================================================
   Inner Pages (Privacy, ToS)
   ===================================================================== */

.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 64px 0 56px;
  text-align: center;
}

.page-hero-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.page-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-xlight);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-content p {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--primary);
  font-weight: 500;
}

.legal-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-xlight);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 40px;
}

.legal-highlight {
  background: var(--primary-xlight);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--gray-700);
}

/* =====================================================================
   Responsive
   ===================================================================== */

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

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }

  .hero { padding: 72px 0 60px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-mockup {
    max-width: 320px;
  }

  .score-section-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .navbar-nav,
  .navbar-cta {
    display: none;
  }

  .navbar-toggle {
    display: block;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-mockup { max-width: 280px; }
  .btn-lg { padding: 13px 24px; font-size: 15px; }
}
