:root {
  /* New Color Palette based on user print */
  --primary-blue: #3266F5;
  --bg-light: #F0F5FF;
  --deep-dark: #1A1B22;
  --white: #FFFFFF;
  --accent: #E5E9F4;
  /* Used for subtle contrast or light borders */

  /* Neo-Brutalist Variables */
  --border-thick: 4px solid var(--deep-dark);
  --shadow-hard: 6px 6px 0px var(--deep-dark);
  --shadow-hard-hover: 8px 8px 0px var(--deep-dark);
  --radius-lg: 2.5rem;
  --radius-pill: 9999px;

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Animations */
  --bouncy-ease: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--deep-dark);
  line-height: 1.6;
  overflow-x: hidden;

  /* Grid pattern background like in the print */
  background-image:
    linear-gradient(to right, rgba(50, 102, 245, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(50, 102, 245, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.05em;
  line-height: 1.1;
}

h1::first-letter,
h2::first-letter,
h3::first-letter,
h4::first-letter,
h5::first-letter,
h6::first-letter {
  text-transform: uppercase;
}

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

/* -------------------
   UTILITIES
   ------------------- */
.btn {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border: var(--border-thick);
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: var(--shadow-hard);
  transition: all 0.2s var(--bouncy-ease);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn::first-letter {
  text-transform: uppercase;
}

.btn:active {
  box-shadow: 2px 2px 0px var(--deep-dark);
  transform: translate(4px, 4px);
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
}

.btn-white {
  background-color: var(--white);
  color: var(--deep-dark);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.25rem;
}

.btn-xl {
  padding: 1.5rem 3rem;
  font-size: 1.5rem;
}

.wobble:hover {
  animation: wobble 0.5s var(--bouncy-ease);
}

@keyframes wobble {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-5deg) scale(1.05);
  }

  75% {
    transform: rotate(5deg) scale(1.05);
  }

  100% {
    transform: rotate(0deg) scale(1);
  }
}

.sticker {
  position: absolute;
  background: var(--white);
  border: var(--border-thick);
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 0px var(--deep-dark);
  z-index: 10;
}

.float-1 {
  animation: float 4s ease-in-out infinite;
}

.float-2 {
  animation: float 5s ease-in-out infinite reverse;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(-5deg);
  }

  50% {
    transform: translateY(-15px) rotate(5deg);
  }
}

.tilt-right {
  transform: rotate(2deg);
}

.tilt-left {
  transform: rotate(-2deg);
}

/* -------------------
   NAV PILL
   ------------------- */
.sticky-nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: var(--border-thick);
  box-shadow: var(--shadow-hard);
  border-radius: var(--radius-pill);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: lowercase;
}

.logo-mark {
  background: var(--primary-blue);
  color: var(--white);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--deep-dark);
}

.logo-text {
  display: inline-block;
}

.logo-text::first-letter {
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  font-weight: 500;
}

.nav-links a {
  display: inline-block;
}

.nav-links a::first-letter {
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--primary-blue);
  font-weight: 700;
}

/* -------------------
   HERO
   ------------------- */
