/* ==========================================================================
   Aiffinity Landing Page — styles.css
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-body: #0D0D0D;
  --bg-surface: #161616;
  --bg-elevated: #1C1C1C;
  --text-primary: #F5F5F5;
  --text-secondary: #949A9C;
  --text-muted: #798183;
  --orange: #FF9021;
  --orange-dim: rgba(255, 144, 33, 0.15);
  --border: #2C2C2C;
  --border-light: #404040;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: linear-gradient(
    to bottom,
    #0D0D0D 120vh,
    #ffffff 40%,
    #ffffff 60%,
    #0D0D0D calc(100% - 100vh)
  );
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.5;
}

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

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


/* --- Sections (shared) --- */
.section {
  min-height: 100vh;
  width: 100%;
  position: relative;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 40px 80px;
}

@media (max-width: 768px) {
  .section-inner {
    padding: 60px 20px 40px;
  }

  .section {
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .section-inner {
    padding: 48px 16px 32px;
  }

  .aiven-description,
  .soul-description,
  .agents-description,
  .relationships-description {
    padding: 24px 20px;
    font-size: 0.95rem;
  }
}


/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  height: 100vh;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  flex: 1;
  padding: 40px 40px 0;
  position: relative;
  z-index: 4;
}

/* Heading + badge grouped, vertically centered in remaining space */
.hero-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: clamp(240px, 34vh, 380px);
}


