/*
VERSION: web_v1
FILE: style.css
FILE_VERSION: css_v20
BUILD: build_67
BUILD_GROUP: embedicos_web
MAP: html_v35, css_v20, js_v22
*/

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

html{
scroll-behavior:smooth;
}

body{
margin:0;
padding-top:56px;
padding-bottom:220px;
font-family:Montserrat,Arial,sans-serif;
background:#fff;
color:#111;
overflow-x:hidden;
}

body.modal-open{
overflow:hidden;
}

/* FIXED NAV OFFSET */

#hero,
#features,
#docs,
#contact{
scroll-margin-top:76px;
}

/* TOPBAR */

.topbar{
background:#111;
position:fixed;
top:0;
left:0;
right:0;
z-index:100;
}

.topbar-inner{
max-width:1200px;
margin:auto;
padding:16px 20px;
display:flex;
align-items:center;
justify-content:space-between;
gap:20px;
position:relative;
}

.logo{
display:flex;
align-items:center;
gap:10px;
font-weight:800;
font-size:20px;
color:#fff;
}

.logo-icon{
font-size:28px;
display:flex;
align-items:center;
color:#fff;
}

.menu-toggle{
display:none;
background:transparent;
border:none;
color:#fff;
font-size:28px;
cursor:pointer;
}

/* NAV */

.nav{
display:flex;
gap:24px;
}

.nav a{
color:#fff;
text-decoration:none;
font-weight:600;
display:flex;
align-items:center;
gap:8px;
}

/* HERO */

.hero{
background:linear-gradient(
90deg,
#b88a00 0%,
#d9ac18 18%,
#f0c51a 38%,
#ffd94a 50%,
#f0c51a 62%,
#d9ac18 82%,
#b88a00 100%
);
overflow:visible;
}

.hero-inner{
max-width:1200px;
margin:auto;
padding:40px 20px;
display:flex;
align-items:center;
gap:12px;
}

.hero-device{
width:300px;
height:200px;
border-radius:28px;
background:#111;
box-shadow:0 18px 40px rgba(0,0,0,0.35);
position:relative;
margin-left:0;
flex:0 0 auto;
}

.hero-device::before{
content:"";
position:absolute;
left:-220px;
top:50%;
width:220px;
height:10px;
background:#111;
border-radius:999px;
transform:translateY(-50%);
box-shadow:188px 0 0 10px #111;
}

.hero-device::after{
content:"";
position:absolute;
left:50%;
bottom:-42px;
width:112%;
height:96px;
transform:translateX(-50%);
background:radial-gradient(
ellipse at center,
rgba(0,0,0,0.95) 0%,
rgba(0,0,0,0.75) 32%,
rgba(0,0,0,0.40) 60%,
rgba(0,0,0,0.0) 100%
);
filter:blur(22px);
z-index:-1;
}

.hero-device-screen{
position:absolute;
inset:22px;
border-radius:18px;
background:#f0c51a;
color:#111;
display:flex;
align-items:center;
justify-content:center;
font-size:30px;
font-weight:700;
}

.hero-text{
color:#111;
max-width:560px;
margin-left:40px;
}

.hero-text h1{
margin:0;
font-size:68px;
font-weight:800;
}

.hero-text p{
margin-top:24px;
font-size:20px;
line-height:1.45;
}

/* FEATURES */

.features{
background:#fff;
color:#111;
}

.features-inner{
max-width:1200px;
margin:auto;
padding:36px 20px;
display:grid;
grid-template-columns:repeat(4,1fr);
gap:20px;
}

.feature-box{
border:1px solid rgba(0,0,0,0.16);
padding:28px 20px;
text-align:center;
background:#fff;
}

.feature-icon{
font-size:34px;
margin-bottom:14px;
color:#111;
}

.feature-title{
font-size:18px;
font-weight:700;
margin-bottom:12px;
color:#111;
}

.feature-text{
font-size:15px;
line-height:1.45;
color:#111;
}

/* CONTENT SECTIONS */

.runtime-section{
max-width:1200px;
margin:auto;
padding:24px 20px;
}

.runtime-section h2{
font-size:36px;
font-weight:800;
margin-bottom:20px;
}

