/* ========================================
   HOME PAGE — DESIGN SYSTEM & ENHANCEMENTS
   Techoster Global Solutions
   ======================================== */

:root {
    --ti-blue: #0964B0;
    --ti-blue-dark: #074e88;
    --ti-orange: #F1743A;
    --ti-cyan: #06b6d4;
    --ti-ink: #0f172a;
    --ti-muted: #64748b;
    --ti-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ----------------------------------------
   SHARED SECTION FURNITURE
   ---------------------------------------- */
.section-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: clamp(1.75rem, 1rem + 2.6vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

#main-content h2 span.text-blue-600 {
    background: linear-gradient(120deg, var(--ti-blue), #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ----------------------------------------
   SCROLL REVEAL
   ---------------------------------------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ti-ease), transform 0.7s var(--ti-ease);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* Legacy hook still emitted by some markup */
.animate-fade-in-up {
    opacity: 1 !important;
    transform: none !important;
}

/* ----------------------------------------
   HERO
   ---------------------------------------- */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 30%, rgba(9, 101, 176, 0.18) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hero-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ti-orange);
    box-shadow: 0 0 0 4px rgba(241, 116, 58, 0.25);
    animation: heroPulse 2s ease-in-out infinite;
}

@keyframes heroPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(241, 116, 58, 0.25); }
    50%      { box-shadow: 0 0 0 7px rgba(241, 116, 58, 0.08); }
}

.hero-title-lines {
    display: flex;
    flex-direction: column;
    gap: 0.06em;
    max-width: none;
    margin-inline: auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    line-height: 1.02 !important;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-title-lines > span { white-space: nowrap; }

@media (min-width: 640px) {
    .hero-title-lines { font-size: 2.75rem !important; }
}

@media (min-width: 768px) {
    .hero-title-lines { margin-inline: 0; }
}

@media (min-width: 1024px) {
    .hero-title-lines { font-size: 3.5rem !important; }
}

.hero-subheading {
    margin-top: 0 !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
}

@media (min-width: 640px) {
    .hero-subheading { font-size: 1.1rem !important; }
}

@media (min-width: 1024px) {
    .hero-subheading { font-size: 1.3rem !important; }
}

#typewriter-cursor {
    animation: caret 1s steps(1) infinite;
}

@keyframes caret {
    50% { opacity: 0; }
}

/* Hero entrance + slow background drift */
.hero-reveal {
    opacity: 0;
    transform: translateY(24px);
    animation: heroReveal 0.9s var(--ti-ease) 0.15s forwards;
}

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

.hero-bg-float {
    animation: heroFloat 22s ease-in-out infinite alternate;
    transform-origin: 70% 50%;
    will-change: transform;
}

@keyframes heroFloat {
    from { transform: scale(1.04); }
    to   { transform: scale(1.12); }
}

/* Globe axis spin: the dotted world map scrolls horizontally inside the fixed
   sphere, tiled every 408 user-units so the loop is perfectly seamless. */
@keyframes spinGlobe {
    from { transform: translateX(0); }
    to   { transform: translateX(-408px); }
}

.animate-spin-globe {
    animation: spinGlobe 24s linear infinite;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .animate-spin-globe { animation: none; }
}

/* Scroll cue */
.hero-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 1.75rem;
    transform: translateX(-50%);
    z-index: 10;
    display: none;
}

@media (min-width: 768px) {
    .hero-scroll-cue { display: block; }
}

.hero-scroll-mouse {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    position: relative;
}

.hero-scroll-wheel {
    position: absolute;
    left: 50%;
    top: 7px;
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollWheel 1.8s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%   { opacity: 0; transform: translate(-50%, 0); }
    30%  { opacity: 1; }
    60%  { opacity: 1; transform: translate(-50%, 12px); }
    100% { opacity: 0; transform: translate(-50%, 12px); }
}

