/* ============================================
   Altiora Software Ltd — Placeholder Site
   Color Palette from logo:
     Navy:    #0F1D33 / #1A2744
     Blue:    #3B8BF6
     Teal:    #34D0A0
     Light:   #F0F4F8
   ============================================ */

:root {
    --navy:       #0F1D33;
    --navy-mid:   #162240;
    --navy-light: #1E3055;
    --blue:       #3B8BF6;
    --blue-light: #6AADFF;
    --teal:       #34D0A0;
    --teal-dark:  #28B78A;
    --white:      #FFFFFF;
    --off-white:  #F0F4F8;
    --gray-100:   #E2E8F0;
    --gray-300:   #94A3B8;
    --gray-400:   #64748B;
    --gradient:   linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(59,139,246,0.12) 0%, rgba(52,208,160,0.08) 100%);
    --radius:     12px;
    --radius-lg:  20px;
    --font-body:  'DM Sans', system-ui, sans-serif;
    --font-display: 'Instrument Serif', 'Georgia', serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--navy);
    color: var(--off-white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* --- Background geometry --- */
.bg-geo {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: fadeGeo 2s ease-out forwards;
}

.bg-geo--1 {
    top: -120px;
    right: -80px;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(59,139,246,0.07);
    transform: rotate(35deg);
    animation-delay: 0.3s;
}

.bg-geo--2 {
    bottom: 20%;
    left: -160px;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(52,208,160,0.06);
    transform: rotate(-15deg);
    animation-delay: 0.6s;
}

.bg-geo--3 {
    top: 50%;
    right: 10%;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(59,139,246,0.04);
    transform: rotate(60deg);
    animation-delay: 0.9s;
}

@keyframes fadeGeo {
    to { opacity: 1; }
}

/* --- Header --- */
.header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 48px;
    max-width: 1280px;
    margin: 0 auto;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--white);
}

.header__logo-mark {
    width: 42px;
    height: 42px;
}

.header__logo-text {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.header__logo-sub {
    font-weight: 300;
    font-size: 0.65em;
    color: var(--gray-300);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header__nav-link {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gray-300);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 100px;
    transition: color 0.25s ease;
}

.header__nav-link:hover {
    color: var(--white);
}

.header__contact-btn {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--off-white);
    text-decoration: none;
    padding: 10px 24px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.03);
}

.header__contact-btn:hover {
    border-color: var(--blue);
    color: var(--blue-light);
    background: rgba(59,139,246,0.06);
}

/* --- Hero --- */
.hero {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 100px 48px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    min-height: 70vh;
}

.hero__kicker {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(16px);
    animation: heroIn 0.8s ease-out 0.2s forwards;
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    line-height: 1.08;
    color: var(--white);
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroIn 0.8s ease-out 0.35s forwards;
}

.hero__title em {
    font-style: italic;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-300);
    max-width: 480px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroIn 0.8s ease-out 0.5s forwards;
}

.hero__actions {
    opacity: 0;
    transform: translateY(20px);
    animation: heroIn 0.8s ease-out 0.65s forwards;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 100px;
    padding: 14px 32px;
    transition: all 0.35s ease;
    cursor: pointer;
    border: none;
}

.btn--primary {
    background: var(--gradient);
    color: var(--navy);
    box-shadow: 0 4px 24px rgba(59,139,246,0.25), 0 0 0 0 rgba(59,139,246,0);
}

.btn--primary:hover {
    box-shadow: 0 8px 32px rgba(59,139,246,0.35), 0 0 0 3px rgba(59,139,246,0.12);
    transform: translateY(-2px);
}

.btn--primary svg {
    transition: transform 0.3s ease;
}

.btn--primary:hover svg {
    transform: translateX(4px);
}

/* Hero visual — animated triangles */
.hero__visual {
    position: relative;
    height: 420px;
    opacity: 0;
    animation: heroIn 1s ease-out 0.4s forwards;
}

.hero__triangle {
    position: absolute;
    width: 0;
    height: 0;
}

.hero__triangle--1 {
    top: 10%;
    left: 15%;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 210px solid rgba(59,139,246,0.08);
    animation: float 8s ease-in-out infinite;
}

.hero__triangle--2 {
    top: 25%;
    left: 35%;
    border-left: 90px solid transparent;
    border-right: 90px solid transparent;
    border-bottom: 156px solid rgba(52,208,160,0.07);
    animation: float 8s ease-in-out 2s infinite;
}

.hero__triangle--3 {
    top: 5%;
    right: 10%;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(59,139,246,0.05);
    animation: float 8s ease-in-out 4s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(3deg); }
}

/* --- Info Strip --- */
.info-strip {
    position: relative;
    z-index: 1;
    padding: 0 48px 100px;
    max-width: 1280px;
    margin: 0 auto;
}

.info-strip__inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.info-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(24px);
    animation: cardIn 0.7s ease-out forwards;
}

