/* ============================================================
   iLikePDF — Main Stylesheet (Part 1)
   Tokens, reset, buttons, header, hero
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root{
  --white:#FFFFFF;
  --paper:#FFFFFF;
  --paper-2:#F7F8FB;
  --paper-3:#EEF1F6;
  --ink:#0B1220;
  --ink-soft:#1F2937;
  --muted:#6B7280;
  --muted-2:#9AA3AF;
  --line:#E5E7EB;
  --line-strong:#D1D5DB;

  --brand:#0A1E3F;
  --brand-dark:#061530;
  --brand-tint:#EEF3FF;
  --brand-border:#C7D6FF;

  --shadow-sm:0 1px 2px rgba(15,23,42,.06);
  --shadow-md:0 10px 30px -16px rgba(15,23,42,.16);
  --shadow-lg:0 24px 60px -32px rgba(15,23,42,.24);

  --r-sm:8px;
  --r-md:12px;
  --r-lg:16px;
  --maxw:1120px;
  --ease:cubic-bezier(.2,.7,.3,1);
}

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

html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  scroll-padding-top:84px;
}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Plus Jakarta Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}

img,svg{display:block;max-width:100%}
a{color:inherit}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
h1,h2,h3,h4,p{margin:0}
ul{margin:0;padding:0;list-style:none}

:focus-visible{
  outline:2px solid var(--brand);
  outline-offset:3px;
  border-radius:6px;
}

.container{
  width:100%;
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 20px;
}
@media(min-width:700px){
  .container{padding:0 32px}
}

.narrow{
  max-width:780px;
  margin-left:auto;
  margin-right:auto;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:11px 20px;
  border-radius:8px;
  border:1px solid transparent;
  font-size:14.5px;
  font-weight:700;
  letter-spacing:-.005em;
  line-height:1;
  text-decoration:none;
  cursor:pointer;
  white-space:nowrap;
  transition:all .18s var(--ease);
}
.btn-primary{
  background:var(--brand);
  color:#fff;
  box-shadow:0 1px 2px rgba(10,30,63,.2);
}
.btn-primary:hover{
  background:var(--brand-dark);
  transform:translateY(-1px);
  box-shadow:0 8px 20px -10px rgba(10,30,63,.5);
}
.btn-outline{
  background:#fff;
  color:var(--brand);
  border-color:var(--brand);
}
.btn-outline:hover{
  background:var(--brand-tint);
}
.btn-ghost{
  background:transparent;
  color:var(--ink-soft);
}
.btn-ghost:hover{
  background:var(--paper-2);
  color:var(--ink);
}
.btn-sm{
  padding:9px 16px;
  font-size:13.5px;
}

/* ============================================================
   HEADER
   ============================================================ */
.header{
  position:sticky;
  top:0;
  z-index:60;
  background:#fff;
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  height:68px;
}

.logo{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  flex:none;
}
.logo-mark{
  width:34px;
  height:34px;
  flex:none;
  border-radius:9px;
  overflow:hidden;
  object-fit:contain;
}
.logo-name{
  font-size:19px;
  font-weight:800;
  letter-spacing:-.03em;
  color:var(--ink);
}
.logo-name b{
  font-weight:800;
  color:var(--brand);
}

.nav{
  display:none;
  align-items:center;
  gap:4px;
  margin-left:18px;
}
.nav-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:9px 14px;
  border-radius:8px;
  font-size:14.5px;
  font-weight:600;
  color:var(--ink-soft);
  text-decoration:none;
  transition:background .16s var(--ease),color .16s var(--ease);
}
.nav-link:hover{
  background:var(--paper-2);
  color:var(--ink);
}

.drop-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2px;
  width:12px;
  height:12px;
  flex:none;
}
.drop-grid i{
  width:5px;
  height:5px;
  background:currentColor;
  border-radius:1px;
  display:block;
}

.nav-dropdown{position:relative}
.nav-drop{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  min-width:230px;
  padding:8px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:var(--shadow-lg);
  display:none;
  flex-direction:column;
  gap:1px;
}
.nav-drop.is-open{display:flex}
.nav-drop a{
  padding:10px 12px;
  border-radius:8px;
  font-size:14px;
  font-weight:600;
  color:var(--ink-soft);
  text-decoration:none;
  transition:background .14s var(--ease),color .14s var(--ease);
}
.nav-drop a:hover{
  background:var(--brand-tint);
  color:var(--brand);
}

.header-actions{
  display:none;
  align-items:center;
  gap:8px;
}

