/* frontend/assets/css/public.css */

/* ============================================================
   COLOR VARIABLES
   ============================================================ */
:root {
    --or-dark:    #0B2E33;
    --or-mid:     #4F7C82;
    --or-muted:   #93B1B5;
    --or-light:   #B8E3E9;
    --or-bg:      #f0f5fc;
    --or-white:   #ffffff;
    --or-border:  #e0eaf0;
    --or-text:    #0B2E33;
    --or-text-sm: #6b8a8e;
    --or-shadow:  #B8E3E9;
}

/* ============================================================
   HOMEPAGE BASE
   ============================================================ */
body {
    background: var(--or-bg);
}

/* ============================================================
   NAV OVERRIDE for public pages
   ============================================================ */
.header {
    background: linear-gradient(135deg, #0D3136 10%, #133d44 40%, #18474e 75%, #2b5a61 95%);
    box-shadow: none;
}

.header .logo {
    color: var(--or-dark);
    font-weight: 800;
}

.header .logo span {
    color: var(--or-mid);
}

.header .nav-links a {
    color: var(--or-mid);
}

.header .nav-links a:hover {
    background: var(--or-bg);
    color: var(--or-dark);
}

.header .nav-links .nav-cta {
    background: var(--or-dark);
    color: var(--or-light);
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 700;
}

/* ============================================================
   HERO
   ============================================================ */
.or-hero-wrap {
    background: linear-gradient(135deg, #0B2E33 0%, #1a4a52 60%, #4F7C82 100%);
    position: relative;
}

.or-hero {
    padding: 80px 48px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    min-height: 460px;
    overflow: hidden;
    max-width: 1600px;
    margin: 0 auto;
}

.or-hero-left {
    padding: 50px 10px 10px 10px;
}

.or-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(184,227,233,0.15);
    border: 1px solid rgba(184,227,233,0.25);
    color: var(--or-light);
    font-size: 11px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.or-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--or-light);
    animation: or-pulse 2s infinite;
}

@keyframes or-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.or-hero-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
    color: var(--or-white);
}

.or-hero-title em {
    color: var(--or-light);
    font-style: normal;
}

.or-hero-sub {
    font-size: 15px;
    color: rgba(184,227,233,0.75);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 420px;
}

.or-hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.or-btn-primary {
    background: var(--or-light);
    color: var(--or-dark);
    padding: 13px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s;
    display: inline-block;
}

.or-btn-primary:hover {
    transform: translateY(-2px);
    color: var(--or-dark);
    text-decoration: none;
}

.or-btn-ghost {
    background: rgba(255,255,255,0.1);
    color: var(--or-white);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 13px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    display: inline-block;
}

.or-btn-ghost:hover {
    background: rgba(255,255,255,0.18);
    color: var(--or-white);
    text-decoration: none;
}

.or-hero-right {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 50px 0 10px 0;
}

.or-hero-right svg {
    width: 80%;
    overflow: visible;
}

.or-wave-hero {
    display: block;
    width: 100%;
    height: 60px;
    margin-bottom: -2px;
}

#birds {
    animation: birdsLoop 30s linear infinite;
  }

  @keyframes birdsLoop {
    0% {
      transform: translateX(500px);   /* start OFF SCREEN RIGHT */
    }
    100% {
      transform: translateX(-500px);  /* exit OFF SCREEN LEFT */
    }
}

  /* wing flap (keep this) */
#birds path {
    transform-origin: center;
    animation: flap 2s ease-in-out infinite;
    }

    @keyframes flap {
    0%, 100% { scale: 1 1; }
    50%      { scale: 1 0.85; }
    }

    #clouds-wrapper {
    animation: cloudsLoop 40s linear infinite;
    }

    @keyframes cloudsLoop {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-500px);
    }
}

  /* second set starts ahead */
  #clouds-copy {
    transform: translateX(500px);
  }

  #Layer_1-2 {
    animation: floatScene 6s ease-in-out infinite;
  }

  @keyframes floatScene {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
  }

  #tree {
    transform-origin: bottom center;
    animation: treeSway 4s ease-in-out infinite;
  }

  @keyframes treeSway {
    0%, 100% { transform: rotate(0deg); }
    50%      { transform: rotate(1deg); }
  }

  /* target leaf-like elements */
  #tree circle,
  #tree path[opacity] {
    transform-origin: center;
    animation: leafFloat 3s ease-in-out infinite;
  }

  /* variation for realism */
  #tree circle:nth-child(odd),
  #tree path[opacity]:nth-child(odd) {
    animation-duration: 3.5s;
  }

  #tree circle:nth-child(even),
  #tree path[opacity]:nth-child(even) {
    animation-duration: 2.8s;
  }

  @keyframes leafFloat {
    0%, 100% {
      transform: translateY(0px) rotate(0deg);
    }
    50% {
      transform: translateY(-2px) rotate(1deg);
    }
  }