.info-card:nth-child(1) { animation-delay: 0.8s; }
.info-card:nth-child(2) { animation-delay: 0.95s; }
.info-card:nth-child(3) { animation-delay: 1.1s; }

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

.info-card:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(59,139,246,0.15);
    transform: translateY(-4px);
}

.info-card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--gradient-subtle);
    margin-bottom: 20px;
}

.info-card__icon svg {
    stroke: var(--blue-light);
}

.info-card__title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--white);
}

.info-card__text {
    font-size: 0.9rem;
    color: var(--gray-300);
    line-height: 1.6;
}

/* --- Footer --- */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 48px 48px 36px;
}

.footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
}

.footer__company {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--white);
    margin-bottom: 8px;
}

.footer__address {
    font-style: normal;
    font-size: 0.82rem;
    color: var(--gray-400);
    line-height: 1.6;
}

.footer__links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.footer__links a {
    font-size: 0.85rem;
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer__links a:hover {
    color: var(--blue-light);
}

.footer__copy {
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 20px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

/* --- Legal pages (terms/privacy) --- */
.legal {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 48px 100px;
}

.legal__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--gray-300);
    text-decoration: none;
    margin-bottom: 48px;
    transition: color 0.25s;
}

.legal__back:hover {
    color: var(--blue-light);
}

.legal h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.15;
}

.legal__updated {
    font-size: 0.82rem;
    color: var(--gray-400);
    margin-bottom: 48px;
}

.legal h2 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--white);
    margin-top: 40px;
    margin-bottom: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.legal h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.legal p,
.legal li {
    font-size: 0.92rem;
    color: var(--gray-300);
    line-height: 1.75;
    margin-bottom: 12px;
}

.legal ul, .legal ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal li {
    margin-bottom: 6px;
}

.legal a {
    color: var(--blue-light);
    text-decoration: none;
    transition: color 0.25s;
}

.legal a:hover {
    color: var(--teal);
}

.legal strong {
    color: var(--off-white);
    font-weight: 500;
}

/* --- Showcase page --- */
.showcase {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 48px 100px;
}

.showcase__header {
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroIn 0.8s ease-out 0.2s forwards;
}

.showcase__kicker {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.showcase__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 16px;
}

.showcase__intro {
    font-size: 1.05rem;
    color: var(--gray-300);
    max-width: 600px;
    line-height: 1.7;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    padding: 48px;
    margin-bottom: 32px;
    transition: border-color 0.4s ease;
    opacity: 0;
    transform: translateY(24px);
    animation: cardIn 0.7s ease-out 0.5s forwards;
}

.project-card:hover {
    border-color: rgba(59,139,246,0.15);
}

.project-card__visual {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--navy-mid);
    border: 1px solid rgba(255,255,255,0.06);
}

.project-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    display: block;
}

.project-card__mockup {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.project-card__mockup-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.project-card__mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
}

.project-card__mockup-dot:first-child { background: #FF5F57; }
.project-card__mockup-dot:nth-child(2) { background: #FFBD2E; }
.project-card__mockup-dot:nth-child(3) { background: #28C840; }

.project-card__mockup-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-card__mockup-chart {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding-top: 8px;
}

.project-card__mockup-bar-item {
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: var(--gradient);
    opacity: 0.6;
    animation: barGrow 1.2s ease-out forwards;
    transform-origin: bottom;
}

@keyframes barGrow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.project-card__mockup-stats {
    display: flex;
    gap: 12px;
}

.project-card__mockup-stat {
    flex: 1;
    height: 32px;
    border-radius: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.05);
}

.project-card__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-card__label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
}

.project-card__name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 2rem;
    color: var(--white);
    line-height: 1.15;
}

.project-card__desc {
    font-size: 0.95rem;
    color: var(--gray-300);
    line-height: 1.7;
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.project-card__tag {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 5px 12px;
    border-radius: 100px;
    background: rgba(59,139,246,0.08);
    border: 1px solid rgba(59,139,246,0.12);
    color: var(--blue-light);
}

.project-card__highlights {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.project-card__highlights li {
    font-size: 0.88rem;
    color: var(--gray-300);
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.project-card__highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.6;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .header {
        padding: 20px 24px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 60px 24px 40px;
        min-height: auto;
    }

    .hero__visual {
        display: none;
    }

    .info-strip {
        padding: 0 24px 60px;
    }

    .info-strip__inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer {
        padding: 36px 24px 28px;
    }

    .footer__inner {
        flex-direction: column;
        gap: 24px;
    }

    .footer__links {
        flex-direction: column;
        gap: 12px;
    }

    .legal {
        padding: 24px 24px 60px;
    }

    .legal h1 {
        font-size: 2rem;
    }

    .showcase {
        padding: 24px 24px 60px;
    }

    .project-card {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 28px;
    }
}
