@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Syne:wght@700;800&display=swap');

/* --- Core variables --- */
:root {
  --violet: #4B2FE8;
  --violet-dark: #3520C0;
  --violet-light: #EAE6FF;
  --violet-mid: #7B5FFF;
  --ink: #0D0B1A;
  --ink-soft: #3D3A50;
  --ink-muted: #7A778F;
  --surface: #F7F6FF;
  --border: #E8E5FF;
  --radius: 24px;
  --radius-sm: 12px;
  --font-heading: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Resets & Base styles --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: #FFFFFF;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: #FFFFFF;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Fixed Nav Bar --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  transition: var(--transition);
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ink);
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--violet);
  transition: var(--transition);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--violet);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  box-shadow: 0 4px 14px rgba(75, 47, 232, 0.2);
}

.nav-cta:hover {
  background-color: var(--violet-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(75, 47, 232, 0.3);
}

/* --- Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* --- Hero Section --- */
.hero {
  padding: 10rem 0 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--violet-light);
  color: var(--violet-dark);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1.05;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: italic;
  color: var(--violet);
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
  font-weight: 400;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--violet);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1rem 2rem;
  border-radius: 100px;
  box-shadow: 0 8px 24px rgba(75, 47, 232, 0.25);
}

.btn-primary svg {
  fill: currentColor;
}

.btn-primary:hover {
  background-color: var(--violet-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(75, 47, 232, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.05rem;
}

.btn-secondary span {
  transition: transform 0.3s ease;
}

.btn-secondary:hover {
  color: var(--violet);
}

.btn-secondary:hover span {
  transform: translateX(4px);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
  font-weight: 500;
}

/* --- Hero Phone Mockup --- */
.hero-right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 320px;
  height: 640px;
  border-radius: 44px;
  background-color: var(--ink);
  padding: 12px;
  box-shadow: 0 30px 60px -15px rgba(13, 11, 26, 0.3), 
              inset 0 4px 10px rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
}

.phone-inner {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background-color: #FFFFFF;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 24px;
  background-color: var(--ink);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 10;
}

.phone-header {
  padding: 2.5rem 1.25rem 1.25rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.phone-header h4 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
}

.phone-total {
  font-size: 0.95rem;
  color: var(--violet);
  font-weight: 600;
}

.phone-list {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  flex: 1;
}

/* Subscription Mock Cards */
.sub-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.sub-card-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sub-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: #FFFFFF;
}