@media (max-width: 640px) {
    .hero-title-lines {
        max-width: 100%;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .hero-title-lines > span { white-space: normal; }
}

/* ----------------------------------------
   TRUST STRIP
   ---------------------------------------- */
.trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1rem;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    background: #fff;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: transform 0.3s var(--ti-ease), box-shadow 0.3s var(--ti-ease), border-color 0.3s;
}

.trust-badge i { font-size: 1.15rem; }

.trust-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    border-color: #dbeafe;
}

/* ----------------------------------------
   STAT CARDS
   ---------------------------------------- */
.stat-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: transform 0.3s var(--ti-ease), box-shadow 0.3s var(--ti-ease);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.stat-number {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: clamp(1.9rem, 1rem + 2.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ti-muted);
    line-height: 1.3;
}

/* ----------------------------------------
   FEATURE CARDS
   ---------------------------------------- */
.feature-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    padding: 1.75rem;
    height: 100%;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: transform 0.35s var(--ti-ease), box-shadow 0.35s var(--ti-ease), border-color 0.35s;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.1);
    border-color: #dbeafe;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 1.3rem;
    margin-bottom: 1.1rem;
    transition: transform 0.35s var(--ti-ease);
}

.feature-card:hover .feature-icon {
    transform: scale(1.08) rotate(-4deg);
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ti-ink);
    margin-bottom: 0.5rem;
}

.feature-text {
    color: var(--ti-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ----------------------------------------
   RESOURCE CARDS (email security)
   ---------------------------------------- */
.resource-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.6rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    transition: transform 0.35s var(--ti-ease), box-shadow 0.35s var(--ti-ease), border-color 0.35s;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(9, 101, 176, 0.12);
    border-color: #bfdbfe;
}

.resource-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0964B0, #06b6d4);
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.resource-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1d4ed8;
    margin-bottom: 0.5rem;
}

.resource-card p {
    font-size: 0.9rem;
    color: var(--ti-muted);
    line-height: 1.6;
    flex-grow: 1;
}

.resource-link {
    margin-top: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ti-blue);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.resource-link i { transition: transform 0.3s var(--ti-ease); }
.resource-card:hover .resource-link i { transform: translateX(4px); }

/* ----------------------------------------
   PRODUCT + TINT CARDS
   ---------------------------------------- */
.product-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: transform 0.35s var(--ti-ease), box-shadow 0.35s var(--ti-ease);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.1);
}

.product-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ti-ink);
    margin-bottom: 0.75rem;
}

.product-card p {
    color: var(--ti-muted);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.product-link,
.tint-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.product-link { color: var(--ti-blue); }
.product-link i, .tint-link i { transition: transform 0.3s var(--ti-ease); }
.product-card:hover .product-link i,
.tint-card:hover .tint-link i { transform: translateX(4px); }

.tint-card {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s var(--ti-ease), box-shadow 0.35s var(--ti-ease);
}

.tint-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.1);
}

.tint-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.tint-card p {
    color: #475569;
    line-height: 1.65;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

/* ----------------------------------------
   CTA BAND
   ---------------------------------------- */
.cta-band {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 1rem;
    color: #fff;
    background: linear-gradient(110deg, #0964B0 0%, #06b6d4 55%, #10b981 100%);
}

.cta-band::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.12) 50%, transparent 60%);
    animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
    0%   { transform: translate(-30%, -30%) rotate(45deg); }
    100% { transform: translate(30%, 30%) rotate(45deg); }
}

/* ----------------------------------------
   HOW WE WORK — STEPS
   ---------------------------------------- */
.step-card {
    position: relative;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    padding: 2.25rem 1.5rem 1.5rem;
    height: 100%;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: transform 0.35s var(--ti-ease), box-shadow 0.35s var(--ti-ease);
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.1);
}

.step-num {
    position: absolute;
    top: -18px;
    left: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ti-blue), #06b6d4);
    color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: 0 10px 20px rgba(9, 101, 176, 0.3);
}

.step-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ti-ink);
    margin: 0.5rem 0 0.5rem;
}