.menu-btn{
  display:inline-flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:42px;
  height:42px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
}
.menu-btn span{
  display:block;
  height:2px;
  width:100%;
  background:var(--ink);
  border-radius:2px;
  transition:transform .25s var(--ease),opacity .2s var(--ease);
}
.menu-btn[aria-expanded="true"] span:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] span:nth-child(2){
  opacity:0;
}
.menu-btn[aria-expanded="true"] span:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}

@media(min-width:960px){
  .nav{display:flex}
  .header-actions{display:flex}
  .menu-btn{display:none}
}

.mobile-nav{
  max-height:0;
  overflow:hidden;
  opacity:0;
  transition:max-height .3s var(--ease),opacity .2s var(--ease);
  border-top:1px solid transparent;
}
.mobile-nav.is-open{
  max-height:340px;
  opacity:1;
  border-top-color:var(--line);
}
.mobile-nav-inner{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:12px 0 20px;
}
.mobile-nav-inner > a{
  padding:12px 4px;
  font-size:15.5px;
  font-weight:600;
  color:var(--ink-soft);
  text-decoration:none;
  border-bottom:1px solid var(--line);
}
.mobile-actions{
  display:flex;
  gap:10px;
  margin-top:16px;
}
.mobile-actions .btn{flex:1}
@media(min-width:960px){
  .mobile-nav{display:none!important}
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  padding:72px 0 44px;
}
@media(min-width:900px){
  .hero{padding:104px 0 60px}
}

.hero-title{
  font-size:clamp(2.6rem,6vw,4rem);
  line-height:1.05;
  letter-spacing:-.04em;
  font-weight:800;
  max-width:16ch;
}

.hero-sub{
  margin-top:20px;
  max-width:56ch;
  font-size:clamp(1.05rem,1.6vw,1.2rem);
  line-height:1.55;
  color:var(--muted);
}

.hero-cta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:32px;
}
.hero-cta .btn{
  padding:13px 22px;
  font-size:15px;
    }
/* ============================================================
   iLikePDF — Main Stylesheet (Part 2)
   Sections, tools, features, CTA, footer
   ============================================================ */

/* ---------- Sections ---------- */
.section{
  padding:60px 0;
}
@media(min-width:900px){
  .section{padding:80px 0}
}

.section-head{
  max-width:640px;
  margin:0 auto;
  text-align:center;
}
.section-head h2{
  font-size:clamp(1.9rem,3.6vw,2.5rem);
  line-height:1.1;
  letter-spacing:-.035em;
  font-weight:800;
  text-wrap:balance;
}
.section-head p{
  margin-top:16px;
  font-size:1.05rem;
  color:var(--muted);
  line-height:1.6;
}

.section-alt{
  padding:56px 0;
}
@media(min-width:900px){
  .section-alt{padding:80px 0}
}

.section-title{
  font-size:clamp(1.9rem,3.6vw,2.5rem);
  letter-spacing:-.035em;
  font-weight:800;
  line-height:1.1;
  text-align:center;
}
.section-sub{
  margin-top:18px;
  font-size:1.08rem;
  line-height:1.65;
  color:var(--muted);
  text-align:center;
}

/* ============================================================
   TOOL GRID
   ============================================================ */
.tool-grid{
  display:grid;
  gap:14px;
  grid-template-columns:1fr;
  margin-top:44px;
}
@media(min-width:720px){
  .tool-grid{grid-template-columns:1fr 1fr;gap:16px}
}

.tool-card{
  display:flex;
  align-items:center;
  gap:18px;
  padding:22px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  text-decoration:none;
  color:inherit;
  transition:transform .22s var(--ease),
             border-color .22s var(--ease),
             box-shadow .22s var(--ease);
}
.tool-card:hover{
  transform:translateY(-2px);
  border-color:var(--brand-border);
  box-shadow:0 12px 32px -18px rgba(10,30,63,.22);
}
.tool-card:active{
  transform:translateY(0);
}

.tool-icon{
  width:52px;
  height:52px;
  flex:none;
  border-radius:12px;
  object-fit:cover;
  overflow:hidden;
}

.tool-text{
  flex:1;
  min-width:0;
}
.tool-text strong{
  display:block;
  font-size:15.5px;
  font-weight:700;
  letter-spacing:-.015em;
  color:var(--ink);
}
.tool-text small{
  display:block;
  margin-top:4px;
  font-size:13.5px;
  line-height:1.45;
  color:var(--muted);
  overflow:hidden;
  text-overflow:ellipsis;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}