.sub-icon.netflix { background-color: #E50914; }
.sub-icon.spotify { background-color: #1DB954; }
.sub-icon.icloud { background-color: #007AFF; }
.sub-icon.adobe { background-color: #FF0000; }

.sub-details {
  display: flex;
  flex-direction: column;
}

.sub-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.sub-cycle {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.sub-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.sub-card.warning {
  border: 1.5px dashed #FF4A4A;
  background-color: #FFF5F5;
}

.sub-card.warning .sub-name {
  color: #CC2B2B;
}

.sub-card.warning .sub-price {
  color: #CC2B2B;
}

/* Floating Pills */
.float-pill {
  position: absolute;
  padding: 0.75rem 1.25rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 12px 24px rgba(13, 11, 26, 0.15);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: floatAnim 4s ease-in-out infinite;
}

.float-pill.top-right {
  top: 15%;
  right: -10%;
  background-color: #FFFFFF;
  border: 1px solid var(--border);
  color: var(--violet-dark);
}

.float-pill.bottom-left {
  bottom: 15%;
  left: -10%;
  background-color: var(--violet);
  color: #FFFFFF;
  animation-delay: 2s;
}

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

/* --- Bento Grid Section --- */
.bento-section {
  background-color: var(--surface);
  padding: 7rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #FFFFFF;
  border: 1px solid var(--border);
  color: var(--violet);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.section-header p {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(75, 47, 232, 0.08);
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-card.violet-bg {
  background-color: var(--violet);
  color: #FFFFFF;
  border: none;
}

.bento-card.violet-bg:hover {
  box-shadow: 0 16px 36px rgba(75, 47, 232, 0.25);
}

.bento-card .emoji-anchor {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

.bento-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.bento-card p {
  font-size: 1rem;
  color: var(--ink-soft);
  font-weight: 400;
}

.bento-card.violet-bg p {
  color: var(--violet-light);
}

.bento-card .bento-illustration {
  margin-top: 1.5rem;
  display: flex;
  align-items: flex-end;
  flex: 1;
}

/* Stat styling inside Bento Auto Detection */
.bento-stat {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.bento-stat-num {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.bento-stat-label {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--violet-light);
}

/* Mini CSS Bar Chart inside Spending Breakdown */
.mini-chart {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin-top: 1.5rem;
}

.chart-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.chart-label-group {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.chart-bar-bg {
  width: 100%;
  height: 8px;
  background-color: var(--surface);
  border-radius: 100px;
  overflow: hidden;
}

.chart-bar-fill {
  height: 100%;
  background-color: var(--violet);
  border-radius: 100px;
}

/* Bank Connection Pills inside Bank Connection Card */
.bank-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.bank-pill {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  background-color: var(--surface);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 100px;
}

.bank-pill.accent {
  background-color: var(--violet-light);
  border-color: var(--violet-mid);
  color: var(--violet-dark);
}

/* --- Security Section --- */
.security-section {
  padding: 7rem 0;
  background-color: #FFFFFF;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.security-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition);
}

.security-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(13, 11, 26, 0.04);
}

.security-card .sec-icon {
  font-size: 2rem;
}

.security-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
}

.security-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* --- Download CTA Band --- */
.download-section {
  padding: 2rem 0 6rem 0;
}

.download-band {
  background-color: var(--violet);
  border-radius: var(--radius);
  padding: 5rem 2rem;
  text-align: center;
  color: #FFFFFF;
  box-shadow: 0 20px 50px rgba(75, 47, 232, 0.2);
  position: relative;
  overflow: hidden;
}

.download-band h2 {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.download-band p {
  font-size: 1.2rem;
  max-width: 500px;
  margin: 0 auto 2.5rem auto;
  color: var(--violet-light);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #FFFFFF;
  color: var(--violet-dark);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1.1rem 2.2rem;
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  background-color: var(--surface);
}

/* --- Footer --- */
footer {
  background-color: var(--ink);
  color: #FFFFFF;
  padding: 5rem 0 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: #FFFFFF;
}

.footer-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

/* --- Legal / Prose Page Layout --- */
.legal-layout {
  padding: 8rem 0 6rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 3.5rem;
  text-align: center;
}

.legal-header h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1rem;
}

.legal-meta {
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.legal-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink);
  margin: 3.5rem 0 1.25rem 0;
  position: relative;
  padding-bottom: 0.5rem;
}

.legal-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--violet);
  border-radius: 10px;
}

.legal-content p {
  margin-bottom: 1.5rem;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content hr {
  border: 0;
  height: 1px;
  background-color: var(--border);
  margin: 3rem 0;
}

/* Legal Tables */
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2.5rem 0;
  font-size: 0.95rem;
}

.legal-content th, .legal-content td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.legal-content th {
  background-color: var(--surface);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--border);
}

.legal-content tbody tr:nth-child(even) {
  background-color: rgba(75, 47, 232, 0.02);
}

.legal-content td strong {
  color: var(--ink);
}

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

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-left {
    align-items: center;
  }
  
  .hero h1 {
    font-size: 3.25rem;
  }
  
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .bento-card.span-2 {
    grid-column: span 2;
  }
  
  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  nav {
    height: 72px;
    padding: 0 1.5rem;
  }
  
  .nav-links {
    display: none; /* Hide nav links on mobile */
  }
  
  .hero {
    padding: 8rem 0 4rem 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .hero-right {
    display: none; /* Hide mockup on mobile as per responsive specs */
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-card.span-2 {
    grid-column: span 1;
  }
  
  .security-grid {
    grid-template-columns: 1fr;
  }
  
  .download-band {
    padding: 4rem 1.5rem;
  }
  
  .download-band h2 {
    font-size: 2.25rem;
  }
  
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
  }
  
  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  
  .legal-header h1 {
    font-size: 2.25rem;
  }
  
  .legal-content h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem 0;
  }
  
  /* Make tables responsive */
  .legal-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
