:root {
--bg-color: #f5f5f7; /* Apple-style light grey background */
--text-main: #111111;
--text-muted: #666666;
--accent-blue: #007FF5;
--border-color: #d2d2d7;
--badge-bg: #e8f4fd;
--badge-text: #007FF5;
--input-bg: #ffffff;
--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
height: 100%;
background-color: var(--bg-color);
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image: linear-gradient(to bottom, rgba(0, 127, 245, 0.05) 0%, rgba(0, 127, 245, 0.01) 20%, rgba(245, 245, 247, 0) 50%);
  background-repeat: no-repeat;
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Prevent default image dragging globally */
img {
-webkit-user-drag: none;
-khtml-user-drag: none;
-moz-user-drag: none;
-o-user-drag: none;
user-drag: none;
pointer-events: auto;
}

/* Apple-Style Navigation Bar / Tab Bar */
header {
display: flex;
justify-content: center;
align-items: center;
padding: 0 48px;
padding-top: env(safe-area-inset-top, 0px);
height: calc(44px + env(safe-area-inset-top, 0px));
width: 100%;
background-color: rgba(245, 245, 247, 0.8);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
position: fixed; /* Fixed as in the original design */
top: 0;
z-index: 1200;
border-bottom: none;
transition: background-color 0.4s ease, backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease;
}

header.menu-open, header.desktop-dropdown-open {
background-color: #F5F5F6 !important;
backdrop-filter: none !important;
-webkit-backdrop-filter: none !important;
}

nav {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
width: 100%;
max-width: 1000px;
}

.nav-links {
display: flex;
align-items: center;
gap: 36px;
list-style: none;
height: 100%;
}

.nav-links > li {
height: 100%;
display: flex;
align-items: center;
}

.nav-links a {
text-decoration: none;
color: #000000;
font-size: 12px;
font-weight: 400;
transition: color 0.2s;
height: 100%;
display: flex;
align-items: center;
}

.nav-links a:hover {
color: var(--text-main);
}

.nav-links img {
height: 20px;
display: block;
}

/* Apple-Style Desktop Dropdown Menu with Stack Grid Transition */
.desktop-dropdown {
position: absolute;
top: 44px;
left: 0;
width: 100%;
background-color: #F5F5F6;
border-bottom: none;
padding: 0 48px;
display: flex;
justify-content: center;
opacity: 0;
visibility: hidden;
max-height: 0;
overflow: hidden;
transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
            visibility 0.3s ease, 
            max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
            padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
z-index: 1190;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.desktop-dropdown.active {
opacity: 1;
visibility: visible;
max-height: 350px;
padding: 24px 48px 36px 48px;
}

.desktop-dropdown-content {
width: 100%;
max-width: 1000px;
display: grid;
}

.desktop-dropdown-list {
grid-area: 1 / 1;
list-style: none;
display: flex;
flex-direction: column;
gap: 14px;
opacity: 0;
visibility: hidden;
transform: translate3d(0, 12px, 0);
filter: blur(6px);
pointer-events: none;
transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
            transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
            filter 0.35s cubic-bezier(0.16, 1, 0.3, 1),
            visibility 0.35s ease;
}

.desktop-dropdown.active .desktop-dropdown-list.active-dropdown-list {
opacity: 1;
visibility: visible;
transform: translate3d(0, 0, 0);
filter: blur(0px);
pointer-events: auto;
}

.desktop-dropdown.active .desktop-dropdown-list.active-dropdown-list li:nth-child(1) { transition-delay: 0.05s; }
.desktop-dropdown.active .desktop-dropdown-list.active-dropdown-list li:nth-child(2) { transition-delay: 0.1s; }
.desktop-dropdown.active .desktop-dropdown-list.active-dropdown-list li:nth-child(3) { transition-delay: 0.15s; }
.desktop-dropdown.active .desktop-dropdown-list.active-dropdown-list li:nth-child(4) { transition-delay: 0.2s; }
.desktop-dropdown.active .desktop-dropdown-list.active-dropdown-list li:nth-child(5) { transition-delay: 0.25s; }

.desktop-dropdown-list li {
opacity: 0;
transform: translate3d(0, 10px, 0);
transition: opacity 0.3s ease, transform 0.3s ease;
}

.desktop-dropdown.active .desktop-dropdown-list.active-dropdown-list li {
opacity: 1;
transform: translate3d(0, 0, 0);
}

.desktop-dropdown-list li a,
.desktop-dropdown-list li .interactive-prompt-text {
text-decoration: none;
color: var(--text-main);
font-size: 24px;
font-weight: 500;
letter-spacing: -0.5px;
transition: color 0.2s ease;
display: inline-block;
cursor: pointer;
}

.desktop-dropdown-list li a:hover,
.desktop-dropdown-list li .interactive-prompt-text:hover {
color: var(--text-main);
}

.interactive-prompt-container {
display: flex;
flex-direction: column;
width: 100%;
}

.matu-key-input {
background: transparent;
border: none;
outline: none;
color: var(--text-main);
font-family: inherit;
caret-color: #000000;
width: 100%;
margin-top: 8px;
padding: 0;
}

.desktop-dropdown-list li .matu-key-input {
font-size: 24px;
font-weight: 500;
letter-spacing: -0.5px;
}

.mobile-menu-links .matu-key-input {
font-size: 32px;
font-weight: 500;
letter-spacing: -0.8px;
}

.desktop-backdrop {
position: fixed;
top: 44px;
left: 0;
width: 100vw;
height: calc(100vh - 44px);
background-color: rgba(245, 245, 247, 0.4);
backdrop-filter: blur(25px);
-webkit-backdrop-filter: blur(25px);
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
z-index: 1150;
pointer-events: none;
}

.desktop-backdrop.active {
opacity: 1;
visibility: visible;
pointer-events: auto;
}

.mobile-nav-header {
display: none;
width: 100%;
justify-content: space-between;
align-items: center;
height: 100%;
position: relative;
z-index: 1100;
}

.mobile-logo {
display: flex;
align-items: center;
text-decoration: none;
-webkit-tap-highlight-color: transparent;
}

.mobile-logo img {
height: 20px;
display: block;
}

.hamburger-btn {
background: none;
border: none;
cursor: pointer;
display: flex;
flex-direction: column;
justify-content: center;
gap: 4px;
width: 18px;
height: 12px;
padding: 0;
z-index: 1300;
position: relative;
transition: transform 0.3s ease;
-webkit-tap-highlight-color: transparent;
}

.hamburger-btn span {
    display: block;
    width: 18px; /* Give them an explicit fixed width */
    height: 2px;  /* Slightly thicker for better rendering */
    background-color: #111111;
    border-radius: 2px;
    transition: transform 0.3s ease;
    transform-origin: center;
}

.hamburger-btn.active span:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    transform: translateY(-3px) rotate(-45deg);
}

.mobile-menu-overlay {
position: fixed;
inset: 0;
height: 100vh;
height: 100dvh;
background-color: #F5F5F6;
backdrop-filter: none;
-webkit-backdrop-filter: none;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-start;
padding: calc(110px + env(safe-area-inset-top, 0px)) 36px calc(40px + env(safe-area-inset-bottom, 0px)) 36px;
z-index: 1150;
visibility: hidden;
opacity: 0;
pointer-events: none;
transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
            visibility 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.mobile-menu-overlay.active {
visibility: visible;
opacity: 1;
pointer-events: auto;
box-shadow: 0 40px 80px rgba(0, 0, 0, 0.06);
}

.mobile-menu-content-wrapper {
display: grid;
width: 100%;
}

.mobile-menu-links {
grid-area: 1 / 1;
list-style: none;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 20px;
width: 100%;
}

.main-menu-links {
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu-overlay.active .main-menu-links {
opacity: 1;
visibility: visible;
pointer-events: auto;
}

.legal-menu-links, .matuapp-menu-links, .key-menu-links {
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu-overlay.sub-menu-active-legal .main-menu-links,
.mobile-menu-overlay.sub-menu-active-matuapp .main-menu-links,
.mobile-menu-overlay.sub-menu-active-key .main-menu-links {
opacity: 0;
visibility: hidden;
pointer-events: none;
}

.mobile-menu-overlay.sub-menu-active-matuapp .matuapp-menu-links {
opacity: 1;
visibility: visible;
pointer-events: auto;
}

.mobile-menu-overlay.sub-menu-active-legal .legal-menu-links {
opacity: 1;
visibility: visible;
pointer-events: auto;
}

.mobile-menu-overlay.sub-menu-active-key .matuapp-menu-links {
opacity: 0;
visibility: hidden;
pointer-events: none;
}

.mobile-menu-overlay.sub-menu-active-key .key-menu-links {
opacity: 1;
visibility: visible;
pointer-events: auto;
}

.mobile-menu-links li {
opacity: 0;
transform: translate3d(0, 16px, 0);
filter: blur(8px);
will-change: transform, opacity, filter;
transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
            transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
            filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.active:not(.sub-menu-active-legal):not(.sub-menu-active-matuapp):not(.sub-menu-active-key) .main-menu-links li:nth-child(1) { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0px); transition-delay: 0.12s; }
.mobile-menu-overlay.active:not(.sub-menu-active-legal):not(.sub-menu-active-matuapp):not(.sub-menu-active-key) .main-menu-links li:nth-child(2) { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0px); transition-delay: 0.22s; }

.mobile-menu-overlay.active.sub-menu-active-legal .legal-menu-links li:nth-child(1),
.mobile-menu-overlay.active.sub-menu-active-matuapp .matuapp-menu-links li:nth-child(1),
.mobile-menu-overlay.active.sub-menu-active-key .key-menu-links li:nth-child(1) { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0px); transition-delay: 0.12s; }

.mobile-menu-overlay.active.sub-menu-active-legal .legal-menu-links li:nth-child(2),
.mobile-menu-overlay.active.sub-menu-active-matuapp .matuapp-menu-links li:nth-child(2),
.mobile-menu-overlay.active.sub-menu-active-key .key-menu-links li:nth-child(2) { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0px); transition-delay: 0.22s; }

.mobile-menu-overlay.active.sub-menu-active-legal .legal-menu-links li:nth-child(3),
.mobile-menu-overlay.active.sub-menu-active-matuapp .matuapp-menu-links li:nth-child(3) { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0px); transition-delay: 0.32s; }