/* --- Hero Logo (full: icon + wordmark) --- */
.hero-logo {
  width: 18vw;
  height: auto;
  margin-bottom: 32px;
  animation: logoShrink 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-logo svg {
  width: 100%;
  height: auto;
}

@keyframes logoShrink {
  0% {
    opacity: 0;
    transform: scale(1.4);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}


/* --- Hero Heading --- */
.hero-heading {
  text-align: center;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-size: clamp(3.5rem, 11vw, 9rem);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeGrowIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) 1.8s forwards;
}

.hero-heading-line {
  display: block;
}

@keyframes fadeGrowIn {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}


/* --- App Store Badge --- */
.app-store-badge {
  display: inline-block;
  opacity: 0;
  animation: fadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 1.0s forwards;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.app-store-badge svg {
  width: 180px;
  height: auto;
}


/* ==========================================================================
   PHONE MOCKUPS
   ========================================================================== */
.phones-container {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1000px;
  pointer-events: none;
  z-index: 2;
}

.phone {
  position: absolute;
  bottom: -140px;
  max-width: none;
  opacity: 0;
}

.phone-center {
  height: 480px;
  width: auto;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: phoneUpCenter 1.4s cubic-bezier(0.22, 1, 0.36, 1) 1.4s forwards;
}

.phone-left {
  height: 440px;
  width: auto;
  right: 52%;
  margin-right: 80px;
  z-index: 2;
  animation: phoneUp 1.6s cubic-bezier(0.22, 1, 0.36, 1) 2.2s forwards;
}

.phone-right {
  height: 440px;
  width: auto;
  left: 52%;
  margin-left: 80px;
  z-index: 2;
  animation: phoneUp 1.6s cubic-bezier(0.22, 1, 0.36, 1) 2.4s forwards;
}

@keyframes phoneUpCenter {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(80px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes phoneUp {
  0% {
    opacity: 0;
    transform: translateY(80px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Orange Glow --- */
.phones-glow {
  position: absolute;
  bottom: -400px;
  left: 50%;
  transform: translateX(-50%);
  width: 1600px;
  height: 1000px;
  background: radial-gradient(
    ellipse 60% 50% at 50% 50%,
    rgba(255, 144, 33, 0.15) 0%,
    rgba(255, 144, 33, 0.07) 25%,
    rgba(255, 144, 33, 0.03) 40%,
    rgba(255, 144, 33, 0.01) 55%,
    rgba(255, 144, 33, 0.003) 70%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .hero-content {
    padding: 80px 24px 0;
  }

  .hero-logo {
    width: 24vw;
  }

  .phones-container {
    max-width: 750px;
  }

  .phone-center {
    height: 400px;
  }

  .phone-left,
  .phone-right {
    height: 360px;
    margin-left: 40px;
    margin-right: 40px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero-content {
    padding: 60px 24px 0;
  }

  .hero-center {
    padding-bottom: clamp(180px, 28vh, 260px);
  }

  .hero-logo {
    width: 40vw;
    margin-bottom: 20px;
  }

  .hero-heading {
    font-size: clamp(2.4rem, 10vw, 4rem);
    margin-bottom: 24px;
  }

  .app-store-badge svg {
    width: 160px;
    height: auto;
  }

  .phones-container {
    max-width: 500px;
  }

  .phone-center {
    height: 340px;
  }

  .phone-left,
  .phone-right {
    height: 300px;
    margin-left: 20px;
    margin-right: 20px;
  }

  .phones-glow {
    width: 600px;
    height: 500px;
    bottom: -200px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-logo {
    width: 50vw;
  }

  .hero-heading {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .phones-container {
    max-width: 380px;
  }

  .phone-center {
    height: 280px;
  }

  .phone-left,
  .phone-right {
    height: 240px;
    margin-left: 10px;
    margin-right: 10px;
  }

  .phones-glow {
    width: 450px;
    height: 400px;
    bottom: -150px;
  }
}


/* ==========================================================================
   SECTION 2: AIVEN
   ========================================================================== */
.aiven-section {
  background: transparent;
  position: relative;
  overflow: visible;
  z-index: 2;
}

.aiven-inner {
  display: flex;
  flex-direction: column;
  padding: 300px 40px 80px;
  position: relative;
  z-index: 1;
}

.aiven-columns {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-top: 40px;
}

/* --- Aiven Character (left) --- */
.aiven-character {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.aiven-img {
  width: clamp(320px, 35vw, 520px);
  height: auto;
  animation: aivenHover 4s ease-in-out infinite;
}

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

.aiven-shadow {
  width: clamp(180px, 20vw, 320px);
  height: 30px;
  margin-top: -10px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.45) 0%, transparent 70%);
  border-radius: 50%;
  animation: aivenShadow 4s ease-in-out infinite;
}

@keyframes aivenShadow {
  0%, 100% {
    transform: scaleX(1);
    opacity: 0.6;
  }
  50% {
    transform: scaleX(0.75);
    opacity: 0.3;
  }
}

/* --- Aiven Text (right) --- */
.aiven-text {
  max-width: 540px;
}

.aiven-heading {
  font-size: clamp(3.5rem, 11vw, 9rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.aiven-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 36px;
}

/* ==========================================================================
   SECTION 3: CHAT
   ========================================================================== */
.chat-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: visible;
}

.chat-inner {
  width: 100%;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

.chat-aiven-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.chat-aiven-icon svg {
  width: clamp(420px, 55vw, 720px);
  height: auto;
}

.chat-bubble-text {
  position: absolute;
  max-width: clamp(280px, 40vw, 520px);
  text-align: center;
  font-size: clamp(0.8rem, 1.7vw, 1.35rem);
  line-height: 1.4;
  color: #ffffff;
  font-weight: 600;
  padding: 0 16px;
  transform: translateY(2%);
}

.chat-heading {
  font-size: clamp(3.5rem, 11vw, 9rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 40px;
}

/* Chat section phones — bottom corners */
.chat-phone-left,
.chat-phone-right {
  position: absolute;
  bottom: 0;
  opacity: 1;
  animation: none;
}

.chat-phone-left {
  left: 5%;
  right: auto;
  margin: 0;
  height: 440px;
  z-index: 2;
}

.chat-phone-right {
  right: 5%;
  left: auto;
  margin: 0;
  height: 440px;
  z-index: 2;
}

/* --- Chat Responsive --- */
@media (max-width: 1024px) {
  .chat-phone-left,
  .chat-phone-right {
    height: 340px;
  }

  .chat-aiven-icon svg {
    width: clamp(340px, 50vw, 560px);
  }
}

@media (max-width: 768px) {
  .chat-inner {
    padding: 40px 24px;
  }

  .chat-heading {
    font-size: clamp(2.4rem, 10vw, 4rem);
    margin-bottom: 24px;
  }

  .chat-phone-left,
  .chat-phone-right {
    display: none;
  }

  .chat-aiven-icon svg {
    width: 85vw;
  }

  .chat-bubble-text {
    max-width: 60vw;
    font-size: clamp(0.7rem, 2.8vw, 1rem);
  }
}

@media (max-width: 480px) {
  .chat-heading {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .chat-aiven-icon svg {
    width: 90vw;
  }

  .chat-bubble-text {
    max-width: 65vw;
    font-size: clamp(0.65rem, 2.5vw, 0.9rem);
  }
}


/* ==========================================================================
   SECTION 4: SOUL
   ========================================================================== */
.soul-section {
  background: transparent;
  position: relative;
  overflow: visible;
  z-index: 2;
}

.soul-inner {
  display: flex;
  flex-direction: column;
  padding: 300px 40px 80px;
  position: relative;
  z-index: 1;
}

.soul-columns {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-top: 40px;
}

/* --- Soul Character (right) --- */
.soul-character {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.soul-img {
  width: clamp(200px, 22vw, 320px);
  height: auto;
  animation: aivenHover 4s ease-in-out infinite;
}

.soul-shadow {
  width: clamp(180px, 20vw, 320px);
  height: 30px;
  margin-top: -10px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.45) 0%, transparent 70%);
  border-radius: 50%;
  animation: aivenShadow 4s ease-in-out infinite;
}

/* --- Soul Text (left) --- */
.soul-text {
  max-width: 540px;
}

.soul-heading {
  font-size: clamp(3.5rem, 11vw, 9rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #000000;
}

.soul-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 36px;
}

/* --- Soul Responsive --- */
@media (max-width: 1024px) {
  .soul-inner {
    padding-top: 160px;
  }

  .soul-columns {
    gap: 48px;
  }

  .soul-img {
    width: clamp(180px, 24vw, 280px);
  }
}

@media (max-width: 768px) {
  .soul-inner {
    padding: 60px 24px;
    text-align: center;
    align-items: center;
  }

  .soul-columns {
    flex-direction: column-reverse;
    gap: 32px;
  }

  .soul-heading {
    font-size: clamp(2.4rem, 10vw, 4rem);
  }

  .soul-img {
    width: clamp(180px, 40vw, 260px);
  }

  .soul-text {
    max-width: 480px;
  }
}

@media (max-width: 480px) {
  .soul-img {
    width: 45vw;
  }

  .soul-heading {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .soul-description {
    font-size: 1rem;
  }
}


/* ==========================================================================
   SECTION 5: AGENTS
   ========================================================================== */
.agents-section {
  background: transparent;
  position: relative;
  overflow: visible;
  z-index: 2;
}

.agents-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 300px 40px 80px;
  position: relative;
  z-index: 1;
}

.agents-heading {
  font-size: clamp(3.5rem, 11vw, 9rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #000000;
}

.agents-columns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  margin-top: 40px;
  width: 100%;
}

.agents-text {
  max-width: 320px;
  flex-shrink: 1;
}

.agents-text-left .agents-description {
  text-align: right;
}

.agents-text-right .agents-description {
  text-align: left;
}

.agents-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 36px;
}

.agents-phone {
  flex-shrink: 0;
}

.agents-phone-img {
  width: clamp(280px, 30vw, 480px);
  height: auto;
}

/* --- Agents Responsive --- */
@media (max-width: 1024px) {
  .agents-inner {
    padding-top: 160px;
  }

  .agents-columns {
    gap: 40px;
  }

  .agents-text {
    max-width: 280px;
  }

  .agents-phone-img {
    width: clamp(240px, 28vw, 380px);
  }
}

@media (max-width: 768px) {
  .agents-inner {
    padding: 60px 24px;
  }

  .agents-heading {
    font-size: clamp(2.4rem, 10vw, 4rem);
  }

  .agents-columns {
    flex-direction: column;
    gap: 32px;
  }

  .agents-phone {
    order: -1;
  }

  .agents-text {
    max-width: 480px;
  }

  .agents-text-left .agents-description,
  .agents-text-right .agents-description {
    text-align: center;
  }

  .agents-phone-img {
    width: clamp(240px, 50vw, 340px);
  }
}

@media (max-width: 480px) {
  .agents-heading {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .agents-description {
    font-size: 1rem;
  }
}


/* ==========================================================================
   SECTION 6: RELATIONSHIPS
   ========================================================================== */
.relationships-section {
  background: transparent;
  position: relative;
  overflow: visible;
  z-index: 2;
}

.relationships-inner {
  display: flex;
  flex-direction: column;
  padding: 300px 40px 80px;
  position: relative;
  z-index: 1;
}

.relationships-columns {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-top: 40px;
}

.relationships-character {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.relationships-img {
  width: clamp(200px, 22vw, 320px);
  height: auto;
  animation: aivenHover 4s ease-in-out infinite;
}

.relationships-shadow {
  width: clamp(180px, 20vw, 320px);
  height: 30px;
  margin-top: -10px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.45) 0%, transparent 70%);
  border-radius: 50%;
  animation: aivenShadow 4s ease-in-out infinite;
}

.relationships-text {
  max-width: 540px;
}

.relationships-heading {
  font-size: clamp(3.5rem, 11vw, 9rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.relationships-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 36px;
}

/* --- Relationships Responsive --- */
@media (max-width: 1024px) {
  .relationships-inner {
    padding-top: 160px;
  }

  .relationships-columns {
    gap: 48px;
  }

  .relationships-img {
    width: clamp(180px, 24vw, 280px);
  }
}

@media (max-width: 768px) {
  .relationships-inner {
    padding: 60px 24px;
    text-align: center;
    align-items: center;
  }

  .relationships-columns {
    flex-direction: column;
    gap: 32px;
  }

  .relationships-heading {
    font-size: clamp(2.4rem, 10vw, 4rem);
  }

  .relationships-img {
    width: clamp(180px, 40vw, 260px);
  }

  .relationships-text {
    max-width: 480px;
  }
}

@media (max-width: 480px) {
  .relationships-img {
    width: 45vw;
  }

  .relationships-heading {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .relationships-description {
    font-size: 1rem;
  }
}


/* ==========================================================================
   SECTION 7: WAITLIST
   ========================================================================== */
.waitlist-section {
  background: transparent;
  position: relative;
  overflow: visible;
  z-index: 2;
}

.waitlist-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 200px 40px 120px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.waitlist-heading {
  font-size: clamp(3.5rem, 11vw, 9rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 48px;
}

.waitlist-age {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 120px;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 560px;
}

.waitlist-fields {
  display: flex;
  gap: 24px;
  width: 100%;
}

.waitlist-input {
  flex: 1;
  padding: 18px 24px;
  font-size: 1rem;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease;
}

.waitlist-input::placeholder {
  color: var(--text-muted);
}

.waitlist-input:focus {
  border-color: var(--orange);
}

.waitlist-button {
  padding: 18px 64px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  color: #000000;
  background: var(--orange);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.waitlist-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.waitlist-button:active {
  transform: translateY(0);
}

.waitlist-success {
  display: none;
  font-size: 1.25rem;
  color: var(--orange);
  font-weight: 600;
}

/* --- Waitlist Responsive --- */
@media (max-width: 768px) {
  .waitlist-inner {
    padding: 60px 24px 80px;
  }

  .waitlist-heading {
    font-size: clamp(2.4rem, 10vw, 4rem);
    margin-bottom: 24px;
  }

  .waitlist-age {
    margin-bottom: 48px;
  }

  .waitlist-form {
    gap: 24px;
  }

  .waitlist-fields {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .waitlist-heading {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .waitlist-age {
    margin-bottom: 32px;
  }

  .waitlist-form {
    gap: 20px;
  }

  .waitlist-button {
    width: 100%;
  }
}


/* --- Scroll fade-in utility --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-grow-in {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-grow-in.visible {
  opacity: 1;
  transform: scale(1);
}

.aiven-character.fade-grow-in,
.soul-character.fade-grow-in,
.relationships-character.fade-grow-in {
  transition-delay: 0.3s;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.4s;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Aiven Responsive --- */
@media (max-width: 1024px) {
  .aiven-inner {
    padding-top: 160px;
  }

  .aiven-columns {
    gap: 48px;
  }

  .aiven-img {
    width: clamp(280px, 32vw, 400px);
  }
}

@media (max-width: 768px) {
  .aiven-inner {
    padding: 60px 24px;
    text-align: center;
    align-items: center;
  }

  .aiven-columns {
    flex-direction: column;
    gap: 32px;
  }

  .aiven-heading {
    font-size: clamp(2.4rem, 10vw, 4rem);
  }

  .aiven-img {
    width: clamp(240px, 55vw, 340px);
  }

  .aiven-text {
    max-width: 480px;
  }
}

@media (max-width: 480px) {
  .aiven-img {
    width: 60vw;
  }

  .aiven-heading {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .aiven-description {
    font-size: 1rem;
  }
}
