:root {
  --primary-color: #1f2937;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --bg-dark: #1f2937;
  --border-color: #e5e7eb;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--text-primary);
  background-color: var(--bg-primary);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  height: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(147, 51, 234, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(236, 72, 153, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.background-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.03;
  animation: float-shape 20s infinite ease-in-out;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  top: -200px;
  left: -200px;
  animation-duration: 25s;
  opacity: 0.04;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #ec4899, #f59e0b);
  bottom: -150px;
  right: -150px;
  animation-duration: 30s;
  animation-delay: -5s;
  opacity: 0.04;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, #10b981, #3b82f6);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 35s;
  animation-delay: -10s;
  opacity: 0.04;
}

@keyframes float-shape {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  25% {
    transform: translate(30px, -30px) rotate(90deg) scale(1.1);
  }
  50% {
    transform: translate(-20px, 20px) rotate(180deg) scale(0.9);
  }
  75% {
    transform: translate(40px, 10px) rotate(270deg) scale(1.05);
  }
}

.container {
  text-align: center;
  flex: 1 0 auto;
}

#wuit-container {
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 50%, #fef3c7 100%);
  padding: 150px 15px 200px 15px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -1px 0 0 rgba(0, 0, 0, 0.05);
}

#wuit-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(251, 146, 60, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(217, 119, 6, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

#wuit-container::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 100px;
  background: var(--bg-primary);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 1;
}

#wuit-container .hero-content {
  position: relative;
  display: inline-block;
}

#wuit-container .hero-content::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.3) 40%, transparent 70%);
  filter: blur(80px);
  z-index: -1;
}

#wuit-container img {
  margin-bottom: 20px;
  animation: fadeInDown 0.8s ease-out;
  position: relative;
  z-index: 2;
}

#wuit-container h2 {
  color: var(--text-primary);
  font-weight: 400;
  font-size: 1.5rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#apps-container {
  display: flex;
  flex-direction: column;
  padding: 120px 15px 80px 15px;
  background: var(--bg-primary);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

#apps-container::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.08) 0%, transparent 60%);
  border-radius: 50%;
  top: 5%;
  left: -200px;
  filter: blur(80px);
  pointer-events: none;
}

#apps-container::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 60%);
  border-radius: 50%;
  bottom: 10%;
  right: -250px;
  filter: blur(100px);
  pointer-events: none;
}

.brands-bg-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
}

.bg-circle-1 {
  width: 400px;
  height: 400px;
  top: 10%;
  right: 5%;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.08) 0%, transparent 70%);
  filter: blur(60px);
}

.bg-circle-2 {
  width: 350px;
  height: 350px;
  bottom: 20%;
  left: 5%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.07) 0%, transparent 70%);
  filter: blur(70px);
}

.bg-circle-3 {
  width: 450px;
  height: 450px;
  top: 35%;
  left: 35%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.06) 0%, transparent 70%);
  filter: blur(90px);
}

#apps-container .app {
  margin: 60px auto;
  max-width: 800px;
  position: relative;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
  z-index: 1;
}

#apps-container .app:nth-of-type(1) { animation-delay: 0.1s; }
#apps-container .app:nth-of-type(2) { animation-delay: 0.2s; }
#apps-container .app:nth-of-type(3) { animation-delay: 0.3s; }

#apps-container .app:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

#apps-container .app img {
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: grayscale(0%);
}

#apps-container .app a:hover img {
  transform: scale(1.05) translateY(-2px);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

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

#apps-container .app:hover img {
  animation: float 3s ease-in-out infinite;
}

#apps-container .app #consulting-logo {
  height: 45px;
}

#apps-container .app #persumi-logo {
  height: 65px;
}

#apps-container .app #rizzfarm-logo {
  height: 60px;
}

#apps-container .app .description {
  padding-top: 30px;
}

#apps-container .app .description p {
  line-height: 1.7;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

#apps-container .app:hover .description p {
  color: var(--text-primary);
}

#apps-container .app p,
#apps-container .app ul {
  font-size: 1.1rem;
  margin: 0.8em 0;
}

#apps-container .app p a {
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

#apps-container .app p a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--text-primary);
  transition: width 0.3s ease;
}

#apps-container .app p a:hover {
  color: #000;
}

#apps-container .app p a:hover::after {
  width: 100%;
}

#apps-container .app p.launch {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

#signup-container {
  color: #ffffff;
  background: var(--bg-dark);
  padding: 180px 15px 150px 15px;
  position: relative;
  overflow: hidden;
}

#signup-container::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 100px;
  background: var(--bg-primary);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  z-index: 2;
}

#signup-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 70%, rgba(37, 99, 235, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(147, 51, 234, 0.1) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}

