@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #0f172a;
  --text-muted: #64748b;
  --accent: #2563eb;
  --accent-light: #eff6ff;
  --accent-purple: #7c3aed;
  --gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --border: #e2e8f0;
  --radius-sm: 12px;
  --radius: 24px;
  --radius-lg: 32px;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
  --shadow: 0 20px 40px -15px rgba(0,0,0,0.08);
  --shadow-lg: 0 30px 60px -15px rgba(37,99,235,0.15);
  --font: 'Plus Jakarta Sans', 'Noto Sans JP', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  line-break: strict;
  overflow-wrap: anywhere;
}

/* Modern Typography Enhancements */
h1, h2, h3, h4, h5, h6,
.section__title, .page-title {
  text-wrap: balance;
}

p, li, blockquote, .section__desc {
  text-wrap: pretty;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 140px 0; }
.bg-alt { background: var(--bg-alt); }

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

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== UTILITIES ===== */
.u-nobr {
  display: inline-block;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .u-nobr {
    white-space: normal;
  }
}
.br-pc {
  display: inline;
}
@media (max-width: 768px) {
  .br-pc {
    display: none;
  }
}

/* ===== COMPONENTS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn--sm { padding: 10px 20px; font-size: 0.9rem; }
.btn--lg { padding: 18px 36px; font-size: 1.1rem; }
.btn--primary {
  background: var(--text);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px var(--accent);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--text);
  background: var(--bg-alt);
}
.btn--full { width: 100%; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.badge__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
.badge--product {
  background: rgba(124,58,237,0.1);
  color: var(--accent-purple);
  margin-bottom: 16px;
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}
.header.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
  text-decoration: none;
}
.logo-biz { color: var(--text); }
.logo-tier {
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav__link:hover { color: var(--text); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.6) 100%);
  z-index: -1;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero__container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 100%;
  padding-top: 80px;
}
.hero__content {
  color: #fff;
}
.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
.hero__sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 48px;
}
.hero__actions.justify-center {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.badge--white {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.badge__dot--white {
  background: #fff;
}
.btn--outline-white {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.btn--outline-white:hover {
  background: #fff;
  color: var(--text);
}

/* ===== SECTION HEADER ===== */
.section__header {
  margin-bottom: 64px;
}
.section__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.section__title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  line-height: 1.2;
}
.section__desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
}
.section__header.text-center .section__desc { margin: 0 auto; }

/* ===== ABOUT ===== */
.about__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__visual {
  position: relative;
}
.about__img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.about__badge {
  position: absolute;
  top: 40px; right: -20px;
  background: var(--text);
  color: #fff;
  padding: 24px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.4;
  box-shadow: var(--shadow);
}
.about__badge strong {
  color: var(--accent2);
  font-size: 1.1rem;
}
.about__desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.about__features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.feature-item {
  display: flex;
  gap: 20px;
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-text h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== PRODUCT ===== */
.product__showcase {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.product__image-container {
  position: relative;
}
.glow-bg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80%; height: 80%;
  background: var(--gradient);
  filter: blur(100px);
  opacity: 0.15;
  z-index: 0;
}
.product__img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.product__info h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.product__info p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
}
.product__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.product__list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  padding: 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.product__list li svg {
  width: 24px; height: 24px;
  stroke: var(--accent);
  flex-shrink: 0;
}
.product__list li span {
  font-size: 1rem;
  color: var(--text-muted);
}
.product__list li strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

/* ===== SERVICES ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.services__container {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 48px;
}
.services__group {
  display: grid;
  gap: 32px;
  padding: 48px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.04);
}
.services__group--sys {
  grid-template-columns: 1.2fr 2fr;
  align-items: center;
}
.services__group--mkt {
  grid-template-columns: 1fr;
}
#marketing-section {
  scroll-margin-top: 100px;
}
.services__group-header {
  max-width: 100%;
}
.services__grid-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.services__grid-wrapper.two-cols {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1024px) {
  .services__group--sys {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .services__group {
    padding: 32px 24px;
  }
  .services__grid-wrapper.two-cols {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 40px 32px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.service-icon__wrap {
  margin-bottom: 24px;
}
.service-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.service-icon svg { width: 32px; height: 32px; }
.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow);
}
.service-card:hover .service-icon {
  background: var(--accent);
  color: #fff;
  transform: scale(1.05) rotate(-5deg);
}
.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.service-card p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ===== CONTACT ===== */
.contact__box {
  background: var(--text);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  position: relative;
  overflow: hidden;
}
.contact__box::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: var(--gradient);
  opacity: 0.1;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}
.contact__content { position: relative; z-index: 1; }
.contact__content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 24px;
}
.contact__content p {
  color: #94a3b8;
  font-size: 1.1rem;
  margin-bottom: 40px;
}
.contact__info p {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: 500;
}
.contact__info svg { width: 24px; height: 24px; color: var(--accent2); }

.contact__form {
  position: relative;
  z-index: 1;
  background: #fff;
  padding: 40px;
  border-radius: var(--radius);
}
.form-group { margin-bottom: 20px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  transition: var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px var(--accent-light);
}

/* ===== FOOTER ===== */
.footer {
  padding: 80px 0 40px;
  background: #fff;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 60px;
}
.footer__brand p {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 0.95rem;
}
.footer__nav {
  display: flex;
  gap: 32px;
}
.footer__nav a {
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--text); }
.footer__bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
[data-reveal] {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal="fade-up"] { transform: translateY(40px); }
[data-reveal="fade-left"] { transform: translateX(40px); }
[data-reveal="fade-right"] { transform: translateX(-40px); }
[data-reveal="zoom-in"] { transform: scale(0.95); }