#tree circle:nth-child(3n) {
    animation-delay: -1s;
    }
    #tree circle:nth-child(4n) {
    animation-delay: -2s;
}

  #survey-form {
    transform-origin: center;
    animation: surveyFloat 5s ease-in-out infinite;
  }

  @keyframes surveyFloat {
    0%, 100% {
      transform: translateY(0px) rotate(0deg);
    }
    50% {
      transform: translateY(-6px) rotate(0.5deg);
    }
  }

  #feedback-g {
    transform-origin: center;
    animation: feedbackPulseG 4s ease-in-out infinite;
  }

  @keyframes feedbackPulseG {
    0%, 100% {
      transform: scale(1) translateY(0);
      opacity: 1;
    }
    50% {
      transform: scale(1.05) translateY(-4px);
      opacity: 0.95;
    }
  }

  #feedback-b {
    transform-origin: center;
    animation: feedbackPulseB 4.5s ease-in-out infinite;
    animation-delay: -2s;
  }

  @keyframes feedbackPulseB {
    0%, 100% {
      transform: scale(1) translateY(0);
      opacity: 1;
    }
    50% {
      transform: scale(1.06) translateY(-5px);
      opacity: 0.9;
    }
  }

/* ============================================================
   TICKER
   ============================================================ */
.or-ticker {
    background: linear-gradient(135deg, #0B2E33 0%, #1a4a52 60%, #4F7C82 100%);
    padding: 16px 0;
    overflow: hidden;
}

.or-ticker-inner {
    display: flex;
    gap: 12px;
    white-space: nowrap;
    width: max-content;
    animation: or-scroll 120s linear infinite;
}

@keyframes or-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.or-tick-item {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 16px;
    background: rgba(184,227,233,0.07);
    border: 1px solid rgba(184,227,233,0.12);
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 240px;
    max-width: 360px;
}

.or-tick-time {
    font-size: 10px;
    color: rgba(184,227,233,0.45);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.or-tick-flag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.or-tick-flag-img {
    width: 16px !important;
    height: 12px !important;
    object-fit: cover;
    border-radius: 2px;
    display: inline-block;
    vertical-align: middle;
}

.or-tick-text {
    font-size: 12px;
    color: rgba(184,227,233,0.75);
    white-space: normal;
    line-height: 1.4;
}

.or-tick-sep {
    color: rgba(255,255,255,0.3);
}

.or-tick-amount {
    font-weight: 700;
    color: var(--or-white);
}

/* ============================================================
   ABOUT
   ============================================================ */
.or-about-wrap {
    background: var(--or-white);
}

.or-wave-about-top {
    display: block;
    width: 100%;
    height: 50px;
    margin-top: -2px;
}

.or-about {
    padding: 80px 48px;
}

.or-about-inner {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.or-about-illustration svg {
    max-width: 100%;
}

.or-about-text {
    font-size: 14px;
    color: var(--or-text-sm);
    line-height: 1.8;
    margin-bottom: 32px;
}

.or-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.or-stat-box {
    background: #d5f0f987;
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
}

.or-stat-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--or-dark);
}

.or-stat-lbl {
    font-size: 11px;
    color: #749397;
    margin-top: 4px;
    font-weight: 600;
}

.or-about-illustration {
  padding-right: 30px;
}

.or-about-content {
  padding: 20px;
}

  #plant {
    transform-origin: bottom center;
    animation: plantSway 5s ease-in-out infinite;
  }

  @keyframes plantSway {
    0%, 100% { transform: rotate(0deg); }
    50%      { transform: rotate(1.2deg); }
  }

  /* leaf micro movement */
  #plant path[fill="#00a09d"],
  #plant path[fill="#1d7e8e"] {
    transform-origin: center;
    animation: leafSoft 3s ease-in-out infinite;
  }

  @keyframes leafSoft {
    0%, 100% { transform: translateY(0px); }
    50%      { transform: translateY(-2px); }
  }

    #person-1, #person-2 {
    transform-origin: center;
    animation: personBreath 4s ease-in-out infinite;
  }

  @keyframes personBreath {
    0%, 100% {
      transform: translateY(0px) scale(1);
    }
    50% {
      transform: translateY(-2px) scale(1.01);
    }
  }

    #person-2 rect,
  #person-2 path[fill="#fff"] {
    animation: screenGlow 3s ease-in-out infinite;
  }

  @keyframes screenGlow {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.85; }
  }

    #background {
    animation: bgMove 20s ease-in-out infinite;
  }

  @keyframes bgMove {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(10px); }
  }

    #graph path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: graphDraw 6s ease-in-out infinite;
  }

  @keyframes graphDraw {
    0% {
      stroke-dashoffset: 1000;
    }
    40% {
      stroke-dashoffset: 0;
    }
    60% {
      stroke-dashoffset: 0;
    }
    100% {
      stroke-dashoffset: 1000;
    }
  }

    #survey-1,
  #survey-2,
  #survey-3 {
    transform-origin: center;
    animation: surveyFloat 5s ease-in-out infinite;
  }

  #survey-2 { animation-delay: -1.5s; }
  #survey-3 { animation-delay: -3s; }

  @keyframes surveyFloat {
    0%, 100% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-10px);
    }
  }

    #withdraw-1,
  #withdraw-2 {
    transform-origin: center;
    animation: withdrawPulse 2.8s ease-in-out infinite;
  }

  #withdraw-2 {
    animation-delay: -1.4s;
  }

  @keyframes withdrawPulse {
    0%, 100% {
      transform: scale(1);
      opacity: 1;
    }
    50% {
      transform: scale(1.08);
      opacity: 0.9;
    }
  }

  #withdraw-1,