.mobile-menu-overlay.active.sub-menu-active-legal .legal-menu-links li:nth-child(4),
.mobile-menu-overlay.active.sub-menu-active-matuapp .matuapp-menu-links li:nth-child(4) { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0px); transition-delay: 0.42s; }

.mobile-menu-overlay.active.sub-menu-active-matuapp .matuapp-menu-links li:nth-child(5) { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0px); transition-delay: 0.52s; }

.mobile-menu-links a,
.mobile-menu-links .interactive-prompt-text {
text-decoration: none;
color: var(--text-main);
font-size: 32px;
font-weight: 500;
letter-spacing: -0.8px;
transition: color 0.3s ease;
display: inline-block;
-webkit-tap-highlight-color: transparent;
cursor: pointer;
}



/* Hero Section */
.hero {
text-align: center;
padding: calc(60px + 44px) 20px 0px 20px; /* Ajout du padding-top pour compenser le header fixed */
width: 100%;
max-width: 100%;
}

.hero h1,
.features-section h2 {
font-size: 56px;
font-weight: 600;
letter-spacing: -1.5px;
line-height: 1.1;
margin-bottom: 4px;
color: var(--text-main);
}

.hero p,
.features-section p {
font-size: 30px;
color: var(--text-main);
margin-bottom: 12px;
font-weight: 400;
max-width: none;
margin-left: 0;
margin-right: 0;
line-height: 1.2;
}

