/* =========================================================
   ONDA — Minimal clean website
   ========================================================= */

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f6f8fb;
    --color-text: #0b1a2b;
    --color-muted: #5a6b7e;
    --color-accent: #0ea5e9;       /* ciano del logo */
    --color-accent-dark: #0b6aa3;
    --color-accent-soft: #e3f4fd;
    --color-brand-dark: #0a1b35;   /* blu scuro del logo */
    --color-border: #e4e8ee;
    --shadow-sm: 0 1px 2px rgba(10, 27, 53, 0.04);
    --shadow-md: 0 10px 30px rgba(10, 27, 53, 0.08);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --container: 1180px;
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--color-accent-dark);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

a:hover {
    color: var(--color-accent);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 1em;
    color: var(--color-muted);
}

ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Section basics ---------- */
.section {
    padding: 96px 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
    background: var(--color-accent-soft);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    margin-bottom: 24px;
    max-width: 820px;
}

.section-lead {
    font-size: 18px;
    max-width: 760px;
    margin-bottom: 48px;
    color: var(--color-muted);
}

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    color: var(--color-brand-dark);
}

.brand-logo {
    height: 34px;
    width: auto;
    color: inherit;
}

.site-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 6px;
    align-items: center;
}

.nav-menu a {
    display: inline-block;
    padding: 8px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    border-radius: 8px;
}

.nav-menu a:hover {
    background: var(--color-bg-alt);
    color: var(--color-accent-dark);
}

.nav-menu a[aria-current="page"] {
    color: var(--color-accent-dark);
    background: var(--color-accent-soft);
}

.nav-menu .nav-cta {
    margin-left: 10px;
    background: var(--color-brand-dark);
    color: #fff;
    padding: 10px 18px;
}

.nav-menu .nav-cta:hover {
    background: var(--color-accent-dark);
    color: #fff;
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    width: 36px;
    height: 36px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    margin: 0 auto;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s var(--ease), background 0.2s var(--ease),
        color 0.2s var(--ease), box-shadow 0.2s var(--ease);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-brand-dark);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-ghost:hover {
    border-color: var(--color-brand-dark);
    color: var(--color-brand-dark);
}

.btn-large {
    font-size: 18px;
    padding: 18px 34px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 120px 0 140px;
    overflow: hidden;
    background: linear-gradient(180deg, #fdfefe 0%, #f1f7fb 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.wave-svg {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 260px;
}

.wave {
    fill: none;
    stroke-width: 2;
    opacity: 0.45;
}

.wave-1 {
    stroke: var(--color-accent);
    animation: waveSlide 14s ease-in-out infinite alternate;
}

.wave-2 {
    stroke: var(--color-accent-dark);
    opacity: 0.25;
    animation: waveSlide 18s ease-in-out infinite alternate-reverse;
}

@keyframes waveSlide {
    0%   { transform: translateX(-20px); }
    100% { transform: translateX(20px); }
}

.hero-inner {
    position: relative;
    max-width: 880px;
}

.hero-title {
    font-size: clamp(40px, 6.4vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin: 18px 0 28px;
    font-weight: 700;
}

.accent {
    color: var(--color-accent-dark);
    background: linear-gradient(90deg, var(--color-accent-dark), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    font-size: 19px;
    color: var(--color-muted);
    max-width: 620px;
    margin-bottom: 38px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.hero-meta {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-num {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-brand-dark);
    letter-spacing: -0.01em;
}

.meta-label {
    font-size: 14px;
    color: var(--color-muted);
}

/* ---------- Intro ---------- */
.intro {
    padding: 96px 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 64px;
    align-items: start;
}

.intro-copy p {
    font-size: 17px;
}

.intro-card {
    background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: var(--color-brand-dark);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.intro-card-text {
    font-size: 14px;
    color: var(--color-muted);
    margin: 0;
    line-height: 1.6;
}

/* ---------- Two col ---------- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 24px;
}

.two-col p {
    font-size: 16px;
}

/* ---------- Features grid (Learning) ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.feature {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 28px 26px;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
        border-color 0.25s var(--ease);
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.feature-num {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-accent);
    font-size: 14px;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.feature h3 {
    font-size: 18px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.feature p {
    font-size: 15px;
    margin: 0;
    color: var(--color-muted);
}

.learning-outro {
    max-width: 780px;
    font-size: 17px;
    color: var(--color-muted);
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.learning-outro em {
    color: var(--color-text);
    font-style: normal;
    font-weight: 600;
}

/* ---------- Solutions list ---------- */
.solution-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2px;
    background: var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 48px;
    border: 1px solid var(--color-border);
}

.solution-list li {
    background: #fff;
    padding: 28px 26px;
    transition: background 0.25s var(--ease);
}

.solution-list li:hover {
    background: var(--color-accent-soft);
}

.solution-list h3 {
    font-size: 17px;
    margin-bottom: 8px;
    color: var(--color-brand-dark);
}

.solution-list p {
    font-size: 15px;
    margin: 0;
}

/* ---------- Featured game card ---------- */
.featured-game {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    box-shadow: var(--shadow-sm);
}

.featured-game:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.featured-game-media {
    overflow: hidden;
    background: #0a1b35;
    min-height: 240px;
}

.featured-game-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease);
}

.featured-game:hover .featured-game-media img {
    transform: scale(1.05);
}

.featured-game-body {
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
    background: var(--color-accent-soft);
    padding: 5px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
    width: fit-content;
}

.featured-game-body h3 {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--color-brand-dark);
    font-family: var(--font-display);
}

.featured-game-body p {
    font-size: 15px;
    margin-bottom: 16px;
}

.featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-accent-dark);
    font-size: 15px;
    transition: gap 0.25s var(--ease);
}

