/* ================================================
   HCYON — Healthcare Data Labeling
   Sharp geometric design with orange accents
   ================================================ */

:root {
    --black: #0a0a0a;
    --white: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-400: #a3a3a3;
    --gray-600: #525252;
    --orange: #e07a38;
    --orange-light: #f5a862;
    --teal: #3fa7b8;
    
    --font-sans: 'DM Sans', -apple-system, sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ================================================
   BACKGROUND LINES — Sharp diagonal accents
   ================================================ */

.bg-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.line {
    position: absolute;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--gray-200) 20%,
        var(--gray-200) 80%,
        transparent 100%
    );
    width: 1px;
    height: 200vh;
    transform-origin: top;
}

.line-1 {
    left: 15%;
    top: -20%;
    transform: rotate(15deg);
}

.line-2 {
    right: 25%;
    top: -10%;
    transform: rotate(-12deg);
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(224, 122, 56, 0.15) 30%,
        rgba(224, 122, 56, 0.15) 70%,
        transparent 100%
    );
    width: 2px;
}

.line-3 {
    right: 10%;
    top: -5%;
    transform: rotate(-20deg);
}

/* ================================================
   NAVIGATION
   ================================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--black);
}

.logo-img {
    height: 60px;
    width: auto;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-text sup {
    font-size: 0.5em;
    font-weight: 600;
    vertical-align: super;
    margin-left: 1px;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--black);
}

.nav-contact {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}

.nav-contact:hover {
    border-color: var(--black);
    color: var(--black);
}

/* ================================================
   HERO SECTION
   ================================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 3rem 8rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 800px;
}

.hero-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--orange);
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    border-left: 3px solid var(--orange);
    background: linear-gradient(90deg, rgba(224, 122, 56, 0.08) 0%, transparent 100%);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title-accent {
    font-style: italic;
    color: var(--gray-600);
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(224, 122, 56, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateX(4px);
}

.cta-button svg {
    transition: transform 0.2s ease;
}

.cta-button:hover svg {
    transform: translateX(4px);
}

.hero-visual {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    height: 70%;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    right: -5%;
    top: 10%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(224, 122, 56, 0.1) 0%, rgba(63, 167, 184, 0.05) 100%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* Animated wave */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 150px;
    overflow: hidden;
}

.editorial {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    z-index: 5;
    bottom: 0;
    position: absolute;
    left: 0;
}

.parallax1 > use {
    animation: move-forever1 10s linear infinite;
}

.parallax1 > use:nth-child(1) {
    animation-delay: -2s;
}

.parallax2 > use {
    animation: move-forever2 8s linear infinite;
}

.parallax2 > use:nth-child(1) {
    animation-delay: -2s;
}

.parallax3 > use {
    animation: move-forever3 6s linear infinite;
}

.parallax3 > use:nth-child(1) {
    animation-delay: -2s;
}

.parallax4 > use {
    animation: move-forever4 4s linear infinite;
}

.parallax4 > use:nth-child(1) {
    animation-delay: -2s;
}

@keyframes move-forever1 {
    0% {
        transform: translate(85px, 0%);
    }
    100% {
        transform: translate(-90px, 0%);
    }
}

@keyframes move-forever2 {
    0% {
        transform: translate(-90px, 0%);
    }
    100% {
        transform: translate(85px, 0%);
    }
}

@keyframes move-forever3 {
    0% {
        transform: translate(85px, 0%);
    }
    100% {
        transform: translate(-90px, 0%);
    }
}

@keyframes move-forever4 {
    0% {
        transform: translate(-90px, 0%);
    }
    100% {
        transform: translate(85px, 0%);
    }
}

/* ================================================
   SECTION HEADERS
   ================================================ */

.section-header {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.section-number {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--orange);
    letter-spacing: 0.1em;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
}

/* ================================================
   SERVICES SECTION
   ================================================ */

.services {
    padding: 6rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--gray-200);
    border: 1px solid var(--gray-200);
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--orange);
    transition: width 0.3s ease;
}

.service-card:hover::after {
    width: 100%;
}

.service-card:hover {
    background: var(--gray-100);
}

.service-icon {
    margin-bottom: 1.5rem;
    color: var(--black);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ================================================
   WHY SECTION
   ================================================ */

.why {
    background: var(--black);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.why-inner {
    padding: 6rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.why .section-number {
    color: var(--orange-light);
}

.why .section-title {
    color: var(--white);
}

.why-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.why-block h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--white);
}

.why-block p {
    color: var(--gray-400);
    font-size: 0.95rem;
    line-height: 1.8;
}

.why-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(224, 122, 56, 0.08) 100%);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

/* ================================================
   PARTNERS SECTION
   ================================================ */

.partners {
    padding: 6rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.partner {
    flex: 1;
    min-width: 200px;
    padding: 1.5rem 2rem;
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    background: var(--white);
}

.partner:hover {
    border-color: var(--orange);
    background: linear-gradient(135deg, rgba(224, 122, 56, 0.03) 0%, transparent 100%);
}

.partner:hover .partner-logo {
    opacity: 1;
    filter: grayscale(100%);
}

.partner-logo {
    max-height: 40px;
    max-width: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: all 0.2s ease;
}

.partner-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    text-align: center;
}

/* ================================================
   CONTACT SECTION
   ================================================ */

.contact {
    padding: 6rem 3rem;
    background: var(--gray-100);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--black) 0%, var(--orange) 50%, var(--teal) 100%);
}

.contact-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.contact-content h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.contact-content > p {
    color: var(--gray-600);
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    gap: 3rem;
}

.contact-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-decoration: none;
    color: inherit;
}

a.contact-link:hover .contact-value {
    color: var(--orange);
}

.contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
}

.contact-value {
    font-weight: 500;
    transition: color 0.2s ease;
}

.cta-large {
    padding: 1.5rem 3rem;
    font-size: 1.1rem;
}

/* ================================================
   FOOTER
   ================================================ */

.footer {
    padding: 2rem 3rem;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.footer-logo {
    height: 48px;
    width: auto;
}

.footer-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-option {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.35rem 0.6rem;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.lang-option:hover {
    color: var(--black);
    border-color: var(--gray-200);
}

.lang-option.active {
    color: var(--black);
    border-color: var(--orange);
    background: rgba(224, 122, 56, 0.05);
}

.footer-right {
    color: var(--gray-400);
    font-size: 0.85rem;
}

.footer-right a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-right a:hover {
    color: var(--black);
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .why-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .contact-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-inner {
        padding: 1rem 1.5rem;
    }
    
    .hero {
        padding: 7rem 1.5rem 3rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-sub {
        font-size: 1rem;
    }
    
    .services,
    .partners,
    .contact {
        padding: 4rem 1.5rem;
    }
    
    .why-inner {
        padding: 4rem 1.5rem;
    }
    
    .contact-details {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .partners-grid {
        flex-direction: column;
    }
    
    .partner {
        min-width: 100%;
    }
    
    .line-1, .line-3 {
        display: none;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-left {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-center {
        position: static;
        transform: none;
    }
}

/* ================================================
   ANIMATIONS
   ================================================ */

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

.hero-label,
.hero-title,
.hero-sub,
.cta-button {
    animation: fadeInUp 0.6s ease forwards;
}

.hero-title {
    animation-delay: 0.1s;
}

.hero-sub {
    animation-delay: 0.2s;
}

.cta-button {
    animation-delay: 0.3s;
}
