/* ====================================================================
   TenderWise — Design System & Layout
   ==================================================================== */

/* ===== CSS Variables ===== */
:root {
    /* Brand colors */
    --tw-indigo: #1A2B5E;
    --tw-indigo-dark: #12204A;
    --tw-amber: #F5A623;
    --tw-teal: #2ECFB0;
    --tw-white: #FFFFFF;

    /* Neutral scale */
    --tw-gray-50: #F8F9FC;
    --tw-gray-100: #EEF0F7;
    --tw-gray-300: #D1D5DB;
    --tw-gray-500: #6B7280;
    --tw-gray-700: #374151;
    --tw-gray-900: #111827;

    /* Typography */
    --tw-font-display: 'Unbounded', sans-serif;
    --tw-font-body: 'Manrope', sans-serif;

    /* Layout */
    --tw-container-width: 1200px;
    --tw-radius-sm: 8px;
    --tw-radius-md: 16px;
    --tw-radius-lg: 20px;
    --tw-radius-xl: 28px;
}

/* ===== Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--tw-font-body);
    color: var(--tw-gray-900);
    background: var(--tw-white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }

.tw-container {
    max-width: var(--tw-container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Logo ===== */
.tw-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.tw-logo__text {
    font-family: var(--tw-font-display);
    font-weight: 700;
    font-size: 20px;
    color: var(--tw-indigo);
}

.tw-logo__text-accent {
    color: var(--tw-amber);
}

/* ===== Buttons ===== */
.tw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--tw-radius-sm);
    font-family: var(--tw-font-body);
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
}

.tw-btn--primary {
    background: var(--tw-indigo);
    color: var(--tw-white);
}

.tw-btn--primary:hover {
    background: var(--tw-indigo-dark);
    transform: translateY(-1px);
}

.tw-btn--ghost {
    background: transparent;
    color: var(--tw-indigo);
}

.tw-btn--ghost:hover {
    background: var(--tw-gray-100);
}

.tw-btn--outline {
    background: transparent;
    color: var(--tw-indigo);
    border: 1.5px solid var(--tw-gray-300);
}

.tw-btn--outline:hover {
    border-color: var(--tw-indigo);
    background: var(--tw-gray-50);
}

.tw-btn--lg {
    padding: 15px 32px;
    font-size: 16px;
}

.tw-btn--block {
    width: 100%;
}

/* ===== Badge ===== */
.tw-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    background: rgba(245, 166, 35, 0.12);
    color: #B9760E;
}

.tw-badge--light {
    background: rgba(26, 43, 94, 0.06);
    color: var(--tw-indigo);
}

.tw-badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tw-amber);
    animation: tw-pulse 2s ease-in-out infinite;
}

@keyframes tw-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* ===== Header ===== */
.tw-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--tw-gray-100);
}

.tw-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.tw-header__nav {
    display: flex;
    gap: 32px;
}

.tw-header__nav a {
    font-weight: 500;
    font-size: 15px;
    color: var(--tw-gray-700);
    transition: color 0.2s ease;
}

.tw-header__nav a:hover {
    color: var(--tw-indigo);
}

.tw-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 860px) {
    .tw-header__nav { display: none; }
}

/* ===== Hero ===== */
.tw-hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0 100px;
}

.tw-hero__bg-decor {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.tw-decor {
    position: absolute;
    border-radius: 50%;
}

.tw-decor--circle-1 {
    top: -15%;
    right: -8%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.10), transparent 70%);
}

.tw-decor--circle-2 {
    bottom: -20%;
    left: -10%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(46, 207, 176, 0.08), transparent 70%);
}

.tw-decor--grid {
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, var(--tw-gray-300) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.15;
    mask-image: linear-gradient(to bottom, black, transparent 70%);
}

.tw-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

@media (max-width: 960px) {
    .tw-hero__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

.tw-hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tw-hero__title {
    font-family: var(--tw-font-display);
    font-size: clamp(32px, 4.2vw, 52px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--tw-indigo);
    margin: 20px 0 24px;
}

.tw-hero__title-accent {
    display: block;
    color: var(--tw-amber);
}

.tw-hero__subtitle {
    font-size: 17px;
    line-height: 1.65;
    color: var(--tw-gray-700);
    max-width: 540px;
    margin-bottom: 36px;
}

.tw-hero__cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.tw-hero__trust {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--tw-gray-500);
}

.tw-hero__trust-item strong {
    color: var(--tw-indigo);
    font-weight: 700;
}

.tw-hero__trust-divider {
    opacity: 0.4;
}