.runtime-section p{
font-size:17px;
line-height:1.7;
margin-bottom:20px;
text-align:justify;
}

.runtime-stack-illustration{
float:left;
width:104px;
margin:0 12px 8px -20px;
height:auto;
}

.service-section,
.ui-section{
max-width:1200px;
margin:auto;
padding:24px 20px;
}

.service-section h2,
.ui-section h2{
font-size:36px;
font-weight:800;
margin-bottom:20px;
}

.service-section p,
.ui-section p{
font-size:17px;
line-height:1.7;
margin-bottom:20px;
}

/* CONTACT */

.contact-section{
max-width:1200px;
margin:auto;
padding:24px 20px;
background:#fff;
}

.contact-section h2{
margin:0;
font-size:42px;
font-weight:800;
color:#111;
}

.contact-subtitle{
margin-top:14px;
margin-bottom:28px;
font-size:18px;
line-height:1.5;
color:rgba(0,0,0,0.72);
}

.contact-form{
display:flex;
flex-direction:column;
gap:14px;
margin-bottom:34px;
}

.contact-field-group{
display:flex;
flex-direction:column;
gap:6px;
}

.contact-field-label{
font-size:14px;
font-weight:600;
color:#111;
}

.contact-type-select{
width:100%;
background:#fff;
color:#111;
border:1px solid rgba(0,0,0,0.18);
border-radius:12px;
padding:16px;
font-family:Montserrat,Arial,sans-serif;
font-size:15px;
appearance:none;
-webkit-appearance:none;
background-image:linear-gradient(45deg, transparent 50%, #111 50%), linear-gradient(135deg, #111 50%, transparent 50%);
background-position:calc(100% - 22px) calc(50% - 3px), calc(100% - 16px) calc(50% - 3px);
background-size:6px 6px, 6px 6px;
background-repeat:no-repeat;
}

.contact-type-hint{
font-size:12px;
line-height:1.45;
color:rgba(0,0,0,0.62);
min-height:18px;
}

.contact-form input,
.contact-form textarea{
width:100%;
background:#fff;
color:#111;
border:1px solid rgba(0,0,0,0.18);
border-radius:12px;
padding:16px;
font-family:Montserrat,Arial,sans-serif;
font-size:15px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder{
color:rgba(0,0,0,0.42);
}

.contact-form textarea{
resize:vertical;
min-height:140px;
}

.contact-form button{
align-self:flex-start;
background:#111;
color:#fff;
border:none;
border-radius:12px;
padding:14px 22px;
font-family:Montserrat,Arial,sans-serif;
font-size:15px;
font-weight:800;
cursor:pointer;
}

/* FOOTER */

.footer{
background:#111;
color:#fff;
position:fixed;
left:0;
right:0;
bottom:0;
}

.footer-inner{
max-width:1200px;
margin:auto;
padding:40px 20px;
display:grid;
grid-template-columns:repeat(3,1fr);
gap:40px;
}

.footer-title{
font-size:18px;
font-weight:800;
margin-bottom:10px;
color:#fff;
}

.footer-text{
font-size:15px;
line-height:1.5;
color:#fff;
}

/* EMBEDICOS MODAL OVERLAY */

.embedicos-modal-overlay{
position:fixed;
top:0;
left:0;
right:0;
bottom:0;
background:rgba(0,0,0,0.80);
display:none;
align-items:center;
justify-content:center;
z-index:9999;
}

.embedicos-modal-overlay.active{
display:flex;
}

.embedicos-modal-box{
background:#111;
color:#fff;
padding:28px 32px;
border-radius:12px;
max-width:420px;
width:90%;
box-shadow:0 20px 60px rgba(0,0,0,0.5);
text-align:center;
}

.embedicos-modal-message{
font-size:16px;
line-height:1.6;
margin-bottom:24px;
word-break:break-word;
white-space:pre-wrap;
}

.embedicos-modal-message-title{
display:inline-flex;
align-items:center;
justify-content:center;
gap:10px;
font-weight:800;
color:#fff;
}

.embedicos-modal-message-title i{
color:#f0c51a;
}

.embedicos-modal-details{
display:none;
margin-top:18px;
padding:14px;
background:#000;
color:#f0c51a;
font-family:monospace;
font-size:13px;
text-align:left;
max-height:220px;
overflow:auto;
border-radius:6px;
word-break:break-word;
white-space:pre-wrap;
}

.embedicos-modal-actions-top{
display:flex;
align-items:center;
justify-content:center;
gap:16px;
margin-top:20px;
}

.embedicos-modal-actions-left{
display:flex;
align-items:center;
gap:14px;
flex-wrap:wrap;
justify-content:center;
}

.embedicos-modal-secondary{
display:none;
background:#2b2b2b;
border:none;
color:#fff;
font-weight:700;
padding:12px 22px;
border-radius:8px;
cursor:pointer;
font-family:Montserrat,Arial,sans-serif;
}

.embedicos-modal-link{
display:none;
color:#aaa;
font-weight:700;
cursor:pointer;
font-family:Montserrat,Arial,sans-serif;
text-decoration:none;
}

.embedicos-modal-link:hover{
color:#fff;
}

.embedicos-modal-button{
background:#f0c51a;
border:none;
color:#111;
font-weight:800;
padding:12px 26px;
border-radius:8px;
cursor:pointer;
font-family:Montserrat,Arial,sans-serif;
}

.embedicos-modal-actions-bottom{
display:none;
justify-content:center;
margin-top:18px;
}

.embedicos-modal-hide-simple{
display:inline-block;
}

.embedicos-modal-hide-detail{
display:none;
}

.embedicos-modal-box.details-open .embedicos-modal-details{
display:block;
}

.embedicos-modal-box.details-open .embedicos-modal-actions-bottom{
display:flex;
}

.embedicos-modal-box.details-open .embedicos-modal-hide-simple{
display:none;
}

.embedicos-modal-box.details-open .embedicos-modal-hide-detail{
display:inline-block;
}

/* TABLET PORTRAIT */

@media(max-width:1000px) and (orientation:portrait){

.footer-inner{
grid-template-columns:1fr;
gap:28px;
}

.hero-inner{
flex-direction:column;
padding:48px 20px;
gap:24px;
}

.hero-device{
width:300px;
height:200px;
margin-left:0;
}

.hero-text{
text-align:center;
margin-left:0;
max-width:100%;
}

.hero-text h1{
text-align:center;
}

.features-inner{
grid-template-columns:1fr;
}

}

/* MOBILE */

@media(max-width:768px){

body{
padding-top:56px;
padding-bottom:0;
}

.logo{
font-size:18px;
gap:8px;
}

.logo-icon{
font-size:24px;
}

.menu-toggle{
display:block;
}

.nav{
display:none;
position:absolute;
top:100%;
left:0;
right:0;
background:#111;
flex-direction:column;
gap:12px;
padding:16px;
border-top:1px solid #222;
z-index:60;
}

.nav.nav-open{
display:flex;
}

.nav a{
color:#fff;
text-decoration:none;
font-weight:600;
display:flex;
align-items:center;
gap:8px;
border-bottom:1px solid rgba(255,255,255,0.15);
margin-left:10px;
margin-right:10px;
padding-bottom:8px;
}

.hero-inner{
flex-direction:column;
padding:48px 16px;
gap:24px;
}

.hero-device{
margin-left:0;
width:300px;
height:200px;
}

.hero-device::before{
left:-140px;
width:140px;
height:8px;
box-shadow:120px 0 0 8px #111;
}

.hero-text{
text-align:center;
margin-left:0;
max-width:100%;
}

.hero-text h1{
font-size:46px;
text-align:center;
}

.features-inner{
grid-template-columns:1fr;
}

.runtime-stack-illustration{
float:left;
width:104px;
margin:0 12px 8px -16px;
height:auto;
max-width:none;
display:block;
}

.contact-section{
padding:24px 16px;
}

.footer{
position:relative;
}

.footer-inner{
grid-template-columns:1fr;
gap:24px;
padding:40px 16px;
}

.embedicos-modal-actions-top{
flex-direction:row;
align-items:center;
}

}