.tool-arrow{
  flex:none;
  color:var(--muted-2);
  font-size:18px;
  font-weight:700;
  transition:transform .22s var(--ease),color .22s var(--ease);
}
.tool-card:hover .tool-arrow{
  transform:translateX(4px);
  color:var(--brand);
}

.section-cta{
  display:flex;
  justify-content:center;
  margin-top:40px;
}

/* ============================================================
   FEATURES
   ============================================================ */
.feature{
  display:grid;
  gap:36px;
  align-items:center;
  margin-bottom:70px;
}
.feature:last-child{margin-bottom:0}

@media(min-width:900px){
  .feature{
    grid-template-columns:1.05fr 1fr;
    gap:64px;
    margin-bottom:96px;
  }
  .feature-reverse{
    grid-template-columns:1fr 1.05fr;
  }
  .feature-reverse .feature-media{order:2}
  .feature-reverse .feature-text{order:1}
}

.feature-media img{
  width:100%;
  height:auto;
  border-radius:16px;
}

.feature-text h3{
  font-size:clamp(1.5rem,2.6vw,1.9rem);
  line-height:1.15;
  letter-spacing:-.03em;
  font-weight:800;
  margin-bottom:16px;
}
.feature-text p{
  font-size:15.5px;
  line-height:1.7;
  color:var(--muted);
  max-width:52ch;
}

.link-arrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:22px;
  font-size:14.5px;
  font-weight:700;
  color:var(--brand);
  text-decoration:none;
  transition:gap .2s var(--ease);
}
.link-arrow:hover{
  gap:12px;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner-wrap{
  padding-bottom:80px;
}
@media(min-width:900px){
  .cta-banner-wrap{padding-bottom:110px}
}

.cta-banner{
  position:relative;
  overflow:hidden;
  border-radius:20px;
  background:linear-gradient(135deg,#EEF3FF 0%,#DDE6FF 100%);
  padding:48px 28px;
  text-align:center;
}
@media(min-width:900px){
  .cta-banner{padding:64px 60px}
}

.cta-banner-content{
  position:relative;
  z-index:2;
  max-width:640px;
  margin:0 auto;
}
.cta-banner-content h2{
  font-size:clamp(1.6rem,3.2vw,2.2rem);
  line-height:1.15;
  letter-spacing:-.035em;
  font-weight:800;
  color:var(--ink);
}
.cta-banner-content p{
  margin-top:14px;
  font-size:1.02rem;
  line-height:1.6;
  color:var(--muted);
}
.cta-banner-content .btn{
  margin-top:26px;
  padding:13px 24px;
  font-size:15px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer{
  background:#F7F8FB;
  border-top:1px solid var(--line);
  padding:60px 0 30px;
}

.footer-top{
  display:grid;
  gap:40px;
  grid-template-columns:1fr;
}
@media(min-width:640px){
  .footer-top{grid-template-columns:1fr 1fr;gap:40px 32px}
}
@media(min-width:960px){
  .footer-top{
    grid-template-columns:1.6fr 1fr 1fr 1fr;
    gap:56px;
  }
}

.footer-brand .logo-name{color:var(--ink)}
.footer-brand p{
  margin-top:14px;
  font-size:14px;
  color:var(--muted);
}

.footer-col h4{
  font-size:13px;
  font-weight:800;
  letter-spacing:.02em;
  text-transform:uppercase;
  color:var(--ink);
  margin-bottom:14px;
}
.footer-col ul{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.footer-col a{
  display:inline-block;
  padding:4px 0;
  font-size:14px;
  color:var(--muted);
  text-decoration:none;
  transition:color .16s var(--ease);
}
.footer-col a:hover{
  color:var(--brand);
}

.footer-bottom{
  margin-top:52px;
  padding-top:24px;
  border-top:1px solid var(--line);
  display:flex;
  flex-direction:column;
  gap:18px;
  align-items:center;
  text-align:center;
}
@media(min-width:720px){
  .footer-bottom{
    flex-direction:row;
    justify-content:space-between;
    text-align:left;
  }
}

.footer-copy{
  font-size:13px;
  color:var(--muted-2);
}

/* ============================================================
   RESPONSIVE FIXES
   ============================================================ */
@media(max-width:480px){
  .hero-cta{
    flex-direction:column;
    align-items:stretch;
  }
  .hero-cta .btn{
    width:100%;
  }
  .tool-card{
    padding:18px;
    gap:14px;
  }
  .tool-icon{
    width:46px;
    height:46px;
  }
  .tool-text strong{font-size:14.5px}
  .tool-text small{font-size:12.5px}
}