#withdraw-2 {
  animation: withdrawGlow 2.8s ease-in-out infinite;
}

@keyframes withdrawGlow {
  0%, 100% {
    filter: drop-shadow(0 0 0px rgba(0,0,0,0));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(0, 160, 157, 0.5));
  }
}

/* ============================================================
   SECTION LABELS & TITLES
   ============================================================ */
.or-sec-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--or-mid);
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.or-sec-tag--light {
    color: var(--or-muted);
}

.or-sec-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--or-dark);
    margin-bottom: 10px;
    line-height: 48px;
}

.or-sec-title--light {
    color: var(--or-white);
}

.or-sec-sub {
    font-size: 14px;
    color: var(--or-text-sm);
    margin-bottom: 48px;
}

.or-sec-sub--light {
    color: rgba(184,227,233,0.6);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.or-hiw-wrap {
    position: relative;
    background: var(--or-bg);
}

.or-wave-hiw {
    display: block;
    width: 100%;
    height: 50px;
    background: var(--or-white);
    margin-bottom: -2px;
}

.or-hiw {
    padding: 80px 48px;
    background: var(--or-white);
}

.or-hiw-inner {
    max-width: 1500px;
    margin: 0 auto;
}

.or-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.or-step-card h2 {
  margin-bottom: 15px;
  color: #1e5c61;
}

.or-step-card {
    background: var(--or-white);
    border-radius: 24px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 6px 0 var(--or-shadow);
    border: 1px solid var(--or-border);
    transition: transform 0.2s;
}

.or-step-card:hover {
    transform: translateY(-4px);
}

.or-step-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.or-step-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--or-dark);
    margin-bottom: 8px;
}

.or-step-card p {
    font-size: 12px;
    color: var(--or-text-sm);
    line-height: 1.6;
}

/* ============================================================
   FEATURES
   ============================================================ */
.or-feats {
    background: var(--or-white);
    padding: 80px 48px;
}

.or-feats-inner {
    max-width: 1500px;
    margin: 0 auto;
}

.or-feat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.or-feat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--or-bg);
    border-radius: 24px;
    padding: 32px 24px;
    border: 1px solid var(--or-border);
    box-shadow: 0 8px 0 var(--or-shadow);
    transition: transform 0.2s;
    text-align: center;
}

.or-feat-card:hover {
    transform: translateY(-4px);
}

.or-feat-icon-wrap {
    background: #e5f5ff6b;
    width: 100px;
    height: 100px;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    border: 1px solid #1e5c611a;
}

.or-feat-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--or-dark);
}

.or-feat-card p {
    font-size: 14px;
    color: var(--or-text-sm);
    line-height: 1.7;
}

.or-wrap-pd10 {
    padding: 10px;
}

.or-wrap-pd15 {
    padding: 15px;
}


/* ============================================================
   OFFERWALLS STRIP
   ============================================================ */
.or-ow-wrap {
    background: var(--or-dark);
}

.or-wave-ow {
    display: block;
    width: 100%;
    height: 50px;
    background: var(--or-bg);
    margin-bottom: -2px;
}

.or-ow-section {
    padding: 60px 48px;
}

.or-ow-header {
    max-width: 1500px;
    margin: 0 auto;
}

.or-ow-strip {
    overflow: hidden;
    margin-top: 40px;
}