.action-container,
.features-action {
margin-bottom: 10px; /* Reduced bottom margin to bring phones closer to button */
}

.btn-claim {
background-color: var(--accent-blue);
color: #ffffff;
border: none;
padding: 10px 24px;
border-radius: 99px;
font-size: 14px;
font-weight: 400;
cursor: pointer;
white-space: nowrap;
transition: padding 0.2s, font-size 0.2s;
box-shadow: 0 4px 20px rgba(0, 127, 245, 0.25);
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 8px;
position: relative;
z-index: 1145;
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
user-select: none;
-webkit-user-select: none;
}

@media (min-width: 769px) {
.btn-claim {
    padding: 14px 32px; /* Larger padding for desktops */
    font-size: 16px;    /* Larger font for desktops */
    font-weight: 400;   /* Optional: bring back bolder text on desktop if desired */
}
}

.btn-claim:hover,
.btn-claim:active,
.btn-claim:focus,
.btn-claim:visited {
background-color: var(--accent-blue);
color: #ffffff;
transform: none;
outline: none;
}

.apple-icon {
width: 16px;
height: 16px;
fill: currentColor;
display: inline-block;
vertical-align: middle;
}

.showcase-container {
position: relative;
width: 100%;
max-width: 100%;
overflow: hidden;
padding: 10px 0 0 0; /* Reduced top padding */
}

.mockup-grid {
display: flex;
justify-content: center;
align-items: flex-end;
gap: 28px;
width: 100%;
max-width: 100%;
flex-wrap: nowrap;
transform: translateY(0);
padding: 0 20px;
}

.phone-mockup {
width: 320px; /* Increased from 280px */
flex-shrink: 0;
box-shadow: none;
overflow: hidden;
position: relative;
}