/* ===== Hero Visual ===== */
.tw-hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}

.tw-hero__owl-decor {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.06;
    z-index: 0;
}

/* ===== Tender Card ===== */
.tw-tender-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    background: var(--tw-white);
    border: 1px solid var(--tw-gray-100);
    border-radius: var(--tw-radius-lg);
    padding: 28px;
    box-shadow: 0 20px 60px -20px rgba(26, 43, 94, 0.25);
    animation: tw-float 6s ease-in-out infinite;
}

@keyframes tw-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.tw-tender-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.tw-tender-card__badge {
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(26, 43, 94, 0.08);
    color: var(--tw-indigo);
    font-size: 12px;
    font-weight: 700;
}

.tw-tender-card__id {
    font-size: 12px;
    color: var(--tw-gray-500);
}

.tw-tender-card__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--tw-gray-900);
    margin-bottom: 20px;
}

.tw-tender-card__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--tw-gray-100);
}

.tw-tender-card__meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tw-tender-card__meta-label {
    font-size: 12px;
    color: var(--tw-gray-500);
}

.tw-tender-card__meta-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--tw-gray-900);
}

.tw-tender-card__ai {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ===== Win Chance Ring ===== */
.tw-win-chance {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.tw-win-chance__ring {
    transform: rotate(-90deg);
}

.tw-win-chance__progress {
    stroke-dasharray: 188.4; /* 2 * PI * 30 */
    stroke-dashoffset: 188.4;
    animation: tw-ring-fill 1.4s ease-out 0.3s forwards;
}

@keyframes tw-ring-fill {
    to {
        stroke-dashoffset: calc(188.4 - (188.4 * var(--tw-chance)) / 100);
    }
}

.tw-win-chance__label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--tw-font-display);
    font-weight: 700;
    font-size: 16px;
    color: var(--tw-indigo);
}

.tw-tender-card__ai-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tw-tender-card__ai-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--tw-gray-900);
}

.tw-tender-card__ai-desc {
    font-size: 12.5px;
    color: var(--tw-teal);
    font-weight: 600;
}

/* ===== Mini floating card ===== */
.tw-mini-card {
    position: absolute;
    bottom: 24px;
    left: -20px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: var(--tw-white);
    border-radius: 999px;
    box-shadow: 0 12px 30px -10px rgba(26, 43, 94, 0.2);
    font-size: 13px;
    font-weight: 600;
    color: var(--tw-gray-700);
    animation: tw-float 6s ease-in-out infinite 1s;
}

@media (max-width: 500px) {
    .tw-mini-card { left: 0; }
}

/* ==================================================================
   COUNTDOWN OVERLAY
   ================================================================== */
.tw-countdown-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--tw-indigo) 0%, var(--tw-indigo-dark) 100%);
    overflow: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.tw-countdown-overlay.tw-is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.tw-countdown-overlay__bg-decor {
    position: absolute;
    inset: 0;
}

.tw-countdown-overlay__bg-decor .tw-decor--circle-1 {
    background: radial-gradient(circle, rgba(245, 166, 35, 0.18), transparent 70%);
}

.tw-countdown-overlay__bg-decor .tw-decor--circle-2 {
    background: radial-gradient(circle, rgba(46, 207, 176, 0.14), transparent 70%);
}

.tw-countdown-overlay__close {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tw-white);
    border-radius: 50%;
    transition: background 0.2s ease;
}

.tw-countdown-overlay__close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tw-countdown-overlay__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 560px;
    padding: 40px 24px;
}

.tw-countdown-overlay__owl {
    margin-bottom: 20px;
    opacity: 0.95;
}

.tw-badge--overlay {
    background: rgba(245, 166, 35, 0.18);
    color: var(--tw-amber);
    margin-bottom: 24px;
}

.tw-countdown-overlay__title {
    font-family: var(--tw-font-display);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 600;
    color: var(--tw-white);
    margin-bottom: 32px;
}

.tw-countdown {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.tw-countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 72px;
    padding: 16px 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--tw-radius-md);
    backdrop-filter: blur(6px);
}

.tw-countdown__value {
    font-family: var(--tw-font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--tw-white);
    font-variant-numeric: tabular-nums;
}

.tw-countdown__label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tw-countdown__separator {
    font-family: var(--tw-font-display);
    font-size: 28px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 22px;
}

@media (max-width: 480px) {
    .tw-countdown { gap: 6px; }
    .tw-countdown__unit { min-width: 60px; padding: 12px 4px; }
    .tw-countdown__separator { display: none; }
}

