/* Makino AI Lab - style.css (complete)
   - Clean, research-lab feel
   - Responsive
   - No external deps
*/

:root{
  --bg: #ffffff;
  --fg: #0b0f19;
  --muted: #4b5563;
  --muted2:#6b7280;

  --line: rgba(15, 23, 42, .10);
  --line2: rgba(15, 23, 42, .14);

  --card: #ffffff;
  --soft: rgba(15, 23, 42, .04);

  --blue: #2563eb;
  --blue2:#1d4ed8;

  --shadow: 0 16px 50px rgba(2, 6, 23, .08);
  --shadow2: 0 10px 30px rgba(2, 6, 23, .06);

  --radius: 18px;
  --radius2: 22px;
}

/* Reset */
*{ box-sizing: border-box; }
html,body{ height: 100%; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Meiryo UI, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.75;
  letter-spacing: .02em;
}
img{ max-width: 100%; height: auto; display:block; }
a{ color: inherit; text-decoration: none; }
p{ margin: 0 0 14px; }
ul{ margin: 0; padding-left: 1.2em; }
li{ margin: 6px 0; }

/* Layout */
.container{
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}
.brand-mark{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  background: linear-gradient(145deg, var(--blue), #60a5fa);
  color: #fff;
  font-weight: 900;
  box-shadow: var(--shadow2);
}
.brand small{
  display:block;
  font-size: 12px;
  color: var(--muted2);
  font-weight: 600;
  margin-top: -2px;
}

.nav{
  display:flex;
  align-items:center;
  gap: 18px;
  flex-wrap: wrap;
}
.nav a{
  font-size: 14px;
  color: var(--muted);
  font-weight: 650;
  padding: 8px 10px;
  border-radius: 12px;
}
.nav a:hover{
  background: var(--soft);
  color: var(--fg);
}
.nav .cta{
  border: 1px solid var(--line2);
  color: var(--fg);
  background: #fff;
}
.nav .cta:hover{
  border-color: rgba(37,99,235,.35);
  background: rgba(37,99,235,.06);
  color: var(--blue2);
}

/* Hero */
.hero{
  position: relative;
  padding: 72px 0 38px;
  overflow: hidden;
}
.hero::before{
  content:"";
  position:absolute;
  inset: -200px -200px auto -200px;
  height: 520px;
  background:
    radial-gradient(closest-side, rgba(37,99,235,.14), transparent 70%),
    radial-gradient(closest-side, rgba(96,165,250,.12), transparent 65%),
    radial-gradient(closest-side, rgba(2,6,23,.06), transparent 75%);
  filter: blur(2px);
  pointer-events:none;
}
.hero-grid{
  position: relative;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 34px;
  align-items: start;
}
.kicker{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  color: var(--blue2);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 14px;
}
.kicker::before{
  content:"";
  width: 42px;
  height: 1px;
  background: rgba(37,99,235,.55);
}
.hero h1{
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: .01em;
  margin: 0 0 16px;
}
.hero .lead{
  font-size: 16px;
  color: var(--muted);
  max-width: 60ch;
}
.hero-actions{
  display:flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 14px;
  border: 1px solid var(--line2);
  background: #fff;
  color: var(--fg);
  box-shadow: 0 1px 0 rgba(2,6,23,.04);
}
.btn:hover{
  border-color: rgba(37,99,235,.35);
  background: rgba(37,99,235,.06);
  color: var(--blue2);
}
.btn.primary{
  background: var(--blue);
  border-color: rgba(37,99,235,.65);
  color: #fff;
  box-shadow: 0 14px 40px rgba(37,99,235,.20);
}
.btn.primary:hover{
  background: var(--blue2);
  border-color: rgba(29,78,216,.8);
  color: #fff;
}

/* Hero side card */
.hero-card{
  background: rgba(255,255,255,.75);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  padding: 18px;
  box-shadow: var(--shadow2);
  backdrop-filter: blur(10px);
}
.hero-card h3{
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--muted2);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-card .points{
  display:grid;
  gap: 10px;
}
.pill{
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 12px 12px;
}
.pill strong{
  display:block;
  font-size: 14px;
  margin-bottom: 4px;
}
.pill span{
  display:block;
  font-size: 13px;
  color: var(--muted);
}

/* Sections */
.section{
  padding: 58px 0;
  border-top: 1px solid var(--line);
}
.section h2{
  font-size: 30px;
  margin: 0 0 12px;
  letter-spacing: .01em;
}
.section .subhead{
  color: var(--muted2);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 22px;
}

/* Cards */
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.card{
  grid-column: span 12;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  padding: 18px;
  box-shadow: var(--shadow2);
}
.card.soft{
  background: linear-gradient(180deg, rgba(37,99,235,.06), rgba(255,255,255,1));
}
.card h3{
  margin: 0 0 8px;
  font-size: 18px;
}
.card p{
  color: var(--muted);
}

.quote{
  margin: 0;
  padding: 0;
}
.quote .big{
  font-size: 18px;
  color: var(--fg);
  font-weight: 650;
}
.quote .big em{
  font-style: normal;
  color: var(--blue2);
  font-weight: 850;
}
.quote .rest{
  margin-top: 14px;
  color: var(--muted);
}
.hr{
  height:1px;
  background: var(--line);
  margin: 16px 0;
}

/* Feature columns */
.col-6{ grid-column: span 6; }
.col-4{ grid-column: span 4; }

.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.85);
  color: var(--muted);
}
.badge.dot::before{
  content:"";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(37,99,235,.8);
}

/* Contact */
.contact-box{
  display:flex;
  flex-wrap: wrap;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}
.contact-box .left{
  display:flex;
  flex-direction: column;
  gap: 4px;
}
.contact-box .left strong{
  font-size: 18px;
}
.contact-box .left span{
  color: var(--muted);
  font-size: 14px;
}
.contact-box .right{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 22px 0;
  color: var(--muted2);
  font-size: 13px;
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-inner a{
  color: var(--muted2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Anchor offset for sticky header */
:target{
  scroll-margin-top: 84px;
}

/* Responsive */
@media (max-width: 920px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero{ padding: 56px 0 26px; }
  .col-6{ grid-column: span 12; }
  .col-4{ grid-column: span 12; }
  .nav{ gap: 8px; }
  .nav a{ padding: 8px 8px; }
}