.phone-mockup img {
width: 100%;
height: auto;
display: block;
}

.phone-mockup.side-phone {
transform: translateY(25px) scale(0.92);
opacity: 1;
}

.phone-mockup.center {
transform: translateY(0) scale(1);
opacity: 1;
z-index: 10;
}

.white-strip {
position: relative;
height: 16px;
background-color: #ffffff;
width: 100%;
z-index: 25;
pointer-events: none;
}

.white-strip.top-strip {
margin-top: -110px;
}

.white-strip.bottom-strip {
margin-top: -16px;
}

.coast-wrapper {
position: relative;
width: 100%;
overflow: hidden;
z-index: 1140;
background-color: #ffffff;
}

.coast-overlay {
position: relative;
width: 100%;
height: auto;
display: block;
margin-top: -0px;
}

/* Responsive switching for coast overlay images */
.coast-desktop {
display: none;
}
.coast-mobile {
display: block;
}

@media (min-width: 769px) {
.coast-desktop {
display: block;
}
.coast-mobile {
display: none;
}
}

.features-section {
background-color: var(--bg-color);
text-align: center;
padding: 60px 20px 80px 20px;
width: 100%;
max-width: 100%;
position: relative;
z-index: 30;
overflow: hidden;
}

.single-phone-container {
position: relative;
width: 100%;
max-width: 1100px;
margin: 40px auto 0 auto;
display: flex;
justify-content: center;
align-items: center;
padding: 0 20px;
}

.single-phone-mockup {
position: relative;
z-index: 10;
width: 100%;
max-width: 900px;
}

.single-phone-mockup img {
width: 100%;
height: auto;
display: block;
margin: 0 auto;
}

.site-footer {
width: 100%;
background-color: #ffffff;
color: var(--text-muted);
font-size: 12px;
font-weight: 400;
line-height: 1.5;
padding: 24px 20px 24px 20px;
border-top: none;
}

.site-footer-inner {
max-width: 1000px;
margin: 0 auto;
}

.footer-base {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 12px;
}

.footer-base-left {
display: flex;
align-items: center;
gap: 16px;
flex-wrap: wrap;
}

.footer-legal-links {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0;
list-style: none;
}

.footer-legal-links li {
display: flex;
align-items: center;
}

.footer-legal-links li a {
color: var(--text-muted);
text-decoration: none;
transition: color 0.2s;
-webkit-tap-highlight-color: transparent;
}

.footer-legal-links li a:hover {
color: var(--text-main);
}

.footer-legal-links li:not(:last-child):after {
content: "|";
margin: 0 8px;
color: var(--border-color);
}

.coast-link {
display: block;
width: 100%;
position: relative;
z-index: 1140;
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
}

@media (max-width: 768px) {
.footer-base { flex-direction: column; align-items: flex-start; gap: 6px; }
.footer-base-left { flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; }
.footer-legal-links { flex-direction: column; align-items: flex-start; gap: 6px; }
.footer-legal-links li:not(:last-child):after { content: ""; margin: 0; }
}

@media (max-width: 1500px) {
.phone-mockup { width: 270px; } /* Adjusted for intermediate screen sizes */
.white-strip.top-strip { margin-top: -95px; }
}

@media (max-width: 767px) {
header { padding: 0 24px; }
.nav-links { display: none; }
.desktop-dropdown, .desktop-backdrop { display: none !important; }
.mobile-nav-header { display: flex; }
}

@media (max-width: 1200px) and (min-width: 768px) {
header { padding: 0 20px; }
.nav-links { display: flex; }
.mobile-nav-header { display: none; }
}

@media (max-width: 1200px) {
.hero h1, .features-section h2 { font-size: 50px; }
.hero p, .features-section p { font-size: 24px; }
.mockup-grid { gap: 16px; }
.phone-mockup { width: 220px; }
.white-strip.top-strip { margin-top: -75px; }
}

@media (max-width: 768px) {
.phone-mockup { width: 160px; }
.white-strip.top-strip { margin-top: -55px; }
.hero h1, .features-section h2 { font-size: 30px; }
.hero p, .features-section p { font-size: 18px; }
}


/* Remove tap highlight color on mobile devices */
.nav-links a img,
.mobile-logo img,
.nav-links a,
.mobile-logo {
    -webkit-tap-highlight-color: transparent;
}

/* Remove focus outlines or background highlights on click/focus */
.nav-links a:focus,
.mobile-logo:focus,
.nav-links a:active,
.mobile-logo:active {
    outline: none;
    background-color: transparent;
}