/* ==========================================================================
   FYP Student Offer page (v2). Builds on home-v2.css, home-v2-sections.css
   and about-v2.css (stats strip, crumbs, value cards).
   ========================================================================== */

/* ---------- Hero ---------- */
.v2-fy-hero { position: relative; overflow: hidden; overflow: clip; background: var(--v2-bg); padding: 104px 0 48px; }
.v2-fy-hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.v2-fy-hero__copy { display: flex; flex-direction: column; gap: 18px; }
.v2-fy-badge {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 14px; border-radius: 999px;
    background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .35); font-size: 13px; font-weight: 600; color: #fcd34d;
}
.v2 .v2-fy-hero__title { margin: 0; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.08; font-weight: 800; letter-spacing: -.035em; color: #fff; }
.v2-fy-hero__lead { max-width: 600px; font-size: 17px; line-height: 1.7; color: var(--v2-muted); }
.v2-fy-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.v2-fy-wa { background: #0f7d40; color: #fff; } /* WhatsApp green darkened for 4.5:1 contrast with white text */
.v2-fy-wa:hover { background: #0b6b36; box-shadow: 0 14px 40px -10px rgba(37, 211, 102, .6); }

/* WhatsApp-style chat preview */
.v2-chat { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: #0b1428; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8); }
.v2-chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: rgba(31, 168, 85, .14); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.v2-chat__avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #0f7d40; color: #fff; }
.v2-chat__head > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.v2-chat__head b { font-size: 15px; color: #fff; }
.v2-chat__head small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #a7f3d0; }
.v2-chat__head .v2-dot { width: 7px; height: 7px; }
.v2-chat__body {
    display: flex; flex-direction: column; gap: 10px; min-height: 290px; padding: 18px;
    background-image: radial-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 18px 18px;
}
.v2-msg { max-width: 82%; margin: 0; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; opacity: 0; animation: v2-msg .5s var(--v2-ease) var(--m, 0s) forwards; }
.v2-msg--in { align-self: flex-start; background: rgba(255, 255, 255, .08); color: #e3e6fa; border-top-left-radius: 4px; }
.v2-msg--out { align-self: flex-end; background: #1d6b45; color: #ecfdf5; border-top-right-radius: 4px; }
.v2-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 14px; border-top-left-radius: 4px; background: rgba(255, 255, 255, .08); opacity: 0; animation: v2-msg .4s ease var(--m, 0s) forwards; }
.v2-typing i { width: 6px; height: 6px; border-radius: 50%; background: #a9b0d6; animation: v2-typing 1.2s ease-in-out infinite; }
.v2-typing i:nth-child(2) { animation-delay: .15s; }
.v2-typing i:nth-child(3) { animation-delay: .3s; }
.v2-chat__cta { margin: 0 18px 18px; font-size: 15px; }
@keyframes v2-msg { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes v2-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ---------- What we build ---------- */
.v2-fy-tags { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; position: relative; }

/* ---------- Packages ---------- */
.v2-fy-pkgs { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.v2-fy-pkg__list { margin: 0; padding: 16px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .07); display: flex; flex-direction: column; gap: 10px; }
.v2-fy-pkg__list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: #d5d9f2; }
.v2-fy-pkgs .v2-plan__cta svg { flex: none; }
.v2-fy-nudge { display: flex; align-items: center; gap: 16px; }
.v2-icon-box--amber { background: rgba(251, 191, 36, .14); color: #fcd34d; }

/* ---------- Why + tech ---------- */
.v2-fy-why { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: start; }
.v2-fy-why__list { margin-top: 20px; border-top: 0; padding-top: 0; }
.v2-fy-stack { position: sticky; top: 110px; padding: 28px; border-radius: 22px; background: var(--v2-surface); border: 1px solid var(--v2-border); }
.v2-fy-stack h3 { margin: 10px 0 20px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; color: #fff; }
.v2-fy-stack__grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.v2-fy-stack__grid li { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--v2-border); font-size: 14px; color: #d5d9f2; transition: border-color .25s, background .25s; }
.v2-fy-stack__grid li:hover { border-color: rgba(124, 138, 255, .45); background: rgba(59, 76, 255, .1); }
.v2-fy-stack__grid li span { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--v2-accent); }
.v2-fy-stack__note { display: flex; gap: 10px; margin-top: 18px; padding: 16px; border-radius: 14px; background: rgba(59, 76, 255, .1); border: 1px solid rgba(124, 138, 255, .25); font-size: 14px; line-height: 1.6; color: #d5d9f2; }
.v2-fy-stack__note svg { flex: none; margin-top: 2px; color: var(--v2-accent); }
.v2-fy-stack__note a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Steps ---------- */
.v2-fy-steps { position: relative; margin: 32px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.v2-fy-steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 52px; height: 2px; background: linear-gradient(90deg, rgba(59, 76, 255, .6), rgba(124, 138, 255, .2)); }
.v2-fy-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 20px; border-radius: 20px; text-align: center; background: var(--v2-surface); border: 1px solid var(--v2-border); transition: transform .35s var(--v2-ease), border-color .35s; }
.v2-fy-step:hover { transform: translateY(-5px); border-color: rgba(124, 138, 255, .45); }
.v2-fy-step__num { position: absolute; top: 14px; right: 16px; font: 600 13px var(--v2-mono); color: #4c5584; }
.v2-fy-step .v2-icon-box { width: 56px; height: 56px; border-radius: 16px; background: var(--v2-primary); color: #fff; box-shadow: 0 0 0 8px var(--v2-surface); }
.v2-fy-step h3 { margin: 4px 0 0; font-size: 17px; font-weight: 700; color: #fff; }
.v2-fy-step p { font-size: 14px; line-height: 1.6; color: var(--v2-muted); }

/* ---------- Final CTA ---------- */
.v2-fy-final { padding: 56px 0; }
.v2-fy-final__card {
    display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 44px 32px; border-radius: 28px; text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(135deg, #2b3be0, #3b4cff 55%, #2430b8);
    box-shadow: 0 40px 100px -40px rgba(59, 76, 255, .7);
}
.v2-fy-final__card .v2-eyebrow { color: rgba(255, 255, 255, .8); }
.v2-fy-final__text { max-width: 600px; font-size: 16.5px; line-height: 1.7; color: rgba(255, 255, 255, .88); }
.v2-fy-final__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.v2-fy-final__ctas .v2-btn { font-size: 15px; }
.v2-fy-final__ticks { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
.v2-fy-final__ticks li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: rgba(255, 255, 255, .85); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .v2-fy-hero__inner, .v2-fy-why { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .v2-fy-pkgs { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-left: auto; margin-right: auto; }
    .v2-fy-pkgs .v2-plan--featured { order: -1; }
    .v2-fy-stack { position: static; }
    .v2-fy-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .v2-fy-steps::before { display: none; }
}
@media (max-width: 720px) {
    .v2-fy-hero { padding: 100px 0 48px; }
    .v2-fy-hero__lead { font-size: 15.5px; }
    .v2-fy-hero__ctas { flex-direction: column; }
    .v2-fy-hero__ctas .v2-btn { width: 100%; }
    .v2-chat__body { min-height: 260px; padding: 14px; }
    .v2-msg { font-size: 13.5px; }
    .v2-fy-pkgs { margin-top: 32px; gap: 14px; }
    .v2-fy-nudge { align-items: flex-start; }
    .v2-fy-stack { padding: 20px; }
    .v2-fy-stack__grid { grid-template-columns: minmax(0, 1fr); }
    .v2-fy-steps { margin-top: 32px; grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .v2-fy-step { flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; padding: 18px; gap: 6px 14px; }
    .v2-fy-step .v2-icon-box { width: 46px; height: 46px; box-shadow: none; }
    .v2-fy-step h3 { margin: 0; flex: 1; }
    .v2-fy-step p { flex-basis: 100%; }
    .v2-fy-final { padding: 56px 0; }
    .v2-fy-final__card { padding: 36px 20px; border-radius: 22px; }
    .v2-fy-final__ctas { flex-direction: column; width: 100%; }
    .v2-fy-final__ctas .v2-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .v2-msg, .v2-typing { opacity: 1; animation: none; }
}