.tw-countdown-overlay__subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 420px;
    margin-bottom: 32px;
    line-height: 1.6;
}

.tw-countdown-overlay__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.tw-countdown-overlay__skip {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.tw-countdown-overlay__skip:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ==================================================================
   FEATURES
   ================================================================== */
.tw-features {
    padding: 100px 0;
    background: var(--tw-gray-50);
}

.tw-section-header {
    max-width: 640px;
    margin: 0 auto 56px;
    text-align: center;
}

.tw-section-header .tw-badge {
    margin-bottom: 20px;
}

.tw-section-title {
    font-family: var(--tw-font-display);
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 700;
    color: var(--tw-indigo);
    margin-bottom: 16px;
}

.tw-section-subtitle {
    font-size: 16px;
    color: var(--tw-gray-500);
    line-height: 1.6;
}

.tw-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 960px) {
    .tw-features__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .tw-features__grid { grid-template-columns: 1fr; }
}

.tw-feature-card {
    padding: 32px;
    background: var(--tw-white);
    border: 1px solid var(--tw-gray-100);
    border-radius: var(--tw-radius-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tw-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -20px rgba(26, 43, 94, 0.15);
}

.tw-feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--tw-radius-sm);
    background: rgba(26, 43, 94, 0.06);
    color: var(--tw-indigo);
    margin-bottom: 20px;
}

.tw-feature-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--tw-gray-900);
    margin-bottom: 10px;
}

.tw-feature-card__desc {
    font-size: 14.5px;
    color: var(--tw-gray-500);
    line-height: 1.6;
}

/* ==================================================================
   HOW IT WORKS
   ================================================================== */
.tw-how {
    padding: 100px 0;
}

.tw-how__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 960px) {
    .tw-how__steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .tw-how__steps { grid-template-columns: 1fr; }
}

.tw-how__step {
    position: relative;
    padding: 8px;
}

.tw-how__step-number {
    font-family: var(--tw-font-display);
    font-size: 40px;
    font-weight: 700;
    color: var(--tw-gray-100);
    -webkit-text-stroke: 1.5px var(--tw-gray-300);
    margin-bottom: 12px;
}

.tw-how__step-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--tw-gray-900);
    margin-bottom: 8px;
}

.tw-how__step-desc {
    font-size: 14px;
    color: var(--tw-gray-500);
    line-height: 1.6;
}

.tw-how__connector {
    display: none;
}

@media (min-width: 961px) {
    .tw-how__connector {
        display: block;
        position: absolute;
        top: 20px;
        left: calc(100% + 12px);
        width: calc(24px + 12px);
        height: 1px;
        background: var(--tw-gray-300);
    }
}

/* ==================================================================
   PRICING
   ================================================================== */
.tw-pricing {
    padding: 100px 0;
    background: var(--tw-gray-50);
}

.tw-pricing__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}

.tw-pricing__toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tw-gray-700);
}

.tw-pricing__toggle-badge {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(46, 207, 176, 0.15);
    color: #1B9A81;
    font-size: 11.5px;
    font-weight: 700;
}

.tw-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.tw-switch input { opacity: 0; width: 0; height: 0; }

.tw-switch__slider {
    position: absolute;
    inset: 0;
    background: var(--tw-gray-300);
    border-radius: 999px;
    cursor: pointer;
    transition: 0.2s;
}

.tw-switch__slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: var(--tw-white);
    border-radius: 50%;
    transition: 0.2s;
}

.tw-switch input:checked + .tw-switch__slider {
    background: var(--tw-indigo);
}

.tw-switch input:checked + .tw-switch__slider::before {
    transform: translateX(20px);
}

.tw-pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

@media (max-width: 960px) {
    .tw-pricing__grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
}

.tw-pricing-card {
    position: relative;
    padding: 36px 32px;
    background: var(--tw-white);
    border: 1px solid var(--tw-gray-100);
    border-radius: var(--tw-radius-lg);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tw-pricing-card:hover {
    transform: translateY(-4px);
}

.tw-pricing-card--popular {
    border-color: var(--tw-indigo);
    box-shadow: 0 24px 50px -20px rgba(26, 43, 94, 0.25);
}

.tw-pricing-card__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: var(--tw-amber);
    color: var(--tw-white);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.tw-pricing-card__name {
    font-family: var(--tw-font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--tw-indigo);
    margin-bottom: 8px;
}

.tw-pricing-card__desc {
    font-size: 14px;
    color: var(--tw-gray-500);
    margin-bottom: 24px;
    line-height: 1.5;
    min-height: 42px;
}

.tw-pricing-card__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 28px;
}