[data-reveal].is-visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

.float-anim {
  animation: float 6s ease-in-out infinite;
}
.float-anim-reverse {
  animation: float-rev 7s ease-in-out infinite;
}
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}
@keyframes float-rev {
  0% { transform: translateY(0px); }
  50% { transform: translateY(15px); }
  100% { transform: translateY(0px); }
}
.hover-lift {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}
.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(37,99,235,0.15);
  border-color: rgba(37,99,235,0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero__container, .about__container, .product__showcase {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .hero { padding: 140px 0 80px; text-align: center; }
  .hero__actions { justify-content: center; }
  .hero__title { font-size: 3rem; }
  .floating-card { left: 20px; bottom: 20px; }
  .about__visual { order: -1; }
  .about__badge { right: 20px; }
  .product__image-container { order: -1; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__box { grid-template-columns: 1fr; padding: 40px; }
}

@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 0; right: -100%;
    width: 100%; height: 100vh;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transition: var(--transition);
    z-index: 100;
  }
  .nav__menu.active {
    right: 0;
  }
  .nav__menu .nav__link {
    font-size: 1.5rem;
    font-weight: 700;
  }
  .nav__actions .btn { display: none; }
  .nav__hamburger { display: flex; z-index: 101; }
  .nav__hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__hamburger.active span:nth-child(2) { opacity: 0; }
  .nav__hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  
  .hero__title { font-size: 2.2rem; }
  .btn--lg { padding: 14px 28px; font-size: 1rem; }
  .services__grid { grid-template-columns: 1fr; }
  .why-us__grid { grid-template-columns: 1fr !important; }
  .flow__grid { grid-template-columns: 1fr !important; }
  .footer__inner { flex-direction: column; gap: 40px; text-align: center; align-items: center; }
  .footer__nav { flex-direction: column; gap: 16px; }
}

/* ===== NEW GRIDS (RESPONSIVE) ===== */
.why-us__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.flow__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .why-us__grid { grid-template-columns: repeat(2, 1fr); }
  .flow__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== SUCCESS STATE ===== */
.success-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 0;
  animation: fade-in 0.4s ease forwards;
}

@keyframes fade-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.success-icon {
  width: 48px;
  height: 48px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.success-icon svg {
  width: 24px;
  height: 24px;
}

.success-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.success-msg {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== PRINT OPTIMIZATION ===== */
@media print {
  /* Ensure backgrounds and colors are printed */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  /* Maximum compact layout for print */
  body {
    background: var(--bg) !important;
    color: var(--text) !important;
    font-size: 9pt !important;
    line-height: 1.4 !important;
  }

  /* Hide strictly interactive/unnecessary elements */
  .nav__hamburger, #hero-canvas, [id^="hero-canvas"], .nav__actions, .btn, .footer__nav, .badge {
    display: none !important;
  }

  /* Header adjustment: very small, first page only */
  .header {
    position: absolute !important;
    top: 0 !important;
    padding: 5px 0 !important;
    border: none !important;
  }
  
  .nav__logo {
    font-size: 1rem !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    visibility: visible !important;
  }

  /* Very compact Hero */
  .hero {
    min-height: auto !important;
    padding: 20px 0 !important;
    margin-bottom: 10px !important;
  }

  .hero__title {
    font-size: 20pt !important;
    margin-bottom: 5px !important;
  }
  
  .hero__sub {
    font-size: 9pt !important;
    margin-bottom: 10px !important;
  }

  /* Sections: extremely compact */
  .section {
    padding: 10px 0 !important;
  }

  .section__header {
    margin-bottom: 10px !important;
  }

  .section__title {
    font-size: 14pt !important;
    margin-bottom: 5px !important;
  }

  .container {
    max-width: 100% !important;
    padding: 0 20px !important;
  }

  /* 2-column features */
  .about__features, .why-us__grid, .flow__grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .feature-item {
    gap: 10px !important;
  }

  .feature-icon {
    width: 32px !important; height: 32px !important;
  }

  /* Visuals: small and non-overlapping */
  .about__visual, .product__image-container {
    display: block !important;
    text-align: center !important;
  }
  
  .about__img, .product__img {
    max-height: 150px !important;
    width: auto !important;
    margin: 0 auto !important;
  }

  .about__badge {
    position: static !important;
    display: inline-block !important;
    padding: 10px !important;
    margin-top: 10px !important;
    font-size: 8pt !important;
  }

  /* Cards and Groups */
  .service-card, .services__group {
    padding: 10px !important;
    margin-bottom: 10px !important;
    border: 1px solid #eee !important;
  }
  
  .services__grid, .services__container {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  /* Contact section: much smaller */
  .contact__box {
    padding: 15px !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  
  .contact__content h2 {
    font-size: 14pt !important;
  }

  .contact__form {
    padding: 10px !important;
  }

  .form-group {
    margin-bottom: 5px !important;
  }

  /* Company Table Optimization */
  .company-table th, .company-table td {
    padding: 8px 6px !important;
  }
  
  .company-section {
    padding: 20px 0 !important;
  }

  .inner-hero {
    padding: 30px 0 15px !important;
    min-height: auto !important;
  }

  /* Break rules */
  .service-card, .feature-item, .product__list li, .news-item, .footer__inner, table tr {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* Footer */
  .footer {
    padding: 10px 0 !important;
    margin-top: 10px !important;
  }
  
  .footer__brand p {
    font-size: 8pt !important;
  }
}


