/* ═══════════════════════════════════════════════
   SWISSEZ — style.css
   Brand: Navy/Sky Blue palette + Montserrat Alternates
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* ── Brand Colors ── */
  --navy:        #123752;
  --ocean:       #1184C9;
  --sky:         #48BBED;
  --ice:         #78DFFF;
  --sky-bg:      #3FC3F5;

  /* ── Theme (dark) ── */
  --bg:          #0c2a3f;
  --surface:     #143a55;
  --surface2:    #1a4568;
  --surface3:    #20507a;
  --border:      #1e4d6e;
  --text:        #f0f6fa;
  --text-dim:    #a0bdd4;
  --text-muted:  #6a93b4;

  /* ── Accent ── */
  --accent:      #48BBED;
  --accent-dim:  rgba(72, 187, 237, 0.12);

  /* ── Semantic ── */
  --green:       #34d399;
  --green-dim:   rgba(52, 211, 153, 0.12);
  --red:         #f87171;
  --red-dim:     rgba(248, 113, 113, 0.12);
  --yellow:      #fbbf24;
  --blue:        #48BBED;
  --purple:      #a78bfa;

  /* ── Layout ── */
  --radius:      12px;
  --radius-sm:   8px;
  --radius-full: 100px;
  --transition:  0.2s ease;
  --max-width:   1100px;

  /* ── Fonts ── */
  --font:        'Montserrat Alternates', system-ui, -apple-system, sans-serif;
  --font-mono:   'Montserrat Alternates', monospace;
}

/* ═══ RESET ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--ice); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ═══ LAYOUT ═══ */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 680px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-header p { color: var(--text-dim); font-size: 17px; margin-top: 12px; }

/* ═══ TYPOGRAPHY ═══ */
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; line-height: 1.15; letter-spacing: -0.5px; }
h1 span { color: var(--accent); }
h2 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 700; line-height: 1.2; }
h3 { font-size: 22px; font-weight: 700; line-height: 1.3; }
h4 { font-size: 18px; font-weight: 600; line-height: 1.4; }
p { line-height: 1.7; }

.text-accent { color: var(--accent) !important; }
.text-dim { color: var(--text-dim); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mono { font-family: var(--font-mono); }
.mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

/* ═══ TAG / BADGE ═══ */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(72, 187, 237, 0.2);
  padding: 6px 16px;
  border-radius: var(--radius-full);
}

/* ═══ NAVIGATION ═══ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(12, 42, 63, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 4px;
  color: var(--text);
  text-transform: lowercase;
}
.nav-logo img { height: 38px; width: auto; }
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color var(--transition);
}

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

.nav-cta {
  background: var(--accent) !important;
  color: var(--navy) !important;
  font-weight: 600 !important;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 13px !important;
  letter-spacing: 0.5px;
}

.nav-cta:hover { background: var(--ice) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

/* ═══ HERO ═══ */
.hero {
  padding: 140px 0 80px;
  text-align: center;
}

.hero p {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 580px;
  margin: 20px auto 0;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--accent);
  color: var(--navy);
}
.btn-primary:hover { background: var(--ice); color: var(--navy); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 10px 20px; font-size: 13px; }

/* ═══ GRIDS ═══ */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ═══ CARDS ═══ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--surface3);
  transform: translateY(-2px);
}

/* ═══ PRICING CARDS ═══ */
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}

.pricing-card:hover { border-color: var(--accent); }

.pricing-card.featured {
  border-color: var(--accent);
  background: var(--surface2);
  position: relative;
}

.pricing-card.featured::before {
  content: 'Più scelto';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pricing-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-annual {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pricing-features {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
}

/* ═══ FOOTER ═══ */
.footer {
  padding: 48px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
}

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

/* ═══ ANIMATIONS ═══ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 60px; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: rgba(12, 42, 63, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .section { padding: 60px 0; }
}