.tw-pricing-card__price-value {
    font-family: var(--tw-font-display);
    font-size: 34px;
    font-weight: 700;
    color: var(--tw-gray-900);
}

.tw-pricing-card__price-period {
    font-size: 14px;
    color: var(--tw-gray-500);
}

.tw-pricing-card__features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.tw-pricing-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--tw-gray-700);
    line-height: 1.5;
}

/* ==================================================================
   CTA BAND
   ================================================================== */
.tw-cta-band {
    position: relative;
    padding: 90px 0;
    background: linear-gradient(145deg, var(--tw-indigo), var(--tw-indigo-dark));
    text-align: center;
    overflow: hidden;
}

.tw-cta-band__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tw-cta-band__owl {
    opacity: 0.9;
    margin-bottom: 20px;
}

.tw-cta-band__title {
    font-family: var(--tw-font-display);
    font-size: clamp(24px, 3.4vw, 36px);
    font-weight: 700;
    color: var(--tw-white);
    max-width: 560px;
    margin-bottom: 16px;
}

.tw-cta-band__subtitle {
    font-size: 15.5px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

/* ==================================================================
   FOOTER
   ================================================================== */
.tw-footer {
    background: var(--tw-white);
    border-top: 1px solid var(--tw-gray-100);
    padding-top: 64px;
}

.tw-footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 40px;
    padding-bottom: 48px;
}

@media (max-width: 860px) {
    .tw-footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .tw-footer__inner {
        grid-template-columns: 1fr;
    }
}

.tw-footer__col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tw-footer__col a {
    font-size: 14px;
    color: var(--tw-gray-500);
    transition: color 0.2s ease;
}

.tw-footer__col a:hover {
    color: var(--tw-indigo);
}

.tw-footer__col-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tw-gray-900);
    margin-bottom: 4px;
}

.tw-footer__logo {
    margin-bottom: 12px;
}

.tw-footer__desc {
    font-size: 14px;
    color: var(--tw-gray-500);
    line-height: 1.6;
    max-width: 280px;
}

.tw-footer__socials {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.tw-footer__socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--tw-gray-100);
    color: var(--tw-gray-700);
    transition: background 0.2s ease, color 0.2s ease;
}

.tw-footer__socials a:hover {
    background: var(--tw-indigo);
    color: var(--tw-white);
}

.tw-footer__bottom {
    padding: 20px 0;
    border-top: 1px solid var(--tw-gray-100);
    text-align: center;
    font-size: 13px;
    color: var(--tw-gray-500);
}

/* ==================================================================
   MODAL
   ================================================================== */
.tw-modal {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tw-modal[hidden] {
    display: none;
}

.tw-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(4px);
}

.tw-modal__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    margin: 24px;
    padding: 40px;
    background: var(--tw-white);
    border-radius: var(--tw-radius-lg);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.3);
}

.tw-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--tw-gray-500);
    border-radius: 50%;
    transition: background 0.2s ease;
}

.tw-modal__close:hover {
    background: var(--tw-gray-100);
}

.tw-modal__content h3 {
    font-family: var(--tw-font-display);
    font-size: 22px;
    color: var(--tw-indigo);
    margin-bottom: 12px;
}

.tw-modal__content p {
    font-size: 15px;
    color: var(--tw-gray-500);
    line-height: 1.6;
}

/* ==================================================================
   UTILITIES / ANIMATIONS
   ================================================================== */
.tw-fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.tw-fade-in.tw-is-visible {
    opacity: 1;
    transform: translateY(0);
}

.tw-header.tw-is-scrolled {
    box-shadow: 0 4px 20px -8px rgba(26, 43, 94, 0.12);
}

/* Скрытие скролла body, когда открыт countdown/modal */
body.tw-no-scroll {
    overflow: hidden;
}

/* ===== Focus states (доступность) ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--tw-amber);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== Print ===== */
@media print {
    .tw-header,
    .tw-countdown-overlay,
    .tw-modal,
    .tw-cta-band {
        display: none !important;
    }
}
/* ============================================================
   TENDERWISE OWL — читаемость, кнопки, анимации (добавить в конец)
   ============================================================ */