#signup-container h2 {
  font-weight: 400;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #ffffff;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 3;
}

#signup-container form {
  position: relative;
  z-index: 3;
}

#footer {
  flex-shrink: 0;
  width: 100%;
  padding: 80px 0 60px 0;
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 50%, #fef3c7 100%);
  position: relative;
  overflow: hidden;
}

#footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(251, 146, 60, 0.3), transparent);
}

#footer::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.1) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

#footer p {
  color: var(--text-primary);
  font-weight: 500;
}

#footer p a {
  color: var(--text-primary);
  position: relative;
}

#footer p {
  font-size: 0.9em;
  text-align: center;
  margin: auto 10px;
  position: relative;
  z-index: 2;
}

#footer .footer-decoration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
}

#footer .footer-orb {
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.08) 0%, transparent 70%);
  filter: blur(50px);
  top: -50px;
  left: -100px;
  pointer-events: none;
}

#footer p a {
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

#footer p a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: rgba(217, 119, 6, 0.8);
  transition: width 0.3s ease;
}

#footer p a:hover {
  color: #d97706;
}

#footer p a:hover::after {
  width: 100%;
}

form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

form input,
form button {
  border-radius: 8px;
  margin: 0;
  transition: all 0.3s ease;
}

form input {
  color: var(--text-primary);
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  font-size: 1rem;
}

form input[type="email"] {
  width: 280px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

form input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

form input[type="submit"] {
  color: var(--bg-dark);
  background-color: #ffffff;
  border: none;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.025em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

form input[type="submit"]:hover {
  background-color: #f3f4f6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

form input[type="submit"]:active {
  transform: translateY(0);
}

.section-divider {
  position: relative;
  height: 60px;
  margin-top: -50px;
  z-index: 10;
  color: var(--bg-primary);
}

.section-divider svg {
  position: absolute;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  #wuit-container img {
    width: 160px;
  }

  #wuit-container h2 {
    font-size: 1.3rem;
    line-height: 1.4;
    padding: 0 20px;
  }

  #apps-container {
    padding: 100px 15px 80px 15px;
  }

  #apps-container .app {
    margin: 50px auto;
  }

  #apps-container .app .description {
    padding: 0 20px;
  }

  #apps-container .app p {
    font-size: 1rem;
    line-height: 1.6;
  }

  #apps-container .app p.launch {
    font-size: 0.85rem;
  }

  #apps-container .app img {
    max-width: 90%;
    height: auto;
  }

  #apps-container .app #consulting-logo {
    height: 38px;
  }

  #apps-container .app #persumi-logo {
    height: 55px;
  }

  #apps-container .app #rizzfarm-logo {
    height: 50px;
  }

  #signup-container h2 {
    font-size: 1.5rem;
    line-height: 1.4;
    padding: 0 20px;
  }

  form {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    gap: 1rem;
  }

  form input[type="email"] {
    width: 100%;
  }

  form input[type="submit"] {
    width: 100%;
  }

  #footer p {
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  #wuit-container img {
    width: 130px;
  }

  #wuit-container h2 {
    font-size: 1.1rem;
    padding: 0 15px;
  }

  #apps-container {
    padding: 80px 10px 60px 10px;
  }

  #apps-container .app {
    margin: 40px auto;
  }

  #apps-container .app .description {
    padding: 0 15px;
  }

  #apps-container .app p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0.8em 0;
  }

  #apps-container .app p.launch {
    font-size: 0.8rem;
    margin-bottom: 15px;
  }

  #apps-container .app #consulting-logo {
    height: 32px;
  }

  #apps-container .app #persumi-logo {
    height: 45px;
  }

  #apps-container .app #rizzfarm-logo {
    height: 40px;
  }

  #signup-container h2 {
    font-size: 1.25rem;
    padding: 0 15px;
  }

  #footer p {
    font-size: 0.85rem;
    padding: 0 15px;
  }

  /* Ensure touch targets are adequate */
  #apps-container .app p a,
  #footer p a {
    padding: 8px 4px;
    margin: -8px -4px;
    display: inline-block;
  }

  form input[type="email"],
  form input[type="submit"] {
    min-height: 44px;
    font-size: 16px;
  }
}

.container {
  position: relative;
  z-index: 1;
}

@supports (backdrop-filter: blur(10px)) {
  #wuit-container,
  #signup-container {
    backdrop-filter: blur(10px);
  }
}

#apps-container .app {
  transform: translateY(20px);
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

#apps-container .app.in-view {
  transform: translateY(0);
  opacity: 1;
}

h2, h3, h4 {
  font-weight: 400;
  line-height: 1.4;
}

::selection {
  background-color: rgba(31, 41, 55, 0.2);
  color: var(--text-primary);
}

#signup-container ::selection {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