.hero {
  padding: 10rem 5% 5rem;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 2px solid var(--deep-dark);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  margin-bottom: 2rem;
  box-shadow: 3px 3px 0px var(--deep-dark);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: var(--primary-blue);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(50, 102, 245, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(50, 102, 245, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(50, 102, 245, 0);
  }
}

.headline {
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  margin-bottom: 1.5rem;
  text-transform: capitalize;
}

.text-gradient {
  color: var(--primary-blue);
  /* Optional: keeping a solid vibrant color instead of gradient as per image */
}

.subtext {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  opacity: 0.8;
}

.subtext::first-letter,
p::first-letter {
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brutalist-phone {
  background: var(--deep-dark);
  border-radius: 3rem;
  padding: 0.75rem;
  width: 300px;
  height: 600px;
  transform: rotate(3deg);
  box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.1);
  position: relative;
}

.phone-screen {
  background: var(--bg-light);
  width: 100%;
  height: 100%;
  border-radius: 2.25rem;
  overflow: hidden;
  border: 2px solid var(--deep-dark);
  display: flex;
  flex-direction: column;
}

.app-header {
  background: var(--primary-blue);
  color: var(--white);
  padding: 2.5rem 1rem 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: center;
  border-bottom: var(--border-thick);
}

.app-feed {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}

.feed-item {
  background: var(--white);
  border: 2px solid var(--deep-dark);
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 3px 3px 0px var(--deep-dark);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 0.85rem;
}

.item-icon {
  background: var(--accent);
  padding: 0.5rem;
  border-radius: 50%;
  border: 2px solid var(--deep-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* -------------------
   MARQUEE
   ------------------- */
.marquee-container {
  background: var(--deep-dark);
  color: var(--white);
  padding: 1.5rem 0;
  border-top: 4px solid var(--white);
  border-bottom: 4px solid var(--white);
  overflow: hidden;
  position: relative;
  margin: 4rem 0;
}

.tilt-banner {
  transform: rotate(-1deg) scale(1.05);
  /* slightly slanted */
}

.marquee {
  display: flex;
  white-space: nowrap;
  gap: 3rem;
  animation: scrollLeft 20s linear infinite;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  text-transform: uppercase;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* -------------------
   BENTO GRID
   ------------------- */
.features {
  padding: 6rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.bento-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  grid-auto-flow: dense;
}

.bento-card {
  border: var(--border-thick);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--bouncy-ease);
}

.bento-card:hover {
  transform: translateY(-5px);
}

.col-7 {
  grid-column: span 7;
}

.col-5 {
  grid-column: span 5;
}

.col-12 {
  grid-column: span 12;
}

.bento-light {
  background: var(--white);
}

.bento-dark {
  background: var(--deep-dark);
  color: var(--white);
}

.bento-primary {
  background: var(--primary-blue);
  color: var(--white);
}

.card-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.text-accent {
  color: var(--primary-blue);
}

.card-icon {
  margin-top: 2rem;
}

.pop-out {
  position: absolute;
  bottom: -10px;
  right: -10px;
  transform: rotate(-10deg);
  opacity: 0.2;
}

.mini-dashboard {
  background: var(--white);
  border: var(--border-thick);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-top: 2rem;
  color: var(--deep-dark);
  box-shadow: inset 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.dash-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 2px dashed #ccc;
  font-weight: 500;
}

.dash-row:last-child {
  border-bottom: none;
}

.badge {
  background: var(--deep-dark);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  border: 2px solid var(--deep-dark);
}

.badge-success {
  background: #10B981;
}

/* -------------------
   FAQ
   ------------------- */
.faq {
  padding: 5rem 5%;
  max-width: 800px;
  margin: 0 auto;
}

.faq h2 {
  text-align: center;
  font-size: 3.5rem;
  margin-bottom: 3rem;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  background: var(--white);
  border: var(--border-thick);
  border-radius: 1rem;
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  transition: background 0.3s;
}

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

.faq-item[open] summary {
  background: var(--bg-light);
  border-bottom: var(--border-thick);
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-item p {
  padding: 1.5rem;
  background: var(--white);
}

.faq-icon {
  transition: transform 0.3s var(--bouncy-ease);
}

/* -------------------
   FOOTER
   ------------------- */
footer {
  margin-top: 5rem;
}

.giant-cta {
  background: var(--primary-blue);
  padding: 8rem 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 8px solid var(--deep-dark);
  border-bottom: 8px solid var(--deep-dark);
}

.massive-headline {
  font-size: clamp(4rem, 8vw, 8rem);
  color: var(--white);
  margin-bottom: 3rem;
}

.footer-bottom {
  background: var(--white);
  position: relative;
  padding: 4rem 5% 2rem;
  overflow: hidden;
}

.bg-text {
  font-family: var(--font-heading);
  font-size: 15vw;
  font-weight: 700;
  color: var(--deep-dark);
  opacity: 0.03;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
}

.footer-content {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* -------------------
   LOGIN PAGE
   ------------------- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.login-back {
  position: absolute;
  top: 2rem;
  left: 2rem;
  background: var(--white);
  border: var(--border-thick);
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.5rem;
  box-shadow: 4px 4px 0px var(--deep-dark);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s;
}

.login-back:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hard);
}

.login-card {
  background: var(--white);
  border: var(--border-thick);
  border-radius: var(--radius-lg);
  box-shadow: 12px 12px 0px var(--deep-dark);
  width: 100%;
  max-width: 500px;
  padding: 3rem;
  position: relative;
}

.login-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.login-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.form-input {
  width: 100%;
  padding: 1rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: var(--border-thick);
  border-radius: var(--radius-pill);
  background: var(--bg-light);
  transition: all 0.2s;
  outline: none;
}

.form-input:focus {
  background: var(--white);
  box-shadow: 4px 4px 0px var(--primary-blue);
  border-color: var(--primary-blue);
}

.login-btn-submit {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
  font-size: 1.25rem;
  padding: 1rem;
}

.login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 2rem 0;
  font-weight: 700;
  color: #666;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  border-bottom: 2px dashed #ccc;
}

.login-divider::before {
  margin-right: .5em;
}

.login-divider::after {
  margin-left: .5em;
}

.login-options {
  display: flex;
  gap: 1rem;
}

.btn-social {
  flex: 1;
  justify-content: center;
  background: var(--bg-light);
  color: var(--deep-dark);
}

.btn-social:hover {
  background: var(--white);
}

/* ===================================================================
   RESPONSIVE — Landing Page
   =================================================================== */

/* ── TABLET (≤ 1024px) ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 8rem 5% 4rem;
    gap: 2rem;
  }

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

  .hero-visual {
    order: -1;
  }

  .brutalist-phone {
    width: 220px;
    height: 440px;
    transform: rotate(0deg);
  }

  .subtext {
    margin-left: auto;
    margin-right: auto;
  }

  .bento-card {
    grid-column: span 12 !important;
  }

  .giant-cta {
    padding: 5rem 5%;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ── MOBILE (≤ 768px) ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .sticky-nav {
    width: 95%;
    padding: 0.5rem 1rem;
    top: 0.75rem;
  }

  .nav-links {
    display: none;
  }

  .sticky-nav .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .hero {
    padding: 7rem 5% 3rem;
    min-height: auto;
  }

  .headline {
    font-size: clamp(2.25rem, 8vw, 3.5rem);
  }

  .subtext {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

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

  .brutalist-phone {
    width: 180px;
    height: 360px;
  }

  .sticker {
    width: 3rem;
    height: 3rem;
  }

  .marquee {
    font-size: 1rem;
    gap: 1.5rem;
  }

  .marquee-container {
    margin: 2rem 0;
  }

  .features {
    padding: 3rem 5%;
  }

  .bento-card {
    padding: 1.5rem;
    border-radius: 1.5rem;
  }

  .card-title {
    font-size: 1.5rem;
  }

  .faq {
    padding: 3rem 5%;
  }

  .faq h2 {
    font-size: 2.25rem;
  }

  .faq-item summary {
    font-size: 1rem;
    padding: 1rem;
  }

  .massive-headline {
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin-bottom: 2rem;
  }

  .giant-cta {
    padding: 4rem 5%;
  }

  .giant-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-bottom {
    padding: 2rem 5% 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  /* Login Page Mobile */
  .login-card {
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 6px 6px 0px var(--deep-dark);
  }

  .login-header h1 {
    font-size: 2rem;
  }

  .login-back {
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .login-options {
    flex-direction: column;
  }
}

/* ── SMALL MOBILE (≤ 480px) ────────────────────────────────────── */
@media (max-width: 480px) {
  .hero {
    padding: 6rem 4% 2rem;
  }

  .headline {
    font-size: 2rem;
  }

  .subtext {
    font-size: 0.9rem;
  }

  .pill-badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
  }

  .brutalist-phone {
    width: 160px;
    height: 320px;
    border-radius: 2rem;
  }

  .phone-screen {
    border-radius: 1.5rem;
  }

  .feed-item {
    font-size: 0.75rem;
    padding: 0.75rem;
  }

  .btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .faq h2 {
    font-size: 1.75rem;
  }

  .massive-headline {
    font-size: 1.75rem;
  }

  .login-card {
    padding: 1.5rem 1.25rem;
  }

  .login-header h1 {
    font-size: 1.75rem;
  }

  .form-input {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .form-label {
    font-size: 0.95rem;
  }
}

/* -------------------
   MODAL & INTERACTIVITY
   ------------------- */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 27, 34, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--white);
  border: var(--border-thick);
  border-radius: var(--radius-lg);
  box-shadow: 15px 15px 0px var(--deep-dark);
  padding: 3rem;
  width: 90%;
  max-width: 550px;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s var(--bouncy-ease);
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--accent);
  border: 2px solid var(--deep-dark);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-success-message {
  text-align: center;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.form-success-message h3 {
  font-size: 2rem;
}

@media (max-width: 768px) {
  .modal-card {
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 6px 6px 0px var(--deep-dark);
    width: 95%;
  }

  .modal-header h2 {
    font-size: 1.75rem;
  }

  .form-success-message h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .modal-card {
    padding: 1.5rem 1rem;
    border-radius: 1.25rem;
  }

  .modal-header h2 {
    font-size: 1.5rem;
  }
}