.step-card p {
    color: var(--ti-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ----------------------------------------
   BUTTON RIPPLE (JS-driven)
   ---------------------------------------- */
.ti-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

/* ----------------------------------------
   MISC
   ---------------------------------------- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--ti-blue);
    outline-offset: 2px;
}

::selection { background-color: var(--ti-blue); color: #fff; }
::-moz-selection { background-color: var(--ti-blue); color: #fff; }

/* ----------------------------------------
   REDUCED MOTION
   ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .hero-reveal,
    .hero-bg-float,
    .hero-eyebrow-dot,
    .hero-scroll-wheel,
    .cta-band::before,
    #typewriter-cursor {
        animation: none !important;
    }
    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ----------------------------------------
   RESPONSIVE
   ---------------------------------------- */
@media (max-width: 768px) {
    .feature-card:hover,
    .product-card:hover,
    .tint-card:hover,
    .step-card:hover,
    .stat-card:hover,
    .resource-card:hover {
        transform: none;
    }
}


/* ========================================
   FLOATING WHITE CARDS & NODE BADGES
   ======================================== */
.hero-white-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1.15rem;
    box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.08), 0 4px 16px -2px rgba(0, 0, 0, 0.03);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-white-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(9, 100, 176, 0.16), 0 8px 20px -4px rgba(0, 0, 0, 0.04);
    border-color: rgba(9, 100, 176, 0.3);
}

.hero-node-badge {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.1), 0 2px 8px -1px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.hero-node-badge:hover {
    transform: scale(1.15);
    box-shadow: 0 14px 30px -4px rgba(9, 100, 176, 0.2);
}

@keyframes floatAnim1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(0.4deg); }
}

@keyframes floatAnim2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(7px) rotate(-0.4deg); }
}

.animate-float-1 { animation: floatAnim1 6s ease-in-out infinite; }
.animate-float-2 { animation: floatAnim2 7s ease-in-out infinite; }

/* ---------- Hero orbital ecosystem cards ---------- */
.hero-orbit-card {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 224px;
    max-width: 46%;
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    padding: 0.7rem 0.85rem;
    box-shadow: 0 20px 44px -22px rgba(15, 23, 42, 0.3), 0 3px 10px -5px rgba(15, 23, 42, 0.08);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.hero-orbit-card:hover {
    transform: translateY(-5px) scale(1.04);
    box-shadow: 0 26px 52px -16px rgba(15, 23, 42, 0.35), 0 8px 20px -4px rgba(15, 23, 42, 0.14);
    border-color: #cbd5e1;
    z-index: 30 !important;
}
.hero-orbit-card h4 { margin: 0; font-size: 0.92rem; font-weight: 800; color: #1e293b; line-height: 1.2; transition: color 0.2s ease; }
.hero-orbit-card:hover h4 { color: #0284c7; }
.hero-orbit-card p { margin: 0; font-size: 0.72rem; font-weight: 500; color: #64748b; line-height: 1.3; white-space: nowrap; }
.hero-orbit-card p + p { color: #94a3b8; }
.hero-orbit-ic {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 10px 20px -8px rgba(9, 100, 176, 0.45);
    transition: transform 0.25s ease;
}
.hero-orbit-card:hover .hero-orbit-ic {
    transform: scale(1.12);
}
.hero-orbit-ic--code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 800; font-size: 1rem; }

@media (max-width: 640px) {
    .hero-orbit-card { width: 158px; max-width: 48%; gap: 0.5rem; padding: 0.55rem 0.6rem; border-radius: 13px; }
    .hero-orbit-card h4 { font-size: 0.78rem; }
    .hero-orbit-card p { font-size: 0.62rem; }
    .hero-orbit-ic { width: 34px; height: 34px; font-size: 0.9rem; border-radius: 10px; }
}

/* Continuously rotating globe surface (dots + meridians) inside the fixed sphere */
.hero-globe-spin {
    transform-box: fill-box;
    transform-origin: center;
    animation: heroGlobeSpin 26s linear infinite;
}
@keyframes heroGlobeSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-globe-spin { animation: none; }
}
