/* ========================================
   Ready Ventures — Styles
   ======================================== */

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

:root {
  --bg: #271f5f;
  --bg-deep: #1a1545;
  --purple: #7B6BF0;
  --purple-light: #9B8BFF;
  --purple-glow: rgba(123, 107, 240, 0.15);
  --white: #ffffff;
  --white-soft: rgba(255, 255, 255, 0.85);
  --white-muted: rgba(255, 255, 255, 0.5);
  --font-heading: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Outfit', 'Futura', 'Helvetica Neue', sans-serif;
  --container: 1100px;
  --gap: clamp(2rem, 5vw, 4rem);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  font-weight: 400;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
}

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

.hidden {
  display: none !important;
}

/* --- Particle Canvas --- */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  position: relative;
  z-index: 1;
}

/* ========================================
   Header
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header--scrolled {
  padding: 0.8rem 0;
  background: rgba(26, 21, 69, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(123, 107, 240, 0.1);
}

.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- Logo --- */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.85;
}

.logo__icon {
  width: 48px;
  height: 48px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo:hover .logo__icon {
  transform: scale(1.05);
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo__name {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.logo__sub {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--purple-light);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-top: 0.1rem;
}

/* --- Nav --- */
.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--white-soft);
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.3s ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--purple);
  border-radius: 1px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__link:hover {
  color: var(--white);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--cta {
  background: var(--purple);
  color: var(--white);
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  background: var(--purple-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(123, 107, 240, 0.4);
}

/* --- Nav Toggle (Mobile) --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.nav-toggle--active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle--active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle--active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Mobile Nav --- */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 105;
  background: var(--bg-deep);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav--active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav__link {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  transition: color 0.3s ease;
}

.mobile-nav__link:hover {
  color: var(--purple-light);
}

/* ========================================
   Hero
   ======================================== */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding-top: 10rem;
  padding-bottom: 6rem;
  position: relative;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.15;
  color: var(--white);
  max-width: 800px;
}

.hero__line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__line:nth-child(1) { animation-delay: 0.3s; }
.hero__line:nth-child(2) { animation-delay: 0.5s; }
.hero__line:nth-child(3) { animation-delay: 0.7s; }

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__glow {
  position: absolute;
  top: 30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(123, 107, 240, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 1; }
}

/* ========================================
   Sections (What / How)
   ======================================== */
.section {
  padding: var(--gap) 0;
}

.section__grid {
  display: grid;
  grid-template-columns: 120px 100px 1fr;
  gap: 0 2.5rem;
  align-items: start;
}

.section__divider {
  display: flex;
  align-items: center;
  padding-top: 0.6rem;
}

.divider-line {
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--visible .divider-line {
  opacity: 1;
  transform: scaleX(1);
}

.section__label h2 {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
}

.section__content {
  max-width: 560px;
}

.section__content p {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 300;
  color: var(--white-soft);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.section__content p:last-child {
  margin-bottom: 0;
}

.section__highlight {
  color: var(--white) !important;
  font-weight: 500 !important;
  font-style: italic;
  position: relative;
  padding-left: 1rem;
  border-left: 3px solid var(--purple);
}

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Contact
   ======================================== */
.contact {
  padding: clamp(4rem, 8vw, 8rem) 0;
  margin-top: 2rem;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  position: relative;
}

.contact__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--purple);
  border-radius: 2px;
  margin-top: 1.5rem;
  animation: titleLine 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-play-state: paused;
}

.reveal--visible .contact__title::after {
  animation-play-state: running;
}

@keyframes titleLine {
  from { width: 0; }
  to { width: 60px; }
}

.contact__email {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--purple);
  text-underline-offset: 4px;
  margin-bottom: 2.5rem;
  transition: all 0.3s ease;
}

.contact__email:hover {
  color: var(--purple-light);
  text-decoration-color: var(--purple-light);
}

/* --- Form --- */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form__group {
  position: relative;
}

.form__input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-appearance: none;
}

.form__input::placeholder {
  color: var(--white-muted);
}

.form__input:focus {
  border-color: var(--purple);
  background: rgba(123, 107, 240, 0.08);
  box-shadow: 0 0 0 3px rgba(123, 107, 240, 0.15);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--purple);
  color: var(--white);
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  align-self: flex-start;
  position: relative;
  overflow: hidden;
}

.form__button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.form__button:hover {
  background: var(--purple-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(123, 107, 240, 0.4);
}

.form__button:hover::before {
  width: 300px;
  height: 300px;
}

.form__button:hover svg {
  transform: translateX(4px);
}

.form__button svg {
  transition: transform 0.3s ease;
}

.form__button:active {
  transform: translateY(0);
}

/* --- Form Success --- */
.form__success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 2rem;
  background: rgba(123, 107, 240, 0.1);
  border: 1px solid rgba(123, 107, 240, 0.25);
  border-radius: 16px;
  animation: successIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.form__success--visible {
  display: flex;
}

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

.form__success-icon {
  width: 48px;
  height: 48px;
  color: var(--purple-light);
  margin-bottom: 1rem;
  animation: checkDraw 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

@keyframes checkDraw {
  from {
    stroke-dashoffset: 100;
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    stroke-dashoffset: 0;
    opacity: 1;
    transform: scale(1);
  }
}

.form__success h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.form__success p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--white-soft);
  line-height: 1.5;
}

/* --- Form Sending State --- */
.form__button--sending {
  pointer-events: none;
  opacity: 0.7;
}

.form__button--sending span {
  opacity: 0;
}

.form__button--sending::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy p {
  font-size: 0.85rem;
  color: var(--white-muted);
  font-weight: 300;
}

.footer__legal {
  font-size: 0.75rem !important;
  font-style: italic;
  color: rgba(255, 255, 255, 0.3) !important;
  margin-top: 0.5rem;
}

.footer__icon {
  width: 40px;
  height: 40px;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.footer__icon:hover {
  opacity: 0.7;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .hero {
    min-height: 80vh;
    padding-top: 6rem;
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .section__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .section__divider {
    width: 80px;
    margin-bottom: 0.5rem;
  }

  .section__label h2 {
    font-size: 1.2rem;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .hero__glow {
    width: 300px;
    height: 300px;
    top: 20%;
    right: -20%;
  }
}

@media (max-width: 480px) {
  .logo__icon {
    width: 36px;
    height: 36px;
  }

  .logo__name {
    font-size: 1.5rem;
  }

  .logo__sub {
    font-size: 0.55rem;
  }
}

/* ========================================
   Smooth scroll offset for anchors
   ======================================== */
#what, #how, #contact {
  scroll-margin-top: 100px;
}

/* ========================================
   Selection color
   ======================================== */
::selection {
  background: var(--purple);
  color: var(--white);
}

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--purple);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--purple-light);
}