.or-ow-inner {
    display: flex;
    gap: 16px;
    width: max-content;
    will-change: transform;
}

.or-ow-card {
    background: #0f3a40;
    border: 1px solid rgba(79,124,130,0.3);
    border-radius: 18px;
    padding: 20px;
    flex-shrink: 0;
    width: 180px;
    text-align: center;
    transition: transform 0.2s;
}

.or-ow-card:hover {
    transform: translateY(-3px);
}

.or-ow-img {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: #1a4a52;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.or-ow-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--or-light);
    margin-bottom: 4px;
}

.or-ow-offers {
    font-size: 11px;
    color: rgba(184,227,233,0.45);
}

.or-ow-earn {
    font-size: 14px;
    font-weight: 800;
    color: var(--or-mid);
    margin-top: 8px;
}

/* ============================================================
   PAYMENT METHODS
   ============================================================ */
.or-pay-wrap {
    background: var(--or-white);
}

.or-wave-pay {
    display: block;
    width: 100%;
    height: 50px;
    background: var(--or-dark);
    margin-bottom: -2px;
}

.or-payments {
    padding: 20px 48px 60px;
    text-align: center;
}

.or-pay-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.or-pay-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.or-pay-card {
    background: var(--or-bg);
    border-radius: 20px;
    padding: 28px 16px;
    border: 1px solid var(--or-border);
    box-shadow: 0 5px 0 var(--or-shadow);
    transition: transform 0.2s;
}

.or-pay-card:hover {
    transform: translateY(-3px);
}

.or-pay-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--or-dark);
    margin-top: 12px;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.or-cta {
    background: #ffffff;
    padding: 40px 48px;
    text-align: center;
}

.or-cta h2 {
    font-size: 30px;
    font-weight: 800;
    color: var(--or-dark);
    margin-bottom: 10px;
}

.or-cta p {
    font-size: 14px;
    color: var(--or-dark);
    margin-bottom: 24px;
}

.or-btn-cta {
    background: var(--or-light);
    color: var(--or-dark);
    padding: 12px 36px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s;
}

.or-btn-cta:hover {
    transform: translateY(-2px);
    color: var(--or-dark);
    text-decoration: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .or-hero {
        grid-template-columns: 1fr;
        padding: 60px 24px 40px;
        min-height: auto;
    }

    .or-hero-right {
        display: none;
    }

    .or-about-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .or-about-illustration {
        display: none;
    }

    .or-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .or-feat-grid {
        grid-template-columns: 1fr;
    }

    .or-earn-grid {
        grid-template-columns: 1fr;
    }

    .or-pay-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .or-about,
    .or-hiw,
    .or-feats,
    .or-earn,
    .or-ow-section,
    .or-payments,
    .or-cta {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 600px) {
    .or-hero-title {
        font-size: 32px;
    }

    .or-sec-title {
        font-size: 26px;
    }

    .or-steps-grid {
        grid-template-columns: 1fr;
    }

    .or-pay-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .or-stats-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .or-hero-btns {
        flex-direction: column;
    }

    .or-btn-primary,
    .or-btn-ghost {
        text-align: center;
    }

    .or-cta h2 {
        font-size: 24px;
    }
}

@media (max-width: 1600px) {
    .or-hero {
        max-width: 1400px;
    }

    .or-about-inner {
        max-width: 1300px;
    }

    .or-hiw-inner {
        max-width: 1300px;
    }

    .or-feats-inner {
        max-width: 1300px;
    }

    .or-earn-inner {
        max-width: 1300px;
    }

    .or-ow-inner {
        max-width: 1300px;
    }

    .or-pay-inner {
        max-width: 1000px;
    }

}

@media (max-width: 1400px) {
    .or-hero {
        max-width: 1200px;
    }

    .or-about-inner {
        max-width: 1100px;
    }

    .or-hiw-inner {
        max-width: 1100px;
    }

    .or-feats-inner {
        max-width: 1100px;
    }

    .or-earn-inner {
        max-width: 1100px;
    }

    .or-ow-inner {
        max-width: 1100px;
    }

    .or-pay-inner {
        max-width: 800px;
    }

}

@media (max-width: 1200px) {
    .or-hero {
        max-width: 1000px;
    }

    .or-about-inner {
        max-width: 900px;
    }

    .or-hiw-inner {
        max-width: 900px;
    }

    .or-feats-inner {
        max-width: 900px;
    }

    .or-earn-inner {
        max-width: 900px;
    }

    .or-ow-inner {
        max-width: 900px;
    }

    .or-pay-inner {
        max-width: 800px;
    }

}