/* iCanSaveit — sito marketing */

:root {
  --bg: #FBF3E7;
  --bg-alt: #FFFFFF;
  --card-bg: #FFFFFF;
  --text: #1E1A14;
  --text-secondary: #6E6357;
  --border: rgba(30, 26, 20, 0.08);
  --shadow: 0 20px 50px -20px rgba(30, 20, 10, 0.25);
  --shadow-sm: 0 8px 20px -10px rgba(30, 20, 10, 0.18);

  --primary: #2F80ED;
  --primary-2: #06B6D4;
  --accent: #F5A524;
  --accent-2: #F97316;
  --purple: #8B5CF6;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --max-width: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15120D;
    --bg-alt: #1C1811;
    --card-bg: #221D15;
    --text: #F6EFE4;
    --text-secondary: #B3A996;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
    --shadow-sm: 0 8px 20px -10px rgba(0, 0, 0, 0.5);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

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

.gradient-text {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(47, 128, 237, 0.5);
}

.btn-ghost {
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

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

.site-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 15px;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

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

@media (max-width: 700px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
    display: none;
  }

  .site-nav.open {
    display: flex;
  }
}

/* Language switcher */
.lang-switch {
  position: relative;
  margin-left: 4px;
}

.lang-switch summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px 6px 10px;
}

.lang-switch summary::-webkit-details-marker {
  display: none;
}

.lang-switch[open] summary,
.lang-switch summary:hover {
  color: var(--text);
  border-color: var(--text);
}

.lang-flag {
  font-size: 16px;
  line-height: 1;
}

.lang-caret {
  font-size: 9px;
  opacity: 0.6;
  transition: transform 0.15s ease;
}

.lang-switch[open] .lang-caret {
  transform: rotate(180deg);
}

.lang-switch-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  min-width: 170px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: var(--shadow-sm);
}

.lang-switch-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
}

.lang-switch-menu a:hover,
.lang-switch-menu a.active {
  background: var(--bg);
  color: var(--text);
}

@media (max-width: 700px) {
  .lang-switch-menu {
    position: static;
    box-shadow: none;
    margin-top: 8px;
  }
}

.footer-langs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-langs a {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-langs a:hover,
.footer-langs a.active {
  color: var(--text);
}

/* Hero */
.hero {
  padding: 64px 0 40px;
  overflow: visible;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 800;
}

.hero p.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 32px;
  max-width: 480px;
}

@media (max-width: 900px) {
  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }
}

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

@media (max-width: 900px) {
  .hero-actions {
    justify-content: center;
  }
}

/* Phone mockups */
.hero-phones {
  position: relative;
  height: 560px;
  will-change: transform;
}

@media (max-width: 900px) {
  .hero-phones {
    height: 460px;
    margin-top: 20px;
  }
}

.phone {
  position: absolute;
  width: 240px;
  border-radius: 42px;
  background: #0b0b0d;
  padding: 10px;
  box-shadow: var(--shadow);
}

.phone::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #0b0b0d;
  border-radius: 14px;
  z-index: 2;
}

.phone-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 240 / 500;
  border-radius: 32px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone--back {
  top: 10px;
  left: 8%;
  transform: rotate(-9deg);
  z-index: 1;
}

.phone--front {
  top: 60px;
  left: 38%;
  transform: rotate(6deg);
  z-index: 2;
}

@media (max-width: 520px) {
  .phone {
    width: 200px;
  }

  .phone--back {
    left: 2%;
  }

  .phone--front {
    left: 34%;
    top: 90px;
  }
}

/* Sections */
section {
  padding: 88px 0;
}

.section-head {
  max-width: 620px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head .eyebrow {
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  font-weight: 800;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}

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

@media (max-width: 800px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
  color: #fff;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.summary-panel .icon svg,
.contact-card .icon svg {
  display: block;
  width: 30px;
  height: 30px;
}

.feature-icon.blue {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.feature-icon.green {
  background: linear-gradient(135deg, #34D399, #059669);
}

.feature-icon.orange {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.feature-card h3 {
  font-size: 19px;
  margin: 0 0 10px;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* How it works / engine section */
.engine {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.engine .container {
  max-width: 760px;
  text-align: center;
}

.engine-steps {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  text-align: left;
}

@media (max-width: 700px) {
  .engine-steps {
    flex-direction: column;
  }
}

.engine-step {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.engine-step .step-num {
  font-weight: 800;
  color: var(--primary);
  font-size: 13px;
  margin-bottom: 8px;
}

.engine-step p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* CTA */
.cta {
  text-align: center;
}

.cta-panel {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  color: #fff;
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  font-size: clamp(26px, 4vw, 36px);
  margin: 0 0 14px;
  font-weight: 800;
}

.cta-panel p {
  font-size: 17px;
  opacity: 0.92;
  margin: 0 0 30px;
}

.cta-panel .btn-ghost {
  background: #fff;
  color: var(--primary);
  border: none;
}

.badge-soon {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  opacity: 0.85;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.footer-brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

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

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
}

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

.footer-copy {
  color: var(--text-secondary);
  font-size: 13px;
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

/* Legal pages (privacy / support) */
.legal {
  padding: 56px 0 100px;
}

.legal .container {
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(30px, 5vw, 42px);
  margin: 0 0 8px;
  font-weight: 800;
}

.legal .updated {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 0 40px;
}

.legal h2 {
  font-size: 21px;
  margin: 40px 0 12px;
  font-weight: 700;
}

.legal p,
.legal li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.legal ul {
  padding-left: 20px;
}

.legal a.mail {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.summary-panel {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 8px;
}

.summary-panel .icon {
  color: var(--primary);
  flex-shrink: 0;
}

.summary-panel .icon svg {
  width: 26px;
  height: 26px;
}

.summary-panel p {
  margin: 0;
  color: var(--text);
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 14px 0 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #1B5AAF, #0A7180);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.contact-card .icon {
  color: #fff;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card h3 {
  margin: 0 0 4px;
  font-size: 19px;
}

.contact-card p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.94);
}

.contact-card .btn-ghost {
  background: #fff;
  color: #1B5AAF;
  border: none;
  font-weight: 600;
}

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