/* =========================
   Base / Variables
========================= */

:root{
  --black: #0b0b0b;
  --black-2: #111;
  --gray-bg: #efefef;
  --text: #111;
  --white: #fff;

  --red: #e0453b;
  --red-dark: #c63a32;

  --max: 1100px;
}

*{ box-sizing:border-box; }
html,body{
  margin:0;
  padding:0;
}
body{
  font-family: 'Inter', sans-serif;
  background:#fff;
  color: var(--text);
}
a{ text-decoration:none; color:inherit; }
img{ display:block; max-width:100%; }

h1,h2,h3,h4,h5{
  font-family: 'Montserrat', sans-serif;
}

/* Container */
.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* =========================
   HERO
========================= */
.hero{
  position: relative;
  height: 520px;
  background: #000;
  overflow: hidden;
}

/* background image */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: url("../images/kube_top.jpg") center/cover no-repeat;
  filter: contrast(1.05) saturate(1.05);
}

/* dark overlay */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at 55% 40%, rgba(0,0,0,.15), rgba(0,0,0,.65) 70%);
}

.topnav{
  position:absolute;
  top:0; left:0; right:0;
  z-index: 2;
  padding: 18px 0;
}

.nav-inner{
  display:flex;
  align-items:center;
  gap: 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 140px;
}

.brand-logo{
  width: 90px;
  height:auto;
}

.nav-links{
  display:flex;
  gap: 22px;
  margin-left: 20px;
  color: rgba(255,255,255,.92);
  font-size: 14px;
}

.nav-links a{ opacity: .85; }
.nav-links a:hover{ opacity:1; text-decoration: underline; }
.nav-links a.active{ opacity:1; font-weight: 700; }

.nav-toggle{
  display:none;
  margin-left:auto;
  width: 44px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  color:#fff;
  border-radius: 8px;
  cursor:pointer;
}

/* (If later you add a centered logo in hero) */
.hero-center{
  position:absolute;
  inset:0;
  z-index: 1;
  display:grid;
  place-items:center;
  padding-top: 10px;
}
.hero-logo{
  width: min(520px, 75vw);
  height:auto;
  opacity: .95;
}

/* =========================
   FEATURES (3 cards)
========================= */
.features{
  padding: 26px 0 6px;
  background: #fff;
}

.features-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card{
  border: 1px solid #cfcfcf;
  background:#fff;
  padding: 18px 18px 16px;
  text-align:center;
  border-radius: 4px;
}

.icon-circle{
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--red);
  display:grid;
  place-items:center;
  margin: 0 auto 10px;
}