/* --- Логотип: тени и текст --- */
.tw-logo--light .tw-logo__icon { filter: drop-shadow(0 4px 14px rgba(0,0,0,.35)); }
.tw-logo--dark  .tw-logo__text { color: #1A2B5E; }
.tw-logo--dark  .tw-logo__text-accent { color: #F5A623; }
.tw-logo--light .tw-logo__text { color: #FFFFFF; }
.tw-logo--light .tw-logo__text-accent { color: #F5A623; }

/* --- HERO: вуаль для читаемости контента --- */
.tw-hero { position: relative; }
.tw-hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background: linear-gradient(100deg, rgba(10,18,45,.55) 0%, rgba(10,18,45,.25) 45%, rgba(10,18,45,0) 70%);
}
.tw-hero__inner, .tw-hero__bg-decor { position: relative; z-index: 2; }

/* --- Кнопки на тёмном фоне --- */
.tw-btn--primary {
    background: #F5A623; color: #14213D; font-weight: 700; border: none;
    box-shadow: 0 6px 20px rgba(245,166,35,.35);
}
.tw-btn--primary:hover {
    background: #FFB53D; box-shadow: 0 8px 26px rgba(245,166,35,.45); transform: translateY(-1px);
}
.tw-hero .tw-btn--outline, .tw-cta-band .tw-btn--outline {
    color: #FFFFFF; border: 2px solid rgba(255,255,255,.55);
    background: rgba(255,255,255,.06); backdrop-filter: blur(2px);
}
.tw-hero .tw-btn--outline:hover, .tw-cta-band .tw-btn--outline:hover {
    border-color: #FFFFFF; background: rgba(255,255,255,.14);
}
.tw-cta-band .tw-btn--primary { background: #F5A623; color: #14213D; }

/* --- МОРГАНИЕ + ДЫХАНИЕ (tw-logo--blink) --- */
.tw-logo--blink .tw-logo__lid {
    transform-box: fill-box; transform-origin: center bottom;
    transform: scaleY(0); will-change: transform;
    animation: tw-owl-blink 6s ease-in-out infinite;
}
@keyframes tw-owl-blink {
    0%, 92%, 100% { transform: scaleY(0); }
    94%   { transform: scaleY(1); }
    96%   { transform: scaleY(0); }
    97%   { transform: scaleY(1); }
    98.5% { transform: scaleY(0); }
}
.tw-logo--blink .tw-logo__icon { animation: tw-owl-float 5s ease-in-out infinite; }
@keyframes tw-owl-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* --- СЛЕЖЕНИЕ ЗА КУРСОРОМ (tw-logo--track) --- */
.tw-logo--track .tw-logo__head,
.tw-logo--track .tw-logo__pupil {
    transition: transform .35s cubic-bezier(.22,1,.36,1); will-change: transform;
}
.tw-logo--track .tw-logo__head {
    transform-box: fill-box; transform-origin: 32px 46px;
    transform: rotate(var(--tw-head-rot, 0deg)) translate(var(--tw-head-x, 0), var(--tw-head-y, 0));
}
.tw-logo--track .tw-logo__pupil {
    transform-box: fill-box; transform-origin: center;
    transform: translate(var(--tw-eye-x, 0), var(--tw-eye-y, 0));
}

/* --- РЕАКЦИЯ НА СКРОЛЛ (tw-logo--scrolling) --- */
.tw-logo__wing {
    transform-box: fill-box; transform-origin: 90% 20%;
    transition: transform .3s ease-out;
}
.tw-logo__wing--r { transform-origin: 10% 20%; }
.tw-logo--scrolling .tw-logo__wing--l { animation: tw-wing-flap-l .45s ease-in-out infinite; }
.tw-logo--scrolling .tw-logo__wing--r { animation: tw-wing-flap-r .45s ease-in-out infinite; }
@keyframes tw-wing-flap-l {
    0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-18deg); }
}
@keyframes tw-wing-flap-r {
    0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(18deg); }
}
.tw-logo--scrolling .tw-logo__lid {
    transform: scaleY(.35) !important; transition: transform .2s ease-out;
}

/* --- ДОСТУПНОСТЬ: отключаем всю анимацию --- */
@media (prefers-reduced-motion: reduce) {
    .tw-logo--blink .tw-logo__lid,
    .tw-logo--blink .tw-logo__icon,
    .tw-logo--scrolling .tw-logo__wing--l,
    .tw-logo--scrolling .tw-logo__wing--r { animation: none; }
    .tw-logo--track .tw-logo__head,
    .tw-logo--track .tw-logo__pupil { transform: none !important; transition: none; }
    .tw-logo--blink .tw-logo__lid,
    .tw-logo--scrolling .tw-logo__lid { transform: scaleY(0) !important; }
}