.featured-game:hover .featured-cta {
    gap: 14px;
}

@media (max-width: 720px) {
    .featured-game {
        grid-template-columns: 1fr;
    }
    .featured-game-media {
        min-height: 180px;
        aspect-ratio: 16/9;
    }
    .featured-game-body {
        padding: 24px 26px;
    }
    .featured-game-body h3 {
        font-size: 22px;
    }
}

.callout {
    background: var(--color-brand-dark);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 32px 36px;
    position: relative;
    overflow: hidden;
}

.callout::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 90% 20%,
        rgba(14, 165, 233, 0.35),
        transparent 55%
    );
    pointer-events: none;
}

.callout p {
    margin: 0;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.92);
    max-width: 820px;
    position: relative;
}

/* ---------- Areas ---------- */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.area-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.area-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.area-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--color-brand-dark);
}

.area-card p {
    font-size: 15px;
    margin: 0;
}

/* ---------- Research ---------- */
.research-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: start;
}

.research-copy p {
    font-size: 17px;
}

.owned {
    padding: 18px 22px;
    background: #fff;
    border-left: 4px solid var(--color-accent);
    border-radius: 8px;
    font-size: 16px;
    color: var(--color-text);
}

.research-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.research-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    color: var(--color-text);
    font-weight: 500;
    transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.research-list li::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--color-accent);
    flex-shrink: 0;
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.research-list li:hover {
    transform: translateX(4px);
    border-color: var(--color-accent);
}

/* ---------- Contacts ---------- */
.contacts-wrap {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.contacts-wrap .section-title {
    margin-left: auto;
    margin-right: auto;
}

.contacts-lead {
    font-size: 18px;
    margin-bottom: 36px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-brand-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 72px 0 28px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--color-accent),
        transparent
    );
    opacity: 0.6;
}

.footer-wrap {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-brand {
    color: #ffffff;
}

.footer-logo {
    height: 38px;
    width: auto;
    margin-bottom: 12px;
    color: inherit;
}

.footer-tag {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    max-width: 280px;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-cols h4 {
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-cols ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-cols a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color 0.2s var(--ease);
}

.footer-cols a:hover {
    color: var(--color-accent);
}


.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.footer-bottom p {
    margin: 0;
    color: inherit;
}

/* ---------- Reveal animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .section {
        padding: 72px 0;
    }
    .hero {
        padding: 88px 0 110px;
    }
    .intro-grid,
    .two-col,
    .research-grid,
    .footer-wrap {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .footer-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-meta {
        gap: 32px;
    }
}

@media (max-width: 720px) {
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 16px 24px 24px;
        gap: 4px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        transition: transform 0.3s var(--ease);
    }
    .nav-menu.is-open {
        transform: translateY(0);
    }
    .nav-menu a {
        padding: 14px 12px;
        font-size: 16px;
    }
    .nav-menu .nav-cta {
        margin-left: 0;
        text-align: center;
        margin-top: 6px;
    }
    .hero-title {
        font-size: clamp(36px, 9vw, 54px);
    }
    .hero-cta .btn {
        width: 100%;
    }
    .footer-cols {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms \!important;
        transition-duration: 0.001ms \!important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