.icon-circle img{
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.feature-card h3{
  font-size: 13px;
  margin: 6px 0 8px;
  font-weight: 700;
}

.feature-card p{
  margin: 0;
  font-size: 11px;
  color: #666;
  line-height: 1.5;
}

/* =========================
   OUR SERVICES (collage)
   FIX: 3D Animation fills left blank space
========================= */
.our-services{
  padding: 10px 0 22px;
  background:#fff;
}

.section-title{
  text-align:center;
  color: var(--red);
  font-size: 24px;
  margin: 18px 0 12px;
  font-family: "NeueMachina", Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* 2 columns, 3 rows */
.services-collage{
  display:grid;
  grid-template-columns: 1.4fr .9fr;
  grid-template-rows: 300px 300px 300px;
  gap:14px;
  align-items:stretch;
}

/* Left big spans rows 1-2 */
.service-tile.big{
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

/* Right column (3 rows) */
.service-tile.r1{ grid-column: 2 / 3; grid-row: 1 / 2; }
.service-tile.r2{ grid-column: 2 / 3; grid-row: 2 / 3; }
.service-tile.r3{ grid-column: 2 / 3; grid-row: 3 / 4; }

/* 3D Animation now occupies left row 3 */
.service-tile.anim{
  grid-column: 1 / 2;
  grid-row: 3 / 4;
}

.service-tile{
  position: relative;
  overflow:hidden;
  display:block;
  height:100%;
}

.service-tile img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* overlay hover */
.tile-overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.35);
  opacity: 1;
  transition: background .18s ease;
  display:flex;
  align-items:flex-end;
  justify-content:flex-start;
  padding: 12px;
}

.tile-overlay span{
  color:#fff;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}

.service-tile:hover .tile-overlay{
  background: rgba(0,0,0,.10);
}

/* =========================
   WORKFLOW
========================= */
.workflow{
  background: #0b0b0b;
  padding: 44px 0 42px;
  color:#fff;
}

.workflow-title{
  text-align:center;
  margin: 0 0 22px;
  font-size: 22px;
  font-weight: 700;
}

.workflow-steps{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.step{
  min-width: 160px;
  text-align:center;
  flex: 1;
  margin-bottom: 15px;
}

.step-name{
  font-weight: 700;
  font-size: 16px;
}

.step-sub{
  margin-top: 6px;
  color: var(--red);
  font-size: 11px;
  line-height: 1.35;
}

.arrow{
  color: var(--red);
  font-weight: 800;
  font-size: 18px;
  margin-top: 2px;
}

.workflow-cta{
  text-align:center;
  margin-top: 18px;
}

/* =========================
   BENEFITS split
========================= */
.benefits{
  background:#fff;
}

.benefits-grid{
  display:grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 0;
  align-items: stretch;
}

.benefits-text{
  background: var(--gray-bg);
  padding: 34px 34px;
}

.benefits-text h2{
  margin: 0 0 12px;
  color: var(--red);
  font-size: 22px;
}

.benefits-text p{
  margin: 0 0 16px;
  color:#666;
  font-size: 12.5px;
  line-height: 1.6;
  max-width: 54ch;
}

.benefits-list{
  list-style:none;
  padding:0;
  margin: 0 0 14px;
  display:grid;
  gap: 10px;
  color:#444;
  font-size: 12.5px;
}

.benefits-list .dot{
  display:inline-block;
  width: 8px;
  height: 8px;
  border-radius:50%;
  background: var(--red);
  margin-right: 10px;
  transform: translateY(-1px);
}

.benefits-image{
  background:#fff;
}

.benefits-image img{
  width:100%;
  height:100%;
  object-fit: cover;
  min-height: 320px;
}

/* =========================
   CTA
========================= */
.final-cta{
  background:#0b0b0b;
  color:#fff;
  text-align:center;
  padding: 42px 0 48px;
}

.final-cta h2{
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--red);
}

.final-cta p{
  margin: 0 auto 16px;
  max-width: 82ch;
  color: rgba(255,255,255,.75);
  font-size: 12.5px;
  line-height: 1.7;
}

/* =========================
   FOOTER
========================= */
.footer{
  background:#0b0b0b;
  color:#fff;
  padding-top: 24px;
}

.footer-top{
  display:grid;
  grid-template-columns: 1.2fr .8fr .8fr 1fr;
  gap: 24px;
  padding-bottom: 18px;
}

.footer-col h4{
  margin: 10px 0 10px;
  font-size: 13px;
  color: var(--red);
}

.footer-col a{
  display:block;
  font-size: 12px;
  color: rgba(255,255,255,.75);
  padding: 6px 0;
}
.footer-col a:hover{ color:#fff; }

.brand-col p{
  color: rgba(255,255,255,.72);
  font-size: 12px;
  line-height: 1.6;
  margin: 10px 0 12px;
  max-width: 42ch;
}

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

.social{
  display:flex;
  gap:14px;
}

.social-icon{
  width:30px;
  height:30px;
  border-radius:50%;
  background:#161616;
  display:grid;
  place-items:center;
  transition:0.25s ease;
}

.social-icon svg{
  width:18px;
  height:18px;
  fill:#fff;
  display:block;
}

.social-icon:hover{
  background: var(--red);
  transform:translateY(-2px);
}

.contact-item{
  color: rgba(255,255,255,.75);
  font-size: 12px;
  padding: 6px 0;
}

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.15);
  padding: 14px 0 18px;
  display:flex;
  justify-content:space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: rgba(255,255,255,.6);
  font-size: 11.5px;
}

.policies{
  display:flex;
  gap: 16px;
  flex-wrap: wrap;
}
.policies a{ color: rgba(255,255,255,.6); }
.policies a:hover{ color:#fff; }

/* =========================
   Buttons
========================= */
.btn{
  display:inline-block;
  padding: 10px 18px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 4px;
  letter-spacing: .3px;
}

.btn-red{
  background: var(--red);
  color:#fff;
}
.btn-red:hover{ background: var(--red-dark); }

.btn-red-outline{
  background: var(--red);
  color:#fff;
  width: 120px;
  text-align:center;
  margin-top: 10px;
  display:inline-block;
}

/* =========================
   Responsive
========================= */
@media (max-width: 980px){
  .features-grid{ grid-template-columns: 1fr; }

  /* Collage stacks on mobile/tablet */
  .services-collage{
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .service-tile.big,
  .service-tile.r1,
  .service-tile.r2,
  .service-tile.r3,
  .service-tile.anim{
    grid-column: 1;
    grid-row: auto;
    height:auto;
  }
  .service-tile img{
    height:auto;
  }

  .benefits-grid{ grid-template-columns: 1fr; }
  .footer-top{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px){
  .hero{ height: 420px; }
  .brand-logo{ width: 78px; }
  .hero-logo{ width: min(420px, 78vw); }

  .nav-toggle{ display:block; }
  .nav-links{
    display:none;
    position:absolute;
    top: 56px;
    right: 20px;
    background: rgba(0,0,0,.85);
    border: 1px solid rgba(255,255,255,.18);
    padding: 10px 12px;
    border-radius: 10px;
    flex-direction: column;
    gap: 10px;
  }
  .nav-links.show{ display:flex; }

  .workflow-steps{ gap: 10px; }
  .arrow{ display:none; }

  .footer-top{ grid-template-columns: 1fr; }
} 